From 26ff4c02af239f80e65de5f4571fbecfcc2a3e09 Mon Sep 17 00:00:00 2001 From: Jason Riordan Date: Thu, 16 Jan 2014 22:44:15 -0500 Subject: Enable UMS mounting of storage drives Change-Id: I4c369222cf16cb5bd87f007c3b172cd787d20fb1 --- etc/init.rc | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- cgit v1.2.3