write /sys/module/kgdboc/parameters/kgdboc ttyFIQ1
write /sys/module/fiq_debugger/parameters/kgdb_enable 1
-# rerun macloader to fix wifi after hotspot
-on property:wlan.driver.status=unloaded
- start macloader
-
# Kick watchdogd if debug_level is low
on property:ro.debug_level=0x4f4c
start watchdogd
disabled
oneshot
-service macloader /vendor/bin/macloader
- class main
- user system
- group wifi
- oneshot
-
-on property:init.svc.macloader=stopped
- chown system root /data/.cid.info
- chmod 0664 /data/.cid.info
- chown system root /data/.rev
- chmod 0664 /data/.rev
# end of WiFi MFG (TestMode)
#service olsrd /system/bin/olsrd -f /etc/wifi/olsrd.conf
/system/bin/sensorhubservice u:object_r:sensorhubservice_exec:s0
/system/bin/wifiloader u:object_r:wifiloader_exec:s0
-/system/vendor/bin/macloader u:object_r:macloader_exec:s0
-
/system/bin/cbd u:object_r:cpboot-daemon_exec:s0
/system/bin/gpsd u:object_r:gpsd_exec:s0
/system/bin/sswap u:object_r:sswap_exec:s0
+++ /dev/null
-#### macloader
-#
-type macloader, domain;
-type macloader_exec, exec_type, file_type;
-
-init_daemon_domain(macloader)
-
-allow macloader self:capability { chown dac_override fowner fsetid };
-allow macloader self:process execmem;
-
-# Write into /data
-allow macloader system_data_file:dir { add_name search write };
-allow macloader system_file:file execute_no_trans;
-
-# /data/.cid.info
-# Automatically label files created in /data/ as wifi_data_file
-file_type_auto_trans(macloader, system_data_file, wifi_data_file)
-
-allow macloader wifi_data_file:dir create_dir_perms;
-allow macloader wifi_data_file:file { create_file_perms getattr setattr };
-
-# /sys/module/dhd/parameters/nvram_path
-allow macloader sysfs:file rw_file_perms;
-
-# /efs
-allow macloader efs_file:dir r_dir_perms;
-
-# /efs/wifi/.mac.info
-allow macloader wifi_efs_file:dir r_dir_perms;
-allow macloader wifi_efs_file:file r_file_perms;