OSDN Git Service

Protect Bluetooth OPP ACCEPT and DECLINE broadcast
authorMarie Janssen <jamuraa@google.com>
Wed, 8 Mar 2017 18:12:07 +0000 (10:12 -0800)
committerMarie Janssen <jamuraa@google.com>
Wed, 8 Mar 2017 18:17:12 +0000 (10:17 -0800)
Non-system apps could send these, and accept OPP transfers without user
interaction.

Test: run POC code, see that it crashes instaed of accepting
Bug: 35258579
Change-Id: I37bf2e17b4d612258f9dbaa879727ac7c72e5969

core/res/AndroidManifest.xml

index 84a9ed3..74a3530 100644 (file)
     <protected-broadcast android:name="android.btopp.intent.action.OPEN" />
     <protected-broadcast android:name="android.btopp.intent.action.OPEN_INBOUND" />
     <protected-broadcast android:name="android.btopp.intent.action.TRANSFER_COMPLETE" />
+    <protected-broadcast android:name="android.btopp.intent.action.ACCEPT" />
+    <protected-broadcast android:name="android.btopp.intent.action.DECLINE" />
     <protected-broadcast android:name="com.android.bluetooth.pbap.authchall" />
     <protected-broadcast android:name="com.android.bluetooth.pbap.userconfirmtimeout" />
     <protected-broadcast android:name="com.android.bluetooth.pbap.authresponse" />