adb shell command to check the apk is debug or release signed?

若如初见. 提交于 2019-12-01 19:55:04
Rohith Krishnan

If you want to check whether the apk is debuggable use the below aapt command.

aapt dump badging /path/to/apk | grep -c application-debuggable

Outputs 1: Debuggable Outputs 0: Not Debuggable.

i've tried a lot of stuff and came upon the following solution:

adb shell dumpsys package <package name> | findstr flags

if the build is debuggable, the "flags" line will have "DEBUGGABLE" parameter present. If it's not there, the build is not debug

You seem to be confused. Apks usually have debug and release versions. And eng, userdebug and user build types are used for the whole firmware images.

You can find build information (if properly populated by builder) by using

adb shell getprop ro.build.fingerprint
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!