summaryrefslogtreecommitdiffstats
path: root/etc/init.rc
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2014-01-21 15:58:42 +0100
committerGerrit Code Review <gerrit2@gerrit>2014-01-21 15:58:42 +0100
commita6a26429f6ee285fb2775dce37ef94339c00d9a2 (patch)
tree2ef5f92fdcf28f167c29bdfd783b0f34c63fe3ae /etc/init.rc
parentFix handling of storage after decryption (diff)
parentEnable UMS mounting of storage drives (diff)
downloadandroid_bootable_recovery-a6a26429f6ee285fb2775dce37ef94339c00d9a2.tar
android_bootable_recovery-a6a26429f6ee285fb2775dce37ef94339c00d9a2.tar.gz
android_bootable_recovery-a6a26429f6ee285fb2775dce37ef94339c00d9a2.tar.bz2
android_bootable_recovery-a6a26429f6ee285fb2775dce37ef94339c00d9a2.tar.lz
android_bootable_recovery-a6a26429f6ee285fb2775dce37ef94339c00d9a2.tar.xz
android_bootable_recovery-a6a26429f6ee285fb2775dce37ef94339c00d9a2.tar.zst
android_bootable_recovery-a6a26429f6ee285fb2775dce37ef94339c00d9a2.zip
Diffstat (limited to 'etc/init.rc')
-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