yashsingh1/xdaforums huggingface dataset:
[Android General] Dr.ahmed3386:
How i Decrypt in windows enviroment

Dear I rooted my phone and get the .key file and actually they were 2 file

expand_8e6f0fc23f14e31581c6c0ded8a2bb5f.key

expand_a80d5d8eddaee648fd1f0f14cbb88ae2.key

I want to decrypt my adopted sd card to be able to repartition it again and return it into 1 partition 128gb

Please help
[Android General] Dr.ahmed3386:
I download Ubuntu and install it and yet I could not decrypt my SD card using terminal and this commands.

Please Help
[Android General] Nahuelisimo:
i dont have the key, the folder /data/data/vold is empty, i didnt factory reset or anything, i just rooted the phone to be able to get the key
[Android General] CheifX:
Hello!!!!

i have created a backup of that .key file but after few days i formatted my Android and after placing it back to its folder my sdcard is still not working. i mean my sdcard is fully readed by my android device and i can write on it to but my old files are not showing but they are in sdcard because my stotage info is proving it.
[Android General] POQDavid:
maybe try to copy your data using a linux distro like mint just to be safe then see if you can find the files or not
[Android General] Okabiz:
Is it possible to perform the decryption on a guest Ubuntu virtual machine (windows as a host) ? I followed a tutorial on how to link my sdcard onto the virtual machine, but I cannot seem to mount it in Ubuntu I get a "wrong fs type, bad option, bad superblock on /dev/sdb2" error, any help ?
[Android General] fanfzero:
Hi [MENTION=4216961]POQDavid[/MENTION] , I ve done the procedure, I can access the files and everything, but my question is, how do I format the sd to make it standard again?
[Android General] POQDavid:
You should be able to either simply format the card or use the phone to restore it
[Android General] ilegales:
I came across this thread about adoptive storage as sadly my phone had some issues

and could not even turn on - so after many hours i pulled the sd card out...

when the phone came back on the card was not recognised...

putting the sd card into a card reader on a pc does not work to transfer the files to pc and then format sd card in phone

and transfer the pc saved files back to phone...

ok right now i have followed along to your steps... so far so good i can see the HEX file on my phone...

but then i get lost what to do next... and where (phone or pc) - never used a linux etc...... so real noob

"Open that file with a hex editor to view the 16-byte key"

i do this on my phone or pc ? i have it open on my phone now... what to do next with it...

"On any Linux distro you can do this first mount your SD card, in my case SD card was mounted at /dev/sdb2."

i run a linux distro on my pc ? any free ones do you know about... - to mount SD card i must cable phone to pc when the linux is on...? sorry for these questions... no idea about this stuff

"Then run this command dmsetup create crypt1 --table "0 `blockdev --getsize /dev/sdb2` crypt aes-cbc-essiv:sha256 <You put the 16 bytes of hex data from the file here> 0 /dev/sdb2 0" This might give you a error but ignore it."

I take it this is all done within the linux distro....

"If your key is correct you can mount it by mount -t ext4 /dev/mapper/crypt1 /mnt/1/"

totally lost me this one.....

"Finally you can run cd /mnt/1 to browse the decrypted storage."

again lost me....

anyone please advise in more detail a step by step breakdown..

mini walkthrough
[Android General] POQDavid:
Won't matter on what device you open the file but i normally perfer pc

like i said in the step 5 you use the key in the place of <You put the 16 bytes of hex data from the file here>

Nah its fine i perfer https://www.ubuntu.com/ or https://linuxmint.com/ my self either one would do it

Yes correct

If you do all the steps correctly you will be able to mount the sd and recover your data
[Android General] ilegales:
Hi thanks for the reply..

Will try it tomorrow as 2:30am here

Just read through what you wrote

- should the phone with SD card inside be connected up to the pc - if yes which step

Or should the SD card be out into a card reader connected to my pc.. if yes which step

- can you recommend a hex editor for the pc

Thanks again..
[Android General] POQDavid:
Well it should be the SD card in the card reader
[Android General] ilegales:
so update

i managed to get ubuntu onto a spare desktop pc

when i put the "android" micro sd card into the card reader connected to the pc it does not show up on ununtu

when i put a different sd card or CF card into the card reader they show.

I could not see any drive name for the CF card

but i could see a sdd1 for the "other sd" card but it was not displayed under "On this computer" where my other drives are... i made my machine a dual boot with windows so thats why i have other drives showing..

so i went into "Terminal" and tried all the following as seen in photo enclosed

i tried many combinations of the text with "spaces" and without spaces also with/without the < > for the start/end of the hex code...

but i think that the location name is not correct sdb2 or sdd1...which i am using.

how to check the "location name" as your step 5 says "first mount your sd card.. in my case it was sdb2...

my location name does not show up but i know the card reader works
[Android General] POQDavid:
Have you tried Ubuntu’s Disk Utility? by oppening the Dash and searching disks?
[Android General] ilegales:
somehow i managed to get the disk to show (see enclosed photo)

on this photo it says the microSD card is in dev/sdd

so i tried to do this next part in the terminal

see enclosed photo

there i believe is some typing mistake

i have "Spaces" in between parts - is this correct?

should there also be < > where it starts the key ?

anything else you can see what could be wrong on the photo
[Android General] POQDavid:
you do it like this and also you forgot to use sudo

dmsetup create crypt1 --table "0 `blockdev --getsize /dev/sdd` crypt aes-cbc-essiv:sha256 <You put the 16 bytes of hex data from the file here> 0 /dev/sdd2 0

and you just replace<You put the 16 bytes of hex data from the file here> with the code and keep the spacing
[Android General] ilegales:
Update: 3 new photos enclosed with 3 slight variations on the first "dmsetup line"

and second image tries the step 7 and 8 lines..

third image is the HEX key taken from my phone..

is the key entered correctly - starts at "f6 and ends c9"

the codes are a direct copy from yours on Page 1...

it says dev/sdd "Permission denied...."

Which is correct 1, 2 or 3 ? and this is correctly positioned SUDO ?

i need this hopefully by end of tomorrow to get the photos back....

THanking you again...or if anyone else could assist please.....
[Android General] POQDavid:
this one

dmsetup create crypt1 --table "0 `blockdev --getsize /dev/sdd` crypt aes-cbc-essiv:sha256 f6bb5ec19e5e1013e1080d0c12b811c9 0 /dev/sdd 0"
[Android General] ilegales:
thanks I tried that

says "access denied" when i cut and paste that code

i then try second part

"sudo mount -t" and it says "mount point does not exist"

and does that hex key look ok to you...
[Android General] POQDavid:
i meant you need to run this as sudo like this

sudo dmsetup create crypt1 --table "0 `blockdev --getsize /dev/sdd` crypt aes-cbc-essiv:sha256 f6bb5ec19e5e1013e1080d0c12b811c9 0 /dev/sdd 0"
[Android General] ilegales:
Yes I tried all the parts 7, 8 and 9 using "Sudo" at the front...

Result was it saying "access is denied" for part 7

And it says for part 8 "mount point does not exist"

Any ideas what's up with it??

.....will try tomorrow as away from the desktop right now...

Thanks...
[Android General] POQDavid:
tbh with all that not sure why you are getting that you should be able to do it if you are using the correct mount point for your SD card
[Android General] Joe333x:
If I decyrpt the adopted storage will the adopted storage continue to work normally on the device? I ask becauseI am running latest official TWRP on klte g900t running Lineage OS 16. I am using my SD card as adopted storage. I believe this is the reason it takes my recovery 5 minutes to boot as it has to decrypt the adopted storage. Is it possible to run adopted storage without encryption so that the recovery does not take so long to boot?
[Android General] Advanced Android User:
Hi, I am trying to decrypt my encrypted adopted storage partition after my phone's microSD controller died due to water damage. I managed to extract the key file from /data/misc/vold because thankfully the bootloader was factory unlocked. However, I am unable to mount it (using Ubuntu 18).

