Name Description Size Coverage
adb_chrome_public_command_line 538 -
adb_command_line.py %(prog)s --name FILENAME [--device SERIAL] [flags...] No flags: Prints existing command-line file. Empty string: Deletes command-line file. Otherwise: Writes command-line file. 3354 -
adb_gdb 29016 -
adb_install_apk.py Utility script to install APKs from the command line quickly. 5398 -
adb_logcat_monitor.py Saves logcats from all connected devices. Usage: adb_logcat_monitor.py <base_dir> [<adb_binary_path>] This script will repeatedly poll adb for new devices and save logcats inside the <base_dir> directory, which it attempts to create. The script will run until killed by an external signal. To test, run the script in a shell and <Ctrl>-C it after a while. It should be resilient across phone disconnects and reconnects and start the logcat early enough to not miss anything. 5035 -
adb_logcat_printer.py Shutdown adb_logcat_monitor and print accumulated logs. To test, call './adb_logcat_printer.py <base_dir>' where <base_dir> contains 'adb logcat -v threadtime' files named as logcat_<deviceID>_<sequenceNum> The script will print the files to out, and will combine multiple logcats from a single device if there is overlap. Additionally, if a <base_dir>/LOGCAT_MONITOR_PID exists, the script will attempt to terminate the contained PID by sending a SIGINT and monitoring for the deletion of the aforementioned file. 7444 -
adb_profile_chrome 310 -
adb_profile_chrome_startup 327 -
adb_reverse_forwarder.py Command line tool for forwarding ports from a device to the host. Allows an Android device to connect to services running on the host machine, i.e., "adb forward" in reverse. Requires |host_forwarder| and |device_forwarder| to be built. 2589 -
adb_system_webengine_command_line 567 -
adb_system_webview_command_line 562 -
android_only_explicit_jni_exports.lst 301 -
android_only_jni_exports.lst 269 -
AndroidManifest.xml 366 -
apk_operations.py Generate an .apks archive from a bundle on demand. Args: info: A BundleGenerationInfo instance. output_path: Path of output .apks archive. minimal: Create the minimal set of apks possible (english-only). minimal_sdk_version: When minimal=True, use this sdkVersion. mode: Build mode, either None, or one of app_bundle_utils.BUILD_APKS_MODES. optimize_for: Override split config, either None, or one of app_bundle_utils.OPTIMIZE_FOR_OPTIONS. 92724 -
apk_operations.pydeps 5727 -
asan_symbolize.py (?P<prefix>.*?) (?P<pos>\#\S*?) # position of the call in stack. # escape the char "#" due to the VERBOSE flag. \s+(\S*?)\s+ \( # match the char "(". (?P<lib>.*?) # library path. \+0[xX](?P<addr>.*?) # address of the symbol in hex. # the prefix "0x" is skipped. \) # match the char ")". 5167 -
BUILD.gn 9845 -
bytecode -
CheckInstallApk-debug.apk 37106 -
chromium-debug.keystore 2223 -
chromium_annotations.flags 2925 -
COMMON_METADATA 12 -
connect_lldb.sh 25542 -
convert_dex_profile.py Searches through dex class for a method given a name and line numbers The dex maps methods to line numbers, this method, given the a method name in this class as well as a start line and an optional end line (which act as hints as to which function in the class is being looked for), returns a list of possible matches (or none if none are found). Args: method_name: name of method being searched for line_start: start of hint range for lines in this method line_end: end of hint range for lines in this method (optional) Returns: A list of Method objects that could match the hints given, or None if no method is found. 19618 -
convert_dex_profile_tests.py Tests for convert_dex_profile. Can be run from build/android/: $ cd build/android $ python convert_dex_profile_tests.py 9762 -
dcheck_is_off.flags 837 -
devil_chromium.json 2132 -
devil_chromium.py Configures devil for use in chromium. 5671 -
devil_chromium.pydeps 2442 -
diff_resource_sizes.py Runs resource_sizes.py on two apks and outputs the diff. 8089 -
DIR_METADATA 51 -
docs -
dump_apk_resource_strings.py A script to parse and dump localized strings in resource.arsc files. 21551 -
envsetup.sh 1363 -
fast_local_dev_server.py Creates an server to offload non-critical-path GN targets. 37130 -
fast_local_dev_server_test.py 9541 -
generate_jacoco_report.py Aggregates Jacoco coverage files to produce output. 9093 -
generate_vscode_project.py Given a .build_config.json file, generates an Eclipse JDT project that can be used with the "Language Support for Java™ by Red Hat" Visual Studio Code extension. See //docs/vscode.md for details. 7688 -
generate_wrap_sh.py \ #!/system/bin/sh # https://developer.android.com/ndk/guides/hwasan#wrapsh # import options file _HWASAN_OPTIONS=$(cat /data/local/tmp/hwasan.options 2> /dev/null || true) log -t cr_wrap.sh -- "Launching with HWASAN enabled." log -t cr_wrap.sh -- "HWASAN_OPTIONS=$_HWASAN_OPTIONS" log -t cr_wrap.sh -- "LD_HWASAN=1" log -t cr_wrap.sh -- "Command: $0 $@" export HWASAN_OPTIONS=$_HWASAN_OPTIONS export LD_HWASAN=1 exec "$@" 1903 -
gradle -
gtest_apk -
gyp -
host_heartbeat.py Sends a heart beat pulse to the currently online Android devices. This heart beat lets the devices know that they are connected to a host. 868 -
incremental_install -
java -
junit -
list_class_verification_failures.py A helper script to list class verification errors. This is a wrapper around the device's oatdump executable, parsing desired output and accommodating API-level-specific details, such as file paths. 9569 -
list_class_verification_failures_test.py Create a rough approximation of a line of oatdump output. 9533 -
list_java_targets.py Prints out available java targets. Examples: # List GN target for bundles: build/android/list_java_targets.py -C out/Default --type android_app_bundle \ --gn-labels # List all android targets with types: build/android/list_java_targets.py -C out/Default --print-types # Build all apk targets: build/android/list_java_targets.py -C out/Default --type android_apk | xargs \ autoninja -C out/Default # Show how many of each target type exist: build/android/list_java_targets.py -C out/Default --stats 9730 -
method_count.py Tracks count of method/field/string/type as well as unique methods. 4039 -
native_flags -
OWNERS 267 -
PRESUBMIT.py Presubmit script for android buildbot. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for details on the presubmit API built into depot_tools. 5546 -
provision_devices.py Provisions Android devices with settings required for bots. Usage: ./provision_devices.py [-d <device serial number>] 22301 -
pylib -
pylintrc 468 -
resource_sizes.gni 3663 -
resource_sizes.py Reports binary size metrics for an APK. More information at //docs/speed/binary_size/metrics.md. 37862 -
resource_sizes.pydeps 3431 -
screenshot.py 330 -
stacktrace -
test -
test_runner.py Runs all types of tests from one unified interface. 58588 -
test_runner.pydeps 11818 -
test_runner_test.py 3435 -
test_wrapper -
tests -
tombstones.py List the tombstone files on the device. Args: device: An instance of DeviceUtils. Yields: Tuples of (tombstone filename, date time of file on device). 9164 -
unused_resources -
update_deps -
update_verification.py Runs semi-automated update testing on a non-rooted device. This script will help verify that app data is preserved during an update. To use this script first run it with the create_app_data option. ./update_verification.py create_app_data --old-apk <path> --app-data <path> The script will then install the old apk, prompt you to create some app data (bookmarks, etc.), and then save the app data in the path you gave it. Next, once you have some app data saved, run this script with the test_update option. ./update_verification.py test_update --old-apk <path> --new-apk <path> --app-data <path> This will install the old apk, load the saved app data, install the new apk, and ask the user to verify that all of the app data was preserved. 4426 -
video_recorder.py 338 -