How can i recover data from adoptable sd card? - Android Q&A, Help & Troubleshooting

I was using my 8gb sd card as adoptable sd card(formated as internal) but I replaced with 32gb card and formated new one as internal. Now when I tried to insert sd card in pc it doesn't shows any drive and 2 drive one approx 150mb other approx 7.5 gb is shown in disk management. Both are shown as 100% free. But I didn't formated the 8gb card on device nor on pc. Is there any way to recover the data from that card? I don't have the device right now. I sold it to someone else

@prashantvrm
The feature called Adoptable Storage allows the Android user to format an external storage media as permanent internal storage to be used with this specific Android device: Hereby Android formats and changes it’s FAT32 or exFAT format to ext4 or f2fs, it gets tied to this specific Android device. The key used to encrypt the data on the SD card is stored on the Android device’s internal memory.
So, it is not possible to mount the adopted storage to another device because of its encrypted nature.

jwoegerbauer said:
@prashantvrm
The feature called Adoptable Storage allows the Android user to format an external storage media as permanent internal storage to be used with this specific Android device: Hereby Android formats and changes it’s FAT32 or exFAT format to ext4 or f2fs, it gets tied to this specific Android device. The key used to encrypt the data on the SD card is stored on the Android device’s internal memory.
So, it is not possible to mount the adopted storage to another device because of its encrypted nature.
Click to expand...
Click to collapse
Consider this scenario:
SDcard1 was used in mobile as adoptable
Then it was removed from the device and card was not formated and no device reset.
Then card with high storage capacity was inserted and this new card got formatted as adaptable and but still no device reset.
Now I want to use the old card in this device. Will the device recognize it as it was used there before?

