diff options
Diffstat (limited to 'etc/init.rc')
-rw-r--r-- | etc/init.rc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/init.rc b/etc/init.rc index aeec483a3..8cff20ec6 100644 --- a/etc/init.rc +++ b/etc/init.rc @@ -41,6 +41,16 @@ on boot on property:sys.powerctl=* powerctl ${sys.powerctl} +on property:sys.storage.ums_enabled=1 + write /sys/class/android_usb/android0/enable 0 + write /sys/class/android_usb/android0/functions adb,mass_storage + write /sys/class/android_usb/android0/enable 1 + +on property:sys.storage.ums_enabled=0 + write /sys/class/android_usb/android0/enable 0 + write /sys/class/android_usb/android0/functions adb + write /sys/class/android_usb/android0/enable ${service.adb.root} + service ueventd /sbin/ueventd critical |