Samsung Galaxy A3, A5, A7 (2017) Adoptable strorage (use SD card as internal storage)

Search This thread

dandreye

Senior Member
Jun 4, 2015
71
4
Then, it is you the expert :D
ChatGPT is :ROFLMAO:

You might be right, but I wonder on the opposite if the "encryptable=userdata" make it possible to encrypt the card such that the system can use it as adoptable. I guess that if you cannot read the card on linux / ext4 partition reader in windows, it might mean that the micro SD card is encrypted (and so is the phone).
Quite possible. Sadly there's little hope @ashyx himself will see this as his ID seems inactive and he was last seen here mid-2020...
 

dandreye

Senior Member
Jun 4, 2015
71
4
Did you manage to mount and read / write your card on a computer (Linux or Windows / WSL) ?
After failing to open that single partition on it in Windows 11 and Ubuntu 18 I switched attention to dual partitioning as per that other thread and finally managed to create 2 partitions (albeit using yet another phone - Samsung S9+ as no other Samsung phone in my household could do it for some reason). So my card has ~30GB "portable" FAT32 partition followed by "internal" ext4 partition taking the rest of the space now. Unfortunately it didn't help make the latter one open in Windows/Linux and even the target Samsung A3 2017 phone won't see/adopt that partition alone - it just says "New SD card inserted" and prompts to format it (entirely) as internal or portable as usual. I decided to keep its dual partitioning intact for a day or two while awaiting answers on my questions in that other thread on it in case I'm asked to try this or that with it there. If no luck I'll probably revert back to a single partition to proceed/complete the experiments with it. Of a particular interest is whether at least TWRP can see it in Mount: I recall seeing "sdcard" there alongside system, data etc, but didn't try mounting it. Afaik TWRP's ability to take entire back up incl system and/or data is an indication of no encryption on them (which I personally evidenced with no-verity-opt-encrypt.zip before), so perhaps we could try this: install some app onto the "internal" partition of the card and see if it gets backed up.

As for WSL, in the recent past I unexpectedly struggled to set it up on my current laptop (got it working once elsewhere earlier this year, incl all that USB port mapping with usbipd) and didn't have time to proceed any further, so had to give up. Tbh I don't expect it to bring any benefits to the subject of our interest vs my Ubuntu 18 laptop, which I could upgrade to 20 or 22 if required.

Btw I'm somewhat surprised it's ext4 despite so many reports about f2fs being much faster. Perhaps it's f2fs in more recent Samsung phones though.. And one more thing that I noticed with this dual partitioning by S9+ is one more tiny partition immediately preceding the "internal" one and called android_meta as can be seen in the Diskinternals Linux Reader screenshot attached. Perhaps there's more to ext4 with Android unless it's something specific to the newer Android version on the S9+.

And one more idea on making it work with dual partitioning: perhaps we could let the phone format entire card to its liking and then just shrink that partition somehow to make room for the portable one that could be added manually.
 

Attachments

  • Partitioned in S9 (sm) - DILR.png
    Partitioned in S9 (sm) - DILR.png
    55.6 KB · Views: 8
Last edited:
After failing to open that single partition on it in Windows 11 and Ubuntu 18 I switched attention to dual partitioning as per that other thread and finally managed to create 2 partitions (albeit using yet another phone - Samsung S9+ as no other Samsung phone in my household could do it for some reason). So my card has ~30GB "portable" FAT32 partition followed by "internal" ext4 partition taking the rest of the space now. Unfortunately it didn't help make the latter one open in Windows/Linux and even the target Samsung A3 2017 phone won't see/adopt that partition alone - it just says "New SD card inserted" and prompts to format it (entirely) as internal or portable as usual. I decided to keep its dual partitioning intact for a day or two while awaiting answers on my questions in that other thread on it in case I'm asked to try this or that with it there. If no luck I'll probably revert back to a single partition to proceed/complete the experiments with it. Of a particular interest is whether at least TWRP can see it in Mount: I recall seeing "sdcard" there alongside system, data etc, but didn't try mounting it. Afaik TWRP's ability to take entire back up incl system and/or data is an indication of no encryption on them (which I personally evidenced with no-verity-opt-encrypt.zip before), so perhaps we could try this: install some app onto the "internal" partition of the card and see if it gets backed up.

As for WSL, in the recent past I unexpectedly struggled to set it up on my current laptop (got it working once elsewhere earlier this year, incl all that USB port mapping with usbipd) and didn't have time to proceed any further, so had to give up. Tbh I don't expect it to bring any benefits to the subject of our interest vs my Ubuntu 18 laptop, which I could upgrade to 20 or 22 if required.

