import init.omap4.rc import init.espresso.sensors.rc import init.espresso.usb.rc on init # Support legacy paths symlink /sdcard /mnt/sdcard symlink /sdcard /storage/sdcard0 # KSM write /sys/kernel/mm/ksm/pages_to_scan 100 write /sys/kernel/mm/ksm/sleep_millisecs 500 write /sys/kernel/mm/ksm/run 1 on fs mkdir /efs 0775 radio system mount_all /fstab.espresso swapon_all /fstab.espresso restorecon_recursive /efs # pvr module insmod /system/lib/modules/pvrsrvkm_sgx540_120.ko # read only 1 page at a time write /proc/sys/vm/page-cluster 0 # set swappines to 100 write /proc/sys/vm/swappiness 100 # increase read-ahead value to 256 kb write /sys/block/mmcblk0/queue/read_ahead_kb 256 mount debugfs debugfs /sys/kernel/debug on post-fs-data # dmrpc mkdir /data/smc 0770 drmrpc drmrpc chown drmrpc drmrpc /data/smc/counter.bin chown drmrpc drmrpc /data/smc/storage.bin chown drmrpc drmrpc /data/smc/system.bin # radio mkdir /data/misc/radio/hatp 0771 radio system # Bluetooth setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr" chown bluetooth net_bt_stack ro.bt.bdaddr_path chown bluetooth net_bt_stack /dev/ttyO1 chmod 0660 /dev/ttyO1 chmod 0660 /sys/class/rfkill/rfkill0/state chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type # Change permission for switch chmod 0600 /sys/class/sec/switch/jig_on chown radio radio /sys/class/sec/switch/jig_on # create data/gps for GPS demon chown root system /dev/ttyO0 chmod 0660 /dev/ttyO0 chown root system /sys/class/sec/gps/GPS_PWR_EN/value chmod 0664 /sys/class/sec/gps/GPS_PWR_EN/value chown root system /sys/class/sec/gps/GPS_nRST/value chmod 0664 /sys/class/sec/gps/GPS_nRST/value mkdir /data/gps 771 system system chown system system /data/gps # Change permission for backlight chown system system /sys/class/backlight/panel/brightness # IrLED chown system system /sys/class/sec/sec_ir/ir_send chown system system /sys/class/sec/sec_ir/check_ir # for wifi mkdir /efs/wifi 0775 system radio setprop vold.post_fs_data_done 1 on boot # SMC Service service tf_daemon /system/bin/tf_daemon \ -d -c /system/bin/smc.ini class main user root group root oneshot disabled service smc_pa /system/bin/smc_pa_ctrl \ -c /system/bin/smc.ini \ start /system/bin/smc_pa.ift class core user root group root oneshot service p2p_supplicant /system/bin/wpa_supplicant \ -iwlan0 -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf \ -I/system/etc/wifi/wpa_supplicant_overlay.conf -N \ -ip2p0 -Dnl80211 -c /data/misc/wifi/p2p_supplicant.conf \ -I/system/etc/wifi/p2p_supplicant_overlay.conf \ -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin \ -g@android:wpa_wlan0 # we will start as root and wpa_supplicant will switch to user wifi # after setting up the capabilities required for WEXT # user wifi # group wifi inet keystore class main socket wpa_wlan0 dgram 660 wifi wifi disabled oneshot service wpa_supplicant /system/bin/wpa_supplicant \ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ -I/system/etc/wifi/wpa_supplicant_overlay.conf \ -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0 # we will start as root and wpa_supplicant will switch to user wifi # after setting up the capabilities required for WEXT # user wifi # group wifi inet keystore class main socket wpa_wlan0 dgram 660 wifi wifi disabled oneshot service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL class main disabled oneshot service dhcpcd_p2p /system/bin/dhcpcd -aABKL class main disabled oneshot service dhcpcd_bt-pan /system/bin/dhcpcd -ABKL class main disabled oneshot service iprenew_wlan0 /system/bin/dhcpcd -n class main disabled oneshot service iprenew_p2p /system/bin/dhcpcd -n class main disabled oneshot service iprenew_bt-pan /system/bin/dhcpcd -n class main disabled oneshot service cpboot-daemon /sbin/cbd -d -p 8 class main user root group radio cache inet misc audio sdcard_rw log sdcard_r seclabel u:r:cpboot-daemon:s0 # GPS service gpsd /system/bin/gpsd -c /system/etc/gps.xml class main socket gps seqpacket 0660 gps system user gps group system inet sdcard_rw # Keyboard service dock_kbd_attach /system/bin/dock_kbd_attach /dev/ttyO3 class main user root oneshot # Set 7 inch devices as portrait device service variant_setup /system/bin/init.espresso.variant.sh class main user root oneshot # LPM on property:ro.bootmode=charger mount ext4 /dev/block/platform/omap/omap_hsmmc.1/by-name/FACTORYFS /system wait ro on property:ro.bootmode=charger write /sys/class/android_usb/android0/enable 0 write /sys/class/android_usb/android0/idVendor 04e8 write /sys/class/android_usb/android0/idProduct 6860 write /sys/class/android_usb/android0/functions adb write /sys/class/android_usb/android0/enable 1 write /sys/class/android_usb/android0/iManufacturer samsung write /sys/class/android_usb/android0/iProduct $(ro.product.model) start adbd on property:ro.bootmode=charger class_start charger service charger /sbin/healthd -c class charger critical seclabel u:r:healthd:s0