TransWikia.com

Attempting file recovery (deleted photos) on Note 4 via accessing /data/userdata; rooted phone, patched adbd, but now USB debugging won't work

Android Enthusiasts Asked by An_Asymptote on January 22, 2021

I made a post about this yesterday, and I managed to make a lot of progress today, but I’m stuck again, and I am trying to decide what to do. I am not really experienced with coding, but I happen to be very good at teaching myself how to do something when needed and also very bad at giving up.

Below is a summary of my progress thus far:

INITIAL PLAN

  1. Install Android SDK, drivers to PC (Win7, 64 bit)

  2. Root phone (used CF-Auto-Root)

  3. Patch adbd to allow root permissions (installed adbd insecure and SuperSU)

  4. Access /data/userdata

  5. Get image of /userdata, attempt to find files

I am stuck at step 3. I have adbd insecure and SuperSU, but using either of these causes USB debugging to be disabled. Regardless of how I toggle things, I lose my connection to my PC and cannot enable USB debugging.

Some research uncovered that there’s something called SELinux that is preventing me from enabling USB debugging while adbd insecure is enabled (patched adbd). There are posts in the adbd insecure thread on the XDA forums from other people (check the last page) describing a similar problem:

https://forum.xda-developers.com/showthread.php?t=1687590

And one post at the end explaining that they fixed it with an app called SELinux Switch:

https://forum.xda-developers.com/showpost.php?p=79689054&postcount=267

SELinux Switch would allow me to turn off the protection preventing adbd insecure from working. Can I get some feedback about this? I’m not enjoying this stuff, and I really need to get back to other endeavors, so it’d be a one-time use, and then I will probably uninstall it from my phone because I won’t need it.

ALTERNATIVE PLANS

I also have two alternative "paths" I could take to attempt to recover the deleted photos. I’d rather not do that right now, because I don’t think I have time, and because I am trying to avoid anything that would overwrite the deleted photos, but they exist nonetheless:

Alternative 1: Droidexplorer and busybox

I already have droidexplorer installed on my PC and my phone is rooted, so I guess I could install busybox and see if droidexplorer can recover the deleted photos.

Alternative 2: Magisk with/without busybox

I would rather not do this, because it sounds like it would take the most time and more monkeying around with internal storage, but apparently adbd insecure isn’t an active project anymore and most people use magisk for rooting, etc. This is an alternative, but it’s the least attractive option.

What do people think? For now I am going to try the SELinux switch, since it seems the simplest way. If people could please try to avoid using too much jargon and explain commands, etc. it would really help out; that way I wouldn’t need to look up unfamiliar terms first.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP