diff --git a/aoc/sepolicy/file_contexts b/aoc/sepolicy/file_contexts index ed8a6d6..73293f7 100644 --- a/aoc/sepolicy/file_contexts +++ b/aoc/sepolicy/file_contexts @@ -31,6 +31,9 @@ /dev/acd-aocx_inject[0-9]* u:object_r:aoc_device:s0 /dev/acd-aocx_tapout[0-9]* u:object_r:aoc_device:s0 /dev/acd-mc_headpos u:object_r:aoc_device:s0 +/dev/acd-chre_bt_offload_ctl u:object_r:aoc_device:s0 +/dev/acd-chre_bt_offload_data_tx u:object_r:aoc_device:s0 +/dev/acd-chre_bt_offload_data_rx u:object_r:aoc_device:s0 # AoC vendor binaries /vendor/bin/aocd u:object_r:aocd_exec:s0 diff --git a/gyotaku_app/fingerprint/gyotaku_app.te b/gyotaku_app/fingerprint/gyotaku_app.te new file mode 100644 index 0000000..f6475f5 --- /dev/null +++ b/gyotaku_app/fingerprint/gyotaku_app.te @@ -0,0 +1,19 @@ +# Specific build for fingerprint +type gyotaku_app, domain; + +app_domain(gyotaku_app) +net_domain(gyotaku_app) + +# For Gyotaku app common use +allow gyotaku_app app_api_service:service_manager find; +allow gyotaku_app privapp_data_file:lnk_file read; +allow gyotaku_app system_app_data_file:dir create_dir_perms; +allow gyotaku_app system_app_data_file:file create_file_perms; + +# For getproperty isDebuggable use +get_prop(gyotaku_app, userdebug_or_eng_prop) + +# For access /data/vendor/misc fingerprint use. +allow gyotaku_app vendor_misc_data_file:dir search; +allow gyotaku_app vendor_fingerprint_data_file:dir r_dir_perms; +allow gyotaku_app vendor_fingerprint_data_file:file r_file_perms; diff --git a/gyotaku_app/fingerprint/seapp_contexts b/gyotaku_app/fingerprint/seapp_contexts new file mode 100644 index 0000000..b1c6248 --- /dev/null +++ b/gyotaku_app/fingerprint/seapp_contexts @@ -0,0 +1,2 @@ +# Gyotaku app +user=system seinfo=platform name=com.google.android.apps.internal.gyotaku domain=gyotaku_app type=system_app_data_file levelFrom=all diff --git a/gyotaku_app/gyotaku_fingerprint.mk b/gyotaku_app/gyotaku_fingerprint.mk new file mode 100644 index 0000000..051b88e --- /dev/null +++ b/gyotaku_app/gyotaku_fingerprint.mk @@ -0,0 +1,5 @@ +# Specific build for fingerprint +PRODUCT_PACKAGES_DEBUG += \ + Gyotaku + +BOARD_SEPOLICY_DIRS += device/google/gs-common/gyotaku_app/fingerprint