adb
云梦九章
这个作者很懒,什么都没留下…
展开
-
python3:adb 获取设备序列号
import subprocessdef deal_cmd(cmd): pi = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) # print(pi.stdin.read()) return pi.stdout.read()def deal_result(): result = deal_cmd('adb ...原创 2019-07-19 14:44:44 · 33181 阅读 · 0 评论 -
python3: adb 录制屏幕
import subprocessdef deal_cmd(cmd): pi = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) return str(pi.stdout.read())def adb_record_capture(file_name_first, record_time): """ this method is to used record screen :param fil原创 2020-12-23 09:28:09 · 5549 阅读 · 0 评论 -
python3:adb获取截屏,并保存当前目录
import subprocessimport timedef deal_cmd(cmd): pi = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) return pi.stdout.read()print("step1")now = time.strftime("%H-%M-%S")file_name = "screen_" + str(now) + ".png"print(deal_cmd("adb原创 2020-12-02 17:18:32 · 9154 阅读 · 0 评论 -
群控, 云控:进阶路线 一。入门:一对一控制
1.先要有android基本经验知识2.python有过基础的了解开始简单的了解一。配置adb环境,或者安装as后,直接切换adb环境。(我就懒得配置,代码切换。如下)# 切换adb 命令位置adb_path = 'C:\\Users\\haha\\AppData\\Local\\Android\\Sdk\\platform-tools'# print(os.getcw...原创 2019-09-02 09:03:35 · 10524 阅读 · 0 评论