ubuntu系统: adb shell dumpsys activity activities | sed -En -e '/Running activities/,/Run #0/p' window系统: 方法一: adb shell 进入,然后执行: dumpsys activity activ ...
分类:
移动开发 时间:
2019-07-19 14:03:44
阅读次数:
352
adb shell dumpsys package packages > packageAll.txt ORadb shell pm dump packages > packageAll.txt 然后搜索关键字“installerPackageName” 即可看到被谁安装的,该dump信息也会在bu ...
分类:
移动开发 时间:
2019-07-16 10:46:03
阅读次数:
197
1、修改系统时间 获取root权限:adb shell su cat /data/property/persist.sys.timezone //查看当前时区配置文件setprop persist.sys.timezone GMT //修改属性 date -s "yyyymmdd.hhmmss"da ...
分类:
数据库 时间:
2019-07-09 17:57:53
阅读次数:
147
import subprocess from time import sleep package = 'com.wangpos.by.cashier3' memory_name = 'adb shell dumpsys meminfo {} | findstr "Pss"'.format(packa... ...
分类:
编程语言 时间:
2019-07-05 00:22:04
阅读次数:
236
通过adb 设置、删除、获取 系统配置值。 Key定义在:frameworks\base\core\java\android\provider\Settings.java adb shell settings get global/system/secure keyadb shell setting ...
分类:
数据库 时间:
2019-06-21 11:15:00
阅读次数:
371
n = 1while n < 6: cmd = 'adb shell am start -W -n com.sf.DarkCalculator/.MainActivity' content = os.popen(cmd) print('启动成功') for line in content.readl ...
分类:
数据库 时间:
2019-06-17 12:50:54
阅读次数:
208
个人主要用2个方法。 方法1:pm list package 方法2: windows:adb shell logcat | findstr START; linux: adb shell logcat | grep START 然后再测试设备上打开要测试的app。 ...
分类:
移动开发 时间:
2019-06-16 16:07:18
阅读次数:
115
1)打开CMD,输入adb shell getevent >e:/test.txt //该命令用来获取按键对应的event事件 2)手动点击Power键,按ctlr+C键,退出 3)打开test.txt文件,在里面查找event,我抓取到的结果如下: 4)获取到event之后,我们就可以使用send ...
分类:
数据库 时间:
2019-06-14 12:33:09
阅读次数:
544
启动时间 冷启动:adb shell am start -W -n package/activity停止app命令:adb shell am force-stop package获取启动包名:adb logcat|grep START com.android.browser/.BrowserActi ...
分类:
移动开发 时间:
2019-06-09 23:47:58
阅读次数:
152
import osimport time as tadb = 'adb shell input tap 400 500'os.system(adb)t.sleep(5)class keyevent(): """常用的keyevent事件""" KEYCODE_HOME = 3 #home键 KEYC ...
分类:
移动开发 时间:
2019-06-08 16:26:15
阅读次数:
173