mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 11:55:31 -04:00
universal7885: Adopt to changes on R10
* The /proc/kmsg buffer is empty by default
This commit is contained in:
parent
4c9d50ef37
commit
cb6cd3067d
4 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
1
universal7885-common/sepolicy/vendor/file.te
vendored
1
universal7885-common/sepolicy/vendor/file.te
vendored
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
2
universal7885-common/sepolicy/vendor/init.te
vendored
2
universal7885-common/sepolicy/vendor/init.te
vendored
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue