diff --git a/universal7885-common/eklogger/eklogger.rc b/universal7885-common/eklogger/eklogger.rc index 73da727..31308f6 100644 --- a/universal7885-common/eklogger/eklogger.rc +++ b/universal7885-common/eklogger/eklogger.rc @@ -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 diff --git a/universal7885-common/sepolicy/vendor/file.te b/universal7885-common/sepolicy/vendor/file.te index 380d325..3494c4d 100644 --- a/universal7885-common/sepolicy/vendor/file.te +++ b/universal7885-common/sepolicy/vendor/file.te @@ -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; diff --git a/universal7885-common/sepolicy/vendor/genfs_contexts b/universal7885-common/sepolicy/vendor/genfs_contexts index a3f069c..b129ba3 100644 --- a/universal7885-common/sepolicy/vendor/genfs_contexts +++ b/universal7885-common/sepolicy/vendor/genfs_contexts @@ -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 diff --git a/universal7885-common/sepolicy/vendor/init.te b/universal7885-common/sepolicy/vendor/init.te index 7a711cc..f4a4193 100644 --- a/universal7885-common/sepolicy/vendor/init.te +++ b/universal7885-common/sepolicy/vendor/init.te @@ -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;