ADB指令
1.查看版本
adb shell getprop|findstr fingerprint
2.查看应用包名
adb shell pm list packages
3.查看系统关键字
adb shell getprop|findstr oem/sn/user...
4.查看进程id
adb shell ps -ef |grep appstore
5.启动服务
adb shell am startservice -n com.android.sdk/.DaemonService //系统服务
adb shell am start-foreground-service -n com.android.daemon/.DaemonService //应用服务
6.通过包名查看应用属性
adb shell
dumpsys package com.android.settings
7.查看事件
adb logcat -b events
8.发送广播
am broadcast -a neostra.android.action.SILENCE_INSTALL -es "apkName" "com.tencent.mobileqq" -es "apkPath" "/sdcard/test.apk"
9.系统签名转jks
openssl pkcs8 -inform DER -nocrypt -in platform.pk8 -out platform.pem
openssl pkcs12 -export -in platform.x509.pem -out platform.p12 -inkey platform.pem -password pass:android -name androiddebugkey
keytool -importkeystore -deststorepass android -destkeystore ./platform.jks -srckeystore ./platform.p12 -srcstoretype PKCS12 -srcstorepass android
10.删除应用
pm uninstall -k --user 0 com.android.gallery3d