Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

run-as package: not debuggable

I'm trying to extract the database file from my Android device (non rooted Exynos Galaxy S9 running One UI 2.0) and every time I open up Android Studio 3.6.2 -> Device File Explorer I get the message "run-as package: not debuggable".

This happens to every app I have in the list, not just the one i'm interested in.

Also, this issue persists with adb shell.

Can anyone help? (sorry if this has incomplete information or was posted in the wrong section)

like image 535
A j Avatar asked Apr 11 '20 19:04

A j


People also ask

How do I debug an APK file?

To start debugging an APK, click Profile or debug APK from the Android Studio Welcome screen. Or, if you already have a project open, click File > Profile or Debug APK from the menu bar. In the next dialog window, select the APK you want to import into Android Studio and click OK.

How do I set Debuggable to true?

Show activity on this post. By putting android:debuggable="true" in your manifest file, application will go in debug mode, that means android will manage all logs file regarding your application. But make sure put it again false (or remove this tag) if application will going to live or for release mode.


1 Answers

If application is not debuggable then try with this add command once,

adb backup -noapk <give your package name>

it uses android's backup function. if it ask for a password then don't give any and click on "backup data". then you will get a whole apps backup on your system. unzip it and check for your db. I am not sure if this will work if there is allowBackup=false in your manifest.

Try this command once.

like image 170
Prashant.J Avatar answered Oct 07 '22 19:10

Prashant.J