Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I detect whether an Android APK has debuggable set to true or false in its manifest without installing it?

As the title says, I'd like to be able to find whether an APK has debuggable set to true or false on a computer without having to install it on the device, run it and see whether it shows up in DDMS or not.

like image 399
kabuko Avatar asked Nov 17 '11 01:11

kabuko


People also ask

What is android Debuggable true?

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.

What is app debug apk?

The unaligned apk is just an intermediate apk. First, the unaligned apk is generated. Then, the unaligned apk gets aligned and produces the aligned apk which is the app-debug.


1 Answers

For window user can use following command:

aapt l -a <apk with path> | findstr debuggable

will return either:

A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
-> this means debuggable is true.

or

A: android:debuggable(0x0101000f)=(type 0x12)0x0
-> this means debuggable is false.
like image 89
BSavaliya Avatar answered Oct 21 '22 00:10

BSavaliya