Skip to content

Commit

Permalink
Merge pull request #3 from Quarx2k/cm-12.1
Browse files Browse the repository at this point in the history
Cm 12.1
  • Loading branch information
judas77 committed Aug 10, 2015
2 parents 30f88d0 + 6685386 commit 039caea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rootdir/init.w7.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions rootdir/init.w7.usb.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 039caea

Please sign in to comment.