26
submitted 5 months ago by jackpot@lemmy.ml to c/asklemmy@lemmy.ml

hi all, accidentally deleted some audio files i need an hour ago. any way to get them back?

top 8 comments
sorted by: hot top controversial new old
[-] thebardingreen@lemmy.starlightkel.xyz 12 points 5 months ago* (last edited 5 months ago)

Can you mount the internal storage to a Linux machine, dd it to a .img file and try the usual data recovery tricks?

https://andreafortuna.org/2018/12/03/android-forensics-imaging-android-file-system-using-adb-and-dd/

EDIT: Apparently, you don't need dd. adb pull can do it.

adb pull /dev/block/mmcblk0 mmcblk0.img

[-] brokenlcd@feddit.it 10 points 5 months ago

That only works if the phone doesnt have disk encryption turned on since at the low level recovery tools work at an encrypted disk basically looks like gibberish; and since most phones nowdays have that option enabled by factory; i don't think it will give any results

[-] jackpot@lemmy.ml 4 points 5 months ago
[-] brokenlcd@feddit.it 6 points 5 months ago* (last edited 5 months ago)

From what i understood on graphene there is file based encryption instead of block based (whole partition is encrypted) to allow each user profile to have different keys; this is how it's written on the site

(If i misunderstood what you where trying to tell me; i'm sorry, english isn't my first language and i wasnt able to understand if you meant to say it as a specification or as a "oh, you use graphene as well")

[-] Zak@lemmy.world 5 points 5 months ago

First of all, I hope you have root. File recovery requires direct access to storage, and that's not possible without root. Unlocking the bootloader to gain root erases encryption keys, which will make previously deleted files unrecoverable.

I'm a little surprised a quick web search doesn't find an Android port of PhotoRec.

I just tested DiskDigger on a device running LineageOS 20 (Android 13), and it did not find any recoverable files with a full storage scan even though I deleted several jpegs immediately before running it. The non-root deleted photos scan did find some images, but that won't help you with audio files.

[-] jackpot@lemmy.ml 3 points 5 months ago
[-] Zak@lemmy.world 3 points 5 months ago

It is not, and it's also unlikely to work based on my recent test.

[-] jackpot@lemmy.ml 3 points 5 months ago

qait how do i use photorec on android

this post was submitted on 12 Feb 2024
26 points (93.3% liked)

Asklemmy

42723 readers
1920 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS