summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Riordan <jriordan001@gmail.com>2014-01-17 04:44:15 +0100
committerJason Riordan <jriordan001@gmail.com>2014-01-21 04:22:33 +0100
commit26ff4c02af239f80e65de5f4571fbecfcc2a3e09 (patch)
treea3cbbf7ca80554346c67d6478e08772712fc0d87
parentSet listener properties for UMS mount/unmount (diff)
downloadandroid_bootable_recovery-26ff4c02af239f80e65de5f4571fbecfcc2a3e09.tar
android_bootable_recovery-26ff4c02af239f80e65de5f4571fbecfcc2a3e09.tar.gz
android_bootable_recovery-26ff4c02af239f80e65de5f4571fbecfcc2a3e09.tar.bz2
android_bootable_recovery-26ff4c02af239f80e65de5f4571fbecfcc2a3e09.tar.lz
android_bootable_recovery-26ff4c02af239f80e65de5f4571fbecfcc2a3e09.tar.xz
android_bootable_recovery-26ff4c02af239f80e65de5f4571fbecfcc2a3e09.tar.zst
android_bootable_recovery-26ff4c02af239f80e65de5f4571fbecfcc2a3e09.zip
Diffstat (limited to '')
-rw-r--r--etc/init.rc10
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