www.chinaphonearena.com
[Question] Disable emulated sdcard - Printable Version

+- www.chinaphonearena.com (https://www.chinaphonearena.com/forum)
+-- Forum: Phone & Tablet Root, Hack and Develop (https://www.chinaphonearena.com/forum/Forum-Phone-Tablet-Root-Hack-and-Develop)
+--- Forum: *Tech support* General Phone & Tablet Root, Hack and Develop Root IMEI NVRAM CWM TWRP BRICKED (https://www.chinaphonearena.com/forum/Forum-Tech-support-General-Phone-Tablet-Root-Hack-and-Develop-Root-IMEI-NVRAM-CWM-TWRP-BRICKED)
+--- Thread: [Question] Disable emulated sdcard (/Thread-Question-Disable-emulated-sdcard)



Disable emulated sdcard - clock131 - 2016-04-23

Hi, I have a Elephone P8 (MTK 6592), and i founded a Lollipop rom for this, but I have a problem. With this rom, i can´t access to my Internal SD, I have a emulated sdcard which uses the internal storage (app, data etc). I don`t like this and i would like to change, so I searched and I found something, but always I get a bootloop.
I change fstab.goldfish, fstab.mt6592, init.mt6592, and storage_list.xml in framework-res.apk but nothing. I will put my original files, if you can help me...

fstab.gold
Code:
# Android fstab file.
#<src>                                                  <mnt_point>         <type>    <mnt_flags and options>                              <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
/dev/block/mtdblock0                                    /system             ext4      ro,barrier=1                                         wait
/dev/block/mtdblock1                                    /data               ext4      noatime,nosuid,nodev,barrier=1,nomblk_io_submit      wait,check
/dev/block/mtdblock2                                    /cache              ext4      noatime,nosuid,nodev  wait,check
/devices/platform/goldfish_mmc.0                        auto                vfat      defaults                                             voldmanaged=sdcard:auto

init.mt6592
Code:
export EXTERNAL_STORAGE /storage/emulated/legacy
    export SECONDARY_STORAGE /storage/sdcard1

    mkdir /mnt/shell 0700 shell shell
    chmod 0750 /mnt/shell
    chown shell sdcard_r /mnt/shell
    mkdir /mnt/shell/emulated 0700 shell shell
    mkdir /mnt/shell/emulated/0 0700 shell shell
    mkdir /storage/emulated 0555 root root

    mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
    mkdir /storage/sdcard1 0700 root root

    export EXTERNAL_STORAGE /storage/emulated/legacy
    export SECONDARY_STORAGE /storage/sdcard1
    export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
    export EMULATED_STORAGE_TARGET /storage/emulated

    
    # Support legacy paths
    symlink /storage/emulated/legacy /sdcard
    symlink /storage/emulated/legacy /mnt/sdcard
    symlink /storage/emulated/legacy /storage/sdcard0
    symlink /mnt/shell/emulated/0 /storage/emulated/legacy

###REST OF USELESS DATA####

service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated
    class late_start

service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1
    class late_start
    disabled

fstab.mt6592
Code:
# Android fstab file.
#<src>           <mnt_point>         <type>    <mnt_flags and options>                 <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
/emmc@android       /system         ext4    ro,commit=1,noauto_da_alloc                wait
/emmc@usrdata       /data           ext4    noatime,nosuid,nodev,noauto_da_alloc,discard    wait,check
/emmc@cache         /cache          ext4    noatime,nosuid,nodev,noauto_da_alloc,discard    wait,check
/emmc@protect_f     /protect_f      ext4    noatime,nosuid,nodev,noauto_da_alloc,discard    wait,check
/emmc@protect_s     /protect_s      ext4    noatime,nosuid,nodev,noauto_da_alloc,discard    wait,check
/devices/platform/mtk-msdc.1/mmc_host   auto      auto      defaults        voldmanaged=sdcard1:auto
/devices/platform/mt_usb        auto     auto    defaults    voldmanaged=usbotg:auto

storage_list.xml

Code:
<StorageList><storage android:storageDescription="@string/storage_internal" android:primary="true" android:emulated="true" android:mtpReserve="400"/><storage android:mountPoint="/storage/sdcard1" android:storageDescription="@string/storage_sd_card" android:removable="true"/></StorageList>

EDIT: I added xml code in above storage_list, but the post dosn´t show it, I don´t know why.
I hope tomorrow test again, so tomorow I will show my modifications , if someone know something about this...