universal7885: Adopt to changes on R10

* The /proc/kmsg buffer is empty by default
This commit is contained in:
roynatech2544 2022-06-17 13:58:33 +00:00
commit cb6cd3067d
4 changed files with 6 additions and 2 deletions

View file

@ -8,7 +8,10 @@ on post-fs-data
mkdir /data/debug 0755 root system encryption=None
rm /data/debug/logcat.txt
rm /data/debug/kmsg.txt
# Turn on logging
write /sys/module/printk/parameters/enabled 1
start eureka_debugger
on property:sys.boot_completed=1
stop eureka_debugger
write /sys/module/printk/parameters/enabled 0

View file

@ -54,6 +54,7 @@ type sysfs_sensors_writable, sysfs_type, rw_fs_type, fs_type;
type sysfs_sim_writable, sysfs_type, rw_fs_type, fs_type;
type sysfs_spi_writeable, sysfs_type, rw_fs_type, fs_type;
type sysfs_wifi_writable, sysfs_type, rw_fs_type, fs_type;
type sysfs_printk, sysfs_type, rw_fs_type, fs_type;
### VENDOR
type vendor_firmware_file, file_type, vendor_file_type;

View file

@ -46,7 +46,7 @@ genfscon sysfs /devices/virtual/timed_output/vibrator/intensity u:obje
genfscon sysfs /devices/virtual/timed_output/vibrator/multi_freq u:object_r:sysfs_vibrator:s0
genfscon sysfs /module/dhd/parameters u:object_r:sysfs_wifi_writable:s0
genfscon sysfs /module/printk/parameters/enabled u:object_r:sysfs_printk:s0
genfscon sysfs /power/cpufreq_max_limit u:object_r:sysfs_power_writable:s0
genfscon sysfs /power/cpufreq_min_limit u:object_r:sysfs_power_writable:s0
genfscon sysfs /power/cpuhotplug/max_online_cpu u:object_r:sysfs_power_writable:s0

View file

@ -40,7 +40,7 @@ allow init kernel:system module_request;
allow init logd:unix_stream_socket connectto;
allow init logdr_socket:sock_file write;
allow init self:capability sys_nice;
allow init sysfs_printk:file write;
allow init proc:file setattr;
allow init proc_swapiness:file write;
allow init proc_extra:file setattr;