Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3112dc75 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Relax ACTION_TETHERING_STATE_CHANGED permissions.

This broadcast doesn't contain any sensitive BluetoothDevice extras;
it only contains a single boolean indicating tethering state, so
relax it to no longer require the BLUETOOTH_CONNECT permission.

Bug: 188706031
Test: atest BluetoothInstrumentationTests
Change-Id: I2ff5c501844186a5813b2347246bbc83c190222d
parent 739f619e
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -108,8 +108,6 @@ public final class BluetoothPan implements BluetoothProfile {
     * {@link #TETHERING_STATE_ON}
     */
    @RequiresLegacyBluetoothPermission
    @RequiresBluetoothConnectPermission
    @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
    @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    public static final String ACTION_TETHERING_STATE_CHANGED =
            "android.bluetooth.action.TETHERING_STATE_CHANGED";