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

Commit 8ebcb931 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Check for initialization of mUpdateEngine" am: e3a84af1 am:...

Merge "Check for initialization of mUpdateEngine" am: e3a84af1 am: 0d39f923 am: a5452851 am: 53f0434a

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1907970

Change-Id: I6495a2790f9ebc5f1b0b64a5a061d03f49816111
parents e58f91a3 53f0434a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -238,7 +238,7 @@ public class UpdateEngine {
        public static final int DISABLED = 9;
    }

    private IUpdateEngine mUpdateEngine;
    private final IUpdateEngine mUpdateEngine;
    private IUpdateEngineCallback mUpdateEngineCallback = null;
    private final Object mUpdateEngineCallbackLock = new Object();

@@ -248,6 +248,9 @@ public class UpdateEngine {
    public UpdateEngine() {
        mUpdateEngine = IUpdateEngine.Stub.asInterface(
                ServiceManager.getService(UPDATE_ENGINE_SERVICE));
        if (mUpdateEngine == null) {
            throw new IllegalStateException("Failed to find update_engine");
        }
    }

    /**