Skip to content

Commit

Permalink
Make internal SD (emmc) the primary storage
Browse files Browse the repository at this point in the history
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
Daz Jones committed Sep 10, 2013
1 parent 3167c3e commit adcf930
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
16 changes: 8 additions & 8 deletions overlay/frameworks/base/core/res/res/xml/storage_list.xml
Expand Up @@ -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>
4 changes: 3 additions & 1 deletion ramdisk/init.huawei.rc
Expand Up @@ -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
Expand Down

0 comments on commit adcf930

Please sign in to comment.