import init.tuna.usb.rc on early-init export EXTERNAL_STORAGE /mnt/sdcard mkdir /mnt/sdcard 0000 system system # for backwards compatibility symlink /mnt/sdcard /sdcard on post-fs-data # we will remap this as /mnt/sdcard with the sdcard fuse tool mkdir /data/media 0775 media_rw media_rw chown media_rw media_rw /data/media mkdir /data/misc/wifi 0770 wifi wifi mkdir /data/misc/wifi/sockets 0770 wifi wifi mkdir /data/misc/dhcp 0770 dhcp dhcp chown dhcp dhcp /data/misc/dhcp on boot mount debugfs /sys/kernel/debug /sys/kernel/debug chmod 0666 /dev/pvrsrvkm on fs mkdir /efs 0775 radio radio mount ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/system /system wait ro mount ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/userdata /data wait noatime nosuid nodev mount ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/cache /cache wait noatime nosuid nodev mount ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/efs /efs wait noatime nosuid nodev # change permissions for Tiler driver chmod 0777 /dev/tiler chmod 0777 /dev/dmm # We chown/chmod /efs because mount is run as root + defaults chown radio radio /efs chmod 0775 /efs # take a wakelock on boot until PM is working write /sys/power/wake_lock hack # nfc setprop ro.nfc.port "COM4" chmod 0600 /dev/ttyO3 chown nfc nfc /dev/ttyO3 chmod 0600 /sys/devices/platform/nfc-power/nfc_power chown nfc nfc /sys/devices/platform/nfc-power/nfc_power service pvrsrvinit /vendor/bin/pvrsrvinit class core user root group root oneshot # create filesystems if necessary service setup_fs /system/bin/setup_fs \ /dev/block/platform/omap/omap_hsmmc.0/by-name/cache \ /dev/block/platform/omap/omap_hsmmc.0/by-name/userdata \ /dev/block/platform/omap/omap_hsmmc.0/by-name/efs class core user root group root oneshot # create virtual SD card at /mnt/sdcard, based on the /data/media directory # daemon will drop to user/group system/media_rw after initializing # underlying files in /data/media will be created with user and group media_rw (1023) service sdcard /system/bin/sdcard /data/media 1023 1023 class late_start service wpa_supplicant /system/bin/wpa_supplicant \ -Dwext -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf # 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 iprenew_wlan0 /system/bin/dhcpcd -n disabled oneshot # bugreport is triggered by holding down volume down, volume up and power service bugreport /system/bin/dumpstate -d -v -o /sdcard/bugreports/bugreport class main disabled oneshot keycodes 114 115 116