[TUTO][LINK] How to enable Adoptable Storage on Xperia XA - Sony Xperia XA Guides, News, & Discussion

Hi all,
I found a small tuto to enable Adoptable Storage on Marshmallow who works on XA, no need to have root.
Be careful, content of the SD is formatted during procedure.
Read what is "Adoptable Storage": https://source.android.com/devices/storage/adoptable.html
And the small tuto:
http://forum.xda-developers.com/z5-compact/general/tuto-enable-adoptable-storage-mm-t3334153
Total size of partitions is not reported as it should (like on Z5c) but it works perfectly (look screen), all the memory is usable as expected and "Encrypt SD card" stay disable
Thanks to @Elfeno

@xdaette for your problem of corrupted SD card after root try this:
1- Be sure SD card is usable in Android as External SD.
2- In TWRP, if /data is password protected wipe userdata partition
3- Reboot to Android and try the ADB command or download Root Essential app (better way if rooted) and make full Adoptable (do not mixe).
4- Now if you want, you can enable encryption again.
To avoid some problems I don't recommend encrypted /data, but if you have sensitive/confidential data it's not safe (for security).
I tried many times on many firmwares without problem, using mixed Adoptable Storage can end with error and corrupt SD. To restore or format your SD, I recommend to use Gparted and Ubuntu. Windows is not working well.

rrvuhpg said:
Hi all,
I found a small tuto to enable Adoptable Storage on Marshmallow who works on XA, no need to have root.
Be careful, content of the SD is formatted during procedure.
Read what is "Adoptable Storage": https://source.android.com/devices/storage/adoptable.html
And the small tuto:
http://forum.xda-developers.com/z5-compact/general/tuto-enable-adoptable-storage-mm-t3334153
Total size of partitions is not reported as it should (like on Z5c) but it works perfectly (look screen), all the memory is usable as expected and "Encrypt SD card" stay disable
Thanks to @Elfeno
Click to expand...
Click to collapse
very interesting ! i will try it asap !

rrvuhpg said:
@xdaette for your problem of corrupted SD card after root try this:
1- Be sure SD card is usable in Android as External SD.
2- In TWRP, if /data is password protected wipe userdata partition
3- Reboot to Android and try the ADB command or download Root Essential app (better way if rooted) and make full Adoptable (do not mixe).
4- Now if you want, you can enable encryption again.
To avoid some problems I don't recommend encrypted /data, but if you have sensitive/confidential data it's not safe (for security).
I tried many times on many firmwares without problem, using mixed Adoptable Storage can end with error and corrupt SD. To restore or format your SD, I recommend to use Gparted and Ubuntu. Windows is not working well.
Click to expand...
Click to collapse
Well, may be my problem is not clear engouh. I don't want any crypted data
; so nothing is crypted in my phone and on my external sd card;
1- I flash as asked the firmaware of my F3112 given by Flash tool :"id Device: Xperia XA dual (F3112) CDA: 1302-4379 Market: France Operator: Customized FR Network: GENERIC Version: 33.2.B.2.73 / R5A Size: 2,01 GB; "
2- after restarting my external card is always readable without problem by the phone and a PC under windows;
3-then i use the rootpack rootpack 33.2.B.2.73.zip downloaded with first page link "33.2.B.2.73: https://mega.nz/#!xgoXxBTa!DKAwKELVs...CgG73RswzMPUi0"
4- i put root.img and recovery.img with fastboot shell commands "fastboot flash boot boot.img" ...
5-i reboot, if => external sd card detected corrupted, and with another clean one...
i do tests and tests again; same result.
new: if, at step 4 i put only root.img, sd card declared corrupted too.
what did i do wrong ?

xdaette said:
Well, may be my problem is not clear engouh. I don't want any crypted data
; so nothing is crypted in my phone and on my external sd card;
1- I flash as asked the firmaware of my F3112 given by Flash tool :"id Device: Xperia XA dual (F3112) CDA: 1302-4379 Market: France Operator: Customized FR Network: GENERIC Version: 33.2.B.2.73 / R5A Size: 2,01 GB; "
2- after restarting my external card is always readable without problem by the phone and a PC under windows;
3-then i use the rootpack rootpack 33.2.B.2.73.zip downloaded with first page link "33.2.B.2.73: https://mega.nz/#!xgoXxBTa!DKAwKELVs...CgG73RswzMPUi0"
4- i put root.img and recovery.img with fastboot shell commands "fastboot flash boot boot.img" ...
5-i reboot, if => external sd card detected corrupted, and with another clean one...
i do tests and tests again; same result.
new: if, at step 4 i put only root.img, sd card declared corrupted too.
what did i do wrong ?
Click to expand...
Click to collapse
You are good that's the good way, I have the F3112 and was on 33.2.B.2.73 FR like you (ramdisk of boot.img is coming from this firmware) and I never have this problem....
For me the only way to corrupt my card is when disabling Adoptable Storage, Android Succesfully format my card but displayed corrupted, no problem in TWRP and on my PC (almost same problem like you). To make it working again I use Gparted on Ubuntu, formated in FAT32 and it should work (do that after root), if not I don't know why....

