Add betterbug folder to gs-common

Test: locally test, recorded in http://shortn/_iEz9DTCHgo
Bug: 322543833
Change-Id: I035adde2253056414d7c729f4a9f5b4effdde87d
This commit is contained in:
Hongyang Jiao 2024-02-09 21:28:46 +00:00 committed by Ravi Jain
parent 64ede7b44c
commit 9aa2c2e001
4 changed files with 23 additions and 0 deletions

5
betterbug/betterbug.mk Normal file
View File

@ -0,0 +1,5 @@
PRODUCT_PACKAGES += BetterBugStub
PRODUCT_PACKAGES_DEBUG += BetterBug
PRODUCT_PUBLIC_SEPOLICY_DIRS += device/google/gs-common/betterbug/sepolicy/product/public
PRODUCT_PRIVATE_SEPOLICY_DIRS += device/google/gs-common/betterbug/sepolicy/product/private

View File

@ -0,0 +1,15 @@
typeattribute better_bug_app coredomain;
app_domain(better_bug_app)
net_domain(better_bug_app)
allow better_bug_app shell_data_file:file read;
allow better_bug_app privapp_data_file:file execute;
allow better_bug_app app_api_service:service_manager find;
allow better_bug_app system_api_service:service_manager find;
allow better_bug_app mediaserver_service:service_manager find;
set_prop(better_bug_app, ctl_start_prop)
get_prop(better_bug_app, system_boot_reason_prop)

View File

@ -0,0 +1,2 @@
# 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 @@
type better_bug_app, domain;