Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on early-init
- # start fota
- exec /sbin/fotainit
- on init
- # start master reset
- exec /sbin/mr
- # Check if flash was aborted
- exec /sbin/checkabortedflash
- on post-fs
- mkdir /data/idd 0755 idd idd
- mount yaffs2 mtd@appslog /data/idd nosuid nodev
- chown idd idd /data/idd
- chmod 0755 /data/idd
- mkdir /data/tombstones 0755 system system
- mkdir /data/semc-checkin 0700 system system
- mkdir /data/crashsms 0711 system system
- mkdir /data/crashsms/crashes 0755 system system
- on early-boot
- # Start the offline charging (This blocks booting further in some cases)
- exec /system/bin/chargemon
- # Make sure the crashdump level file is writable by Debug Menu > Crash Level
- service updatemiscta /system/bin/updatemiscta
- user root
- oneshot
- service iddd /system/bin/iddd
- user idd
- group idd log
- # Set the startup flag to boot complete, run on property change
- service setssflagbc /system/bin/startupflag bootcomplete
- user root
- oneshot
- disabled
- # AT+CTSA and AT+CKPD support
- service atfwd-daemon /system/bin/atfwd-daemon
- user root
- disabled
- on property:dev.bootcomplete=1
- start setssflagbc
- start atfwd-daemon
- # DRM key activation
- service suntrolkac /system/bin/suntrolkac
- user root
- oneshot
- on property:kernel.log=logcat
- stop klogrouterd
- start klogrouterd
- on property:kernel.log=uart
- stop klogrouterd
- exec /system/bin/klogrouter uart
- on property:kernel.log=default
- stop klogrouterd
- exec /system/bin/klogrouter default
- service klogrouterd /system/bin/klogrouter logcat
- oneshot
- # Net mgr
- service netmgrd /system/bin/netmgrd -E
- on property:ro.use_data_netmgrd=false
- # netmgr not supported on specific target
- stop netmgrd
- on early-fs
- # Get potential ram dump from cache partition before it's needed
- # by the system.
- exec /sbin/grabramdump
- on boot
- # QMUD / QMI keeps its sockets in here
- mkdir /data/radio 0770 radio radio
- # Create the directories used by the Wireless subsystem
- # give system access to wpa_supplicant.conf for backup and restore
- chown wifi wifi /data/misc/wifi
- mkdir /data/misc/wifi/sockets 0771 wifi wifi
- mkdir /data/misc/wifi/wpa_supplicant 0771 wifi wifi
- mkdir /data/misc/wifi/hostapd 0775 wifi wifi
- chmod 0770 /data/misc/wifi
- chmod 0660 /data/misc/wifi/wpa_supplicant.conf
- exec /init.hostapd.sh
- chmod 0770 /data/misc/wifi/hostapd
- mkdir /data/misc/dhcp 0770 dhcp dhcp
- chown dhcp system /data/misc/dhcp
- # bluetooth power up/down interface
- mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
- chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
- chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
- chmod 0660 /sys/class/rfkill/rfkill0/state
- chown bluetooth bluetooth /dev/ttyHS0
- chmod 0660 /dev/ttyHS0
- chown system system /sys/module/sco/parameters/disable_esco
- # bluetooth MAC address programming
- chown bluetooth bluetooth /proc/bt_mac_addr
- setprop ro.bt.bdaddr_path /proc/bt_mac_addr
- # Permissions for Liblights.
- chown system system /sys/class/leds/green/brightness
- chown system system /sys/class/leds/green/trigger
- chown system system /sys/class/leds/red/brightness
- chown system system /sys/class/leds/red/trigger
- chown system system /sys/class/leds/blue/brightness
- chown system system /sys/class/leds/blue/trigger
- chown system system /sys/class/leds/button-backlight/brightness
- chown system system /sys/class/leds/lcd-backlight/brightness
- chown system system /sys/class/leds/lcd-backlight/als/curve
- chown system system /sys/class/leds/keyboard-backlight/brightness
- chown media media /sys/class/leds/tally-light/brightness
- # Change rights for the AKM8975 devices
- chmod 0644 /dev/akm8975_dev
- chown compass system /dev/akm8975_dev
- # enable the GPS
- setprop ro.ril.def.agps.mode 2
- # performance tweaks for flash
- write /sys/block/mtdblock1/bdi/read_ahead_kb 4
- write /sys/block/mtdblock2/bdi/read_ahead_kb 4
- write /sys/block/mtdblock3/bdi/read_ahead_kb 4
- # Wakelock debug
- write /sys/module/wakelock/parameters/debug_mask 7
- # Better power-management
- write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
- write /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold 90
- write /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate 75000
- write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 245760
- # Fix permissions for KGSL
- chmod 0666 /dev/kgsl-2d0
- chmod 0666 /dev/kgsl-3d0
- # Fix permissions for Audio
- chmod 0666 /dev/snd/timer
- chmod 0666 /dev/snd/controlC0
- chmod 0666 /dev/snd/pcmC0D0c
- chmod 0666 /dev/snd/pcmC0D0p
- chmod 0666 /dev/msm_aac_in
- chmod 0666 /dev/msm_amrnb_in
- chmod 0666 /dev/msm_fm
- chmod 0666 /dev/mtp
- # LM35xx/cameralight
- chown system system /sys/devices/i2c-0/0-0053/torch_enable
- chown system system /sys/devices/i2c-0/0-0053/torch_current
- chown system system /sys/devices/i2c-0/0-0053/privacy_enable
- chown system system /sys/devices/i2c-0/0-0053/privacy_current
- chown system system /sys/devices/i2c-0/0-0053/flash_enable
- chown system system /sys/devices/i2c-0/0-0053/flash_duration
- chown system system /sys/devices/i2c-0/0-0053/flash_synchronization
- chown system system /sys/devices/i2c-0/0-0053/flash_current
- chown system system /sys/devices/i2c-0/0-0053/status
- # Owner for the proximity sensor
- chown system system /sys/devices/i2c-0/0-0054/threshold
- # Fix permissions for bma150 (accelerometer). Can be at different adresses.
- chown system system /sys/devices/i2c-0/0-0038/rate
- chown system system /sys/devices/i2c-4/4-0038/rate
- class_start default
- # insert SDIO-driver used by TI Wilink driver.
- # This is _not_ the default SDIO driver included in the kernel.
- insmod /system/lib/modules/sdio.ko
- # Create the directories and files expected by the lcatp service
- # only found in eng builds
- on property:init.svc.bluetoothd=running
- write /sys/devices/virtual/bluetooth/hci0/link_supervision_timeout 6400
- service nvcustomizer /system/bin/nvcustomizer
- user root
- oneshot
- # Copy calibration data from NV to kernel drivers
- service nvimport /system/bin/nvimport
- user root
- oneshot
- service wlan_loader /system/bin/tiwlan_loader -i /etc/tiwlan.ini -f /etc/tiwlan_firmware.bin -e /data/etc/wifi/fw
- disabled
- oneshot
- service ifcfg_ti /system/bin/ifconfig wlan0 up
- disabled
- oneshot
- service wpa_supplicant /system/bin/wpa_supplicant -Dwlan0 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf -dd
- socket wpa_wlan0 dgram 660 wifi wifi
- disabled
- oneshot
- service dhcpcd /system/bin/dhcpcd -B -d wlan0 -t 30
- disabled
- oneshot
- service hciattach /system/bin/hciattach -n /dev/ttyHS0 texas 3000000
- user bluetooth
- group qcom_oncrpc bluetooth net_bt_admin
- disabled
- oneshot
- service wlan_ap_loader /system/bin/tiap_loader -i /system/etc/wifi/softap/tiwlan_ap.ini -f /system/etc/wifi/softap/softap_firmware.bin -e /data/etc/wifi/fw
- disabled
- oneshot
- service hostapd /system/bin/hostapd /data/misc/wifi/hostapd/hostapd.conf
- disabled
- oneshot
- service ifcfg_tiap /system/bin/ifconfig wl0.1 192.168.43.1 netmask 255.255.255.0
- disabled
- oneshot
- # bugreport is triggered by the KEY_VOLUMEUP and BTN_MOUSE keycodes
- service bugreport /system/bin/dumpstate -d -v -o /sdcard/bugreports/bugreport
- disabled
- oneshot
- keycodes 115 272
- service port-bridge /system/bin/port-bridge /dev/smd0 /dev/ttyGS0 &
- disabled
- oneshot
- service qmuxd /system/bin/qmuxd
- service akmd8975 /system/bin/akmd8975
- service mltlusbd /system/bin/mltlusbd
- service hw_config /system/bin/sh /system/etc/hw_config.sh
- user root
- oneshot
- on property:persist.service.adb.enable=1
- exec /init.usbmode.sh
- on property:persist.service.adb.enable=0
- exec /init.usbmode.sh
- on property:persist.usb.eng=1
- exec /init.usbmode.sh
- on property:persist.usb.eng=0
- exec /init.usbmode.sh
- on property:usb.rndis.enable=1
- exec /init.usbmode.sh
- on property:usb.rndis.enable=0
- exec /init.usbmode.sh
- on property:persist.usb.storagemode=msc
- exec /init.usbmode.sh
- on property:persist.usb.storagemode=mtp
- exec /init.usbmode.sh
- on property:usb.pcc.enable=1
- exec /init.usbmode.sh
- on property:usb.pcc.enable=0
- exec /init.usbmode.sh
- service onesegtuner /system/bin/onesegtunerserver
- user system
- group system
- service hdmid /system/bin/hdmid
- user system
- group inet
- service touchd /system/bin/touchd
- user root
- service lidswitchd /system/bin/lidswitchd
- on early-boot
- # Start touch firmware loader
- exec /system/bin/cy8ctma300_fwloader -dev /sys/devices/platform/spi_qsd.0/spi0.0 -no_condition
- on boot
- chown system system /sys/kernel/hdmi_sii_kset/hdmi_sii_kobj/hdmi_sii_state_obj
- chmod 0600 /sys/kernel/hdmi_sii_kset/hdmi_sii_kobj/hdmi_sii_state_obj
- chown system system /dev/i2c-0
- chown system system /dev/uio0
- # Define TCP buffer sizes for various networks
- # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
- setprop net.tcp.buffersize.evdo 1423,261832,261832,1423,261832,261832
- setprop net.tcp.buffersize.gpass 536,12864,19296,536,12864,19296
- insmod /system/lib/modules/semc_felica.ko
- chown felica felica /dev/felica
- chmod 0600 /dev/felica
- chown felica felica /dev/felica_pon
- chmod 0200 /dev/felica_pon
- chown system system /dev/felica_cen
- chmod 0644 /dev/felica_cen
- chown felica felica /dev/felica_rfs
- chmod 0400 /dev/felica_rfs
- chown felica felica /dev/felica_rws
- chmod 0400 /dev/felica_rws
- chown system system /sys/module/semc_felica/parameters/ta_rwusb
- chmod 0200 /sys/module/semc_felica/parameters/ta_rwusb
- chown system system /sys/module/semc_felica/parameters/st_usbcon
- chmod 0200 /sys/module/semc_felica/parameters/st_usbcon
- chown system system /sys/module/semc_felica/parameters/st_airplane
- chmod 0200 /sys/module/semc_felica/parameters/st_airplane
- exec /system/bin/felicalockboot
- exec /sbin/falcheck
- exec /system/bin/usbeng
- chown system system /dev/tsif0
- chown system system /sys/devices/platform/oneseg_tunerpm.0/power_ctrl
- start onesegtuner
- insmod /system/lib/modules/semc_msm_irda.ko
- chmod 0666 /dev/irda_uart
- service uimd /system/bin/uimd
- socket uimd stream 660 radio radio
- user radio
- group radio
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement