Move brownout_detection definition to system_ext
Because brownout detection app is installed to system_ext. Bug: 296512192 Test: build panther and boot Test: Automatically filed b/300277478 Change-Id: Ia381f01bbfeb8576a4f9b58ca24aeeeb436060b7
This commit is contained in:
parent
554adb78d1
commit
155ec7653f
@ -7,5 +7,7 @@ PRODUCT_PACKAGES += BrownoutDetection
|
||||
endif
|
||||
endif
|
||||
|
||||
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/battery_mitigation/sepolicy
|
||||
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/battery_mitigation/sepolicy/vendor
|
||||
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += device/google/gs-common/battery_mitigation/sepolicy/system_ext/private
|
||||
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += device/google/gs-common/battery_mitigation/sepolicy/system_ext/public
|
||||
PRODUCT_SOONG_NAMESPACES += device/google/gs-common/battery_mitigation
|
||||
|
@ -1,12 +0,0 @@
|
||||
type brownout_detection_app, domain, coredomain;
|
||||
|
||||
# TODO(b/296512192): move brownout_detection_app out of vendor sepolicy
|
||||
typeattribute brownout_detection_app vendor_seapp_assigns_coredomain_violators;
|
||||
|
||||
userdebug_or_eng(`
|
||||
app_domain(brownout_detection_app)
|
||||
net_domain(brownout_detection_app)
|
||||
allow brownout_detection_app app_api_service:service_manager find;
|
||||
allow brownout_detection_app system_api_service:service_manager find;
|
||||
get_prop(brownout_detection_app, vendor_brownout_reason_prop)
|
||||
')
|
@ -0,0 +1,8 @@
|
||||
typeattribute brownout_detection_app coredomain;
|
||||
|
||||
userdebug_or_eng(`
|
||||
app_domain(brownout_detection_app)
|
||||
net_domain(brownout_detection_app)
|
||||
allow brownout_detection_app app_api_service:service_manager find;
|
||||
allow brownout_detection_app system_api_service:service_manager find;
|
||||
')
|
@ -0,0 +1 @@
|
||||
type brownout_detection_app, domain;
|
3
battery_mitigation/sepolicy/vendor/brownout_detection_app.te
vendored
Normal file
3
battery_mitigation/sepolicy/vendor/brownout_detection_app.te
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
userdebug_or_eng(`
|
||||
get_prop(brownout_detection_app, vendor_brownout_reason_prop)
|
||||
')
|
Loading…
x
Reference in New Issue
Block a user