OTG: Implement hidden activity usb detection technique
This commit is contained in:
@@ -877,6 +877,24 @@
|
||||
android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
|
||||
android:label="@string/title_import_keys" />
|
||||
|
||||
<!-- Usb interceptor activity -->
|
||||
<activity
|
||||
android:name=".ui.UsbEventReceiverActivity"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/Theme.Keychain.Transparent"
|
||||
android:noHistory="true"
|
||||
android:excludeFromRecents="true"
|
||||
android:taskAffinity="com.example.taskAffinityUsbEventReceiver"
|
||||
android:process=":UsbEventReceiverActivityProcess"
|
||||
android:exported="false">
|
||||
|
||||
<meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
|
||||
android:resource="@xml/usb_device_filter" />
|
||||
<intent-filter>
|
||||
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<!-- DEPRECATED service,
|
||||
using this service may lead to truncated data being returned to the caller -->
|
||||
<service
|
||||
|
||||
Reference in New Issue
Block a user