mirror of
https://github.com/followmsi/android_device_asus_deb.git
synced 2024-11-06 22:06:28 +00:00
deb: Add support for USB OTG
Change-Id: Id5ded1d14f01e4bd126115866e0bf3bd75d5cfcb
This commit is contained in:
parent
77b56f45d5
commit
5fdf9b4140
3 changed files with 14 additions and 0 deletions
|
@ -11,3 +11,5 @@
|
|||
/dev/block/platform/msm_sdcc.1/by-name/boot /boot emmc defaults defaults
|
||||
/dev/block/platform/msm_sdcc.1/by-name/recovery /recovery emmc defaults defaults
|
||||
/dev/block/platform/msm_sdcc.1/by-name/misc /misc emmc defaults defaults
|
||||
|
||||
/devices/platform/msm_hsusb_host/usb auto auto defaults voldmanaged=usbdisk:auto
|
||||
|
|
|
@ -27,9 +27,13 @@ on init
|
|||
mkdir /storage/emulated 0555 root root
|
||||
mkdir /storage/emulated/legacy 0555 root root
|
||||
|
||||
mkdir /mnt/media_rw/usbdisk 0700 media_rw media_rw
|
||||
mkdir /storage/usbdisk 0700 root root
|
||||
|
||||
export EXTERNAL_STORAGE /storage/emulated/legacy
|
||||
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
|
||||
export EMULATED_STORAGE_TARGET /storage/emulated
|
||||
export SECONDARY_STORAGE /storage/usbdisk
|
||||
|
||||
# Support legacy paths
|
||||
symlink /storage/emulated/legacy /sdcard
|
||||
|
@ -430,6 +434,10 @@ service thermald /system/bin/thermald
|
|||
service mpdecision /system/bin/mpdecision --no_sleep --avg_comp
|
||||
class main
|
||||
|
||||
service fuse_usbdisk /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/usbdisk /storage/usbdisk
|
||||
class late_start
|
||||
disabled
|
||||
|
||||
service ppd /system/bin/mm-pp-daemon
|
||||
class late_start
|
||||
disabled
|
||||
|
|
|
@ -25,4 +25,8 @@
|
|||
android:storageDescription="@string/storage_internal"
|
||||
android:emulated="true"
|
||||
android:mtpReserve="100" />
|
||||
<storage android:mountPoint="/storage/usbdisk"
|
||||
android:storageDescription="@string/storage_usb"
|
||||
android:primary="false"
|
||||
android:removable="true" />
|
||||
</StorageList>
|
||||
|
|
Loading…
Reference in a new issue