# 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 boot chmod 0777 /jancar chmod 0777 /dev/i2c-1 chmod 0777 /dev/i2c-2 chmod 0777 /dev/gpios_ioctl chmod 0777 /data/update chmod 0666 /sys/devices/soc/soc:touch@/gt9xx_props chmod 0666 /sys/devices/soc/11006000.pwm/pwm_debug chmod 0666 /sys/devices/soc/1000b000.pinctrl/mt_gpio chmod 0666 /sys/devices/virtual/mtk-adc-cali/mtk-adc-cali/jancar_aux chmod 0777 /system/bin/install_apk.sh chmod 0777 /system/bin/copy_cmd.sh chmod 0777 /system/bin/daemon_service chmod 0666 /dev/ttyMT0 chown system system /dev/ttyMT0 chmod 0666 /dev/ttyMT3 chown system system /dev/ttyMT3 chmod 0777 /proc/mfi_encrypt chmod 0666 /dev/input/event1 chmod 0666 /dev/input/event2 chmod 0777 /system/bin/adb-carnet chmod 0777 /system/bin/timacarnet_init.sh # jancar config chown root system /jancar/config chown root system /jancar/config/displayparams.json chown root system /jancar/config/pointercal.xml chown root system /jancar/config/touch_key.xml chown root system /jancar/config/screen_voltage.json chown root system /jancar/config/ivi-config.ini chown root system /jancar/config/ivi-launcher.json chown root system /jancar/config/ivi-settings.ini chown root system /jancar/config/ivi-studykey.ini chown root system /jancar/config/jac_config.json chown root system /jancar/config/jac_settings.json chown root system /sys/class/leds/lcd-backlight/ chown root system /sys/class/leds/lcd-backlight/min_brightness chown root system /sys/class/leds/lcd-backlight/max_brightness chown root system /jancar/config/ivi-customer.ini chown root system /jancar/config/duraspeed.ini chmod 0775 /jancar/config chmod 0660 /jancar/config/touch_key.xml chmod 0660 /jancar/config/displayparams.json chmod 0660 /jancar/config/pointercal.xml chmod 0660 /jancar/config/screen_voltage.json chmod 0664 /jancar/config/ivi-config.ini chmod 0664 /jancar/config/ivi-launcher.json chmod 0664 /jancar/config/ivi-settings.ini chmod 0664 /jancar/config/ivi-studykey.ini chmod 0664 /jancar/config/jac_config.json chmod 0664 /jancar/config/jac_settings.json chmod 0666 /jancar/config/can_config.json chmod 0660 /sys/class/leds/lcd-backlight/min_brightness chmod 0660 /sys/class/leds/lcd-backlight/max_brightness chmod 0664 /jancar/config/ivi-customer.ini chmod 0664 /jancar/config/duraspeed.ini chown root system /jancar/preupdate chmod 0775 /jancar/preupdate on post-fs-data # TCPIP adbd for jancar setprop service.adb.tcp.port 5555 on init setprop service.adb.jancar.fororoot 0 setprop service.install.jancar.deamon 0 on property:sys.boot_completed=1 setenforce 0 mkdir /data/.android 0777 system system export HOME /data setprop service.timash.enable 1 setprop service.carnet.enable 1 setprop persist.bluetooth.atc.carplay enable setprop sys.suding.speedplay.apk setprop com.suding.speedplay.mode.support wa setprop com.suding.speedplay.mode.spec wa-w-a chmod 0660 /jancar/logo/logo0.bmp chmod 0775 /jancar/logo chmod 0660 /system/media/bootanimation.zip chown root system /jancar/logo chown root system /jancar/logo/logo0.bmp chown root system /system/media/bootanimation.zip chown root system /sys/hynitron_debug/hynfwupdate chmod 0664 /sys/hynitron_debug/hynfwupdate on property:service.adb.jancar.fororoot=1 restart adbd service preinstall /system/bin/preinstall.sh user root group root disabled seclabel u:r:shell:s0 oneshot service jaccopyfile /system/bin/jaccopyfile.sh class core user root disabled seclabel u:r:shell:s0 oneshot on property:sys.boot_completed=1 start preinstall on property:service.jancar.copyfile=1 start jaccopyfile service timash /system/bin/timacarnet_init.sh user root group root disabled seclabel u:r:shell:s0 oneshot on property:service.timash.enable=1 start timash service carnet /system/bin/adb-carnet start-server class core user root disabled oneshot seclabel u:r:adbd:s0 on property:service.carnet.enable=1 start carnet on property:service.carnet.enable=0 stop carnet service daemon_service /system/bin/daemon_service class core user root disabled oneshot seclabel u:r:adbd:s0 on property:service.install.jancar.deamon=1 restart daemon_service service sd_link /system/bin/sd-link.sh user root group root disabled seclabel u:r:shell:s0 oneshot on property:sys.boot_completed=1 start sd_link service dhcpcd_usb0 system/bin/dhcpcd -BK -dd class main user root group net_admin net_raw disabled oneshot