summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2017-03-29 21:02:51 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-03-29 21:02:51 +0200
commit68e7932d01148393d4ccc4d925ffac2ce4c6458c (patch)
tree6a49db7dfde0aa70e839c31b37aaeeaa6fb42401
parentMerge "Log the error message when failing to mount/umount." am: 850f89f198 am: 23fe20fb6e am: cbc90e5c2c (diff)
parentMerge "update_verifier: raise priority and ioprio and start with exec_start" am: 3a8919e813 am: 8fe39a28b0 (diff)
downloadandroid_bootable_recovery-68e7932d01148393d4ccc4d925ffac2ce4c6458c.tar
android_bootable_recovery-68e7932d01148393d4ccc4d925ffac2ce4c6458c.tar.gz
android_bootable_recovery-68e7932d01148393d4ccc4d925ffac2ce4c6458c.tar.bz2
android_bootable_recovery-68e7932d01148393d4ccc4d925ffac2ce4c6458c.tar.lz
android_bootable_recovery-68e7932d01148393d4ccc4d925ffac2ce4c6458c.tar.xz
android_bootable_recovery-68e7932d01148393d4ccc4d925ffac2ce4c6458c.tar.zst
android_bootable_recovery-68e7932d01148393d4ccc4d925ffac2ce4c6458c.zip
-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 c1051a54a..1acd5eca0 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 000000000..fc8a64dee
--- /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