universal7885: Drop all prebuilt vendor hax

* also Compile all HALs to vendor
 * Remove stuffs actually from vendor which we were disabling in system

Change-Id: I15f5a12a2c36238adf99ca9bbbd0c97475b72fc6
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
SamarV-121 2021-06-23 10:04:26 +05:30 committed by roynatech2544
commit 42fff278ba
32 changed files with 44 additions and 664 deletions

View file

@ -1 +0,0 @@
get_prop(appdomain, exported_camera_prop);

View file

@ -1 +0,0 @@
get_prop(bootanim, userspace_reboot_exported_prop)

View file

@ -1,5 +0,0 @@
recovery_only(`
userdebug_or_eng(`
permissive fastbootd;
')
')

View file

@ -1,3 +0,0 @@
type sysfs_battery, sysfs_type, fs_type;
type sysfs_sec_tsp, fs_type, sysfs_type;
type sysfs_sec_switch, fs_type, sysfs_type;

View file

@ -1,11 +0,0 @@
# Block device for ZRAM
/dev/block/zram0 u:object_r:swap_block_device:s0
# HALs
/system/bin/hw/lineage\.touch@1\.0-service\.samsung u:object_r:hal_touch_samsung_exec:s0
/system/bin/hw/android\.hardware\.power@1\.0-service\.universal7904 u:object_r:hal_power_default_exec:s0
/system/bin/hw/lineage\.fastcharge@1\.0-service\.samsung u:object_r:hal_fastcharge_samsung_exec:s0
# Vendor overlay
/(product|system/product)/vendor_overlay/[0-9]+/etc(/.*)? u:object_r:vendor_configs_file:s0
/(product|system/product)/vendor_overlay/[0-9]+/lib(64)?/hw u:object_r:vendor_hal_file:s0

View file

@ -1,6 +0,0 @@
genfscon sysfs /devices/virtual/sec/tsp u:object_r:sysfs_sec_tsp:s0
genfscon sysfs /devices/virtual/sec/switch u:object_r:sysfs_sec_switch:s0
genfscon sysfs /devices/platform/13840000.i2c/i2c-10/10-003d/s2mu004-charger/power_supply/s2mu004-charger u:object_r:sysfs_battery:s0
genfscon sysfs /devices/platform/13840000.i2c/i2c-10/10-003d/s2mu004-charger/power_supply/otg u:object_r:sysfs_battery:s0
genfscon sysfs /devices/platform/13840000.i2c/i2c-10/10-003d/s2mu004-muic/power_supply/muic-manager u:object_r:sysfs_battery:s0
genfscon sysfs /devices/platform/13830000.i2c/i2c-9/9-003b/power_supply/s2mu004-fuelgauge u:object_r:sysfs_battery:s0

View file

@ -1,2 +0,0 @@
# Allow hal audio to use wakelock
wakelock_use(hal_audio)

View file

@ -1,10 +0,0 @@
type hal_fastcharge_samsung, domain, coredomain;
hal_server_domain(hal_fastcharge_samsung, hal_lineage_fastcharge)
type hal_fastcharge_samsung_exec, exec_type, system_file_type, file_type;
init_daemon_domain(hal_fastcharge_samsung)
allow hal_fastcharge_samsung sysfs_sec_switch:dir search;
allow hal_fastcharge_samsung sysfs_sec_switch:file rw_file_perms;
set_prop(hal_fastcharge_samsung, sec_fastcharge_prop)

View file

@ -1 +0,0 @@
r_dir_file(hal_health, sysfs_battery)

View file

@ -1,7 +0,0 @@
# Allow power HAL to write /sys/class/sec/tsp
r_dir_file(hal_power, sysfs_sec_tsp)
allow hal_power sysfs_sec_tsp:file write;
# Allow power HAL to write /sys/devices/system/cpu
r_dir_file(hal_power, sysfs_devices_system_cpu)
allow hal_power sysfs_devices_system_cpu:file write;

View file

@ -1,8 +0,0 @@
type hal_touch_samsung, domain, coredomain;
hal_server_domain(hal_touch_samsung, hal_lineage_touch)
type hal_touch_samsung_exec, system_file_type, exec_type, file_type;
init_daemon_domain(hal_touch_samsung)
allow hal_touch_samsung sysfs_sec_tsp:dir search;
allow hal_touch_samsung sysfs_sec_tsp:file rw_file_perms;

View file

@ -1 +0,0 @@
r_dir_file(healthd, sysfs_battery)

View file

@ -1,2 +0,0 @@
allow init vendor_overlay_file:dir mounton;
allow init watchdog_device:file rw_file_perms;

View file

@ -1 +0,0 @@
system_internal_prop(sec_fastcharge_prop)

View file

@ -1 +0,0 @@
persist.vendor.sec.fastchg_enabled u:object_r:sec_fastcharge_prop:s0

View file

@ -1,3 +0,0 @@
type sec_system_init_shell, domain;
dontaudit sec_system_init_shell domain:file { getattr open };

View file

@ -1,3 +0,0 @@
get_prop(system_server, exported_camera_prop);
get_prop(system_server, userspace_reboot_config_prop)
get_prop(system_server, userspace_reboot_exported_prop)

View file

@ -1 +0,0 @@
get_prop(zygote, exported_camera_prop);