summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothProfile.java
diff options
context:
space:
mode:
authorRene Mayrhofer <rmayrhofer@google.com>2018-11-28 11:32:40 -0800
committerRene Mayrhofer <rmayrhofer@google.com>2019-01-16 17:09:15 -0800
commit2d4e9092b015b14419cf9a2ecbd64b12c431ee89 (patch)
treee59803cff33a2694a9443733435c362324a56dce /framework/java/android/bluetooth/BluetoothProfile.java
parentc9827ffea6056b36efdc7e303246f9bcd9c2e0c5 (diff)
Enable airplane mode when booting in safe mode
Make it possible to boot in airplane mode when it was not turned on before shutdown/reboot, either for situations where this is required by regulation or to work around problems in normal boot. When safe mode is engaged (Vol-Down), disabled in two stages: 1. Set Settings.Global.AIRPLANE_MODE_ON as early as possible for subsystems to react to it during their initialization. 2. Trigger the public ConnectiviyService API to enable airplane mode. This has to be done during later stages in initialization because it requires sending broadcasts, so some RF leakage may still happen before airplane mode is enabled (time window of a few seconds). Bluetooth is not currently disabled and needs to be fixed by another change. WiFi and NFC are turned off alongside cellular modems. Test: manual Bug: 120145930 Change-Id: I1d61990a9d6f7cd046d28b3e49ecf402dd485063 (cherry picked from commit afc9bc80941ea015cb591a0032e7553b5805fcc6)
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothProfile.java')
0 files changed, 0 insertions, 0 deletions