1. 生成Keystore文件

keytool -genkey -v -keystore /Users/shiyantao/Desktop/xxx.keystore -alias aliasName -keyalg RSA -keysize 2048 -validity 10000

 

2. 查看Keystore文件信息 

keytool -exportcert -keystore keystore_path -list -v

 

3. 查看APK签名

keytool -list -printcert -jarfile xxx.apk

 

4. 查看已经安装到设备的apk的详细信息

adb shell dumpsys package packageName

 

5. 通过Scheme打开app

adb shell am start -W -a android.intent.action.VIEW -d "scheme://www.xxx.com?page=1" packageName