FORUMS
Remove All Ads from XDA

Fixing storage issue of lollipop based rom or above

14 posts
Thanks Meter: 22
 
By pritam dutta, Junior Member on 12th May 2017, 08:12 PM
Post Reply Email Thread
You can join My fb group and post questions :: FACEBOOK

Hi gyzz today i will tell you how to fix storage bugs

But first you have to know about this :: Read it care fully

Quote:

THIS FIX WORK WITH ABOVE LOLLIPOP BASED ROMS

Code:
There are two type of storage:confused: 

1. One is emulated :angel:
2. Second is non-emulated storage :angel:
Quote:

Which Rom support the emulated storage
Mainly stock based Rom has emulated storage script

Quote:

Which Rom support the non-emulated storage
Mainly cm based Rom has non-emulated storage script

! First question is that :: How can i under stand which is emulated and which is non-emulated

Examples

EMULATED STORAGE

Code:
# MTK project .rc configure 

on post-fs-data
#
# SHARED_SDCARD related directory & configuration (begin)
#

# we will remap this as /mnt/sdcard with the sdcard fuse tool
		mkdir /data/media 0770 media_rw media_rw
		chown media_rw media_rw /data/media
		
#
# SHARED_SDCARD related directory & configuration (end)
#

on init
    # See storage config details at http://source.android.com/tech/storage/
    # fix non-shell uid process can not access shared-sd
    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

	
	#Path
    export EXTERNAL_STORAGE /storage/emulated/legacy
    export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
    export EMULATED_STORAGE_TARGET /storage/emulated

    mount tmpfs tmpfs /storage/emulated mode=0755,uid=1023,gid=1023
    
    # 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
    symlink /mnt/shell/emulated/0 /storage/emulated/0
    symlink /storage/sdcard1 /mnt/sdcard2
    
on fs
    setprop ro.crypto.fuse_sdcard true

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
NON-EMULATED STORAGE

Code:
# MTK project .rc configure 

on post-fs-data
    mkdir /data/media 0770 media_rw media_rw
    chown media_rw media_rw /data/media
		
on init
    # Catalog
    mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
    mkdir /mnt/media_rw/sdcard0 0700 media_rw media_rw
	mkdir /mnt/media_rw/usbdisk0 0700 media_rw media_rw
    mkdir /storage/sdcard1 0700 root root
    mkdir /storage/sdcard0 0700 root root
    mkdir /storage/usbdisk0 0700 root root

	# Path
    export EXTERNAL_STORAGE /storage/sdcard0
    export USBOTG_STORAGE /storage/usbdisk0
    export SECONDARY_STORAGE /storage/sdcard1
    
    # Links
    symlink /storage/sdcard0 /sdcard
    symlink /storage/sdcard0 /mnt/sdcard
    symlink /storage/sdcard1 /mnt/sdcard2
    symlink /storage/usbdisk0 /usbdisk0
    symlink /storage/usbdisk0 /mnt/usbdisk0
       
   
  
on fs
	mount_all /fstab.mt6582
    setprop ro.crypto.fuse_sdcard true

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

service fuse_sdcard0 /system/bin/sdcard -u 1023 -g 1023 -d /data/media /storage/sdcard0
    class late_start

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

service fuse_usbdisk0 /system/bin/sdcard -u 1023 -g 1023 /mnt/media_rw/usbdisk0 /storage/usbdisk0
    class late_start
Now all type of problem solution

If internal or SD card not showing

Quote:

YOU HAVE TO DO ALL STEPS ONE BY ONE SO NEED PATIENCE



Quote:

STEP 1.



Look at the build.prop and look for one line

Code:
ro.mtk_shared_sdcard=1
If not present then pest it and now reboot

Quote:

IF STILL NOT SOLVE



COPY THOSE FILES FROM STOCK ROM

Code:
system/bin/vold
system/bin/sdcard
system/bin/pq
system/bin/ipod
And make a patch USING THIS PROCESS :: HERE

AND FLASH IR

Quote:

QUESTION : IF GETTING BOOT-LOOP OR STUCK AT ANDROID UPGRADING



