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

Commit b838a337 authored by Ajay Dudani's avatar Ajay Dudani Committed by Giulio Cervera
Browse files

ShutdownThread: Set property to indicate radio shutdown

This property is to be used to set action to perform radio
file system force sync on certain msm platforms.

CRs-Fixed: 337095
(cherry picked from commit 3548c1002c1f720695ebda6070dca85e98e46e00)

Change-Id: I408a3a88b21a21fb535b2fee6350c66913b4ceee
parent b98591a7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ public final class ShutdownThread extends Thread {

    // Provides shutdown assurance in case the system_server is killed
    public static final String SHUTDOWN_ACTION_PROPERTY = "sys.shutdown.requested";
    public static final String RADIO_SHUTDOWN_PROPERTY = "sys.radio.shutdown";

    // static instance of this thread
    private static final ShutdownThread sInstance = new ShutdownThread();
@@ -364,6 +365,7 @@ public final class ShutdownThread extends Thread {
            radioOff = true;
        }

        SystemProperties.set(RADIO_SHUTDOWN_PROPERTY, "true");
        Log.i(TAG, "Waiting for Bluetooth and Radio...");
        
        // Wait a max of 32 seconds for clean shutdown