常用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

相关推荐
SH11HF16 小时前
小菜狗的云计算之旅,今天学习MySQL数据库基础知识及操作
adb
@Ryan Ding18 小时前
MySQL主从复制与读写分离概述
android·mysql·adb
feifeigo1231 天前
升级到MySQL 8.4,MySQL启动报错:io_setup() failed with EAGAIN
数据库·mysql·adb
Edingbrugh.南空1 天前
Flink MySQL CDC 环境配置与验证
mysql·adb·flink
陈卓4102 天前
MySQL-主从复制&分库分表
android·mysql·adb
ladymorgana2 天前
【docker】修改 MySQL 密码后 Navicat 仍能用原密码连接
mysql·adb·docker
好奇的菜鸟3 天前
如何在Ubuntu上检查MySQL是否启动并放开3306端口
mysql·ubuntu·adb
OneT1me3 天前
adb shell中执行system用户权限命令的方法
adb
Polaris_YJH3 天前
360安全卫士占用5037端口(ADB端口)解决方案
adb·端口占用·5037
雨之小13 天前
RK3588调试之旅:adbd服务配置全攻略
adb·rk3588