DO NOT CHANGE THE

Code:
system/bin/vold
Quote:

IF STILL NOT SOLVED



NOW THE PROCESS BEING TOUGH AND NEED SOME BRAIN AND LOT OF PATIENCE TO SOLVE

GO WITH ME STEP BY STEP

READ IT
Quote:

FOR THIS YOU NEED TO UNPACK THE BOOT.IMG
AND LOOK FOR ALL *.rc FILES FOR THE STORAGE LINES

1. IDENTIFY THE STORAGE TYPE EMULATED OR NON-EMULATED
2. AFTER IDENTIFY THE STORAGE TYPE NOW TAKE SOME TIME AND COMPARE ALL THE LINES WITH THE EXAMPLE SCRIPT I GIVEN ABOVE
3.NOW COMPARE THE fastab.mt**** OF PORT BOOT.IMG WITH THE fastab.mt**** WITH THE STOCK BOOT.IMG


Quote:

NOTE : do all the things with some times because this is difficult and to solve it can take more that 5 times so keep patience and try hard


IF YOU NEED MORE HELP YOU CAN POST IN MY FB GROUP OR COMMENT BELLOW
Attached Files
File Type: zip emulated.zip - [Click for QR Code] (115.9 KB, 840 views)
File Type: zip non-emulated.zip - [Click for QR Code] (160.1 KB, 972 views)
The Following 2 Users Say Thank You to pritam dutta For This Useful Post: [ View ] Gift pritam dutta Ad-Free
 
 
13th May 2017, 05:15 PM |#2  
Member
Thanks Meter: 2
 
More
what do you mean by "fastab.****.rc " ?
13th May 2017, 06:54 PM |#3  
Junior Member
Flag Raipur
Thanks Meter: 0
 
More
emul storage
not work for me i have lava iris x1 grand try to port cm 12.1 of non emul storage

---------- Post added at 05:54 PM ---------- Previous post was at 05:50 PM ----------

fstab.mt65xx
15th May 2017, 06:37 PM |#4  
OP Junior Member
Flag kolkata
Thanks Meter: 22
 
Donate to Me
More
Quote:
Originally Posted by Coolgagan12

not work for me i have lava iris x1 grand try to port cm 12.1 of non emul storage

---------- Post added at 05:54 PM ---------- Previous post was at 05:50 PM ----------

fstab.mt65xx

use NON emule script
21st May 2017, 03:08 AM |#5  
Junior Member
Thanks Meter: 0
 
More
Hello sir...
Muze mere phone ke liye miui rom chahiye....
Koi toh developers mere phone ke liye miui rom devlop karke dega aisa muze lagta hai....

Mera phone:- swipe konnect plus
Model:- konnect plus
Android :- 5.1 (lp)
Cpu:- mt6580
100% rooted phone

Pls sir help me help me help me......
24th May 2017, 09:12 AM |#6  
OP Junior Member
Flag kolkata
Thanks Meter: 22
 
Donate to Me
More
Quote:
Originally Posted by [email protected]

Hello sir...
Muze mere phone ke liye miui rom chahiye....
Koi toh developers mere phone ke liye miui rom devlop karke dega aisa muze lagta hai....

Mera phone:- swipe konnect plus
Model:- konnect plus
Android :- 5.1 (lp)
Cpu:- mt6580
100% rooted phone

Pls sir help me help me help me......

what is your kernel?
The Following User Says Thank You to pritam dutta For This Useful Post: [ View ] Gift pritam dutta Ad-Free
3rd June 2017, 05:47 AM |#7  
Junior Member
Thanks Meter: 0
 
More
3.10.72+

---------- Post added at 05:47 AM ---------- Previous post was at 05:41 AM ----------

Quote:
Originally Posted by pritam dutta

what is your kernel?

3.10.72+ pls help sir
24th November 2018, 12:01 PM |#8  
Junior Member
Flag vellore
Thanks Meter: 1
 
More
my device stoarge is 16gb but showing 32
how to solve it
5th September 2019, 06:16 PM |#9  
Junior Member
Thanks Meter: 12
 
More
Is this abandoned @pritam dutta
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes