summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Chen <ycchen@google.com>2017-12-13 17:22:25 +0800
committerIsaac Chen <ycchen@google.com>2017-12-13 17:22:25 +0800
commit6651a120b498539f682a43a28e6209cb81e33a20 (patch)
tree961f76f23da0d84902e5b0040fbfbd6a6ade9c46
parent795c5b444fc57876c74ec44116553b4504d44979 (diff)
Make update_engine work with non-AB update devices
Disable update_engine service initially. Enable it only on A/B update devices (by checking "ro.boot.slot_suffix" property). Bug: 70541023 Test: On aosp/master: $ lunch aosp_x86_64-userdebug; m -j # boot to home screen # On goog/master: $ lunch aosp_walleye-userdebug; m -j # boot to home screen Change-Id: I68bc1ddc9689a22a64dd1d96e884fdae30eb54f5
-rw-r--r--update_engine.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/update_engine.rc b/update_engine.rc
index 05760450..a7d62357 100644
--- a/update_engine.rc
+++ b/update_engine.rc
@@ -3,3 +3,7 @@ service update_engine /system/bin/update_engine --logtostderr --logtofile --fore
user root
group root system wakelock inet cache
writepid /dev/cpuset/system-background/tasks
+ disabled
+
+on property:ro.boot.slot_suffix=*
+ enable update_engine