Btw I'm somewhat surprised it's ext4 despite so many reports about f2fs being much faster. Perhaps it's f2fs in more recent Samsung phones though.. And one more thing that I noticed with this dual partitioning by S9+ is one more tiny partition immediately preceding the "internal" one and called android_meta as can be seen in the Diskinternals Linux Reader screenshot attached. Perhaps there's more to ext4 with Android unless it's something specific to the newer Android version on the S9+.

And one more idea on making it work with dual partitioning: perhaps we could let the phone format entire card to its liking and then just shrink that partition somehow to make room for the portable one that could be added manually.
This is a lot of inputs! Good luck with your research!

Let me know if you have some updates (maybe we can move to PM until we have something to share here :) )!
Maybe the shrinking trick could work.
 
Hi @Asphyx, @dandreye and @jnflos!

I have bad news...
I was so proud to have my newly adopted storage (256GB) working for few weeks, and today I couldn't install an app on my phone: I reached the full capacity of the internal storage (see screenshot)😭😭😭
Wasn't it the whole point of having adopted storage?
I feel that the phone is putting the app on the "internal internal" storage anyways 😡
I feel scammed by Samsung (once again)...

If you know a fix for this, I'd be glad to hear it! At least, before, I could move some apps to the SD card.

Thank you very much for your work! 🙏😊
 

Attachments

  • Screenshot_20230607-163900_Settings[1].jpg
    Screenshot_20230607-163900_Settings[1].jpg
    54.9 KB · Views: 5

Asphyx

Senior Member
Dec 19, 2007
2,158
378
Android Wear
Google Pixel Watch
Hi @Asphyx, @dandreye and @jnflos!

I have bad news...
I was so proud to have my newly adopted storage (256GB) working for few weeks, and today I couldn't install an app on my phone: I reached the full capacity of the internal storage (see screenshot)😭😭😭
Wasn't it the whole point of having adopted storage?
I feel that the phone is putting the app on the "internal internal" storage anyways 😡
I feel scammed by Samsung (once again)...

If you know a fix for this, I'd be glad to hear it! At least, before, I could move some apps to the SD card.

Thank you very much for your work! 🙏😊
Not sure why I got this shoutout as I do not have this phone...
But in the past (I now have a Pixel 7Pro no SD Card but 512G of storage) you used to have to go into Settings/Apps and select a App and then select storage.
If the App supports moving to SD card the option should be available there.
Move what apps you can to SD Card and you should get back some Internal Storage space.
 
Not sure why I got this shoutout as I do not have this phone...
But in the past (I now have a Pixel 7Pro no SD Card but 512G of storage) you used to have to go into Settings/Apps and select a App and then select storage.
If the App supports moving to SD card the option should be available there.
Move what apps you can to SD Card and you should get back some Internal Storage space.
Hi,
Sorry for the out-of-nowhere bump 😅 I was still under the rollercoaster of emotions.
@jnflos who, for some reason, I can't tag, apparently presented in 2017 a method using your patch to give the option to Samsung Galaxy smartphones (2017 series) to offer adoptable storage.

The method you just referred to is typically what you do when the SD card is not adopted (ie when it is external storage).
When the SD is adopted, it should behave as one with the phone storage as one big internal storage. So the option to move app does not appear anymore, because the phone doesn't "think" it has an external storage, right?

At least on my side, the setting app crashes when I try to open the setting/apps/<any app>/storage 😅
Maybe I can start to work with this!

Thank you for your help 😊!
 

alecxs

Forum Moderator
Staff member
Feb 17, 2016
4,637
7
3,903
gitlab.com
When the SD is adopted, it should behave as one with the phone storage as one big internal storage. So the option to move app does not appear anymore, because the phone doesn't "think" it has an external storage, right?
No. opposite. external storage is required. it just switches external storage location from phone storage to adopted storage. AFAIK Samsung never supported Adoptable Storage, so OneUI is lacking that option.
 
No. opposite. external storage is required. it just switches external storage location from phone storage to adopted storage. AFAIK Samsung never supported Adoptable Storage, so OneUI is lacking that option.
Thank you for your reply :)
Indeed Samsung doesn't let you adopt a storage (by adopt I mean consider a SD card as internal storage). But thanks to this thread based on @Asphyx patch (Marshmallow) you can do it on Samsungs.

What I don't understand yet is how to fix my issue that despite having an adopted storage, my phone still put most of the apps on the build-in storage. I might try this method. Or I might end up rooting my phone and use Link2SD, however, I would lose the possibility to use my banking apps, which is not good :-(
 

alecxs

Forum Moderator
Staff member
Feb 17, 2016
4,637
7
3,903
gitlab.com
if you have any app that is moveable, you can move it to adoptable storage with 3rd party apps (no root). Link2SD provides this button too (alongside with its symlink method)
 

lefti696

