常用ADB指令

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

相关推荐
洋不写bug15 小时前
数据库的创建,查看,修改,删除,字符集编码和校验操作
android·数据库·adb
disanleya21 小时前
MySQL默认端口为何是3306?修改后如何管理?
数据库·mysql·adb
笨蛋少年派1 天前
Ubantu安装MySQL8.0
adb
独行soc1 天前
2025年渗透测试面试题总结-106(题目+回答)
网络·python·安全·web安全·adb·渗透测试·安全狮
撩得Android一次心动1 天前
Android adb 基础使用指南
android·adb
xiyangyang81102 天前
ubantu的adb命令(首次安装adb)
adb
此生只爱蛋2 天前
mysql_store_result
android·adb
川石课堂软件测试2 天前
全链路Controller压测负载均衡
android·运维·开发语言·python·mysql·adb·负载均衡
独行soc3 天前
2025年渗透测试面试题总结-105(题目+回答)
网络·python·安全·web安全·adb·渗透测试·安全狮
九皇叔叔3 天前
Docker 镜像维护指南:从配置优化到 MySQL 实战运行
mysql·adb·docker