Move brownout_detection definition to system_ext am: 019653dd20 am: 09ea1a39f2

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/24760273

Change-Id: I612cfeff9ead4130d1d44510ee3be3f046705bb9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Inseob Kim 2023-09-15 01:59:08 +00:00 committed by Automerger Merge Worker
commit 7f7c979ade
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)
')