Member
Dec 20, 2008
39
33
@dandreye , Dear A320FL fellow!
Before entering the detail of how I did it, can you tell me two things?
A. Can you access the 128GB micro SD card from the phone (move data or app in the "normal" way as without adoptable storage)? Does the phone detect it?
B. The author (OP) indicated that it might be required to artificially corrupt the micro SD card to make the phone query to format it and then use as internal storage. It wasn't required in my case as the notification appeared, but did try it? Apparently you tried to delete all the partitions (all unallocated), but have you tried the second option: format it using the phone and stop with the back button before it finishes?

Now here is what I did (there might some unnecessary extra steps I guess):
0. The phone has the latest stock ROM, not rooted, without any extra (no TWRP for instance).
1. Authorize OEM unlock
2. Download mode → install TWRP (I had a linux computer, so I used Heimdall instead of Odin and payed attention to add a no-reboot option in the command line. The first attempt with reboot failed, and the phone restored the original recovery mode)
3. I tried to flash the adoptable storage enabler zip with TWRP, but then the phone didn't want to boot because of the "verification failed". (Maybe it's because I didn't wipe Dalvik cache after flashing the zip?)
4. I tried to wipe the whole data of the phone through TWRP, but the "verification failed" remained. That was before I found the post from Shameera_N.
5. I applied their fix:
  • 5.1. In TWRP: wipe data (so that was the second time for me)
  • 5.2. Reboot to recovery
  • 5.3. Flash the no-verity-encrypt file
  • 5.4. Reboot to recovery
  • 5.5. Flash the adoptable storage enabler (so, second attempt, here)
  • 5.6. Wipe Dalvik, Cache directly after
6. When I finally rebooted on the phone, I went through the first initialization / setup / google register (the data was wiped, remember).
7. I inserted the newly bought micro SD card (nothing had been written on it). The phone asked me if I want to use it as internal storage, and I said yes.

I assume that you followed step 5., in particular flashing the adoptable storage enabler zip at sub-step 5.5., in this case I case suggest to focus on corrupting the micro SD card. If you can see the micro SD card on the phone, do as I mentioned before (start to format via the phone and stop before it ends to corrupt it). If you cannot, create a partition / format it back on you computer and try again. (Possibly with the interrupted formatting trick.)

Tell me how it works out for you,

Have a good week!
Thanks for the guide.
Do you have files needed for flashing that you have mentioned? (or links to them) "no-verity-encrypt file" and "adoptable storage enabler"
 
Thanks for the guide.
Do you have files needed for flashing that you have mentioned? (or links to them) "no-verity-encrypt file" and "adoptable storage enabler"
Hi!

I found the no-verity-encrypt there (I took v6.1). The other one is attached to the head of this thread.
With more perspective after time, I decided to move back to my stock rom with adopted SD because it caused too many issues. For instance, as I mentioned before, it got full quite fast as well because even though the sd was adopted, most of the apps went in the internal part of it... I didn't try Link2SD but I'm expecting a lot from it. I guess that only movable can moved which is exactly what you can already do with stock rom.
I am considering removing more bloatware by force without root using adb.

I hope this helps :)
Keep me updated if things work for you!

Let's keep these A3 2017 alive forever!
 
  • Like
