adb shell命令来检查apk是否为debug或release签名? [英] adb shell command to check the apk is debug or release signed?

查看:2032
本文介绍了adb shell命令来检查apk是否为debug或release签名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何检查apk是否为调试或发布签名?

是否有任何直接的adb命令来验证apk签名?



尝试以下操作 dumpsys aapt 命令,但是我找不到确切的标志

  adb shell dumpsys软件包<软件包名称> 
aapt转储标记< apk文件>

如何找出给定的apk是已调试还是已发布?

解决方案

如果要检查是否可以安装该apk(用户,userdebug或eng),我们可以安装此apk?使用以下aapt命令可调试apk。

  aapt dump badging / path / to / apk | grep -c应用程序可调试

输出1:可调试
输出0:不可调试。 / p>

How to check if apk is debug or release signed?
Is there any direct adb command to verify apk signature?

Tried the following dumpsys and aapt commands, but I am not able to find the exact flag

adb shell dumpsys package <package name>
aapt dump badging <apk file>

How to find out the given apk is debug or release signed? How to know which builds (user, userdebug or eng) we can install this apk?

解决方案

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.

这篇关于adb shell命令来检查apk是否为debug或release签名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