summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--device_m2note.mk1
-rw-r--r--overlay/frameworks/base/core/res/res/xml/storage_list.xml6
-rw-r--r--recovery/root/fstab.mt67533
-rw-r--r--rootdir/init.mt6735.rc2
-rw-r--r--rootdir/init.project.rc12
5 files changed, 9 insertions, 15 deletions
diff --git a/device_m2note.mk b/device_m2note.mk
index 407d76c..cd1f8ab 100644
--- a/device_m2note.mk
+++ b/device_m2note.mk
@@ -36,6 +36,7 @@ PRODUCT_COPY_FILES += \
# limit dex2oat threads to improve thermals
PRODUCT_PROPERTY_OVERRIDES += \
+ persist.sys.isUsbOtgEnabled=true \
dalvik.vm.boot-dex2oat-threads=4 \
dalvik.vm.dex2oat-threads=2 \
dalvik.vm.image-dex2oat-threads=4
diff --git a/overlay/frameworks/base/core/res/res/xml/storage_list.xml b/overlay/frameworks/base/core/res/res/xml/storage_list.xml
index 7e3ee66..12ad2f7 100644
--- a/overlay/frameworks/base/core/res/res/xml/storage_list.xml
+++ b/overlay/frameworks/base/core/res/res/xml/storage_list.xml
@@ -42,11 +42,15 @@
android:emulated="true"
android:removable="false"
android:mtpReserve="100" />
- <storage android:mountPoint="/storage/sdcard1"
+ <storage android:mountPoint="/storage/sdcard1"
android:storageDescription="@string/storage_sd_card"
android:primary="false"
android:emulated="false"
android:removable="true"
android:allowMassStorage="true" />
+ <storage android:mountPoint="/storage/usbotg"
+ android:storageDescription="@string/storage_usb"
+ android:primary="false"
+ android:removable="true" />
</StorageList>
diff --git a/recovery/root/fstab.mt6753 b/recovery/root/fstab.mt6753
index add7b23..d918bed 100644
--- a/recovery/root/fstab.mt6753
+++ b/recovery/root/fstab.mt6753
@@ -11,4 +11,5 @@
#/dev/block/platform/mtk-msdc.0/by-name/persist /persist ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check,autoformat
/devices/mtk-msdc.0/11230000.MSDC0* auto vfat defaults voldmanaged=sdcard0:emmc@intsd,noemulatedsd
/devices/mtk-msdc.0/11240000.MSDC1* auto auto defaults voldmanaged=sdcard1:auto,noemulatedsd
-/devices/platform/mt_usb auto auto defaults voldmanaged=usbotg:auto,noemulatedsd
+# USB-OTG
+/dev/block/sda* auto auto defaults voldmanaged=usbotg:auto,noemulatedsd
diff --git a/rootdir/init.mt6735.rc b/rootdir/init.mt6735.rc
index e002194..6765d67 100644
--- a/rootdir/init.mt6735.rc
+++ b/rootdir/init.mt6735.rc
@@ -762,7 +762,7 @@ service start_modem /system/bin/md_ctrl 1
on property:persist.uartconsole.enable=1
write /proc/mtprintk 1
-service fuse_usbotg /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/usbotg /storage/usbotg
+service fuse_usbotg /system/bin/sdcard -u 1023 -g 1023 -w 1023 /mnt/media_rw/usbotg /storage/usbotg
class late_start
disabled
diff --git a/rootdir/init.project.rc b/rootdir/init.project.rc
index 8654956..a854bc9 100644
--- a/rootdir/init.project.rc
+++ b/rootdir/init.project.rc
@@ -222,18 +222,6 @@ on post-fs-data
setprop vold.post_fs_data_done 1
on init
- # Refer to http://source.android.com/devices/tech/storage/index.html
- # It said, "Starting in Android 4.4, multiple external storage devices are surfaced to developers through
- # Context.getExternalFilesDirs(), Context.getExternalCacheDirs(), and Context.getObbDirs().
- # External storage devices surfaced through these APIs must be a semi-permanent part of the device (such as an SD card slot in a battery compartment).
- # Developers expect data stored in these locations to be available over long periods of time."
- # Therefore, if the target doesn't support sd hot-plugging (Ex: the SD card slot in a battery compartment), we need to export SECONDARY_STORAGE in 'boot' section
- #
- # export SECONDARY_STORAGE /storage/sdcard1
-
-service fuse_usbotg /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/usbotg /storage/usbotg
- class late_start
- disabled
service atci_service /system/bin/atci_service
socket atci-service stream 660 radio system