From 32e7ea0096ea496b1204a17c3ab0368ba8187916 Mon Sep 17 00:00:00 2001 From: Nikita Ioffe Date: Tue, 14 Jan 2020 12:32:59 +0000 Subject: [PATCH] Allow apps to read ro.init.userspace_reboot.is_supported This property essentially implements PowerManager.isRebootingUserspaceSupported[0] public API, hence apps should be able to read it. [0]: https://cs.android.com/android/_/android/platform/frameworks/base/+/73cab34d9f49013f4ede893aa00802b937d0d5a9:core/java/android/os/PowerManager.java;l=1397 Test: m checkbuild Test: atest CtsUserspaceRebootHostSideTestCases Test: adb shell getprop ro.init.userspace_reboot.is_supported Bug: 135984674 Change-Id: I09cab09735760529de81eb6d5306f052ee408a6e --- private/domain.te | 1 + 1 file changed, 1 insertion(+) diff --git a/private/domain.te b/private/domain.te index 907d1b860..08d963c40 100644 --- a/private/domain.te +++ b/private/domain.te @@ -77,6 +77,7 @@ compatible_property_only(` get_prop({coredomain appdomain shell}, exported3_radio_prop) get_prop({coredomain appdomain shell}, exported3_system_prop) get_prop({coredomain appdomain shell}, exported_camera_prop) + get_prop({coredomain appdomain shell}, userspace_reboot_config_prop) get_prop({coredomain shell}, userspace_reboot_exported_prop) get_prop({coredomain shell}, userspace_reboot_prop) get_prop({domain -coredomain -appdomain}, vendor_default_prop)