So, I used your recommanded tool gpart to format my sd card in FAT32; my SD card was exfat when I bought it;
and ... IT WORKS !!!!! :victory: :good:

Adoptable storage and TWRP, USB extFat32
I have done Adoptable storage on my xperia XA F3111. SD Card (64GB) is fully private (no mixing). At the beginning this minus sign was confusing when I read how much memory do I have. In TWRP internal storage is not visible after that. I formatted my Sandisk USB stick to extFat32 and this is why I was able to do full system, image and data backup. When USB stick was formatted to Fat32 it didn't work. I still don't understand why my Micro SDcard (maybe this is why because I used all space to Adoptable storage?) and especially internal storage is not visible in TWRP after I made full Adoptable storage ? Any ideas please,
regards,
Andrzej_Andrzej

Related

[Tutorial] How to part your micro SD card into ext4 using GParted Live CD?

[Tutorial] How to part your micro SD card into ext4 using GParted Live CD?
Disclaimer: I am not responsible for dead micro SD. Please do it at your own risk
Hello All,
Please find the below tutorial to part your micro SD card into ext4.
Required:
• Micro SD card
• Card Reader/Micro SD card Adaptor (Make sure drivers are already installed)
• GParted live CD (Download: http://gparted.sourceforge.net/download.php)
• Image Burner Software
• Another computer or screenshot to read this tutorial as you cannot use your computer while partition
• Take backup of all your data in your SD card.
Ok that’s all…. Let’s start now.
• Burn the downloaded GParted live (GPL) CD using any image burner (I used Roxio to burn image) to CD
• Once completed, insert your card reader/MSD Adaptor and check drivers installed. (Don’t remove your card reader/MSD Adaptor)
• Insert GPL CD (burned CD) and reboot your PC and get into boot mode F12 in W7.
• Now you will see GPL boot screen. Select GPL default. (Some codes will be appearing for few mins)
• Then a small screen will appear (Configuring console data). Hit escape and see below to select language. Enter 33 for US English and Enter 0 (Continue to start X to use GP automatically)
• New screen will appear. See right corner of the box to select your memory card (Very important step: make sure you haven’t selected your PC’s hard disk)
• Now you will see your memory card in the middle of the screen with the total memory and partition (if any). Right click and delete the existing format for all partitions.
• Now you will see the entire memory card space as unallocated. Right click and select new (New box will open) Select as below mentioned.
Create as “Primary Partition”
File System “Fat32”
Free Space following (MIB) XXXX (This free space will be your ext4 allocate accordingly) E.g. ext 4 required 2GB then enter 2048MB
• Now GPL will throw you back to main screen. Right click on unallocated space and select new.
Create as “Primary Partition”
File System “ext4”
• Select “Apply” in main screen. Wait for few mins.
Congratulations!!!! You have successfully parted your SD card.
Is it the same as partitioning thru CWM4? If we partition via CWM4 the result is EXT4, A2sd can run with it. Why the long process? Just want a clarification is it really different?
royskeyz said:
Is it the same as partitioning thru CWM4? If we partition via CWM4 the result is EXT4, A2sd can run with it. Why the long process? Just want a clarification is it really different?
Click to expand...
Click to collapse
Hi,
I tried doing partition using CWM4 which resulted in ext3 and not ext4. Hence I created this long process partition.
Just create a 2 partition using cwm then install link2sd from market . Using link2SD make a partition into ext 4
i think its more easy and safe to use minitool partition manager. no need to burn, boot livecd whatsoever.. and gparted livecd can become a dangerous tool in wrong hands. linux livecd is not something to be played around just to partition sdcard. just a simple wrong click and ur windows partition would be trashed.
Just a little advise.. if you really want to use gparted better you do that in linux enviroment such as ubuntu etc..but if you are windows user then use mini partision home 6..its more easy n safe..Cmiiw
Sent from my GT-S5830
Is minitool partition can be used to format sd cards into ext4..?
geraldgeron said:
Is minitool partition can be used to format sd cards into ext4..?
Click to expand...
Click to collapse
sure it can
one question, in a 4 gb sd card how much it should be the partition?
vlc_marcos said:
one question, in a 4 gb sd card how much it should be the partition?
Click to expand...
Click to collapse
Hi,
I would suggest atleast 512MB as ext4.
thanks, and this partition is for what, so make like an extre space for the phone?
vlc_marcos said:
thanks, and this partition is for what, so make like an extre space for the phone?
Click to expand...
Click to collapse
Yes.. it will and then you can transfer your Phone internal memory data to sd card.
an0nym0us_ said:
sure it can
Click to expand...
Click to collapse
Oh yeah..?
But the last time i had partitioned my sd to ext2..option was only upto ext3..
How can i prtition it using minitool?
Sme as partitioning way of ext2?..
But how..?
Or maybe minitoolversion?
Problem with ex=sd part
I have rooted desire with 4gb that has 500mb ex sd partition, now i bot 8gb card and want to partition it but when i do it with mini tool phone does not see ext partition, why? I looked steps carefully and tryed it several times, thnx
cp6ija said:
I have rooted desire with 4gb that has 500mb ex sd partition, now i bot 8gb card and want to partition it but when i do it with mini tool phone does not see ext partition, why? I looked steps carefully and tryed it several times, thnx
Click to expand...
Click to collapse
Why not partition it using CWM recovery..??
It's much easier and faster
Sent from my GT-S5830 using Tapatalk
I also got the same problem.
Seems like miniTool is messing up..
I partitioned my 8GB sd card to 600MB ext4 and the rest FAT32.
But now not only the phone but even gparted(live usb/from linux) also cannot see ext4 partition.
I can only see it as 7.4 MB....
Not sure what exactly happened.
Edit: working now. after delete & partition again.
Insert GPL CD (burned CD) and reboot your PC and get into boot mode F12 in W7.
• Now you will see GPL boot screen. Select GPL default. (Some codes will be appearing for few mins)
• Then a small screen will appear (Configuring console data). Hit escape and see below to select language. Enter 33 for US English and Enter 0 (Continue to start X to use GP automatically)
i dont each and every thing as above but after that i stuck, there is just Black screen unblinking curser on left top corner. i tried 3, 4 time but same result.
""No new screet appeared as you mention below. what i should do now.."
" New screen will appear. See right corner of the box to select your memory card (Very important step: make sure you haven’t selected your PC’s hard disk)"
I follow this guidance for make partition on my sd card
http://androidandme.com/2009/08/news/how-to-manually-partition-your-sd-card-for-android-apps2sd/
it works for me. now I have:
512MB linux swap
1024MB ext4
6,5GB fat32
on my 8GB sd card

Guide to partition SD card and use with Link2SD to store apps

I have been looking for something like this for a while. The flipout lacks internal memory and it soon becomes a problem if you want to have a good set of apps.
Here's what you'll need:
1. Rooted Flipout (I won't post instructions to this step, look for "Universal AndRoot")
2. Partitioned SD card (see below for instructions), depending on the method, you might need a phone with CWM to do this and ADB installed on your PC.
3. Download Link2SD from Market
So here are the steps:
1. Partition your SD card. There are many ways to do it. I will post two ways:
Use MiniTool Partition Wizard Home Edition
My PC didn't like this tool and I wasn't able to use it. However, it should be quite easy, you just need to put your card in a card reader and build two partitions with the following characteristic:
First partition will be your main card partition, should be of the whole card size minus the extended partition you want to create
Second partition should also be fat32 (link2sd didn't like ext2 nor ext3 on the flipout, it only worked with fat32)
Use CWM. I personally didn't want to install it on the Flipout, so I used a Samsung Epic 4G for the steps. You should be able to use any phone with CWM to do it, put your SD card in the phone with CWM and boot into recovery:
adb shell reboot recovery
parted /dev/block/mmcblk0 (open partition manager for SD card)
print (prints partition table)
Here you should have one partition table, starting at some point and ending at some point like 7969 if your card has 8GB. Take note of the End value as you'll need it.
rm 1 (deletes partition 1, this will erase all data on the SD card)
mkpartfs primary fat32 0 7425 (creates a new primary partition, the second number should be the value you took note of in the last step minus the size in MB of your desired extended partition).
mkpartfs primary fat32 7425 7937 (creates the new partition for applications, starting at the end of the last partition and ending on the max size of the card. In this case I used fat32 as I couldn't do it with ext3 nor ext2, link2sd didn't like this format on the flipout for some reason).
The partitions are created and you should be able to go to the next step.
3. Reboot your flipout with the partitioned SD card, make sure to have link2sd installed.
4. Open link2sd, it will take a while, ask for root permissions (always accept and make sure to have Remember checked).
5. It will ask for the partition type, select fat32. If you are asked to reboot your phone you have everything setup, otherway please post your problem.
6. Once rebooted, open link2sd again and go to settings and configure. I don't like having all applications automatically linked as widgets and this kind of apps can fail if they are on the SD, so I have this setting unchecked. However this is a personal decision.
7. To move an app to the card, hold your finger on it and when the menu appears, press link and confirm.
8. To move an app from the card to the phone, hold on it and press unlink, check everything and wait for the app to be returned.
Further Tips:
Avoid moving apps to the SD that are use widgets or that run all the time like: messenger apps, alarm clocks, climate widgets, etc. I tried one or two without any failure but I feel they could be less reliable this way.
Don't remove your SD card if the phone is turned on, now it has a partition that is used by the system, if you remove it you could have issues, I would only remove the card with the phone turned off completely and not boot without the card.
I made some tests connecting the USB cable to the PC and using the phone in storage mode, the PC could see the primary SD card partition and the phone could still work with apps on the second partition, so it seems to be stable in this sense.
If you need to switch to another card, you would have to setup the new card in the same way; I don't know yet if backing up the second partition and restoring it to the new card will work. If your data is critical use some SW like Titanium backup to back up the apps that are linked, remove them completely and restore when you have the new card setup.
So, this has worked for me like a charm, the phone really seems stable and I have so far like 150MB of apps on the SD card. No need to have a newer Android version, it seems very stable.
Disclaimer:
Any process that involves rooting your phone and partitioning can potentially cause data loss and/or bricking your phone. Do this only if you are 100% sure of what you're doing, I will take no responsibility for any data loss / damage caused by this process.
If you have any questions I will be glad to help.
Hi great post above
I rooted my phone and I partitioned my sd card into 2 partitions , both FAT32 primary 3.7GB and when i open link2sd and select either ext 2 or ext 3 I get an error message
"Mount scrip error
Mount scripe cannot be created.
mount: no such device
ext 2 may not be supported on your device. Try FAt32 on the second partition"
Has anyone come accross this problem before ?
Hi,
When you open link2sd,scroll down and select fat32. I tried formatting the second partition with ext2 and ext3 wit no luck. Fat32 is working just fine.
Regards
Hi Thanks a million that worked great
thanks
hi i tried wat u told but after some time link2sd is showing failure that "cannot link readonly" can u help me
Your guide works great. Finally I can have all apps I like to have installed at once.
mschmiedel said:
[*]If you need to switch to another card, you would have to setup the new card in the same way; I don't know yet if backing up the second partition and restoring it to the new card will work. If your data is critical use some SW like Titanium backup to back up the apps that are linked, remove them completely and restore when you have the new card setup.
[/list]
Click to expand...
Click to collapse
I can tell some experiences with backups.
Before I had blur stock rom with link2sd and changed to deblur central europe rom. After reinstalling link2sd all apps where still gone.
And even after restoring all user apps with titanium backup they were restored to phone memory. I had relink them with link2sd manually and to batch restore with titanium backup twice because it broke down in the middle because phone memory was full.
Unfortunately link2sd is no magically way to have them backed up apps and to be independent from the rom. Titanium backup is still needed but that is fine. Nothing seams broken after restore with TI and relink with link2sd.
lovdanie, it's strange, had no issues with the tested phone yet, I partitioned 500mb and it has already like 200-250MB of apps linked and is working great, no issues.
One thing that could have happened is that you removed the SD card. Are you sure the SD card hasn't been touched or formatted?
bagers, it's not really a magical solution, it's just a way to get more space on a phone that lacks internal memory...
Regards
Just for some info.. under windoze try the "MiniTool Partition Wizard Home Edition" makes partitions like charm..
Guys any one have links for disk partitioners? minitool is not a freeware as u have t buy it when you apply the partition. any one know a way roubnd this? please help
miniProBhashi,
That's why I always use CWM to partition the SD card. As I don't have it on the Bllur, I put the card on another phone I have with CWM and it always works... Maybe if you have a linux PC you could do the same thing...
Regards
Help
Hi, I just partitioned my SD card. When I open the Link2SD app, it did prompt me to select the file system of the SD card's second partion, however, after I select FAT32/FAT16, Link2SD could not gain root access, there's no pop-up of indicating me to select "Allow" on the Superuser Request. Now wot do I do. Please help, thank you...
Well, I would start checking the SuperUser app to see if there is some exception in there. If you don't have it, check out if your phone is rooted by installing some other app that requires root access.
If not, check the root method for your phone.
If it's the Motorola Flipout, download version 1.6.1 from this thread, install it and run it:
http://forum.xda-developers.com/showthread.php?t=747598
Regards
mschmiedel said:
Well, I would start checking the SuperUser app to see if there is some exception in there. If you don't have it, check out if your phone is rooted by installing some other app that requires root access.
If not, check the root method for your phone.
If it's the Motorola Flipout, download version 1.6.1 from this thread, install it and run it:
http://forum.xda-developers.com/showthread.php?t=747598
Regards
Click to expand...
Click to collapse
My phone is Galaxy ace, and superuser doesnt prompt anything on start-up.
Tried rooting manually, doesn't work as well
Hi,
I would try on a Galaxy Ace forum to check for the rooting process and validate if your phone is really rooted. When you are 100% sure you have root you can come back to this post and we can check if there's some other issue...
Regards
Flipout problem
Done all u told...
Then this problem came..
Mount script cannot be created.
mount: Invalid Argument
p0kjats said:
Done all u told...
Then this problem came..
Mount script cannot be created.
mount: Invalid Argument
Click to expand...
Click to collapse
Hi,
Have seen similar problems when using ext filesystems. Are you 100% sure that the secondary partition on the sd card is fat32? It really should work on the flipout without any issues.
Remember that you need:
* Rooted flipout
* Partitioned sd card (secondary partition must be fat32)
* Link2sd opened and allowed to use root permission
If you are sure you did everything stated above, we can look at it with more detail. What tool did you use to partition the sd card?
root permission
hi,
i have installed Link2SD from Market to my lg optimus p500 os,gingerbird2.3.3,when i stared to move app to sd it asks root permission.
so pls guid me to activate root permission in my device
drnags said:
hi,
i have installed Link2SD from Market to my lg optimus p500 os,gingerbird2.3.3,when i stared to move app to sd it asks root permission.
so pls guid me to activate root permission in my device
Click to expand...
Click to collapse
Hi,
It doesn't make much sense to use Link2SD if you're on Gingerbread as your OS natively can copy apps to the SD card (at least some of them). Just go to "Manage Applications", and select the app you want to copy, there should be an option to "Move to SD"...
If you still have some good reason to use Link2SD, you should first look in a forum for your specific device to find out how to obtain root (I cannot help because it varies for each device)... Once you have root access, I can help you out with this process.
Regards
miniProBhashi said:
Guys any one have links for disk partitioners? minitool is not a freeware as u have t buy it when you apply the partition. any one know a way roubnd this? please help
Click to expand...
Click to collapse
When I partitioned mine I used GParted Live. It's a Linux-based boot disk, but you don't really have to know anything about Linux to use it. Just download the .ISO and burn a CD, pop it in your PC and boot off it. Its free, graphical (not command line) and relatively easy to use. There is also an option there to set it up to boot live off a USB drive, but that's a bit more involved to set up.
gparted . sourceforge . net / livecd.php (sorry, it won't let me directly post links yet)
If you can burn a .ISO to a CD, you can probably figure it out. Just make sure you pay attention to which disk you are partitioning (look at the sizes) so you don't accidentally re-partition the hard drive in your PC.
EDIT: If there is anything you need to back up off the SD card, I would do that in Windows first, and then copy it back using Windows after. You CAN do this with GParted Live but there would be additional steps to mount / unmount the Windows partition on the PC that you want to copy to.
the bootstrapped recovery seems to be having a partitioning tool.
Maybe im wrong, haven't used it though

How to decrypt android marshmellow formated sdcard

i was on twrp 2.8.7.0 and installed http://forum.xda-developers.com/galaxy-s4/i9505-orig-develop/rom-kushan-cm-marshmallow-rom-t3258489. then formatted my sd card as internal storage. today i wanted to update to the latest build of kushan rom, but in twrp my sd card was listed as 0 mb and i couldnt enter it. so i decided to flash latest cwm trough rom manager. after flashing cwm my internal sdcard was wiped(not by me-automaticly) and now marshmellow tells me that te sd card is not supportet...please format.....
i think that as the cwm wiped my sd card "the unique? encrpytion key?" got lost and therefor i cant axcess the sd card. im i right?
if yes i hope the encryption key is not unique and i can recover the files on the sd card
k2828 said:
i was on twrp 2.8.7.0 and installed http://forum.xda-developers.com/galaxy-s4/i9505-orig-develop/rom-kushan-cm-marshmallow-rom-t3258489. then formatted my sd card as internal storage. today i wanted to update to the latest build of kushan rom, but in twrp my sd card was listed as 0 mb and i couldnt enter it. so i decided to flash latest cwm trough rom manager. after flashing cwm my internal sdcard was wiped(not by me-automaticly) and now marshmellow tells me that te sd card is not supportet...please format.....
i think that as the cwm wiped my sd card "the unique? encrpytion key?" got lost and therefor i cant axcess the sd card. im i right?
if yes i hope the encryption key is not unique and i can recover the files on the sd card
Click to expand...
Click to collapse
As stated many many times. The only recovery you can use is TWRP. Your sdcard shows 0 mb because it became part of your internal storage. So reflash TWRP and try again.
after flashing cwm i did nothing but booting once the rom and notice that everything was wipped and then flash twrp.
the result is i cant axcess my sdcard as the rom sais that the sdcard needs to prepared.
so my question is, can i recover the data on the sd card?
Not if you're at the point where the card needs to be prepared. What you should have done if you wanted to decrypt the MicroSD, is pulled the data off both card and internal storage, then gone into Settings > Storage & USB and converted the card to portable storage.
One thing. With CWM running, did you have any nandroid backups? If you did, you likely will have to reinstall CWM to free up the internal storage reserved for the nandroid backups. CWM by default allocates space for its nandroid backups that cannot be touched by the system or TWRP. Once you do that, you can then reinstall TWRP.
OK THX. I just created a image of the SD card.maybe in the future there will be a toop to decrypt such SD cards. For the future:
Is the SD card lost everytime i update the Rom build?
Is the SD card lost Ehen i change the Rom to another Android 6 Rom?
What do i have to do when updating to a Newer build oft the same rom,vor change to another Android 6 rom? Pull everything from bouth cards? Really? Thats a pain in the ass even with a uhs 1 SD card.
Whats the best way for backing up the data, so i can cop them back without trouble? Maybe ADB?
Whats about changin the recovery? Thats a nogo i think and whats about updating twrp?
What is a absolut nogo? What i ahouldnt do to f*** up the card again?
So many questions, but I'm going to answer just the last two, as their answer covers every other question in your post.
What is an absolute no go? What shouldn't I do to f*** up the card again?
Click to expand...
Click to collapse
The answer to this is so easy it's astounding. The answer is to not combine the card with the internal storage. Here's why. If you switch ROMs regularly in order to try them out, every single time you combine the storage the card has to be prepared for use, which means all data on it gets wiped. If you do a clean install of your current ROM and combine the storage, all data on the card is wiped. The reason the card gets wiped is because Android 6.x creates a virtual volume which spans both internal storage and the MicroSD. In order to ensure the data is secure Android encrypts the volume. This encryption is part of the reason Google throws up a warning to restore the card if you pull it out of the device.
By not combining the storage, you avoid the encryption problems, but you do have to deal with the issue of apps not seeing the MicroSD card. Unless an app with this issue is no longer being updated, this problem will resolve itself. Developers have to adapt to the new setup.
The encryption also impacts performance, though on my tests with it I didn't notice anything. The one thing it will do is impact the ability to perform backups. In my tests, the encryption prevented TWRP from doing anything useful, meaning no ability to install flashable zips or updated TWRP recovery images from the storage and no ability to do nandroid backups. TWRP could see the directory structure of the combined storage but could not see any files within the folders to install. Nandroid backups instantly failed with an "out of storage" error, even though I had some 15GB of space available on the MicroSD. TWRP's developers will need to adapt to this and custom ROM developers will have to recommend that users not combine storage.
Strephon Alkhalikoi said:
So many questions, but I'm going to answer just the last two, as their answer covers every other question in your post.
The answer to this is so easy it's astounding. The answer is to not combine the card with the internal storage. Here's why. If you switch ROMs regularly in order to try them out, every single time you combine the storage the card has to be prepared for use, which means all data on it gets wiped. If you do a clean install of your current ROM and combine the storage, all data on the card is wiped. The reason the card gets wiped is because Android 6.x creates a virtual volume which spans both internal storage and the MicroSD. In order to ensure the data is secure Android encrypts the volume. This encryption is part of the reason Google throws up a warning to restore the card if you pull it out of the device.
By not combining the storage, you avoid the encryption problems, but you do have to deal with the issue of apps not seeing the MicroSD card. Unless an app with this issue is no longer being updated, this problem will resolve itself. Developers have to adapt to the new setup.
The encryption also impacts performance, though on my tests with it I didn't notice anything. The one thing it will do is impact the ability to perform backups. In my tests, the encryption prevented TWRP from doing anything useful, meaning no ability to install flashable zips or updated TWRP recovery images from the storage and no ability to do nandroid backups. TWRP could see the directory structure of the combined storage but could not see any files within the folders to install. Nandroid backups instantly failed with an "out of storage" error, even though I had some 15GB of space available on the MicroSD. TWRP's developers will need to adapt to this and custom ROM developers will have to recommend that users not combine storage.
Click to expand...
Click to collapse
thx for your very detailed answere. but whats about when i am using i.e. kushan rom build 07.12.2015 and i update to kushan rom build 11.12.2015. will the sd card have to be prepared to use also? and what about when i update twrp to a marshmellow support twrp. di i need prepare the sd card then again?
TWRP could see the directory structure of the combined storage but could not see any files within the folders to install. Nandroid backups instantly failed with an "out of storage" error, even though I had some 15GB of space available on the MicroSD.
Click to expand...
Click to collapse
This is the point where my trouble began. as so as the sd card is prepared as internal you cant even see files of the real internal storage. flashing zips you can still do with adb sideload. another question could we backup the internal flash inlcuding prepared sd card with this:
http://forum.xda-developers.com/showthread.php?t=1818321
?
If yes, is there also a way to restore the backup made?
To make things crystal clear, once the card is set for portable storage you will not have to reconfigure the card again unless you choose to combine the storage. Upgrading a ROM to a newer version will generate a message in the notification bar that you have to prepare the card, but you simply select the portable storage option and the notification goes away. Upgrading TWRP doesn't require doing anything to storage.
Should you choose to combine storage, upgrading a ROM may cost you whatever is on both the internal storage and microSD. Upgrading TWRP with combined storage would require you to flash it using Odin, because you wouldn't be able to copy the TWRP image to the device storage.
Backing up the internal storage doesn't require anything more than a copy operation from the S4 to the PC, so no special tools should be required. That applies regardless of whether the storage is combined or separate. However, for best results with TWRP, the storage should not be combined.
Sorry for reviving this old thread, but I've the same issue.
I flashed a new rom without getting the decryption code or backing anything up(No NANDs, no sd backup). Is there still currently no way to retrieve the files that are encrypted on this SD?
I've done exactly the same, I'm hoping theres a way to decrypt it.
k2828 said:
i was on twrp 2.8.7.0 and installed http://forum.xda-developers.com/galaxy-s4/i9505-orig-develop/rom-kushan-cm-marshmallow-rom-t3258489. then formatted my sd card as internal storage. today i wanted to update to the latest build of kushan rom, but in twrp my sd card was listed as 0 mb and i couldnt enter it. so i decided to flash latest cwm trough rom manager. after flashing cwm my internal sdcard was wiped(not by me-automaticly) and now marshmellow tells me that te sd card is not supportet...please format.....
i think that as the cwm wiped my sd card "the unique? encrpytion key?" got lost and therefor i cant axcess the sd card. im i right?
if yes i hope the encryption key is not unique and i can recover the files on the sd card
Click to expand...
Click to collapse
Have you found solution to decrypt the Sdcard.
I was facing this problem for almost 1 year I need only sdcard not data in it but I am unable to format it due to encryption but any device able to read the data and copy from that.
Even I can play Music out that SD card
Unless you're immortal, you're not decrypting the MicroSD card via brute force. Currently, the amount of time required to find the decryption key is longer than the current age of the universe.
If looking to simply format an existing card, use SDFormatter from http://www.sdcard.org.

[HOWTO] [L/M/N] Move /data to external SD the hard way

Hello, in this thread I'll show you how to move the /data partition to your microSD card in order to increase the storage space, and bypass the speed limits of our poor eMMC memory.
Disclaimer:
I'm not responsible for any data loss or any other kind of problems. Follow the tutorial and everything will be fine. In case of problems, reflash the boot.img of your ROM or reflash the whole ROM and you'll reboot to Android using the usual /data partition.
Pros:
more storage space
slightly shorter app loading times
Cons:
you cannot eject your SD card from your phone when it is turned on
Requirements:
a computer
some kind of adapter to put the microSD into the computer
a 16 GB (or higher), class 10 (or better) microSD
Any recent L (untested), M (tested) or N (tested) ROM and TWRP 3
these two zips: https://www.androidfilehost.com/?w=files&flid=113749
Step 0: prepare the SD card
using your computer, shrink the only partition you have on your SD card and leave at least 6 or 7 GB of unallocated space. Be sure not to shrink too much the first partiton (which will continue to be used as a normal storage partition) because you'll have to store a nandroid backup in it! This is why I recommend you to use a 32 GB SD card. Then create a new partition using the unallocated space. If you're using Windows or OS X, create a fat32 partition, if you're using Linux, create an ext4 partition.
Step 1: patch the recovery and backup, then restore
In the AFH folder I posted in the requirements you'll find two zips. Download them and reboot to recovery, then take a nandroid backup of your /data partition and store it on your SD card (TWRP will automatically use the first partition of the SD card, the one with all your current content). Now flash twrp_fstab_patcher.zip. Power off your phone and then turn it on and boot into TWRP. Now go to Wipe > Advanced Wipe > select Data > Change Filesystem > choose ext4 or f2fs (as you prefer). Confirm and check that the Data partition has been formatted to the chosen filesystem. Restore the backup you've made.
Step 2: migrate the data of the internal storage
Reboot to Android and using a file manager that lists both of your SD card's partitions (FX works for me) and copy all the content of your internal storage (photos, music, app data etc.) to *2nd_sdcard_partition*/media/0.
Step 3: patch the kernel
Now you're ready for the last step. Flash kernel_fstab_patcher.zip and reboot. The end!
Warning: you need to reflash kernel_fstab_patcher.zip after you change/update ROM/kernel otherwise your phone will use the "old" data partition! Similarly, you must flash twrp_recovery_patcher.zip each time you update TWRP 3 (this doesn't happen very often).
Well, I hope I put all the needed info in this thread, I'll keep it updated with my latest suggestions etc. If you have got problems, report them. If you find something that doesn't make any sense in this post, tell me. Enjoy!

Recovery Data From Internal Memory

Hello. After from some mistake, I formatted my internal storage via twrp. Now I want to recover the data which I had. The bad is that the device is connected to pc as MTP & NOT as Mass Storage so that to use some data recovery to get the lost data. I tried MTPdrive which is to convert the mtp to mass storage but not any result. I tried Mobisaver (Easeus) which is for recovering data from internal drive but appears the message error that can't get the root previlidges even if my mobile is recognised as rooted. Also I used the dr fone recovery but for similar reason with above it can't scann deep my device. The only solution which I have found but it is difficult to try it because it needs unix commands so that to get the internal storage as raw image & after to convert the raw to vhd & after to mount it as drive so that to been scanned via data recovery like recuva which is given in here : https://howtorecover.me/data-recovery-internal-storage-android-phone-guide#raw or similar : https://roubert.name/joakim/androidfilerecovery/
The bad is that in these methods the unix commands are unclear & the most times you will get some error in the running of commands or the instructions will be unclear. Also I tried Partitions backup (apk) which can dump the internal as raw but althought has the option to save the dump image to external storage, it saves only to internal which is irrational because my internal storage is 64 Gb & can't be saved all this as img file to my internal due to low capacity & for some unknown reason the external storage save can not be selected. Does it exist some way to get the lost data back of internal storage or to connect my Mi A1 as mass storage or to dump my internal storage as raw ? Thanks.
Johnn78 said:
Hello. After from some mistake, I formatted my internal storage via twrp. Now I want to recover the data which I had. The bad is that the device is connected to pc as MTP & NOT as Mass Storage so that to use some data recovery to get the lost data. I tried MTPdrive which is to convert the mtp to mass storage but not any result. I tried Mobisaver (Easeus) which is for recovering data from internal drive but appears the message error that can't get the root previlidges even if my mobile is recognised as rooted. Also I used the dr fone recovery but for similar reason with above it can't scann deep my device. The only solution which I have found but it is difficult to try it because it needs unix commands so that to get the internal storage as raw image & after to convert the raw to vhd & after to mount it as drive so that to been scanned via data recovery like recuva which is given in here : https://howtorecover.me/data-recovery-internal-storage-android-phone-guide#raw or similar : https://roubert.name/joakim/androidfilerecovery/
The bad is that in these methods the unix commands are unclear & the most times you will get some error in the running of commands or the instructions will be unclear. Also I tried Partitions backup (apk) which can dump the internal as raw but althought has the option to save the dump image to external storage, it saves only to internal which is irrational because my internal storage is 64 Gb & can't be saved all this as img file to my internal due to low capacity & for some unknown reason the external storage save can not be selected. Does it exist some way to get the lost data back of internal storage or to connect my Mi A1 as mass storage or to dump my internal storage as raw ? Thanks.
Click to expand...
Click to collapse
Nope. No way to get the lost data.
first of all this is not a place to post this ?
i request thread mods to move it to proper place ??
Ojaswi said:
Nope. No way to get the lost data.
Click to expand...
Click to collapse
Anyway, how to dump my entire internal storage as raw file ?
I followed this method and I was able to successfully dump my phone internal storage data into raw. But please be aware that successful recovery of your data from the dump file is not quaranteed.
Please read carefully the instructions and always make a backup before u proceed.
https://forum.xda-developers.com/ga...de-internal-memory-data-recovery-yes-t1994705
davidbiate said:
I followed this method and I was able to successfully dump my phone internal storage data into raw. But please be aware that successful recovery of your data from the dump file is not quaranteed.
Please read carefully the instructions and always make a backup before u proceed.
https://forum.xda-developers.com/ga...de-internal-memory-data-recovery-yes-t1994705
Click to expand...
Click to collapse
In the beginning writes "This method does not seem to work on newer phones that apply TRIM or some other type of partition clearing implementation. If anyone has recovered their data on a device newer than Android 4.3 please pm me and let me know." Does it mean that it is for older mobiles or you did it for Mi A1 with android 8.1 ?
hi ,
my mobile switch off mi redmi 5 pro note internal storage how to recovery

Categories

Resources