betterbug: Update selinux policy for master

Update startup_bugreport_requested property to vendor_public for
betterbug to access.

Bug: 237287659
Test: Load Betterbug for accessing startup bugreport reason property
Change-Id: I7102156fe62d5f03f64c367014c2d1ce9bd679b6
This commit is contained in:
George Lee 2022-10-31 19:47:55 +00:00
parent a2c73f3a52
commit 271a36cdcc
4 changed files with 18 additions and 0 deletions

View file

@ -2,3 +2,5 @@ PRODUCT_PACKAGES += battery_mitigation
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/battery_mitigation/sepolicy
PRODUCT_SOONG_NAMESPACES += device/google/gs-common/battery_mitigation
# BetterBug is included in /vendor/google/products/pixel_experience_2017_and_newer.mk

View file

@ -0,0 +1,11 @@
type better_bug_app, domain, coredomain;
userdebug_or_eng(`
app_domain(better_bug_app)
net_domain(better_bug_app)
allow better_bug_app app_api_service:service_manager find;
allow better_bug_app system_api_service:service_manager find;
allow better_bug_app privapp_data_file:file execute;
get_prop(better_bug_app, default_prop);
get_prop(better_bug_app, vendor_startup_bugreport_requested_prop)
')

View file

@ -0,0 +1,3 @@
# BetterBug
user=_app isPrivApp=true name=com.google.android.apps.internal.betterbug domain=better_bug_app type=app_data_file levelFrom=all

View file

@ -0,0 +1,2 @@
# Battery Mitigation
set_prop(vendor_init, vendor_startup_bugreport_requested_prop)