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:
Inseob Kim 2023-09-13 04:24:29 +00:00 committed by George Lee
parent 554adb78d1
commit 155ec7653f
13 changed files with 15 additions and 13 deletions

View File

@ -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

View File

@ -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)
')

View File

@ -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;
')

View File

@ -0,0 +1 @@
type brownout_detection_app, domain;

View File

@ -0,0 +1,3 @@
userdebug_or_eng(`
get_prop(brownout_detection_app, vendor_brownout_reason_prop)
')