Skip to content
Permalink
Browse files

Make internal SD (emmc) the primary storage

Necessary to fix the CMUpdater/recovery disaster post 4.3 without hacking
away at recovery code as everything assumes this kind of setup.
It's also "mandatory for CM10", so maybe we're a little late here. :D

When (if) the vold switchable pair stuff gets merged this shouldn't be much of
a problem, but I'm sure there are going to be "vocal" users following this change. :(
  • Loading branch information...
Dazzozo committed Sep 10, 2013
1 parent 3167c3e commit adcf930eac33c309b4f0fe463a8d8f5a8585f7eb
Showing with 11 additions and 9 deletions.
  1. +8 −8 overlay/frameworks/base/core/res/res/xml/storage_list.xml
  2. +3 −1 ramdisk/init.huawei.rc
@@ -35,14 +35,14 @@
<StorageList xmlns:android="http://schemas.android.com/apk/res/android">
<!-- removable is not set in nosdcard product -->
<storage android:mountPoint="/storage/sdcard1"
android:storageDescription="@string/storage_sd_card"
android:primary="true"
android:removable="true"
android:allowMassStorage="true" />
android:storageDescription="@string/storage_sd_card"
android:primary="false"
android:removable="true"
android:allowMassStorage="true" />

<storage android:mountPoint="/storage/sdcard0"
android:storageDescription="@string/storage_internal"
android:primary="false"
android:removable="false"
android:allowMassStorage="true" />
android:storageDescription="@string/storage_internal"
android:primary="true"
android:removable="false"
android:allowMassStorage="true" />
</StorageList>
@@ -31,7 +31,9 @@ on init
mkdir /storage 0775 system sdcard_r
mkdir /storage/sdcard1 0000 system system
mkdir /storage/sdcard0 0000 system system
export EXTERNAL_STORAGE /storage/sdcard1

export SECONDARY_STORAGE /storage/sdcard1
export EXTERNAL_STORAGE /storage/sdcard0

symlink /storage/sdcard1 /mnt/sdcard
symlink /storage/sdcard1 /sdcard

0 comments on commit adcf930

Please sign in to comment.
You can’t perform that action at this time.