Protect Bluetooth OPP ACCEPT and DECLINE broadcast 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 (cherry picked from commit 52c8ba1ecff872ea425d58b37afc1d55528b95f8)
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index e9a3409..bd83bd7 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml
@@ -193,6 +193,8 @@ <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" />