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

Commit 2243a127 authored by zzy's avatar zzy Committed by Dmitry Grinberg
Browse files

DO NOT MERGE: Exit bt process after cleanup

Added code to exit bt process and avoid android process caching.
The fix also gives end user a chance to recover a bad state bt process by
simply turning off/on the bluetooth. Since the process is not recycled,
the kernel frees up all leftover fd and  memory and gives bt process a fresh start every time.
Addresses b/13912278

Change-Id: I616345da70bb60f1aeaab151a6bf6f793168a829
parent dfddf66d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -391,6 +391,9 @@ public class AdapterService extends Service {
        }

        if (DBG)debugLog("cleanup() done");

        if (DBG) debugLog("bluetooth process exit normally after clean up...");
        System.exit(0);
    }

    private static final int MESSAGE_PROFILE_SERVICE_STATE_CHANGED =1;