# Copyright (C) 2012 The Android Open Source Project # # IMPORTANT: Do not create world writable files or directories. # This is a common source of Android security bugs. # on post-fs-data # Permissions for Fingerprint sensor chown system radio /sys/class/fingerprint/fingerprint/type_check chown system radio /sys/class/fingerprint/fingerprint/name chown system radio /sys/class/fingerprint/fingerprint/vendor chown system radio /sys/class/fingerprint/fingerprint/adm chown system radio /sys/class/fingerprint/fingerprint/bfs_values # If there is no post-fs-data action in the init..rc file, you # must uncomment this line, otherwise encrypted filesystems # won't work. # Set indication (checked by vold) that we have finished this action #setprop vold.post_fs_data_done 1 # FINGERPRINT # fp_migration /data/biometrics /data/vendor/biometrics mkdir /data/vendor/biometrics 0770 system system mkdir /data/vendor/fpSnrTest 0770 system system restorecon_recursive /data/vendor/biometrics on init # MUIC chown system radio /sys/class/sec/switch/adc chown system radio /sys/class/sec/switch/otg_test chown system radio /sys/class/sec/switch/uart_sel chown system radio /sys/class/sec/switch/usb_sel chown system system /sys/class/sec/switch/afc_off chown system radio /sys/class/sec/switch/afc_disable chown system radio /sys/class/sec/switch/apo_factory chown system radio /sys/class/sec/switch/afc_set_voltage chown system radio /sys/class/sec/switch/vbus_value chown system radio /sys/class/sec/switch/vbus_value_pd chown system radio /sys/class/sec/switch/vbus_rawdata chown system radio /sys/class/sec/switch/keyboard_test on boot #Create directories for Fingerprint mkdir /data/vendor/misc/qti_fp 0770 system system mkdir /data/vendor/misc/qti_fp/bg_estimation 0770 system system mkdir /data/vendor/misc/qti_fp/calib_test 0770 system system mkdir /data/vendor/misc/qti_fp/database 0770 system system # Permissions for svc led chown system system /sys/class/sec/led/led_r chown system system /sys/class/sec/led/led_g chown system system /sys/class/sec/led/led_b chown system system /sys/class/sec/led/led_pattern chown system system /sys/class/sec/led/led_blink chown system system /sys/class/sec/led/led_lowpower chown system system /sys/class/sec/led/led_brightness chown system system /sys/class/sec/led/delay_on chown system system /sys/class/sec/led/delay_off chown system system /sys/class/sec/led/blink chown system system /sys/class/timed_output/vibrator/enable chown system system /sys/class/timed_output/vibrator/intensity chown system system /sys/class/timed_output/vibrator/multi_freq # Permissions for Camera chown cameraserver cameraserver /sys/kernel/mm/vmscan/mem_boost_mode chown system system /sys/class/camera/rear/rear_camfw chown system system /sys/class/camera/rear/rear_camfw_full chown system system /sys/class/camera/rear/rear_camfw_load chown system system /sys/class/camera/rear/rear_camtype chown system system /sys/class/camera/rear/rear_companionfw_full chown system system /sys/class/camera/rear/rear_calcheck chown system system /sys/class/camera/rear/rear_fwcheck chown system system /sys/class/camera/rear/rear_checkfw_user chown system system /sys/class/camera/rear/rear_checkfw_factory chown system system /sys/class/camera/rear/rear_moduleinfo chown system system /sys/class/camera/rear/rear_afcal chown system system /sys/class/camera/rear/isp_core chown system system /sys/class/camera/rear/rear_caminfo chown system system /sys/class/camera/rear/rear_sensorid_exif chown system system /sys/class/camera/rear/rear_moduleid chown system system /sys/class/camera/rear/companion_ic_check chown system system /sys/class/camera/rear/ssrm_camera_info chown system system /sys/class/camera/flash/rear_flash chown system system /sys/class/camera/front/front_camfw chown system system /sys/class/camera/front/front_camtype chown system system /sys/class/camera/front/front_caminfo chown system system /sys/class/camera/front/front_camfw_full chown system system /sys/class/camera/front/front_camfw_load chown system system /sys/class/camera/front/front_checkfw_user chown system system /sys/class/camera/front/front_checkfw_factory chown system system /sys/class/camera/front/front_afcal chown system system /sys/class/camera/front/front_sensorid_exif chown system system /sys/class/camera/ois/selftest chown system system /sys/class/camera/ois/ois_power chown system system /sys/class/camera/ois/ois_rawdata chown system system /sys/class/camera/ois/oisfw chown system system /sys/class/camera/ois/ois_diff chown system system /sys/class/camera/ois/ois_exif chown system system /sys/class/camera/ois/autotest chown system system /sys/class/camera/secure/iris_camfw chown system system /sys/class/camera/secure/iris_camfw_full chown system system /sys/class/camera/secure/iris_checkfw_factory chown system system /sys/class/camera/secure/iris_checkfw_user chown system system /sys/class/camera/secure/iris_caminfo chown system system /sys/devices/svc/Camera/SVC_rear_module # Permissions for InputDevices. chown system radio /sys/class/sec/tsp/cmd chown system system /sys/class/sec/tsp/input/enabled chmod 0660 /sys/class/sec/tsp/input/enabled chown system system /sys/class/sec/sec_touchkey/input/enabled chmod 0660 /sys/class/sec/sec_touchkey/input/enabled chown system system /sys/class/sec/sec_touchkey/brightness chown system radio /sys/class/sec/sec_touchkey/keyboard_mode chown system radio /sys/class/sec/sec_touchkey/flip_mode chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_update chown system radio /sys/class/sec/sec_touchkey/touch_sensitivity chown system radio /sys/class/sec/sec_touchkey/touchkey_light_version chown system radio /sys/class/sec/sec_touchkey/touchkey_light_update chown system radio /sys/class/sec/sec_touchkey/touchkey_light_id_compare chown system radio /sys/class/sec/sec_touchkey/touchkey_light_table_write chown system radio /sys/class/sec/sec_touchkey/glove_mode chown system system /sys/class/sec/sec_epen/input/enabled chmod 0660 /sys/class/sec/sec_epen/input/enabled chown system radio /sys/class/sec/sec_epen/epen_firm_update chown system radio /sys/class/sec/sec_epen/epen_reset chown system radio /sys/class/sec/sec_epen/epen_reset_result chown system radio /sys/class/sec/sec_epen/epen_checksum chown system radio /sys/class/sec/sec_epen/epen_checksum_result chown system radio /sys/class/sec/sec_epen/epen_saving_mode chown system radio /sys/class/sec/sec_epen/epen_wcharging_mode chown system radio /sys/class/sec/sec_epen/epen_disable_mode chown system radio /sys/class/sec/sec_epen/epen_aop_mode chown system radio /sys/class/sec/sec_epen/screen_off_memo_enable # Permissions for SecureDevice chown system system /sys/class/sec/tsp/input/secure_touch_enable # Permissions for gpio_keys chown system radio /sys/class/sec/sec_key/wakeup_keys write /sys/class/sec/sec_key/wakeup_keys 116,172 # Permissions for SENSORS # HRM_sensor chown system radio /sys/class/sensors/hrm_sensor/name chown system radio /sys/class/sensors/hrm_sensor/vendor chown system radio /sys/class/sensors/hrm_sensor/led_current chown system radio /sys/class/sensors/hrm_sensor/led_current1 chown system radio /sys/class/sensors/hrm_sensor/led_current2 chown system radio /sys/class/sensors/hrm_sensor/led_current3 chown system radio /sys/class/sensors/hrm_sensor/led_current4 chown system radio /sys/class/sensors/hrm_sensor/hr_range chown system radio /sys/class/sensors/hrm_sensor/hr_range2 chown system radio /sys/class/sensors/hrm_sensor/look_mode_ir chown system radio /sys/class/sensors/hrm_sensor/look_mode_red chown system radio /sys/class/sensors/hrm_sensor/eol_test chown system radio /sys/class/sensors/hrm_sensor/eol_test_result chown system radio /sys/class/sensors/hrm_sensor/eol_test_status chown system radio /sys/class/sensors/hrm_sensor/int_pin_check chown system radio /sys/class/sensors/hrm_sensor/lib_ver chown system radio /sys/class/sensors/hrm_sensor/regulator chown system radio /sys/class/sensors/hrm_sensor/part_type chown system radio /sys/class/sensors/hrm_sensor/device_id chown system radio /sys/class/sensors/hrm_sensor/hrm_flush chown system radio /sys/class/sensors/hrm_sensor/threshold chown system radio /sys/class/sensors/hrm_sensor/eol_lib_ver chown system radio /sys/class/sensors/hrm_sensor/elf_lib_ver chown system radio /sys/class/sensors/hrm_sensor/adpd_reg_read chown system radio /sys/class/sensors/hrm_sensor/adpd_reg_write chown system radio /sys/class/sensors/hrm_sensor/adpd_mode chown system radio /sys/class/sensors/hrm_sensor/adpd_configuration chown system radio /sys/class/sensors/hrm_sensor/adpd_stat chown system radio /sys/class/sensors/hrm_sensor/alc_enable chmod 0600 /dev/max_hrm chown system system /dev/max_hrm # HRMLED_sensor chown system radio /sys/class/sensors/hrmled_sensor/name chown system radio /sys/class/sensors/hrmled_sensor/vendor chown system radio /sys/class/sensors/hrmled_sensor/hrmled_flush # Grip_sensor chown system radio /sys/class/sensors/grip_sensor/name chown system radio /sys/class/sensors/grip_sensor/vendor chown system radio /sys/class/sensors/grip_sensor/raw_data chown system radio /sys/class/sensors/grip_sensor/threshold chown system radio /sys/class/sensors/grip_sensor/calibration chown system radio /sys/class/sensors/grip_sensor/onoff chown system radio /sys/class/sensors/grip_sensor/reset chown system radio /sys/class/sensors/grip_sensor/mode chown system radio /sys/class/sensors/grip_sensor/gain chown system radio /sys/class/sensors/grip_sensor/start chown system radio /sys/class/sensors/grip_sensor/normal_threshold chown system radio /sys/class/sensors/grip_sensor/gain_ch2 chown system radio /sys/class/sensors/grip_sensor/raw_data_ch2 chown system radio /sys/class/sensors/grip_sensor/diff_avg_ch2 chown system radio /sys/class/sensors/grip_sensor/normal_threshold_ch2 chown system radio /sys/class/sensors/grip_sensor/ch_state chown system radio /sys/class/sensors/grip_sensor/body_threshold chown system radio /sys/class/sensors/grip_sensor/grip_flush chown system radio /sys/class/sensors/grip_sensor/irq_count # Grip_sensor_wifi chown system radio /sys/class/sensors/grip_sensor_wifi/name chown system radio /sys/class/sensors/grip_sensor_wifi/vendor chown system radio /sys/class/sensors/grip_sensor_wifi/raw_data chown system radio /sys/class/sensors/grip_sensor_wifi/threshold chown system radio /sys/class/sensors/grip_sensor_wifi/calibration chown system radio /sys/class/sensors/grip_sensor_wifi/onoff chown system radio /sys/class/sensors/grip_sensor_wifi/reset chown system radio /sys/class/sensors/grip_sensor_wifi/mode chown system radio /sys/class/sensors/grip_sensor_wifi/gain chown system radio /sys/class/sensors/grip_sensor_wifi/start chown system radio /sys/class/sensors/grip_sensor_wifi/normal_threshold chown system radio /sys/class/sensors/grip_sensor_wifi/gain_ch2 chown system radio /sys/class/sensors/grip_sensor_wifi/raw_data_ch2 chown system radio /sys/class/sensors/grip_sensor_wifi/diff_avg_ch2 chown system radio /sys/class/sensors/grip_sensor_wifi/normal_threshold_ch2 chown system radio /sys/class/sensors/grip_sensor_wifi/ch_state chown system radio /sys/class/sensors/grip_sensor_wifi/body_threshold chown system radio /sys/class/sensors/grip_sensor_wifi/grip_flush # Accelerometer Sensor chown system radio /sys/class/sensors/accelerometer_sensor/name chown system radio /sys/class/sensors/accelerometer_sensor/vendor chown system radio /sys/class/sensors/accelerometer_sensor/raw_data chown system radio /sys/class/sensors/accelerometer_sensor/calibration chown system radio /sys/class/sensors/accelerometer_sensor/selftest chown system radio /sys/class/sensors/accelerometer_sensor/reactive_alert chown system radio /sys/class/sensors/accelerometer_sensor/lowpassfilter # Gyro Sensor chown system radio /sys/class/sensors/gyro_sensor/name chown system radio /sys/class/sensors/gyro_sensor/vendor chown system radio /sys/class/sensors/gyro_sensor/power_on chown system radio /sys/class/sensors/gyro_sensor/power_off chown system radio /sys/class/sensors/gyro_sensor/selftest chown system radio /sys/class/sensors/gyro_sensor/temperature # Magnetic Sensor chown system radio /sys/class/sensors/magnetic_sensor/name chown system radio /sys/class/sensors/magnetic_sensor/vendor chown system radio /sys/class/sensors/magnetic_sensor/raw_data chown system radio /sys/class/sensors/magnetic_sensor/adc chown system radio /sys/class/sensors/magnetic_sensor/asa chown system radio /sys/class/sensors/magnetic_sensor/dac chown system radio /sys/class/sensors/magnetic_sensor/chk_registers chown system radio /sys/class/sensors/magnetic_sensor/selftest # Barometer Sensor chown system radio /sys/class/sensors/barometer_sensor/name chown system radio /sys/class/sensors/barometer_sensor/vendor chown system radio /sys/class/sensors/barometer_sensor/sea_level_pressure chown system radio /sys/class/sensors/barometer_sensor/calibration chown system radio /sys/class/sensors/barometer_sensor/eeprom_check chown system radio /sys/class/sensors/barometer_sensor/temperature # Proximity Sensor chown system radio /sys/class/sensors/proximity_sensor/name chown system radio /sys/class/sensors/proximity_sensor/vendor chown system radio /sys/class/sensors/proximity_sensor/state chown system radio /sys/class/sensors/proximity_sensor/raw_data chown system radio /sys/class/sensors/proximity_sensor/barcode_emul_en chown system radio /sys/class/sensors/proximity_sensor/prox_avg chown system radio /sys/class/sensors/proximity_sensor/prox_cal chown system radio /sys/class/sensors/proximity_sensor/thresh_high chown system radio /sys/class/sensors/proximity_sensor/thresh_low chown system radio /sys/class/sensors/proximity_sensor/prox_offset_pass chown system radio /sys/class/sensors/proximity_sensor/prox_trim chown system radio /sys/class/sensors/proximity_sensor/thresh_detect_high chown system radio /sys/class/sensors/proximity_sensor/thresh_detect_low chown system radio /sys/class/sensors/proximity_sensor/prox_alert_thresh # Light Sensor chown system radio /sys/class/sensors/light_sensor/name chown system radio /sys/class/sensors/light_sensor/vendor chown system radio /sys/class/sensors/light_sensor/lux chown system radio /sys/class/sensors/light_sensor/raw_data # Hidden Hole chown system radio /sys/class/sensors/hidden_hole/hh_ver chown system radio /sys/class/sensors/hidden_hole/hh_write_all_data chown system radio /sys/class/sensors/hidden_hole/hh_is_exist_efs # MOBEAM chown system radio /sys/class/sec/sec_barcode_emul/vendor chown system radio /sys/class/sec/sec_barcode_emul/name chown system radio /sys/class/sec/sec_barcode_emul/barcode_send chown system radio /sys/class/sec/sec_barcode_emul/barcode_led_status chown system radio /sys/class/sec/sec_barcode_emul/barcode_ver_check # SSC CORE chown system radio /sys/class/sensors/ssc_core/operation_mode chown system log /sys/class/sensors/ssc_core/dumpstate chown system radio /sys/class/sensors/ssc_core/ssc_pid chown system radio /sys/class/sensors/ssc_core/mode chown system system /sys/class/sensors/ssc_core/remove_sysfs setprop debug.sensor.logging.slpi true #Meta event chown system radio /sys/class/sensors/sensor_dev/flush # MSP FactoryApp mkdir /efs/FactoryApp 0775 system system # Permissions for Charging mkdir /efs/Battery 0775 radio system chown radio system /efs/Battery chmod 0775 /efs/Battery copy /system/vendor/firmware/battery_data.dat /efs/Battery/battery_data.dat chmod 0400 /efs/Battery/battery_data.dat write /sys/class/power_supply/battery/batt_update_data "/efs/Battery/battery_data.dat" chown system radio /sys/class/power_supply/battery/batt_ext_dev_chg chown system radio /efs/Battery/fg_full_voltage chown system radio /sys/class/power_supply/battery/fg_full_voltage chown system radio /sys/class/power_supply/battery/batt_self_discharging_control chown system radio /sys/class/power_supply/battery/batt_inbat_wireless_cs100 chmod 0664 /efs/Battery/fg_full_voltage chmod 0664 /sys/class/power_supply/battery/fg_full_voltage chown system radio /sys/class/power_supply/battery/batt_reset_soc chown system radio /sys/class/power_supply/battery/batt_slate_mode chown system radio /sys/class/power_supply/battery/factory_mode chown system radio /sys/class/power_supply/battery/siop_level chown system radio /sys/class/power_supply/battery/siop_event chown system radio /sys/class/power_supply/battery/wc_enable chown system nfc /sys/class/power_supply/battery/wc_control chown system nfc /sys/class/power_supply/battery/wc_control_cnt chown system radio /sys/class/power_supply/battery/update chown system radio /sys/class/power_supply/battery/batt_wdt_control chown media sdcard_rw /sys/class/power_supply/battery/store_mode chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/call chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/video chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/music chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/browser chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/hotspot chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/camera chown system radio /sys/class/power_supply/battery/talk_wcdma chown system radio /sys/class/power_supply/battery/talk_gsm chown system radio /sys/class/power_supply/battery/call chown system radio /sys/class/power_supply/battery/data_call chown system radio /sys/class/power_supply/battery/gps chown system radio /sys/class/power_supply/battery/wifi chown system radio /sys/class/power_supply/battery/lte chown system radio /sys/class/power_supply/battery/lcd chown system radio /sys/class/power_supply/ps/status chmod 0664 /sys/class/power_supply/battery/wc_control chmod 0664 /sys/class/power_supply/battery/wc_control_cnt chmod 0664 /sys/class/power_supply/ps/status chmod 0664 /sys/class/power_supply/battery/batt_temp_table chown system radio /sys/class/power_supply/battery/batt_temp_table chown system radio /sys/class/power_supply/battery/batt_high_current_usb chown system radio /sys/class/power_supply/battery/batt_inbat_voltage chmod 0664 /sys/class/power_supply/battery/batt_high_current_usb chown system radio /sys/class/power_supply/battery/hmt_ta_connected chown system radio /sys/class/power_supply/battery/hmt_ta_charge chown system radio /sys/class/power_supply/battery/battery_cycle chown system radio /sys/class/power_supply/otg/online chmod 0664 /sys/class/power_supply/otg/online chown system radio /sys/class/power_supply/battery/charge_otg_control chown system radio /sys/class/power_supply/battery/charge_uno_control chown system radio /sys/class/power_supply/battery/batt_wireless_firmware_update chown system radio /sys/class/power_supply/battery/otp_firmware_result chown system radio /sys/class/power_supply/battery/wc_ic_grade chown system radio /sys/class/power_supply/battery/otp_firmware_ver_bin chown system radio /sys/class/power_supply/battery/otp_firmware_ver chown system radio /sys/class/power_supply/battery/tx_firmware_result chown system radio /sys/class/power_supply/battery/batt_tx_firmware chown system radio /sys/class/power_supply/battery/batt_hv_wireless_status chown system radio /sys/class/power_supply/battery/batt_hv_wireless_pad_ctrl chmod 0664 /sys/class/power_supply/battery/charge_otg_control chmod 0664 /sys/class/power_supply/battery/charge_uno_control chmod 0664 /sys/class/power_supply/battery/batt_wireless_firmware_update chmod 0664 /sys/class/power_supply/battery/otp_firmware_result chmod 0664 /sys/class/power_supply/battery/wc_ic_grade chmod 0664 /sys/class/power_supply/battery/otp_firmware_ver_bin chmod 0664 /sys/class/power_supply/battery/otp_firmware_ver chmod 0664 /sys/class/power_supply/battery/tx_firmware_result chmod 0664 /sys/class/power_supply/battery/tx_firmware_ver chmod 0664 /sys/class/power_supply/battery/batt_tx_firmware chmod 0664 /sys/class/power_supply/battery/batt_hv_wireless_status chmod 0664 /sys/class/power_supply/battery/batt_hv_wireless_pad_ctrl chown system radio /sys/class/power_supply/battery/tx_firmware_result chown system radio /sys/class/power_supply/battery/batt_tune_chg_limit_cur chown system radio /sys/class/power_supply/battery/batt_tune_chg_temp_high chown system radio /sys/class/power_supply/battery/batt_tune_chg_temp_rec chown system radio /sys/class/power_supply/battery/batt_tune_coil_limit_cur chown system radio /sys/class/power_supply/battery/batt_tune_coil_temp_high chown system radio /sys/class/power_supply/battery/batt_tune_coil_temp_rec chown system radio /sys/class/power_supply/battery/batt_tune_fast_charge_current chown system radio /sys/class/power_supply/battery/batt_tune_float_voltage chown system radio /sys/class/power_supply/battery/batt_tune_intput_charge_current chown system radio /sys/class/power_supply/battery/batt_tune_temp_high_normal chown system radio /sys/class/power_supply/battery/batt_tune_temp_high_rec_normal chown system radio /sys/class/power_supply/battery/batt_tune_temp_low_normal chown system radio /sys/class/power_supply/battery/batt_tune_temp_low_rec_normal chown system radio /sys/class/power_supply/battery/batt_tune_ui_term_cur_1st chown system radio /sys/class/power_supply/battery/batt_tune_ui_term_cur_2nd chmod 0664 /sys/class/power_supply/battery/batt_tune_chg_limit_cur chmod 0664 /sys/class/power_supply/battery/batt_tune_chg_temp_high chmod 0664 /sys/class/power_supply/battery/batt_tune_chg_temp_rec chmod 0664 /sys/class/power_supply/battery/batt_tune_coil_limit_cur chmod 0664 /sys/class/power_supply/battery/batt_tune_coil_temp_high chmod 0664 /sys/class/power_supply/battery/batt_tune_coil_temp_rec chmod 0664 /sys/class/power_supply/battery/batt_tune_fast_charge_current chmod 0664 /sys/class/power_supply/battery/batt_tune_float_voltage chmod 0664 /sys/class/power_supply/battery/batt_tune_intput_charge_current chmod 0664 /sys/class/power_supply/battery/batt_tune_temp_high_normal chmod 0664 /sys/class/power_supply/battery/batt_tune_temp_high_rec_normal chmod 0664 /sys/class/power_supply/battery/batt_tune_temp_low_normal chmod 0664 /sys/class/power_supply/battery/batt_tune_temp_low_rec_normal chmod 0664 /sys/class/power_supply/battery/batt_tune_ui_term_cur_1st chmod 0664 /sys/class/power_supply/battery/batt_tune_ui_term_cur_2nd chown system radio /sys/class/power_supply/battery/batt_filter_cfg chown system radio /sys/class/power_supply/battery/batt_current_ua_avg chown system radio /sys/class/power_supply/battery/batt_current_ua_now chown system radio /sys/class/power_supply/battery/voltage_avg chown system radio /sys/class/power_supply/battery/voltage_now chown system radio /sys/class/power_supply/battery/mode chmod 0664 /sys/class/power_supply/battery/mode chown system radio /sys/class/power_supply/battery/safety_timer_set chown system radio /sys/class/power_supply/battery/safety_timer_info chown system radio /sys/class/power_supply/battery/wc_op_freq chmod 0664 /sys/class/power_supply/battery/wc_op_freq chown system radio /sys/class/power_supply/battery/wc_cmd_info chmod 0664 /sys/class/power_supply/battery/wc_cmd_info chown system radio /sys/class/power_supply/smb1351-charger/mode chown system radio /sys/class/power_supply/battery/cisd_fullcaprep_max chmod 0660 /sys/class/power_supply/battery/cisd_fullcaprep_max chown system radio /sys/class/power_supply/battery/cisd_wire_count chmod 0660 /sys/class/power_supply/battery/cisd_wire_count chown system radio /sys/class/power_supply/battery/cisd_data chmod 0660 /sys/class/power_supply/battery/cisd_data chown system system /efs/FactoryApp/cisd_data chmod 0640 /efs/FactoryApp/cisd_data service wifiloader /system/bin/wifiloader class main oneshot