首先用解压软件解压出META-INF目录下的CERT.RSA文件
keytool -printcert -file D:\Desktop\CERT.RSA
方法二:
查看keystore的签名
命令:keytool -list -keystore D:\Desktop\app_key
命令执行如图:
方法三:
keytool -list -v -keystore e:\debug.keystore -storepass xxx(密匙)
最后附上adb常用命令:
关闭adb服务 adb kill-server
开启adb服务 adb start-server
启动模拟器:emulator -avd 模拟器名emulator -avd avd
连接模拟器:adb connect ip地址 例:adb connect 172.16.12.254
查看连接设备:adb devices
安装apk: adb install apk路径 例:adb install d:\MyTest.apk
如果安装失败可以尝试使用参数:adb install -r apk路径
卸载apk: adb uninstall 应用包名 例:adb uninstall com.example.mytest
启动activity:
adb shell am start -n 包名/包名+类名
例:
adb shell am start -n com.example.mytest/com.example.mytest.MainActivity
上传文件:
adb push <本地文件><远程路径> 例:adb push d:\3.txt storage/sdcard
下载文件:
adb pull <远程路径><本地路径> 例:adb pull storage/sdcard/3.txt d:\
断开连接:adb disconnect [<host>[:<port>]]
抓取日志:adb logcat
将抓取的日志导入到指定文件:adb logcat >d:\info.txt
输出调试的信息:adb bugreport
方法二:
查看keystore的签名
命令:keytool -list -keystore D:\Desktop\app_key
命令执行如图:
方法三:
keytool -list -v -keystore e:\debug.keystore -storepass xxx(密匙)