diff --git a/rootdir/init.w7.rc b/rootdir/init.w7.rc index 61e5101..337bc62 100755 --- a/rootdir/init.w7.rc +++ b/rootdir/init.w7.rc @@ -211,6 +211,7 @@ on charger class_start charger on post-fs-data + # we will remap this as /mnt/sdcard with the sdcard fuse tool mkdir /data/media 0770 media_rw media_rw chown media_rw media_rw /data/media @@ -249,6 +250,12 @@ on post-fs-data # We chown/chmod /persist again so because mount is run as root + defaults chown system system /persist chmod 0771 /persist + # fix sensor daenon + mkdir /persist/sensors 0775 system root + write /persist/sensors/sensors_settings 1 + chmod 0644 /persist/sensors/sensors_settings + chown system root /persist/sensors/sensors_settings + chmod 0664 /sys/devices/platform/msm_sdcc.1/polling chmod 0664 /sys/devices/platform/msm_sdcc.2/polling chmod 0664 /sys/devices/platform/msm_sdcc.3/polling diff --git a/rootdir/init.w7.usb.rc b/rootdir/init.w7.usb.rc index 4ab0628..2555500 100755 --- a/rootdir/init.w7.usb.rc +++ b/rootdir/init.w7.usb.rc @@ -26,7 +26,12 @@ # on init + write /sys/class/android_usb/android0/f_rndis/manufacturer LGE + write /sys/class/android_usb/android0/f_rndis/vendorID 1004 write /sys/class/android_usb/android0/f_rndis/wceis 1 + write /sys/class/android_usb/android0/iSerial ${ro.serialno} + write /sys/module/g_android/parameters/rndis_dl_max_pkt_per_xfer 10 + write /sys/module/g_android/parameters/rndis_ul_max_pkt_per_xfer 5 on fs mkdir /dev/usb-ffs 0770 shell shell