Hi gyzz today i will tell you how to fix storage bugs
But first you have to know about this :: Read it care fully
! First question is that :: How can i under stand which is emulated and which is non-emulated
Examples
EMULATED STORAGE
NON-EMULATED STORAGE
Now all type of problem solution
If internal or SD card not showing
Now check the init.ssd.rc file and under stand is that rom has emulated storage or non-emulated DONE IDENTIFYING THE STORAGE TYPE
1. Now copy the correct example script from above
2. And replace the fastab.****.rc from stock rom
An Unusual question :: If still not showing What can i do now
Steps ::
1. Identify the storage type ::: if the rom is emulated then collect the bellow files from stock ROM
and if non-emulated then collect from working cm based Rom storage
REPLACE THIS FILES :: YOU CAN FIND IN SYSTEM/BIN/
Complaining :: FU** Still not working
Last thing and final step is
Look in the build.prop and find for a line
IT SHOULD BE LIKE THIS
IF NOT PRESENT ADD THIS LINE
But first you have to know about this :: Read it care fully
Code:
There are two type of storage
1. One is emulated
2. Second is non-emulated storage
Quote:
Which Rom support the emulated storage
Mainly stock based Rom has emulated storage script
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
Mainly cm based Rom has non-emulated storage script
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
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
If internal or SD card not showing
Now check the init.ssd.rc file and under stand is that rom has emulated storage or non-emulated DONE IDENTIFYING THE STORAGE TYPE
1. Now copy the correct example script from above
2. And replace the fastab.****.rc from stock rom
An Unusual question :: If still not showing What can i do now
Steps ::
1. Identify the storage type ::: if the rom is emulated then collect the bellow files from stock ROM
and if non-emulated then collect from working cm based Rom storage
REPLACE THIS FILES :: YOU CAN FIND IN SYSTEM/BIN/
Quote:
vold
sdcard
pq
ipod
sdcard
pq
ipod
Last thing and final step is
Look in the build.prop and find for a line
Code:
ro.mtk_shared_sdcard
Code:
ro.mtk_shared_sdcard=1
IF NOT PRESENT ADD THIS LINE
Thank to credit to
xda.com
pritam dutta,
IF you have any question then please comment bellow
And if it helps you then please give a thumbs up
Friends,
if you like this post, kindly comment below the post and do
share your response. Thanks for reading :)IF you have any question then please comment bellow
And if it helps you then please give a thumbs up
No comments:
Post a Comment