Reactions: lefti696

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Thanks for the guide.
    Do you have files needed for flashing that you have mentioned? (or links to them) "no-verity-encrypt file" and "adoptable storage enabler"
    Hi!

    I found the no-verity-encrypt there (I took v6.1). The other one is attached to the head of this thread.
    With more perspective after time, I decided to move back to my stock rom with adopted SD because it caused too many issues. For instance, as I mentioned before, it got full quite fast as well because even though the sd was adopted, most of the apps went in the internal part of it... I didn't try Link2SD but I'm expecting a lot from it. I guess that only movable can moved which is exactly what you can already do with stock rom.
    I am considering removing more bloatware by force without root using adb.

    I hope this helps :)
    Keep me updated if things work for you!

    Let's keep these A3 2017 alive forever!
  • 11
    By default Samsung disabled the option to allow a user to use a microSD card as internal storage. This is very bad especially on devices that come with only 16 GB of internal storage.
    Not happy? You can understand the gravity of the situation and complain to Samsung about this
    :crying: HERE :(

    Adoptable storage is a standard feature in Android Marshmallow but gets disabled by most manufacturers in their attempt of forcing users to throw more money on devices with more internal storage.

    What are the changes with Adoptable Storage?

    • the SD card gets encrypted and encryption key is stored in internal device memory
    • the encryption makes the SD card read/write operation slower than otherwise
    • disables the normal use of SD card by swapping it in other devices (unless you select a percent of SD card to be kept as a removable partition)
    • can slow down the loading time of some apps, including installing them
    • some confusion is created in the device's total available memory reporting and memory usage reporting
    In order to enable Adoptable storage you need to have custom recovery installed on your device. This will blow the e-fuse in the device, trip Knox, and you will loose warranty for the device.
    Put the ZIP attached below on your SD card and flash it. This is an Add-on will make some changes to Android OS core to enable Adoptable Storage option, the one on which Samsung putted it's will to remove it.

    The device will restart (if not you can restart it manually). Now you should remove the SD card, and delete the partitions from it on your PC (using an SD card reader or something) with the help of your favorite partitioning software.
    This is to force the phone to ask you next time you insert the SD card, how to use it. Otherwise the option Use as internal storage may not appear.

    In the new 2017 A series there is this new universal app for managing battery usage, disk usage, RAM usage and security.
    Eventually you can find the option to migrate data to the SD card - this can take a while.
    Basically it moves all the non-system applications from original internal storage to the new internal storage on the SD card. All new application that you will install will be placed entirely on this new internal storage.

    Use another app like Storage Space from Google Play Store to see the real available memory, the universal Samsung manager is not designed to understand Adoptable storage as Samsung intended not to.

    That's it. I tested this on A3 2017 (SM-A320FL) with Exynos CPU and ClockWork Mode custom recovery.
    Download CWM Recovery for A3 2017 form this post. It should work on all A 2017 series on devices with Exynos CPU.
    You can do this (flash a ZIP) using any working custom recovery compatible with your device (CWM, TWPR).
    The applicability of this method may be limited to android 6.0.1 Marshmallow.

    From my experience on the Galaxy A3 2017 it seems that the new internal storage is equal in size to that of the SD card, so the new internal storage it is not adding to the ~9 GB of original internal storage left free - as I expect it.

    The New Storage manager app is different from the usual access menu of standard Samsung settings. The menu we are looking for is hidden before the Format as portable storage option and there is no back button.

    To make menu appear put the SD card into a computer and delete all the partitions on it.

    1. Use MiniTool Partition Wizard on Windows or any other tool that let's you delete the partitions on the SD card
    2. Place the SD card back in to the device
    3. Go to the Storage Manager and select Storage options form top right

    Now you should see the "corrupt" message under SD card. This is what we want.
    To make the phone see the SD card as corrupt.

    4. Now tap on that and hit Configure on the popup where it says ...in order to use it it has to be configured.

    5. Done. Now you will see 2 options:
    -Use as portable storage
    -Use as internal storage

    You can trigger the same menu by reformatting the SD card into the phone but before it finishes formatting tap quickly on the back button. This will actually interrupt the format, corrupt the SD card and then a notification will appear (A new SD card was detected):
    • Swipe down the notifications pane
    • There will be a cog icon and Configure. Tap on it to proceed
    • There it will open the menu with both options:
      -Use as portable storage
      -Use as internal storage
    Please feel free to post your feedback and experiences regarding this below.
    Special thanks to ashyx who updated this patch to work on these devices and other devices. More details and PayPal donation link here.
    2
    Thank you! It worked perfectly and in the first attempt. I did not even have to use a computer to format the SD card, or interrupt the process on the phone. I formatted it using the phone’s default formatting option and, once it was completed successfully, it asked me whether I wanted to use the SD card as internal storage. Smooth as can be. The only issue I can see is that it’s showing the total available storage as 64 GB, which means that the phone’s 16 GB is not being counted. I don’t really care enough about it to troubleshoot it. I am not using up 64 GB anytime soon.
    2
    Well, it seems that this thread would really benefit from some actual replies to the many questions accumulated over time. People are asking whether "adoptable storage" will work with the newer Android OS, for instance, or different ROMS. Various issues are listed - again with no reply.

    I personally am wondering about the potential problems if I try the method described with Oreo. Apart from wlanowski's short post ("it worked"), there is no info at all and this prevents me from giving it a try.

    Pretty bothering as I still find this phone perfectly ok...

    Shortly: Please try and reply to the posts from "laymen" :)
    1
    not working for me :( I flashed the zip file, everything seems allright but even after formating the sd card, I don't have the option
    1
    Thanks for the guide.
    Do you have files needed for flashing that you have mentioned? (or links to them) "no-verity-encrypt file" and "adoptable storage enabler"
    Hi!

    I found the no-verity-encrypt there (I took v6.1). The other one is attached to the head of this thread.
    With more perspective after time, I decided to move back to my stock rom with adopted SD because it caused too many issues. For instance, as I mentioned before, it got full quite fast as well because even though the sd was adopted, most of the apps went in the internal part of it... I didn't try Link2SD but I'm expecting a lot from it. I guess that only movable can moved which is exactly what you can already do with stock rom.
    I am considering removing more bloatware by force without root using adb.

    I hope this helps :)
    Keep me updated if things work for you!

    Let's keep these A3 2017 alive forever!