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:
parent
a2c73f3a52
commit
271a36cdcc
4 changed files with 18 additions and 0 deletions
|
@ -2,3 +2,5 @@ PRODUCT_PACKAGES += battery_mitigation
|
||||||
|
|
||||||
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/battery_mitigation/sepolicy
|
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/battery_mitigation/sepolicy
|
||||||
PRODUCT_SOONG_NAMESPACES += device/google/gs-common/battery_mitigation
|
PRODUCT_SOONG_NAMESPACES += device/google/gs-common/battery_mitigation
|
||||||
|
|
||||||
|
# BetterBug is included in /vendor/google/products/pixel_experience_2017_and_newer.mk
|
||||||
|
|
11
battery_mitigation/sepolicy/better_bug_app.te
Normal file
11
battery_mitigation/sepolicy/better_bug_app.te
Normal 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)
|
||||||
|
')
|
3
battery_mitigation/sepolicy/seapp_contexts
Normal file
3
battery_mitigation/sepolicy/seapp_contexts
Normal 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
|
||||||
|
|
2
battery_mitigation/sepolicy/vendor_init.te
Normal file
2
battery_mitigation/sepolicy/vendor_init.te
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# Battery Mitigation
|
||||||
|
set_prop(vendor_init, vendor_startup_bugreport_requested_prop)
|
Loading…
Add table
Add a link
Reference in a new issue