• 大小: 4.47MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-18
  • 语言: Java
  • 标签: platform-too  android  9  

资源简介

android 9的platform-tools, 包含下面这些工具adb.exe fastboot.exe etc1tool.exe make_f2fs.exe sqlite3.exe hprof-conv.exe mke2fs.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-11-26 11:08  platform-tools-28\
     文件     1850368  2018-05-22 20:05  platform-tools-28\adb.exe
     文件       97792  2018-05-22 20:05  platform-tools-28\AdbWinApi.dll
     文件       62976  2018-05-22 20:05  platform-tools-28\AdbWinUsbApi.dll
     目录           0  2018-11-26 11:07  platform-tools-28\api\
     文件      140715  2018-05-22 20:05  platform-tools-28\api\annotations.zip
     文件     3890074  2018-05-22 20:05  platform-tools-28\api\api-versions.xml
     文件      145920  2018-05-22 20:05  platform-tools-28\dmtracedump.exe
     文件      333824  2018-05-22 20:05  platform-tools-28\etc1tool.exe
     文件      857088  2018-05-22 20:05  platform-tools-28\fastboot.exe
     文件       43008  2018-05-22 20:05  platform-tools-28\hprof-conv.exe
     目录           0  2018-11-26 11:07  platform-tools-28\lib64\
     文件     1173065  2018-05-22 20:05  platform-tools-28\lib64\libc++.so
     文件      210625  2018-05-22 20:05  platform-tools-28\libwinpthread-1.dll
     文件      346112  2018-05-22 20:05  platform-tools-28\make_f2fs.exe
     文件        1178  2018-05-22 20:05  platform-tools-28\mke2fs.conf
     文件     1041920  2018-05-22 20:05  platform-tools-28\mke2fs.exe
     文件      335729  2018-05-22 20:05  platform-tools-28\NOTICE.txt
     文件          38  2018-05-22 20:05  platform-tools-28\source.properties
     文件      829440  2018-05-22 20:05  platform-tools-28\sqlite3.exe
     目录           0  2018-11-26 11:07  platform-tools-28\systrace\
     目录           0  2018-11-26 11:07  platform-tools-28\systrace\catapult\
     目录           0  2018-11-26 11:07  platform-tools-28\systrace\catapult\common\
     目录           0  2018-11-26 11:07  platform-tools-28\systrace\catapult\common\battor\
     目录           0  2018-11-26 11:07  platform-tools-28\systrace\catapult\common\battor\battor\
     文件        3872  2018-05-22 20:05  platform-tools-28\systrace\catapult\common\battor\battor\battor_binary_dependencies.json
     文件         241  2018-05-22 20:05  platform-tools-28\systrace\catapult\common\battor\battor\battor_error.py
     文件       16186  2018-05-22 20:05  platform-tools-28\systrace\catapult\common\battor\battor\battor_wrapper.py
     文件        3759  2018-05-22 20:05  platform-tools-28\systrace\catapult\common\battor\battor\battor_wrapper_devicetest.py
     文件       14003  2018-05-22 20:05  platform-tools-28\systrace\catapult\common\battor\battor\battor_wrapper_unittest.py
     文件        1012  2018-05-22 20:05  platform-tools-28\systrace\catapult\common\battor\battor\__init__.py
............此处省略388个文件信息

评论

共有 条评论