aboutsummaryrefslogtreecommitdiff
path: root/update_verifier
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2017-03-28 13:24:56 -0700
committerTom Cherry <tomcherry@google.com>2017-03-28 15:55:20 -0700
commit545317f4fb99efd4d2c32187328e617ad6f69980 (patch)
tree343218bc03e586ca6e7883a8052038a19e4e1815 /update_verifier
parent27c3e47853b27d08fb6b1e250212b785c915c1a6 (diff)
update_verifier: raise priority and ioprio and start with exec_start
Raise the priority and ioprio of update_verifier and launch with exec_start. This saves ~100ms of time before `class_start main` is executed. Bug: 36511808 Bug: 36102163 Test: Boot bullhead Test: Verify boottime decrease on sailfish Change-Id: I944a6c0d4368ead5b99171f49142da2523ed1bdd
Diffstat (limited to 'update_verifier')
-rw-r--r--update_verifier/Android.mk2
-rw-r--r--update_verifier/update_verifier.rc11
2 files changed, 13 insertions, 0 deletions
diff --git a/update_verifier/Android.mk b/update_verifier/Android.mk
index c1051a54..1acd5eca 100644
--- a/update_verifier/Android.mk
+++ b/update_verifier/Android.mk
@@ -32,6 +32,8 @@ LOCAL_SHARED_LIBRARIES := \
LOCAL_CFLAGS := -Werror
LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
+LOCAL_INIT_RC := update_verifier.rc
+
ifeq ($(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_SUPPORTS_VERITY),true)
LOCAL_CFLAGS += -DPRODUCT_SUPPORTS_VERITY=1
endif
diff --git a/update_verifier/update_verifier.rc b/update_verifier/update_verifier.rc
new file mode 100644
index 00000000..fc8a64de
--- /dev/null
+++ b/update_verifier/update_verifier.rc
@@ -0,0 +1,11 @@
+service update_verifier_nonencrypted /system/bin/update_verifier nonencrypted
+ user root
+ class cache
+ priority -20
+ ioprio rt 1
+
+service update_verifier /system/bin/update_verifier ${vold.decrypt}
+ user root
+ class cache
+ priority -20
+ ioprio rt 1 \ No newline at end of file