adb工具_ daemon started successfully

日志记录

I:\APP测试\drozer>adb connect 127.0.0.1:62001
connected to 127.0.0.1:62001

I:\APP测试\drozer>adb devices
adb server version (36) doesn't match this client (41); killing...
\* daemon started successfully
List of devices attached

I:\APP测试\drozer>adb logcat -s diva-log
--------- beginning of main
--------- beginning of system
--------- beginning of crash
02-14 15:56:33.070  3384  3384 E diva-log: Error while processing transaction with credit card:
02-14 15:56:34.597  3384  3384 E diva-log: Error while processing transaction with credit card:
02-14 15:56:34.702  3384  3384 E diva-log: Error while processing transaction with credit card:
02-14 15:56:57.173  3384  3384 E diva-log: Error while processing transaction with credit card: 12
02-14 15:57:02.947  3384  3384 E diva-log: Error while processing transaction with credit card: 444412
02-14 15:57:03.363  3384  3384 E diva-log: Error while processing transaction with credit card: 444412
02-14 15:57:03.495  3384  3384 E diva-log: Error while processing transaction with credit card: 444412

在这里插入图片描述

进入到shell查看日志

I:\APP测试\drozer>adb shell
d2q:/ # ps | grep diva
u0\_a52    9094  1878  973204 101196            d770ecc0 S jakhar.aseem.diva

I:\APP测试\drozer>adb logcat | findstr 9094
02-14 14:49:11.788  2170  2335 I ActivityManager: Start proc 9094:jakhar.aseem.diva/u0a52 for activity jakhar.aseem.diva/.MainActivity
02-14 15:32:24.433  3790  3852 I Finsky  : [143] pzi.apply(88): SCH: Scheduling system job Id: 9094, L: 14772, D: 15585658, C: false, I: false, N: 1
02-14 15:32:39.212  3790  3790 I Finsky  : [1] qsu.a(3): SCH: job service start with id 9094.
02-14 15:32:39.223  3790 11121 I Finsky  : [399] qji.a(5): SCH: Satisfied jobs for 9094 are: 12-1
02-14 15:32:39.563  3790 12399 I Finsky  : [408] qsq.a(-1): SCH: job service finished with id 9094.
02-14 15:45:22.237  9094  9110 D OpenGLRenderer: endAllActiveAnimators on 0xb6caa900 (RippleDrawable) with handle 0xb624b350
02-14 15:45:56.710  9094  9094 W IInputConnectionWrapper: finishComposingText on inactive InputConnection
02-14 15:45:57.311  9094  9094 E diva-log: Error while processing transaction with credit card: 11
02-14 15:45:57.431  9094  9094 E diva-log: Error while processing transaction with credit card: 11
02-14 15:46:05.313  9094  9094 E diva-log: Error while processing transaction with credit card: 1154245
02-14 15:46:28.580  9094  9094 E diva-log: Error while processing transaction with credit card: 77868866
02-14 15:46:42.661  9094  9094 W IInputConnectionWrapper: finishComposingText on inactive InputConnection
02-14 15:46:43.958  9094  9094 E diva-log: Error while processing transaction with credit card: 123456789

在这里插入图片描述

adb常用命令

1、获取所有包名

adb shell pm list packages

2、清除某个app的缓存

adb shell pm clear packageName

3、安装app

adb install -r apk的路径

4、查看设备

adb devices

5、关闭adb的后台进程

adb kill-server

6、启动adb的后台进程

adb start-server

7、让android脱离usb线的tcp连接⽅式

adb tcpip

8、连接开启了tcp连接⽅式的⼿机

adb connect

9、android⽇志查看

adb logcat

10、收集⽇志数据,⽤于后续的分析,⽐如耗电量

adb bugreport

11、从手机中拉取信息到本地电脑上

adb pull <手机路径> <本机路径>

12、 从本地电脑推送信息到手机上

adb push <本机路径> <手机路径>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值