DO NOT MERGE Show user dialog for BT.
Show user dialog for incoming BT connection requests from unknown devices. Contribution by: Wei (Matthew) Xie Change-Id: I7e9e8bbbd8808a7569f84d213fa3d716f7f5bc80
This commit is contained in:
@@ -695,6 +695,25 @@
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
|
||||
<receiver android:name=".bluetooth.BluetoothPermissionRequest">
|
||||
<intent-filter>
|
||||
<action android:name="android.bluetooth.device.action.CONNECTION_ACCESS_REQUEST" />
|
||||
<action android:name="android.bluetooth.device.action.CONNECTION_ACCESS_CANCEL" />
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
|
||||
<activity android:name=".bluetooth.BluetoothPermissionActivity"
|
||||
android:label="@string/bluetooth_connection_permission_request"
|
||||
android:excludeFromRecents="true"
|
||||
android:permission="android.permission.BLUETOOTH_ADMIN"
|
||||
android:theme="@*android:style/Theme.Dialog.Alert">
|
||||
<intent-filter>
|
||||
<action android:name="android.bluetooth.device.action.CONNECTION_ACCESS_REQUEST" />
|
||||
<action android:name="android.bluetooth.device.action.CONNECTION_ACCESS_CANCEL" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<activity android:name="ActivityPicker"
|
||||
android:label="@string/activity_picker_label"
|
||||
android:theme="@*android:style/Theme.Dialog.Alert"
|
||||
|
||||
Reference in New Issue
Block a user