Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rooted yet Script Gives Error "This Device is not Rooted" #9

Open
rgvxsthi opened this issue Aug 10, 2021 · 10 comments
Open

Rooted yet Script Gives Error "This Device is not Rooted" #9

rgvxsthi opened this issue Aug 10, 2021 · 10 comments

Comments

@rgvxsthi
Copy link

Hi there,

Thanks for the great work on this script! Tried running it on my Redmi K20 Pro running Shapeshift OS 2.7 (Android 11) and rooted with Magisk 23.

Running the script on an EndeavourOS Arch Installation with ffmpeg and ADB correctly installed, yet the script gives an error saying that the devices is not rooted. https://i.imgur.com/NIQHCBL.png

Any help would be appreciated!

@sdushantha
Copy link
Owner

Hey @rgvxsthi!

This seems like a strange issue.

Lets check if you get any errors from adb when you try to start a root adb session and then try to pull the directory containing the snaps:

$ adb root
$ abd pull -a /data/user/0/com.snapchat.android/files/file_manager/chat_snap/

Could you send a screenshot of the outputs of the command above?

@rgvxsthi
Copy link
Author

rgvxsthi commented Aug 10, 2021

Hello @sdushantha

adb root
results in "adbd cannot run as root in production builds"

Though I can access root if I do:
adb shell su

Here's a screenshot of the same: https://i.imgur.com/H5sgONe.png

@sdushantha
Copy link
Owner

It is very strange why its adb root is not working by default for you. Because it does for me.
I found a stackoverflow post that might help you solve the issue: https://stackoverflow.com/questions/25477424/adb-shell-su-works-but-adb-root-does-not

@rgvxsthi
Copy link
Author

Seems like an issue with the build of the ROM. "eng" and "userdebug" versions of the rom have this setting enabled, whereas "prod" have this disabled (I might be wrong!)

I saw some tweaks to enable it via build.prop edits, will try and report back.

@Jenni32222
Copy link

Jenni32222 commented Aug 22, 2021

I got the same issue, adb root does nothing for me. Setting ro.debuggable=1 doesn't have any effect.

However can you make a script to convert the media when it's already on the PC since I can manually access the folder.

@sdushantha
Copy link
Owner

@Jenni32222

However can you make a script to convert the media when it's already on the PC since I can manually access the folder.

You can easily create a script yourself by referring to the code snippet from the script:

https://github.com/sdushantha/snaprecovery/blob/master/snaprecovery.sh#L104-L113

@Jenni32222
Copy link

@Jenni32222

However can you make a script to convert the media when it's already on the PC since I can manually access the folder.

You can easily create a script yourself by referring to the code snippet from the script:

https://github.com/sdushantha/snaprecovery/blob/master/snaprecovery.sh#L104-L113

How do I do that?

@mariansam
Copy link

Hi, I encountered the same This Device is not Rooted problem, when my device was rooted using Magisk. Turns out plain Magisk does not allow adb root. Install this package using Magisk Manager - https://github.com/evdenis/adb_root - and adb root will start working. I still get This Device is not Rooted but because of a different error, adb root is working on my device.

@Jenni32222
Copy link

Jenni32222 commented Aug 22, 2021

Unfortunately I am on Android 11, the package only supports 9 and 10.

I think the best option for me is to have a script which only converts the media since I already have them on my PC, I don't know how to make one myself since I'm not that good

@jamiedarcy06
Copy link

@Jenni32222 any progress on that script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants