[HELP] Move apps to SDcard or Use adoptable storage on REDMI7A MIUI 11 - Redmi 7A Questions & Answers

No methods available up to now worked for me.
GLOBAL MIUI 11.0.7 Rooted with Magisk -> Apps2SD presents various errors while creating mount script. Simply won't work. Link2SD either.
Tried forcing via adb "pm set-install-location 2", nope.
Tried formatting as adoptable using activity manager to open files activity (the only way to enable it on 7A) - sd card disappears, doesn't add up any memory.
So... any ideas? Xposed modules or any other simpler solutions are welcome!

Tips of using SD Card as Internal Storage.
This is my Internal Storage after applying this method
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Let's do it!
Download this app
https://play.google.com/store/apps/details?id=de.szalkowski.activitylauncher
Now follow the steps,
Install downloaded app.
Put SD Card in your phone.
Go to the top bar, select All Activities.
Search for Downloads and select it.
Now Select your SD Card in the top left bar option.
Tap on three dots in the top right and go to storage settings.
Select Format as Internal Storage.
Now format and reboot. All done. Enjoy!
Learn how to Revert back/Use SD Card as External Storage.
Just Remove SD Card from your phone.
Tap on the notification which will come.
Select Forget SD Card.
I AM NOT RESPONSIBLE FOR ANY HARM OF YOUR SD CARD, DEVICE, DATA. DO AT YOUR OWN RISK.
Click to expand...
Click to collapse

Sorry friend that doesn't work. After formatting sd card disappears and render unusable on 7A (at least in my version).

Disclaimer: In this article I tested using Redmi 7A MIUI 2020.11.0.7 Stable, I cannot guarantee this method works on all Xiaomi phones. This method runs the risk of deleting data on your cellphone and SD Card, so you MUST Backup Your Data. Do With Your Own Risk.
Click to expand...
Click to collapse
Prepare Tools and Materials
1. Good quality microSD 128GB, Reading speed: 100 MB/s - Write speed: 90 MB/s (don't use the cheap ones)
2. Download Activity Launcher (old version) Here
Step By Steps
Open the Activity Launcher application. Tap on the "Recent activities"> select "All activities". Then wait until loading is complete.
Look for the "Files" menu, just tap it and choose one of the ones I like as shown below
Then select "SD Card", after that in the upper right corner tap the three point icon, select "Storage Settings".
Then select "Format as Internal".
Then select "Erase & format". Wait until the SD card formatting process is complete.
After the format process is complete, select the "Move now" option, then click "Next".
Next, click "Move". Wait until the file transfer process is complete, whether or not long depends on how much data is transferred.
When done, the SD Card is ready notification will appear.
Finally, reboot / restart :fingers-crossed:

jurubebaamarga said:
No methods available up to now worked for me.
GLOBAL MIUI 11.0.7 Rooted with Magisk -> Apps2SD presents various errors while creating mount script. Simply won't work. Link2SD either.
Tried forcing via adb "pm set-install-location 2", nope.
Tried formatting as adoptable using activity manager to open files activity (the only way to enable it on 7A) - sd card disappears, doesn't add up any memory.
So... any ideas? Xposed modules or any other simpler solutions are welcome!
Click to expand...
Click to collapse
After some manipulations with the mount script, Link2SD still worked.
1. I Have a Magisk, so first I mounted the system for reading and writing.
2. Next in the app, I will re-create the mount script.
3. now you need to copy the init-link2sd file.sh from the /data/data/com.buak.Link2SD/ folder to the /data/adb/service.d/ folder.
Now rename the script from init-link2sd.sh in 11link2sd.sh.
4. There is not much to edit.
it was like this:
echo "$(date) mounting..." > $LOG
sleep 2
mount -t ext4 -o rw,noatime /dev/block/mmcblk1p2 /data/sdext2 1>>$LOG 2>>$LOG
mount -t ext4 -o rw,noatime /dev/block/vold/public:179_66 /data/sdext2 1>>$LOG 2>>$LOG
mount >> $LOG
chmod 773 /data/dalvik-cache
it became so:
echo "$(date) mounting..." > $LOG
sleep 2
mount -t ext4 -o rw, /dev/block/mmcblk1p2 /data/sdext2
mount >> $LOG
chmod 773 /data/dalvik-cache

Hi guys.
Updated to miui 12.
I was able to use this adoptable storage method with a class 10 sdcard.
After updating this method leads to success, but not working at all in reality. It shows my total storage in device information as my sd card, but when I touch it to see details of my storage use it shows just the same way as it was before, without the sd card caapcity. Also it doesn't let me use my sd card capacity moving files from pc to phone, does not show on pc file manager the sd card either. Always have problems with storage capacity. Deep regrets buying this 16gb redmi, seller did not tell me it would not let me use sd card as expansion...

Aha!
Just giving up and voila.
Was doing the forget adoptable sd card steps and when rebooted to format ir again the system default format tool gives the adoptable sd card formatting, just touch back and slide down the message and choose wheter you want the adoptable or media sd card.
Works fine now, without the activity launcher method, aparently outdated for miui 12.

Related

How to tell if apps are on sd card

i rooted and went to modaco. also in the recovery mode i put create fat32 ext2 and swap particion. but i dont think my apps are on my sd card. i download app2sd and used it and it doesnt confirm that it did anything. i check im internal memory on phone and it is always 144mb or 145mb even after insalling around 20 apps. but when i unmount my sd card all apps still work.
If you're on Modaco and you created the partition, it works. Don't worry about it. It's automated and you don't have to download Apps2sd from the market because it's already included in the rom. If it's ALWAYS at 145 after installing 20 apps, that means it isn't taking away from the internal memory and it's working...And you'd have to reboot after removing the sd card for it to change. I don't think it's a good idea though.
ok they are on my sd card, i removed card and it locked up. will never do that again. had to pull battery and then it wouldnt get past sprint screen. had to hold end call and answer call and reset device. then it lost all my apps. had to re download and set up all my shortcuts. uggg
what about games. seems like they are installed on phone is this correct
pitmanr2003 said:
i rooted and went to modaco. also in the recovery mode i put create fat32 ext2 and swap particion. but i dont think my apps are on my sd card. i download app2sd and used it and it doesnt confirm that it did anything. i check im internal memory on phone and it is always 144mb or 145mb even after insalling around 20 apps. but when i unmount my sd card all apps still work.
Click to expand...
Click to collapse
Apps installed to the SD card reside in /system/sd/app and /system/sd/app-private. You may browse those directories to see which applications have been migrated. As ajones7279 said, you don't need to download AppsToSD if you are using the Modaco rom.
If you would like to move an application from the sd card back to internal memory, the steps to do so are in this thread http://forum.xda-developers.com/showthread.php?t=512743.
can someone tell me why my apps do not install to the sd card at all?
after I rooted I partitioned my sd, then flashed and now it doesn't install to the sd card?
wait I think it is working, I installed acouple apps then quickly check my internal memory it goes down, then I went in and did a look for cmd
cd /system/sd/app
ls
I it showed all the apps I installed, after that I checked my internal memory it went back up so that is normal?
nevermind it doesn't work, internalmemory keeps going down wtf
BrianDigital said:
wait I think it is working, I installed acouple apps then quickly check my internal memory it goes down, then I went in and did a look for cmd
cd /system/sd/app
ls
I it showed all the apps I installed, after that I checked my internal memory it went back up so that is normal?
Click to expand...
Click to collapse
Mine show there as well, but under setting > sd card and phone storage and check the available space under internal phone storage, it just keeps dropping. I am down to 117mb. all the way from around 140 before I installed any apps. I dont think that the apps2sd integration is working properly.
rockcrawler said:
Mine show there as well, but under setting > sd card and phone storage and check the available space under internal phone storage, it just keeps dropping. I am down to 117mb. all the way from around 140 before I installed any apps. I dont think that the apps2sd integration is working properly.
Click to expand...
Click to collapse
Same here. But I just hard reset and my apps came back and I was at 140. But now when I add more apps it still goes down. Now I'm at 135.
notrock said:
Same here. But I just hard reset and my apps came back and I was at 140. But now when I add more apps it still goes down. Now I'm at 135.
Click to expand...
Click to collapse
Just because the apps are installed to the SD card doesn't mean they don't store things on the phone.. cache is stored on the phones, theres a /data/data folder on the phone that the apps populate as well, it just doesn't take AS MUCH space on your phone as a non appstosd
also to make sure your apps are working go into your adb shell, type in
Code:
cd /data/app
pwd
cd /data/app-private
pwd
What this will do is go to your /data/app folder and because with appstosd that is a symbolic link to /system/sd/app the PWD (present working directory) will display /system/sd/app, if PWD shows /data/app you are not running appstosd
diesel556 said:
Apps installed to the SD card reside in /system/sd/app and /system/sd/app-private. You may browse those directories to see which applications have been migrated. As ajones7279 said, you don't need to download AppsToSD if you are using the Modaco rom.
If you would like to move an application from the sd card back to internal memory, the steps to do so are in this thread http://forum.xda-developers.com/showthread.php?t=512743.
Click to expand...
Click to collapse
Can you be a little more specific about where in the thread? It's a long one and I didn't see anything on the first page.
Great post Nelson.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
nelson8403 said:
Just because the apps are installed to the SD card doesn't mean they don't store things on the phone.. cache is stored on the phones, theres a /data/data folder on the phone that the apps populate as well, it just doesn't take AS MUCH space on your phone as a non appstosd
also to make sure your apps are working go into your adb shell, type in
Code:
cd /data/app
pwd
cd /data/app-private
pwd
What this will do is go to your /data/app folder and because with appstosd that is a symbolic link to /system/sd/app the PWD (present working directory) will display /system/sd/app, if PWD shows /data/app you are not running appstosd
Click to expand...
Click to collapse
Just tested this and I am not running apps2sd I probably need to try to format my SD card again, I made did the dual partition from the recovery menu, but this was after I flashed MoDaCo's ROM...that's probably why!
Should I partition, then reflash the ROM?
Yep.
Take.this.10.character.post.limit.ha!
jonnythan said:
Can you be a little more specific about where in the thread? It's a long one and I didn't see anything on the first page.
Click to expand...
Click to collapse
Yep. The answer is in the first post . I'm not sure what directory to us in place of "/system/intmem/app", maybe "/data/app"?
Code:
su
cp /system/sd/app/[the app you want to move] /system/intmem/app/
rm /system/sd/app/[the app you want to move]
(taken from http://forum.xda-developers.com/showthread.php?t=512743)
nelson8403 said:
What this will do is go to your /data/app folder and because with appstosd that is a symbolic link to /system/sd/app the PWD (present working directory) will display /system/sd/app, if PWD shows /data/app you are not running appstosd
Click to expand...
Click to collapse
Thanks a ton. Wasn't sure if mine was working properly, but low and behold my out put is as you said. Apps2SD is working for me.
It appears apps2sd is working properly for me. But i still only have 68mb's available on my internal memory. WHAT GIVES??
pitmanr2003 said:
i rooted and went to modaco. also in the recovery mode i put create fat32 ext2 and swap particion. but i dont think my apps are on my sd card. i download app2sd and used it and it doesnt confirm that it did anything. i check im internal memory on phone and it is always 144mb or 145mb even after insalling around 20 apps. but when i unmount my sd card all apps still work.
Click to expand...
Click to collapse
I have this rom and rooted the phone, If i create a fat32 ext2 and swap partition in recovery mode, will everything on my sd card get erased?
STILLSPRINTIN said:
I have this rom and rooted the phone, If i create a fat32 ext2 and swap partition in recovery mode, will everything on my sd card get erased?
Click to expand...
Click to collapse
Yes, backup the contents of your sdcard to your computer first!

[FIX] {100% working }how to mount external sd card to /sdcard/external_sd ~

alright follow these steps and you good to go
mounting sd card via command prompt (via adb)
1) go to your's phone's file manager
2) create a folder named external_sd in /sdcard/ (you have to make this folder to mount sd card in /sdcard/ !!!
3) inject this command in cmd (adb)
Code:
su
mount -o bind /mnt/emmc /sdcard/external_sd
and done enjoy ......
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
mounting sd card via terminal (terminal file added for newbies )
first do step 1 and 2 above .
then inject this code in terminal
Code:
busybox mount --bind /mnt/emmc /mnt/sdcard/external_sd
after mounting sd card to /sdcard/external_sd
done ......... enjoy
Is it mounted under both then?
Yeah i am wonering about that too.Also can we makecthis auto on every boot?
Sent from my GT-I9000 using Tapatalk 2
dark_knight35 said:
Is it mounted under both then?
Click to expand...
Click to collapse
yes but those apps who need "external_sd" will find it
dreamer94 said:
Yeah i am wonering about that too.Also can we makecthis auto on every boot?
Click to expand...
Click to collapse
i guess we have to mount external sd card after every boot (due to nand stuff)
EDIT : this might work for the script to work on every boot. http://www.xda-developers.com/tag/samsung-vibrant/
old stuff i created with buragan such a thread...
dreamer94 said:
Yeah i am wonering about that too.Also can we makecthis auto on every boot?
Sent from my GT-I9000 using Tapatalk 2
Click to expand...
Click to collapse
for doing this every boot you could use this...
hope it helps you.
greetz,
sUsH
apk_xiz said:
alright follow these steps and you good to go
mounting sd card via command prompt (via adb)
1) go to your's phone's file manager
2) create a folder named external_sd in /sdcard/ (you have to make this folder to mount sd card in /sdcard/ !!!
3) inject this command in cmd (adb)
Code:
su
mount -o bind /mnt/emmc /sdcard/external_sd
and done enjoy ......
mounting sd card via terminal (terminal file added for newbies )
first do step 1 and 2 above .
then inject this code in terminal
Code:
busybox mount --bind /mnt/emmc /mnt/sdcard/external_sd
after mounting sd card to /sdcard/external_sd
done ......... enjoy
Click to expand...
Click to collapse
Hi !
I am a noob in all these tech stuff so plllleeeesee explain ....what is cmd(adb) and where do I locate that in file manager ? Sorry for my ignorance bro !
Thanks !
sammyservices said:
Hi !
I am a noob in all these tech stuff so plllleeeesee explain ....what is cmd(adb) and where do I locate that in file manager ? Sorry for my ignorance bro !
Thanks !
Click to expand...
Click to collapse
just download terminal (you need root) then just inject code(write) in terminal, easy no need to have adb in cmd (command prompt)
Code:
busybox mount --bind /mnt/emmc /mnt/sdcard/external_sd
see picture :good:
Attached small script i wrote to automate this. Use it with Script Manager: unpack, put on your sdcard and run as root on boot.
save line below in text file, no file extension
mount -o bind /mnt/emmc/ /mnt/sdcard/external_sd
use play store app: "smanager" free, to run script on boot + su
May found problem
I've tried this method long time ago but it's not perfect.
When you want to connect pc sometimes it does not recognize your external sd card.
You need to umount that path if want to connect pc or mount drive to not occur problem.
frankind said:
I've tried this method long time ago but it's not perfect.
When you want to connect pc sometimes it does not recognize your external sd card.
You need to umount that path if want to connect pc or mount drive to not occur problem.
Click to expand...
Click to collapse
I agree : it does only mount my external SD on my computer now.
i can mount external sd card in my pc. but in file manager i have to mount via emmc..so is this fix for sd_card/external sd_card or mounting in pc or both?
Is there an equivalent of the fstab file found on regular linux distros.
Does anybody know which script auto-mounts the SD card @ /mnt/emmc
And also do you know if the double-mounting with
busybox mount --bind /mnt/emmc /mnt/sdcard/external_sd
could result in duplicated files as per the SD card media scan. I'm already getting some duplications the way things are now.
Do you think a
su && ln -s /mnt/emmc /mnt/sdcard/external_sd
could possibly work? The folder might need to be deleted first for ln to work and I already have files within the folder but somebody else might have also tried it.
I'm currently pretty busy with finals and don't have much free time to experiment.
z-vet said:
Attached small script i wrote to automate this. Use it with Script Manager: unpack, put on your sdcard and run as root on boot.
Click to expand...
Click to collapse
OMFG, never though that this would work!
Finally both of my galaxies are ice cream 'sandwichified'
Many thanks for you script :highfive:
May i know how to reverse back if it not working? Cos mine phone are LG-P990 wanna try it. Tks
i have some image in external sd and if i mount my extsd into the dir sdcard/external_sd i have double image in gallery
the gallery found the image in emmc and in external_sd dir, also the mp3 are duplicate.
I have try directorybind apk also.
grifovunque said:
i have some image in external sd and if i mount my extsd into the dir sdcard/external_sd i have double image in gallery
the gallery found the image in emmc and in external_sd dir, also the mp3 are duplicate.
I have try directorybind apk also.
Click to expand...
Click to collapse
U mean it also save to emmc? what about in the touch recovery?
i can reach that folder /storage/emulated/legacy/Android/data
but i cant reach that folder /storage/emulated/legacy/Android/obb
any ideas?
sir i have a arise rowdy t1+ phone its board is sp6820gb_7620 and cpu id is 8810 cpu frequency is 1ghz and ram is 512mb with mali 300 gpu,
android version is 2.3.6 and kernal version is 2.6.35.7 [email protected] #7, software version is mocordroid2.3.6.w12.20_p20.01_20130715.130506, hardware version is 1.1.0. my problem is that my phone has only 128 mb of internal memory and when i tried to edit vold.fstab to swap its memory with memory card it stopped detecting sd card when turned on but when in recovery mode sd is shown present, i think its very similar to karbonn a1+ in hardware and software part so can you please help me with my phone?

