diff options
author | Ajay Kumar <ajayku@codeaurora.org> | 2015-11-17 20:53:17 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-12-25 22:01:34 -0800 |
commit | b8a461b7ec8e5ee6410346b9acf95f16d7d7c6bb (patch) | |
tree | 23c3dc41955d4cb4e0cc1ab28c6c3eb23563338c | |
parent | f7699509e9872be06414128eba660f743b4e7da9 (diff) | |
download | android_packages_apps_Bluetooth-b8a461b7ec8e5ee6410346b9acf95f16d7d7c6bb.tar.gz android_packages_apps_Bluetooth-b8a461b7ec8e5ee6410346b9acf95f16d7d7c6bb.tar.bz2 android_packages_apps_Bluetooth-b8a461b7ec8e5ee6410346b9acf95f16d7d7c6bb.zip |
Bluetooth: Killing the process in case of stop_timeout
While stopping the profiles, if stop timeout comes,
it will move back to BLE_ON states and from there it
moves to BLE_OFF state if there is no BLE app open.
This will trigger the stack shutdown while some
profiles may still be active. We can not move to
OFF state or BLE_ON state. The only choice is to
restart the process.
CRs-Fixed: 936968
Change-Id: I5c34789b33daaf6c5e5210c8c215fa3cfbb1735d
-rw-r--r-- | src/com/android/bluetooth/btservice/AdapterState.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/bluetooth/btservice/AdapterState.java b/src/com/android/bluetooth/btservice/AdapterState.java index b2d96899f..54ecbe2c7 100644 --- a/src/com/android/bluetooth/btservice/AdapterState.java +++ b/src/com/android/bluetooth/btservice/AdapterState.java @@ -453,6 +453,8 @@ final class AdapterState extends StateMachine { mPendingCommandState.setTurningOff(false); transitionTo(mBleOnState); notifyAdapterStateChange(BluetoothAdapter.STATE_BLE_ON); + errorLog("BREDR_STOP_TIMEOUT:Killing the process to force a restart as part cleanup"); + android.os.Process.killProcess(android.os.Process.myPid()); break; case BLE_STOP_TIMEOUT: |