Adoptable storage is a nightmare as cards fail regularly, as you have found out. With an unencrypted SD card, you could run chkdsk in Windows to repair the card. The only thing I am unsure of is if there is an equivalent in Linux. If there is, the card which has an ext4 file system could possibly be repaired.
Try iBoysoft Data Recovery. If a file is a recognizable format, iBoysoft will find it and recover it. (And take days for a decent-sized card.) Instructions are at the software Step By Step. (If each file is encrypted, it may not find anything, but if the file structure is encrypted, iBoysoft never looks at the file structure except to see how large the clusters are - and it can work without that information.

Related

Marshmallow and SD Card

Thank you for looking onto this post!
Is Apps2sd/Link2sd still working with MM? I tried to use Apps2sd to create mount scripts since it's not working for Link2sd. It worked and I can link app datas and files into the Sd card. However, since I partitioned the SD card with one Fat 32 for storage and one ext2/ext4 (tried both), only the ext partitions work and the primary partition Fat32 can't be read by the phone. Leaving me with only a 2nd partition for linking and a corrupt primary partition/sd card as MM reads it. Is there a way around here since my phone is nearly full on internal. TY in advance!
-Galaxy S5 G900F International 16gb
-MM 6.0.1
What you would want to do is reformat your SD card so it's all one partition and enable Adoptive Storage.
This app should help with that: https://play.google.com/store/apps/details?id=com.superthomaslab.rootessentials&hl=en
Keep in mind, Adoptive Storage will encrypt your card so it will only usable by that phone unless you reformat it again, but it's a way cleaner and better set up option that the hacked way Link2SD works. No offense to the app as it is very useful in many situations, but Adoptive Storage is a feature made by Google and is built into Android 6+ but for some phones has to be enabled via ADB commands or an app (that just automates the process for you). AS makes it so your phone sees your SD card as the internal storage and works just like it. You should have a fast SD card for this to work best. Like SDXC type. Don't use a regular class 4 SD card.
es0tericcha0s said:
What you would want to do is reformat your SD card so it's all one partition and enable Adoptive Storage.
This app should help with that: https://play.google.com/store/apps/details?id=com.superthomaslab.rootessentials&hl=en
Keep in mind, Adoptive Storage will encrypt your card so it will only usable by that phone unless you reformat it again, but it's a way cleaner and better set up option that the hacked way Link2SD works. No offense to the app as it is very useful in many situations, but Adoptive Storage is a feature made by Google and is built into Android 6+ but for some phones has to be enabled via ADB commands or an app (that just automates the process for you). AS makes it so your phone sees your SD card as the internal storage and works just like it. You should have a fast SD card for this to work best. Like SDXC type. Don't use a regular class 4 SD card.
Click to expand...
Click to collapse
Hello! Thanks for the reply and I guess I have no choice. I did adoptive storage and the app you gave worked well! But my adopted storage and SD card has the same name and confuses me at times. Is there a way to rename it? Also, how can I move apps from my internal to adopted? And is there a way to automatically install apps on adopted? Thank you!
My understanding is that once you have the adoptive storage set correctly then the phone should register that as part of the regular phone's storage.

how can I unhide my internal storage after corrupted SD card formatted as internal

I formatted an SD card as internal, then got suddenly corrupted..
the phone is not accepting any other card even with the same brand and capacity..
I bought new phone, and I need to transfer whatsapp chat that already on the old phone, but the internal storage isn't available.. google backup also says no internal storage found..
need help..
Personally don't think you can fix corrupted or not working SD-card formatted as internal storage ( Adoptable Storage ).
As soon as you format an SD-card to be used as internal memory ( Adoptable Storage ) it gets encrypted, the corresponding key gets stored in device's memory, means this SD-card furthermore only can be used on this device, it's not possible anymore to mount this SD-card to another Android device. Quite reverse your Android device refuses to accept any other SD-card.
IMHO Adoptable Storage is absolutely nightmare as card fail frequently, using this expanded storage often will corrupt your files.
MOD ACTION:
Thread closed as duplicate of THIS

Samsung Tab A [2016] SD Internal Formatting

I've followed directions exactly in the thread about formatting the SD card in my Samsung Tab A as internal storage.
Despite enabling debugging and the fact that I can see the SD card from my Samsung Tab A file manger [actually had been using until I transfered all the files prior to attempting this process] and my Windows 10 file manager can see the SD card when I attach via USB...
...however when I run aftiss it sees the device SM-T580 but I keep getting an ERROR SDCard not found! message.
I even formatted the drive from the tablet, unmounted/remounted, reformatted...same result every time [SD card not found!
I did notice even after formatting, the card has two folders [ANDROID & LOST.DIR]. I even deleted those folders via Windows and reran aftiss ... same result, SD card not found!
Device: SM-T580
Android version: 8.1.0
Kernel version: 3.18.14
I am obviously in over my head. Heeelllppp!!!
@empowermentgroup
Once an external SD-card plugged into Android device gets formatted to be used as Adoptable Storage, Android encrypts the external SD-card, thus, it gets tied to this specific Android device. The key used to encrypt the data on the external SD-card is stored on the Android device’s internal memory. So, it is not possible to mount the Adopted Storage to another device because of its encrypted nature.

Recover data from a removed SD card.

Phone the card came out of is a Doogee S68 Pro. I configured the SD card to be internal memory and for the camera app to save pics taken to the SD card. I assumed when the SD card was full the camera would save back to the internal memory but instead it gave an error saying storage full and wouldn't take more photos. There was no option within the camera app to switch the save location to the internal memory so I removed the SD card. This forced the camera to now save to internal memory. BUT. Now when I put the SD card back in it doesn't read and says I need to format the card to use it. Same result if I put the card in different android phones or pug it into a PC. I don't want to format the card because I want the pictures on it.
How can I get the image files off this SD card? I've tried a few file recovery programs without any success. I don't have a linux machine, just a PC, and I have no experience with rooting phones or the like.
Probably card is in raw mode now.
What you mean by saying that you have configured card as an internal storage?
gotaquestion said:
Same result if I put the card in different android phones or pug it into a PC. I don't want to format the card because I want the pictures on it. How can I get the image files off this SD card? I've tried a few file recovery programs without any success. I don't have a linux machine, just a PC, and I have no experience with rooting phones or the like.
Click to expand...
Click to collapse
The External SD-card got encrypted as soon as you decided to use it as internal memory. It's no longer readable by any card-reader. IMHO forensic tools are needed to retain the data stored there.
a602820922 said:
Probably card is in raw mode now.
What you mean by saying that you have configured card as an internal storage?
Click to expand...
Click to collapse
When I pulgged it in the first time it gave two options, use as internal memory or as mass storage device. I choose the internal memory option.
Dam
jwoegerbauer said:
The External SD-card got encrypted as soon as you decided to use it as internal memory. It's no longer readable by any card-reader. IMHO forensic tools are needed to retain the data stored there.
Click to expand...
Click to collapse
I feared this was the case. I don't understand why the original phone cannot decrypt the card though as it would with a Samsung device. I have sent a support request tot he phone manufacturer so hopefully that bears fruit.
gotaquestion said:
When I pulgged it in the first time it gave two options, use as internal memory or as mass storage device. I choose the internal memory option.
Click to expand...
Click to collapse
Ok thank you for confirmation. As above card encrypted and furthermore you might have lost all the data of the phone as well as sms , apps, updates basically everything since you choose that option has been storage on ad card, and your internal storage was not used or useless in a different world, access has been denied to it.
Which tools have you tried to recover data?

Can't partition Sd card as internal storage SM-A015AZ

have a Samsung A01 and was running out of space so i got an SD card, i want to download apps directly on the SD card after a few google searches i found out that you can partition an SD card to be included in as internal storage, i ran the commands but after partitioning and needing to close it, the phone kept bootlooping, idk if it's cuz the sd card is not correctly formated or something,
after failing at that i decided i will just change the installtion location but whenever i run
adb shell pm set-install-location 2
i get the error:
Exception occurred while executing 'set-install-location':
java.lang.SecurityException: Package android does not belong to 2000
at android.app.AppOpsManager.checkPackage(AppOpsManager.java:8803)
at android.content.ContentProvider.getCallingAttributionSource(ContentProvider.java:1096)
at android.content.ContentProvider.getCallingPackage(ContentProvider.java:1076)
at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:2059)
at com.android.providers.settings.SettingsProvider.insertGlobalSetting(SettingsProvider.java:1996)
at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:628)
at android.content.ContentProvider.call(ContentProvider.java:2576)
at android.content.ContentProvider$Transport.call(ContentProvider.java:526)
at android.provider.Settings$NameValueCache.putStringForUser(Settings.java:2991)
at android.provider.Settings$Global.putStringForUser(Settings.java:21016)
at android.provider.Settings$Global.putString(Settings.java:20844)
at android.provider.Settings$Global.putInt(Settings.java:21095)
at com.android.server.pm.PackageManagerService.setInstallLocation(PackageManagerService.java:32456)
at com.android.server.pm.PackageManagerShellCommand.runSetInstallLocation(PackageManagerShellCommand.java:1630)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:224)
at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
at android.os.ShellCommand.exec(ShellCommand.java:38)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:29855)
at android.os.Binder.shellCommand(Binder.java:986)
at android.os.Binder.onTransact(Binder.java:860)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:5411)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:9925)
at android.os.Binder.execTransactInternal(Binder.java:1220)
at android.os.Binder.execTransact(Binder.java:1179)
idk how to solve this
Converting an external SD-card storage space ( entirely or partially ) to an internal SD-card storage space is done by so-called Adoptable Storage fearure if it's supported by pre-installed Android ( i.e. Android 6 and higher ).
Look also here:
How to Use Android's Storage Manager
How to access, manage, and delete files, and increase storage using Android's storage manager--without even rooting your device
www.lifewire.com
Simply formatting / partitioning an external SD-card is not the right way. If you really want to do it at your own look here:
Enable adoptable storage no root needed
Have adb installed. Dev options enabled. Oem unlocking on. And usb debugging. I have done this on my cricket stylo 3 and works great. Open CMD (command prompt) on your PC and enter: “sm list-disks”. This will display the disk ID of your...
forum.xda-developers.com
Mjoygullyusingoldphones said:
adb shell pm set-install-location 2
Click to expand...
Click to collapse
This commands allows apps to be installed on an external storage from system side. But if an app wants to be installed on external storage is declared in its AndroidManifest.xml:
Code:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:installLocation="preferExternal"
... >
And that's a big problem because most apps do not declare this attribute. In that case:
If you do not declare this attribute, your application will be installed on the internal storage only and it cannot be moved to the external storage.
Click to expand...
Click to collapse
https://developer.android.com/guide/topics/data/install-location
Installing an app on external means that only the app's APK is stored on external while the app's specific data has to be stored on internal due to some security restrictions by Google. See here:
Access app-specific files | Android Developers
developer.android.com
A general issue when using external storage for app's data is that a SD card formatted in exFAT can't provide any mandatory security features such as encrypted storage or Linux file permissions.
Adoptable Storage is ext4 file system and provides same security features as Internal Storage. One UI never supported it.
thwalker3 said:
Yep. Samsung helpfully disables adoptable storage on all of their devices (the better to sell you models with more internal storage).
Click to expand...
Click to collapse
alecxs said:
Adoptable Storage is ext4 file system and provides same security features as Internal Storage. One UI never supported it.
Click to expand...
Click to collapse
But that is adoptable storage. Adoptable storage formats and mounts the external sd card exactly like /data. At the end there is no more external storage. It's all internal and encrypted. Only readable in your device.
The other feature, I was talking of, is to install apps on external storage. Not formatted as internal and still removeable and readable in any device.
It's the same feature, App2SD. one depends on the other.. before Adoptable Storage it were stored in encrypted .asec containers (also ext4) in .android_secure directory on MicroSD Card, since Marshmallow it requires Adoptable Storage. you can also split, volume can partitioned in public, private or mixed mode.

Categories

Resources