Read docs lol

This commit is contained in:
oxmc
2025-08-18 23:43:02 -07:00
parent 752e05ce4c
commit 9d96f458a8
5 changed files with 73 additions and 4 deletions

2
sepolicy/file_contexts Normal file
View File

@@ -0,0 +1,2 @@
# Label the JAR file
/system/framework/pawlet-device.jar u:object_r:pawlet_device_exec:s0

14
sepolicy/pawlet_device.te Normal file
View File

@@ -0,0 +1,14 @@
# Type declarations
type pawlet_device, domain;
type pawlet_device_exec, exec_type, file_type, system_file_type;
# Inherit from core domain
typeattribute pawlet_device coredomain;
# Property access
get_prop(pawlet_device, oxmc_prop)
set_prop(pawlet_device, oxmc_prop)
# Framework interactions
allow pawlet_device framework_res:file { read getattr };
allow pawlet_device system_server:service_manager find;

View File

@@ -0,0 +1,4 @@
# Custom properties
ro.oxmc..* u:object_r:oxmc_prop:s0
ro.pawlet..* u:object_r:oxmc_prop:s0
persist.pawlet..* u:object_r:oxmc_prop:s0