[GUIDE] External2Internal Ultimate

I thought about this idea more than a month ago when i came to know that the partitions could freely be altered, but i could not put into practice until i got my 32 gb card yesterday.
so basically, after following my guide you will have:
* supersized data partition (12 gigs): no more move to sd needed unless for huge games (i'm thinking fifa12 and asphalt7) and then again the stock move to sd feature will work as expected (it will move data to the actual external sd card)
* external sd card mounted as internal sd card: nothing to say here, just does what is expected
* real internal sd (ums partition) shrinked to minimum (half gig) because it needs to stay present: used to mount a swap file (optional)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What you will need:
* g.lewarne hydracore 4.3b kernel: you don't need it for anything special, but it's the most amazing kernel, and gavin is the most devoted developer ive seen on the n7000. cheers gavin and keep up the good work :good:
* swapper2: if you want to use the swap file (see at the end)
so be warned, i'm no real specialist here, so i'm not aware of the no dos, i just got my guide to work through trial and error and getting information from other threads.
so if you follow my guide you're almost good, if not you may cause an atomic bomb to fall over your city, not my problem :silly:
enough chit chat for now let's head directly for the guide:
1. reboot to recovery, and connect your phone to your pc
2. run a command prompt and type the following (wait a little bit until the adb server starts on the phone, you can verify it by typing "adb devices" if you get a serie of digits then you're good to go.
Code:
adb shell
parted /dev/block/mmcblock0
you'll get into the parted interactive shell, this is where serious work done
Code:
did i remind you to backup your system,
this is your last stop before the no back point
so you just might wanna "move" all your internal sd stuff to the external sd,
and backup your system to the external sd also
(you just need to restore the data partition afterwards the rest of the system is safe but who knows :p)
ps: you can do your backup on cwm without leaving adb shell on the pc just like you will do the format later thanks to cwm
remove the partitions
Code:
rm 10
rm 11
make the new changed size partitions
Code:
unit b
mkpart primary 1174405120 14680064511
mkpart primary 14680064512 15216934911
name 10 DATAFS
name 11 UMS
now in cwm go to mounts and storage and select "format /emmc" and "format /data"
in parted type "print" and you should see this output
Code:
Number Start End Size File system Name Flags
1 4194304B 25165823B 20971520B ext4 EFS
2 25165824B 26476543B 1310720B SBL1
3 27262976B 28573695B 1310720B SBL2
4 29360128B 37748735B 8388608B PARAM
5 37748736B 46137343B 8388608B KERNEL
6 46137344B 54525951B 8388608B RECOVERY
7 54525952B 264241151B 209715200B ext4 CACHE
8 264241152B 281018367B 16777216B MODEM
9 281018368B 1174405119B 893386752B ext4 FACTORYFS
10 1174405120B 14680064511B 13505659392B ext4 DATAFS
11 14680064512B 15216934911B 536870400B fat32 UMS
12 15216934912B 15753805823B 536870912B ext4 HIDDEN
now the hardest part is over, restore your data partition and you will be able to boot you system normally. and you go to your storage information you will find that your app storage is now 13gigs and the usb storage is just 500 megs yay
to switch the sd with the internal you will have to modify vold.fstab file(thanks to ciphray for his guide on how to do so)
you can use the modified file from ciphray thread here which i didn't beacuse his file was smaller
so i just pulled the file to my pc
Code:
adb pull /etc/vold.fstab vold.fstab
modified it with notepad++ or any dev text editor (don't use windows notepad it will mess the file)
Code:
# internal sdcard
{
storage_struct = cover, "/mnt/sdcard/external_sd","/mnt/sdcard/usbStorage"
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun0/file
discard = enable
}
dev_mount sdcard /mnt/sdcard auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1
# external sdcard
{
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun1/file
android_secure_containers = enable
}
dev_mount sdcard1 /mnt/sdcard/external_sd 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 encryptable_nonremovable
and push it back to phone + change permissions
Code:
adb push vold.fstab /etc/vold.fstab
chmod 644 /etc/vold.fstab
restart your phone and voila
as a final step you can use the now pretty useless internal space (500megs remember) as a swap sapce
download swapper2 from the play store here https://play.google.com/store/apps/details?id=lv.n3o.swapper2
run it and go to settings
set swap place as /sdcard/external_sd/swapfile.swp
set swap size to the max
set the swappiness to 20 ( you can rise the value a little but don't put a high value or the system will do much swapping all the time -value of 100 means any memory not used actively will be swapped- )
wait until the process finishes then reboot your phone
you can verify that swap is working by typing "free" in the shell if the line beginning with swap is not all zeros then you're swap is working.
hope my guide will be usefull, and don't hesitate to ask me any question
Awesome, thanks! Will try it out when I get some time
If you want more app space you can erase the hidden partition and get more space.
Sent from my GT-N7000 using Tapatalk 2
Okay, I've performed the whole thing, and just a few remarks on my experience
If you want to modify the vold.fstab straight from recovery without having to reboot first, you can simply mount the system partition, and retrieve the file from /system/etc/vold.fstab instead of /etc/fstab
More importantly, following your instructions, I ended up in a situation where my apps previously moved to the sd card weren't recognized. I've solved this by modifying my vold.fstab as follows:
Code:
# internal sdcard
{
storage_struct = cover, "/mnt/sdcard/external_sd","/mnt/sdcard/usbStorage"
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun1/file
android_secure_containers = enable
}
dev_mount sdcard /mnt/sdcard auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1
# external sdcard
{
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun0/file
discard = enable
}
dev_mount sdcard1 /mnt/sdcard/external_sd 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 encryptable_nonremovable
That way, all my apps were properly recognized without issues. I'll probably be moving them back to phone now though.
Will be trying this setup over the next few days and see how it performs, but one caveat I missed is that you may not be able to install the whole of some apps on the data partition, as some the data will always be stored in the sdcard/Android folder, which would make the 12GB on /data less useful than I initially thought, unless I'm missing something of course
Hi
Could you post a screenshot of the Storage page (under Settings)?
I'm interested to see what these look like after this mod.
Internal
USB Storage
SD Storage
Thanks!
zongamin said:
Hi
Could you post a screenshot of the Storage page (under Settings)?
I'm interested to see what these look like after this mod.
Internal
USB Storage
SD Storage
Thanks!
Click to expand...
Click to collapse
here you are, look at the OP
i didn't realize the screenshot like was corrupt
if you read the op i mentioned the resulting sizes after the mod
sd storage will be mentioned as 500 megs (actually taken from the internal emmc) that i use for swap space
Why isn't it possible to use the rest of the space for apps and reroute the ums to the ext sdcard so it reads it as the internal?
Sent from my GT-N7000 using Tapatalk 2
As far as I know, the HydraCore kernel doesn't allow swap, so it's unuseful to setup a swap file with swapper. Also, presently no Note kernel has swap enabled.
Carefully crafted on my Galaxy Note, for your eyes only
Hydracore 4.1 since has swap enabled in its kernel.
Sent from my GT-N7000 using Tapatalk 2
I'm sorry, I didn't know Gavin had listened to what I had asked oh so many times
Carefully crafted on my Galaxy Note, for your eyes only
travis82 said:
Why isn't it possible to use the rest of the space for apps and reroute the ums to the ext sdcard so it reads it as the internal?
Sent from my GT-N7000 using Tapatalk 2
Click to expand...
Click to collapse
i was fearing that the phone won't boot if the partition isn't available after a clean setup.
so i decided to leave the small size partition and make it useful for swap instead.
btw does anyone know how to use a bigger swap file with swapper2?
I guess, this method is only working for a "healthy" note, which never got a mmc cap bricks, right ?
And if a note got brick before, and recovered by hg42 pit revival method, I think the repartition command for the start-end of the DATA and UMS will be different.
Hmmpppfff... Do you have a way on how to read the partition setting of the note ? :fingers-crossed:
Send from the corner of this rounded earth
antique_sonic said:
I guess, this method is only working for a "healthy" note, which never got a mmc cap bricks, right ?
And if a note got brick before, and recovered by hg42 pit revival method, I think the repartition command for the start-end of the DATA and UMS will be different.
Hmmpppfff... Do you have a way on how to read the partition setting of the note ? :fingers-crossed:
Send from the corner of this rounded earth
Click to expand...
Click to collapse
just type print on the parted shell
and then you can recalculate new sizes for the data partitions, it should work like a charm
So... Im a USER, and there are part I am a bit confused about... BUT ill ask anyway!
It seems that if I wanted to resetup the partitions, I wouldnt need to mess with the pit files correct?
OR, because I want to totally KILL USB Storage, dedicate the entire internal memory to /data, and make /sdcard TRULY my sdcard, would I truly need to mess with the pit file?
Has anyone tried with killing off /ums completely?
Any help is appreciated. Also, I am using the i717 (AT&T GNote version), but my desire is the same so I figured Id post here...
EDIT: im not too worried about rom flashing, I normally slim down ROM's before I flash them, so Im not afraid of changes that have to be made (in txt files) in order to have them work properly on a UMS'less modded device. However, I do need to find out how to properly backup the pit file before I even THINK Of messing with it.
do i have to redo the whole procedure if i flashing nightly every time?
Anyone tried this on JB roms?
Hello?
Sent from my GT-N7000 using Tapatalk 2
jaguaralani said:
Anyone tried this on JB roms?
Click to expand...
Click to collapse
+1
I get 64 gb sandisk microsd card. I want to use this mod on jb stock LSC rom.
Can we use on jb roms?
GT-N7000 cihazımdan Tapatalk 2 ile gönderildi
Helpppppp
Envoyé depuis mon GT-N7000 avec Tapatalk
JB ready
I've tried it worked fine on Ultimate and Alliance ROM. Just edit vold.fstab in /etc after install new ROM. Replace 11 to auto and { } to { }. Now I need help if anyone have the original partition info, incase I wanted to restore.

[TUTO] Enable Adoptable Storage on MM

MM bring the ability to devices which support it to share SD card with system to install apps on SD card. But Sony disabled this on MM. Here is to Enable this functionality
(Be aware that your shared partition will be hidden on other devices)
You will need adb installed on your computer
If you doesn't have it :
http://lifehacker.com/the-easiest-way-to-install-androids-adb-and-fastboot-to-1586992378
Then connect your phone with adb debugging enabled.
Type "adb shell"
Once you're connected to your device : "sm list-disks"
This will return the ID of your sd card.
Now, if you want the whole sd card to be shared type "sm partition disk:ID private"
If you want your sd to be partitionned type "sm partition disk:ID mixed:%"
(replace ID with your own card ID and % with the STANDARD stockage percent you want on your sd card)
You're done !
(Sizes of partitions are not reported as they should but it seems to work)
Before/After
Before :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
After :
Source :
mocado.com
This is Mocado's work, not mine !
But they are testing it on S7 ........ anyone tried on our Sony?
@Elfeno
Is it possible to take and save screenshot after enabling adoptable storage and moved app with this way?
I couldn't access to internal storage in some apps when I enabled adoptable storage with other way (xposed)...
I have successfully done this and everything seems to work fine however when I migrate my data to the SD card so this becomes the default location for new apps and data, I get a memory error in the stock camera app. Is anyone else getting this issue? I haven't yet figured a way around it. This is the one and only issue but it would be a deal breaker
@AndroPlus Since this functionality is part of Android and the 2 memory become one It should not have this issue but will try @roland101 This issue happened to me also after upgrading to MM. Did a clean install wiping data resolved this issue
Hi @Elfeno. I tried a factory reset from the Backup and Restore menu but I still have the issue. How exactly did you do it? Did you already have the SD card private partitioned and data migrated when you did the factory reset? I did, but then my phone didn't recognize the SD card anyway so I had to re-apply the private partition via adoptable storage. I then check the camera, no error. I then migrated all data from internal to SD card from the storage section but after that and a reboot I still get the memory error in the camera app. What were your steps exactly? Thanks
Hello @roland101,
I met the same issue like you. But if your SD card is large enough (like 128GB), you can format it in mixed 25 (reserve 32GB standard storage, other some other value), and then you can use camera on that partition. But the new problem will be: Google Photos(if you use that for backup) cannot delete device copy on that partition (I dont't know why Google Photos didn't request external SD card permission).
@roland101 @fqj1994 Yes the partition created for apps cannot be use to store files. Mixed will create 1 partition for apps and 1 for files
About the Google Photos app I guess it store photos in app data and if we cannot write that partition it doesn't allow us to delete these files but should work using Google photo app since it's is own files. If Gphoto was baked with your rom maybe it have arlready the permision needed. You can also check in per apps permissions in settings Check if it delete the cloud backup when you delete local photo.
@Elfeno
Another problem is even get camera to work with a mixed partition. all apps externally calling camera to take photos are dead (like hangout/ telegram)
Elfeno said:
@roland101 @fqj1994 Yes the partition created for apps cannot be use to store files. Mixed will create 1 partition for apps and 1 for files
Click to expand...
Click to collapse
Actually it can be used to store files, just go to the adoptive sd card, and click "migrate data", then the adoptive sd card will be mounted to /sdcard, and then Camera will have problems.
Not sure it worked
fqj1994 said:
Actually it can be used to store files, just go to the adoptive sd card, and click "migrate data", then the adoptive sd card will be mounted to /sdcard, and then Camera will have problems.
Click to expand...
Click to collapse
Just tried this on a xperia z5 compact and the commands worked the sm partition returned in a few second, little too quick.
When I go into storage i just see a nagative number for both the internal and sd card.
a df from the adb shell shows the below
Filesystem Size Used Free Blksize
/dev 889.4M 96.0K 889.3M 4096
/sys/fs/cgroup 889.4M 0.0K 889.4M 4096
/sys/fs/cgroup/memory: Permission denied
/mnt 889.4M 0.0K 889.4M 4096
/tmp 889.4M 4.0K 889.4M 4096
/system 4.9G 3.8G 1.1G 4096
/data 22.6G 5.0G 17.6G 4096
/oem 290.6M 117.6M 173.0M 4096
/cache 192.8M 260.0K 192.6M 4096
/persist 27.5M 804.0K 26.7M 4096
/firmware 80.0M 56.4M 23.5M 16384
/lta-label 11.7M 1.5M 10.2M 4096
/idd 14.0M 149.0K 13.8M 1024
/rca 8.4M 579.0K 7.8M 1024
/storage 889.4M 0.0K 889.4M 4096
/mnt/runtime/default/emulated: Permission denied
/storage/emulated 22.6G 5.0G 17.6G 4096
/mnt/runtime/read/emulated: Permission denied
/mnt/runtime/write/emulated: Permission denied
/mnt/expand/f9e6c33e-fc2c-45c4-ac57-c6f40d9360d3 117.2G 60.0M 117.1G 4096
is this right 22GB for /storage/emulated ? I would have though it should have been approx 160GB (32+128 - used space)
Actually it's right.
Adoptive storage does not merge two partitions. Or removing sd card will completely disable all installed application of your phone rather than a partial. It just provide ability to Store applications and application data to external storage without applications-aware. And the in the storage settings. You can use migrate data to point which storage to be used for data stored on /sdcard.
Hello,
It work perfectly, but because the function is not officially supported by Sony, displayed size informations are quite strange
fqj1994 said:
Actually it can be used to store files, just go to the adoptive sd card, and click "migrate data", then the adoptive sd card will be mounted to /sdcard, and then Camera will have problems.
Click to expand...
Click to collapse
I am now a little confused. I have a 64GB SD card and originally plan to use the entire SD card for Adoptable Storage.
Based on what's said above, does it make a difference if I choose to
1) partition the SD card to 32GB data+ 32GB for Adoptable Storage, or
2) use the entire SD card for Adoptable Storage?
Seems that it doesnt make any difference !
How I can return my phone to normal can not recognize other memories sd
For me it worked, no problem with stock camera.
Spotify did bug out a little (offline songs were stored to SD card), but a reinstall fixed it. Ii had nothing else set to SD card to begin with anyway.
Thanks for the tip! although I did have to use the whole SD card as private, using it partially would cause popups of new SD-card inserted constantly >> starting to use it would wipe the entire SD.
Using the following firmware:
KPN Mobile NL (32.1.A.1.185 / R3C)
It didn't work =/
Hi I did it all corecly, set the 64gb sd card full private... and started to install many apps... what happend is after it reached the full 16 gb(real internal storage) it would not let me instaling anything else it would just say memory full any one had this?
PS. didn't had any problem with the camera our any other app.
Also applicable on Z3?
Is this workaround also applicable on the z3 with marshmallow
Guys is it Z5c only or applicable on Z3 too?
please help.

(Adoptable Storage) Enable format SD as Internal Memory EMUI [Root/No Root]

1. flash memory patch with TWRP, I leave 2 patches ZIP both works with root and without root.
2. The root patch needs an "Essentials roots" apk to install patch in TWRP, install apk and flash zip with TWRP. (I recommend this patch root perfectly recognizes the SD as internal)
3. Can install the ZIP which does not need Essentials roots apk in TWRP. (I didn't try this patch but it should work)
4. Need to install Huawei Suite and Minimal ADB Fastboot. (when installing Minimal ADB choose a directory that you remember)
In my case I installed the ADB Folder on Disk C
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
5. Activate developer options and activate usb debugging.
6. connect the cell phone to the pc and obtain the usb debugging permission.
7. Find and open the Minimal ABD Fastboot folder on your pc, inside the folder press SHIFT + right click and press open command window here
8. Now have to enter ADB codes, the first code will recognize our device, the code is:
adb shell
Introduce the adb shell code and give enter
9. Re-enter the adb shell code until it recognizes the device, it should appear "[email protected]: / $" :
10. If the command window shows that the device is not found only disconnect and reconnect the phone, or you should disconnect the cell phone, revoke the debug permissions, reconnect, give debug permissions again and it should work.
11. Now enter the other codes, enter each one and wait until "[email protected]: / $" appears to write the next, the codes are:
-The next command shows the disk drive present in your phone, example: disk: 179: 128 (It´s you SD card
sm list-disks
-The next command changes the disk: 179: 128 (SD) to internal disk. Here start to format the SD as internal, it will take a little while.
sm partition disk:179:128 private
- This command shows all other disk options.
sm list-volumes all
- This will appear
sm list-volumes all
emulated:179:130 unmounted null
private:179:130 mounted b6a58e7f-1dbf-4db5-95ab-19bf365e1a55
private mounted null emulated mounted null
[email protected]:/ $ exit
12. Now Open "Advanced Settings > Memory & Storage > Sd Card > Migrate Data". (A new option will appear in the SD card menu to migrate the data)
13. During the process, an error will be displayed, but the process will be completed. It will also show a message 'No Space Available' since EMUI is not build to support Adoptable Storage as of now.
14. Reboot the device & enjoy the expanded internal storage on your Huawei device.
- Of 3gb available that have the system, now I have 7.25gb
IMPORTANT:
By doing this the SD becomes completely internal, better than the default function, applications can be moved to both storages and in games it perfectly links the data and obb folders.
This mod unites both memories, you should use half of what your device supports in SD, in my case I have Honor 4X with 8gb internal (with only 3gb available) and supports 32gb external, 8gb + 32gb = 40gb surpasses the what system supports, I should use a SD 16gb or 8gb, I tested with 8gb and it worked perfect (I try a 32gb SD and the system fails).
The sum of the internal memory and the external SD appears in my case 16gb, 8gb internal and 8gb external.
Note:
In the files are the patches root, no root, apk essentials root, minimal adb setup.
And Huawei Suite link download: https://consumer.huawei.com/co/support/hisuite/
How can i do in samsung galaxy a205 android 11 please help me
I am using simplier method. Just flash the ZIP file which I attached here in Recovery and then you will be able to format SD card as Internal Storage.
*** If it is not working, you must need to FORMAT DATA to delete the encryption, so before of that - make a backup of all your files ***
I tested it on Android 13 and it is working perfectly.
Then you can use for example an app: APP2SD (https://play.google.com/store/apps/details?id=in.co.pricealert.apps2sd) from Google Play to move apps to adopted storage (SD CARD)

Categories

Resources