Here is what I did: I opened the .key file with a hex editor, got the key, connected the microSD card in Ubuntu, used the Disks utility to have a look (it's the third partition because I split the sd card into two partitions, /dev/sdb3).

I then used this command: sudo dmsetup create crypt1 --table "0 `blockdev --getsize /dev/sdb3` crypt aes-cbc-essiv:sha256 1mykeyhere1 0 /dev/sdb3 0"

and get the following error:

"blockdev: cannot open /dev/sdb3: Permission denied

Invalid format on line 1 of table

Command failed"

Since my phone is on Android 6.0.1, from what I gather the file system of the encrypted partition should be f2fs, but since I can't get the first step done, obviously mounting it with: mount -t f2fs /dev/mapper/crypt1 /mnt/1/

doesn't work ("mount point does not exist").

What am I doing wrong? Please help me if you can.

EDIT:

Update: I managed to mount it. In terminal I used the command

sudo -i

Then

dmsetup create crypt1 --table "0 `blockdev --getsize /dev/sdb3` crypt aes-cbc-essiv:sha256 1mykeyhere1 0 /dev/sdb3 0"

Then I created the necessary directory: mkdir /mnt/1/

Then I mounted the crypt1 block device: mount -t ext4 /dev/mapper/crypt1 /mnt/1/

(it didn't work when I tried to use f2fs instead of ext4)

So now it's there, but in the file browser I can only see 5 folders:

app

local

media

misc

user

And I can only access app, misc and user, the other folders and most subdirectorys are "unreadable". Am I doing it wrong? Where is the rest?
[Android General] [xzel]:
Props and tips

Thank you for this excellent useful, guide it worked for me..

Here are a few tips that may help:

In linux you can dump the hex for your key file like this

hd -c <filename>.key

Important: Remember to remove the spaces from your hex key

First create the mount point:

sudo mkdir /mnt/1

Mount partition with unknown file type:

sudo mount /dev/mapper/crypt /mnt/1

This is what worked for me(key is random)

sudo mkdir /mnt/1
sudo dmsetup create crypt1 --table "0 `blockdev --getsize /dev/sdd2` crypt aes-cbc-essiv:sha256 56c27e111b7f435d44de9e89f146ae25 0 /dev/sdd2 0"
sudo mount /dev/mapper/crypt1 /mnt/1

Does anyone know how to make this automount?
[Android General] romo99:
i reset the phone but i did not decrypt the micro sd. Now I have all my files but I can't open them anywhere because I have to do it from the device where I encrypted, unfortunately I don't have the hex file and I don't know how to do it, I don't want to format the micro sd because I hope for a possibility. Please help me I also have photos of my family, I'm desperate :(:cry:
[Android General] alecxs:
You can't do anything after factory reset, keys are lost forever (btw sounds like your MicroSD Card is encrypted with FBE + metadata encryption, the decryption method in this thread is for FDE only and therefore wouldn't have worked anyway)
[Android General] romo99:
can i have a chance without key but only with the micro sd password that i have set? I know that on the PC it is a different system, but if I protect my hard disk with the bitlocker method, I can decide whether to use the password or the key file previously saved in a folder. Help me!!!! hope for this possibilit
[Android General] hana_no_haze:
how to get this work adoptable portable sd card.
[Android General] TinySoul:
Hi, Can someone please tell when is this encryption key generated?

I mean is it present right from the time the ROM was first installed at the Factory site and just used whenever a memory card is formatted for use as internal storage?

Or is it generated the first time a memory card is formatted for use as internal storage?

I too am stuck with a memory card formatted as internal storage. The phone on which it was done has been damaged beyond repair. But I have a complete Raw dump of the ROM and nandroid backup of system and data (appears to be corrupt at this time) partitions. But unfortunately the dump was created and partition was backed up before I formatted the memory card for internal storage use.

If the encryption key is generated at time of installing the ROM at the Factory, then I might have an outside chance of recovering the data, else there is no point wasting time, it's not going to be recovered.

Thanks.
[Android General] alecxs:
What kind of encryption? for FDE there is a expand_5f5e697154132edfaa6fca7ac23cde2a.key for each SD Card (one key per formatted)

check /data/misc/vold

if you can find the key sd card can be recovered offline
[Android General] TinySoul:
Thank you for replying. The card has two partitions, android_meta and android_expand. Both partitions were created by Android(Marshmallow) on Lenovo K4 Note.

I cannot access the folder as it is currently inside the raw dump of the phone.

I searched in the raw dump file and there is an entry like (please see the attached file in hex view) "u:object_r:vold_data_file...”

The data following the last colon symbol, does appears to be the Key data, but I am not sure.

Thanks.
[Android General] alecxs:
raw dump is useless because it is encrypted too. restore raw dump to phone (userdata + metadata) and adb pull /dev/block/dm-0

then search for expand_
[Android General] TinySoul:
I do not have a phone of which the complete raw dump was created.The phone is damaged beyond repair, hence I need to decrypt the memory card.

Raw dump is not fully encrypted otherwise I would not see ASCII and Unicode data.

If you have seen the file attachment in my previous post, can you tell me if that has encryption key?

Thanks
[Android General] alecxs:
u:object_r:vold_data_file:s0 is just secontext can be anything.

/data/misc/vold is encrypted for sure as whole /data partition is. split the raw dump into it's partitions, restore userdata + metadata partition back to source phone and let kinibi decrypt, then dump decrypted userdata partition (ext4 image) and loop mount it. without source phone it's all just garbage

p.s. you can do this with only motherboard + emmc, no touch screen required
[G3 Q&A, Help & Troubleshooting] jonnyszt:
I've accidentally manage to remove the laf file and now I only have Fastboot and not download mode. I've try flashing laf but it seems the lg isn't allowing you to flash anything even with the latest drivers installed. So the only solution I figured out is to use king root to get temporary root access and place the laf file. Can anyone tell me where is the laf file stored?
[G3 Q&A, Help & Troubleshooting] jonnyszt:
Can anyone please help me. It's urgent
[G3 Q&A, Help & Troubleshooting] Anik49:
For d852 autorec app is available...if it is then install it and flash twrp with it....it will flash the laf file...how long i know...but you must istall autrec app for your phone model....
[G3 Q&A, Help & Troubleshooting] jonnyszt:
I found it. Do I need root?
[G3 Q&A, Help & Troubleshooting] jonnyszt:
Do I flash it has image?
[G3 Q&A, Help & Troubleshooting] Anik49:
If it's for your phone then yes you can....but for d852 is their no app available....?

---------- Post added at 06:29 PM ---------- Previous post was at 06:13 PM ----------

Yes you need root and you can easily get it by using king root

---------- Post added at 06:30 PM ---------- Previous post was at 06:29 PM ----------

Yes you need root and you can easily get it by using king root
[G3 Q&A, Help & Troubleshooting] jonnyszt:
Do I flash it as a boot or recovery and it told me it's to large for its target
[G3 Q&A, Help & Troubleshooting] Anik49:
Autorec is a app it's a apk file see it's available for d852....

---------- Post added at 01:12 AM ---------- Previous post was at 01:08 AM ----------

Look here http://xdaforums.com/lg-g3/general/apk-flash-twrp-autorec-thanks-to-t3081396

Download according to your model android os version....
[G3 Q&A, Help & Troubleshooting] jonnyszt:
It's all fine now. I give it to my service provider (carrier) and they fix it without any charges

Thanks for everyone's assistance:)
[AT&T Samsung Galaxy Note5] TeldenW:
I've sideloaded the "Official AT&T 6.0.1" Marshmallow.

My keyboard of choice is the Google Keyboard.

Is there a way to force my phone and/or keyboard to use the Android emojis instead of the Samsung emoji?
[AT&T Samsung Galaxy Note5] Xmboy:
Looking forward this too samsung emojis are not cool at all :(
[AT&T Samsung Galaxy Note5] Carsus55:
You do know that you are the only one that sees them as the Samsung ones right? They are interpreted on each phone to match the emoji library. (For system apps like sums and such)
[Tilt, TyTN II, MDA Vario III General] chribo28:
I got my MDA Vario III from T-Mobile in Germany a week ago. I installed TomTom 6 and activated my maps (I changed to the MDA V III from a HTC Artemis). I can start TomTom, I get a GPS fix, if I don't do anything else while driving, TomTom always shows me my actual position just fine. I can scroll through maps etc. Here's my problem:

When I try to navigate anywhere I always get the error message 'Error while planning' - ok this is the english translation I did myself. I am using german as language and there the error message says 'Fehler bei Planung'. If I try to navigate inside my hometown I receive this error message immediately. If I try to navigate to a place that's a couple of hundred kms from my position TomTom starts to calculate the route, I can see that the 'remaining kilometers' figure for calculation decreases and after app. 30% I get the error message. I tried versions 6.030 and 6.032. Both behave the same. I also tried 6.020 but it does not find any maps and then crashes my system. Any suggestions welcome.

Important to say: I am not using hacked maps and I also did not use a keygen programm for anything. I am running the WM 6 that was installed when the MDA arrived. I have plenty of memory free.
[Samsung Galaxy S Duos 2] Jafarski96:
hi guys, i don't have any sounds on cm12.1 cm11. I tried on cm-12.1-20160518 ,cm-12.1-20160416 cm-11-20160306 . headphones doesnt work too. when i was on stock rom it works ok.

any suggestions ?
[Samsung Galaxy S Duos 2] Kthulux:
try flashing stock rom
[Samsung Galaxy S Duos 2] charlesxd2016:
all you need to do download stock rom of your region from here-http://www.sammobile.com/firmwares/database/GT-S7582/

than extract it you got md5 file

than download odin3.07 from here-http://odindownload.com

1-backup all your data

2-switch off your phone,remove battery,simcard,memory card

3-open odin in pc

4-re-insert you battery

5-hold volume down ,home key, power button toughter this will turn your phone into downloading mode

6-press volume up key to continue

7-connect you phone to pc

8-wait for odin massege

9-click pda

10-select md5 file fom where you have downloaded the stock rom

11-click start wait for odin said pass and your device will automatically reboot

done

.

.

.

hit thanks if i help you....:good:

after flashing stock rom

install twrp via odin

boot your phone in download mode

do it stepwise

1-download twrp from here-http://xdaforums.com/attachment.php?attachmentid=3184502&d=1424941690

2-open odin in pc

3-connect you phone to pc (see odin device added msg)

4-click pda

5-select twrp from where you have downloaded

6-untick auto reboot in odin

7-click start

8-wait for odin said reset

9-done dissconnect your phone from pc

10- remove battery and re-insert it

11-press volume up key+home key+power button together

your phone will be boot in twrp recovery!!!!!

.

.

.

hit thanks if i help you...:good:

than install any cm rom with lattest build

and install with twrp

do it stepwise

1-boot your phone in twrp recovery following button vol up+homekey+power

2-do full wipe as shown in the pitchure in attachment

3-after full wipe click install add rom zip

4-click add more zip select gapps

5-swipe right side

6-when it successfull reboot your device to system

7-done

enjoy powerfull cm rom

.

.

.

hit thanks if i help you...:good:
[XDA Assist] kevin suire:
Lenovo S6000-f will no longer fully power off. Selecting power off brings you to a final screen that shows " LENOVO " and remains on the screen. Have to leave it plugged in to AC so as to not kill the battery. Is there any fix for this issue?
[Nook Touch General] 09mysh:
Hello everyone

For me one of the most impressive mod on NST is fast mode, which gives you ability to even scroll pdf's and webpages smoothly. Nst running android is really cool, you can make it be your Swiss army tool just like with modern android devices, however, its hardware specification is a little outdated. This means it is quite sluggish with its not so impressive 256 mb of ram and 1.0 gh processor. There are other, more powerfull eink devices, running android as default OS. But they are a bit limited with their typical eink display refreshing. Was there any attempt to implement fast refresh in one of the modern eink readers? I believe fastmode has a huge potential, and could get even better and smarter with further development, but from what I know this was only made for nook so far.
[T-Mobile Samsung Galaxy S 4] Android4thewin:
So the device was rooted at one point and then I odinned back to stock and I believe that the device is on 4.4.4 kitkat. It started doing a weird thing where it doesn't turn on correctly, no matter what i do (recovery, normal power on, or download mode) the device turn off after 3ish seconds. The power button seems kind of flakey as the one time I got it to power on the device didn't respond to every press of the power button and always took the press of the power button as a long press and opened the power off menu and or rebooted the device into not working again. Help would be so great and thank you.
[T-Mobile Samsung Galaxy S 4] denverjoe72:
Maybe power button is shorting, or another hard-button is shorting, causing boot to fail. You may wish to get replacement parts.

You said you used odin, so there are other possibilities. You could have broken the firmware/radio, partitions, or other things.

I should say that I have had similar problems with my S4 too. Firmware on this device behaves poorly.
[Android Q&A, Help & Troubleshooting] cigarash:
so a couple days ago i installed custom recovery on my volt and eneded up soft bricking it now its stuck on the logo,i can get to recovery and download mode,i have been searching and have tired many programs to flash a new rom but i cant get it to flash,i have put them on a sd card and used custom recovery after clearing everything and get an md5 or something like that type of error,i have tried adb and lg tools but it seems my phone is not being detected,i have install all the drivers and still not working so i dont know if im doing something wrong or not.if someone can help that would be so great....thanks
[Android Q&A, Help & Troubleshooting] cigarash:
update .. i got past the md5 error and im getting a status 6 error and i know i need to edit the user script file but i dont know what what to edit

edit..i got the phone working
[Verizon LG G3] monkey1vx:
how to check hidden menu ?
[Verizon LG G3] :
That depends if youre stock or not, and which version
[XDA Assist] archeart:
#!/system/bin/sh

# grep sysctl /etc/init.d/*

# Load /sys/etc/sysctl.conf

sysctl -p

I know that will enable the sysctl.conf..

but my question is what permission do I do?