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

Commit 0d67f64d 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: Iab3be943d90b9a7042f897a07b828fbd890aa161
parent 580868ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -399,7 +399,7 @@ public class PanService extends ProfileService {
            Intent intent = new Intent(BluetoothPan.ACTION_TETHERING_STATE_CHANGED);
            Intent intent = new Intent(BluetoothPan.ACTION_TETHERING_STATE_CHANGED);
            intent.putExtra(BluetoothPan.EXTRA_TETHERING_STATE,
            intent.putExtra(BluetoothPan.EXTRA_TETHERING_STATE,
                    mTetherOn ? BluetoothPan.TETHERING_STATE_ON : BluetoothPan.TETHERING_STATE_OFF);
                    mTetherOn ? BluetoothPan.TETHERING_STATE_ON : BluetoothPan.TETHERING_STATE_OFF);
            sendBroadcast(intent, BLUETOOTH_CONNECT, Utils.getTempAllowlistBroadcastOptions());
            sendBroadcast(intent, null, Utils.getTempAllowlistBroadcastOptions());
        }
        }
    }
    }