From cf2da29d66d641d3b2f27de886403b28804cbe7b Mon Sep 17 00:00:00 2001 From: Jaekyun Seok Date: Wed, 31 Jan 2018 18:12:13 +0900 Subject: [PATCH] Update stable_properties.h ro.boot.* are from kernel cmdline, and kernel is usually owned by SoC vendor or ODM. So those properties should be allowed as action triggers of vendor/odm init scripts. Additionally the state of mediadrm (/system/bin/mediadrmserver) should be used to operate the state of drm HAL. So init.svc.mediadrm should be whitelisted as an action trigger as well. Bug: 36796459 Test: tested with walleye Change-Id: Ic9f68162c577cc190f193063988ad04e42478e6e --- init/stable_properties.h | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/init/stable_properties.h b/init/stable_properties.h index 8219838d8..be354570d 100644 --- a/init/stable_properties.h +++ b/init/stable_properties.h @@ -24,19 +24,27 @@ namespace android { namespace init { static constexpr const char* kPartnerPrefixes[] = { - "init.svc.vendor.", "ro.vendor.", "persist.vendor.", "vendor.", - "init.svc.odm.", "ro.odm.", "persist.odm.", "odm.", + "init.svc.vendor.", "ro.vendor.", "persist.vendor.", "vendor.", "init.svc.odm.", "ro.odm.", + "persist.odm.", "odm.", "ro.boot.", }; static const std::set kExportedActionableProperties = { - "init.svc.zygote", "persist.bluetooth.btsnoopenable", - "persist.sys.crash_rcu", "persist.sys.zram_enabled", - "ro.boot.revision", "ro.bootmode", - "ro.build.type", "sys.boot_completed", - "sys.retaildemo.enabled", "sys.shutdown.requested", - "sys.usb.config", "sys.usb.configfs", - "sys.usb.ffs.mtp.ready", "sys.usb.ffs.ready", - "sys.user.0.ce_available", "sys.vdso", + "init.svc.mediadrm", + "init.svc.zygote", + "persist.bluetooth.btsnoopenable", + "persist.sys.crash_rcu", + "persist.sys.zram_enabled", + "ro.bootmode", + "ro.build.type", + "sys.boot_completed", + "sys.retaildemo.enabled", + "sys.shutdown.requested", + "sys.usb.config", + "sys.usb.configfs", + "sys.usb.ffs.mtp.ready", + "sys.usb.ffs.ready", + "sys.user.0.ce_available", + "sys.vdso", "vts.native_server.on", };