资源简介
解决sdk tools运行缺少adb和hprof-conv文件,解压后直接把这两个文件夹复制到android-sdk-windows目录下,重新运行SDK Manager.exe即可。
代码片段和文件信息
#!/usr/bin/env python
# Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import sys
version = sys.version_info[:2]
if version != (2 7):
sys.stderr.write(‘Systrace does not support Python %d.%d. ‘
‘Please use Python 2.7.\n‘ % version)
sys.exit(1)
systrace_dir = os.path.abspath(
os.path.join(os.path.dirname(__file__) ‘catapult‘ ‘systrace‘))
sys.path.insert(0 systrace_dir)
def RemoveAllStalePycFiles(base_dir):
“““Scan directories for old .pyc files without a .py file and delete them.“““
for dirname _ filenames in os.walk(base_dir):
if ‘.git‘ in dirname:
continue
for filename in filenames:
root ext = os.path.splitext(filename)
if ext != ‘.pyc‘:
continue
pyc_path = os.path.join(dirname filename)
py_path = os.path.join(dirname root + ‘.py‘)
try:
if not os.path.exists(py_path):
os.remove(pyc_path)
except OSError:
# Wrap OS calls in try/except in case another process touched this file.
pass
try:
os.removedirs(dirname)
except OSError:
# Wrap OS calls in try/except in case another process touched this dir.
pass
if __name__ == ‘__main__‘:
RemoveAllStalePycFiles(os.path.dirname(__file__))
from systrace import run_systrace
sys.exit(run_systrace.main())
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-10-03 09:18 platform-tools\
文件 1868800 2018-10-03 09:18 platform-tools\adb.exe
文件 97792 2018-10-03 09:18 platform-tools\AdbWinApi.dll
文件 62976 2018-10-03 09:18 platform-tools\AdbWinUsbApi.dll
目录 0 2018-10-03 09:18 platform-tools\api\
文件 75240 2018-10-03 09:18 platform-tools\api\annotations.zip
文件 4062344 2018-10-03 09:18 platform-tools\api\api-versions.xm
文件 152576 2018-10-03 09:18 platform-tools\dmtracedump.exe
文件 326656 2018-10-03 09:18 platform-tools\etc1tool.exe
文件 840704 2018-10-03 09:18 platform-tools\fastboot.exe
文件 41472 2018-10-03 09:18 platform-tools\hprof-conv.exe
目录 0 2018-10-03 09:18 platform-tools\lib64\
文件 1134829 2018-10-03 09:18 platform-tools\lib64\libc++.so
文件 208577 2018-10-03 09:18 platform-tools\libwinpthread-1.dll
文件 319488 2018-10-03 09:18 platform-tools\make_f2fs.exe
文件 1170 2018-10-03 09:18 platform-tools\mke2fs.conf
文件 986112 2018-10-03 09:18 platform-tools\mke2fs.exe
文件 386778 2018-10-03 09:18 platform-tools\NOTICE.txt
文件 16778 2018-10-03 09:18 platform-tools\source.properties
文件 1251840 2018-10-03 09:18 platform-tools\sqlite3.exe
目录 0 2018-10-03 09:18 platform-tools\systrace\
目录 0 2018-10-03 09:18 platform-tools\systrace\catapult\
目录 0 2018-10-03 09:18 platform-tools\systrace\catapult\common\
目录 0 2018-10-03 09:18 platform-tools\systrace\catapult\common\battor\
目录 0 2018-10-03 09:18 platform-tools\systrace\catapult\common\battor\battor\
文件 3344 2018-10-03 09:18 platform-tools\systrace\catapult\common\battor\battor\battor_binary_dependencies.json
文件 241 2018-10-03 09:18 platform-tools\systrace\catapult\common\battor\battor\battor_error.py
文件 16719 2018-10-03 09:18 platform-tools\systrace\catapult\common\battor\battor\battor_wrapper.py
文件 3627 2018-10-03 09:18 platform-tools\systrace\catapult\common\battor\battor\battor_wrapper_devicetest.py
文件 14853 2018-10-03 09:18 platform-tools\systrace\catapult\common\battor\battor\battor_wrapper_unittest.py
文件 1012 2018-10-03 09:18 platform-tools\systrace\catapult\common\battor\battor\__init__.py
............此处省略836个文件信息
相关资源
- abe.jar安卓备份文件unpacker工具
- ANDROID adb 313239
- Android电脑源码通过adb实现实时屏幕演
- connect.apk
- [air adb 1.0.2] android adb管理 tcp adb调
- C#调用adb传输和与android手机通讯
- adb 最新版1.0.40
- adb 1.0.36
- 交叉编译arm Linux环境下的android-tools
- ADBTool,类似PC豌豆荚工具
- 安卓手机通用adb驱动UniversalAdbDriver官
- Java JDBC连接JavaDB数据库
- platform-tools简介常见adb指令 - android入
- 常见adb指令介绍 - android入门视频12
- 企业内部通信系统swing+javaDB
- Android系统的交互工具fb-adb.zip
- android投屏pc及电脑adb控制手机
- MariaDB jdbc driver 1.3.0
- adb.exe+AdbWinApi.dll
- 超级adbd.apk
- javadbf.jar-修复中文乱码-部分生僻字显
- 安卓4.4+ADB
- javadbf.jar修正数据和表头的乱码问题
- adb push 中文文件
- PC与Android设备通过USB建立通信连接
- android adb
- android cmd命令行工具
- axis2-adb-1.4.1.jar,用于解决MTOMAwarexm<
- AdbWinApi.dll
- 解决adb传输中文出现乱码的最新版a
评论
共有 条评论