Name Description Size
adb_chrome_public_command_line 560
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. 3360
adb_gdb 31051
adb_install_apk.py Utility script to install APKs from the command line quickly. 5424
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. 4989
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. 7578
adb_profile_chrome 332
adb_profile_chrome_startup 349
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. 2615
adb_system_webview_command_line 588
android_only_explicit_jni_exports.lst 323
android_only_jni_exports.lst 291
AndroidManifest.xml 558
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. 73967
apk_operations.pydeps 5762
apply_shared_preference_file.py Manually applies a shared preference JSON file. If needed during automation, use the --shared-prefs-file in test_runner.py instead. 1594
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 ")". 5081
BUILD.gn 5046
bytecode
CheckInstallApk-debug.apk 37106
chromium-debug.keystore 2223
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. 19692
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 9784
dcheck_is_off.flags 381
devil_chromium.json 2926
devil_chromium.py Configures devil for use in chromium. 5366
devil_chromium.pydeps 2442
diff_resource_sizes.py Runs resource_sizes.py on two apks and outputs the diff. 8249
DIR_METADATA 12
docs
download_doclava.py Minimal tool to download doclava from Google storage when building for Android. 931
dump_apk_resource_strings.py A script to parse and dump localized strings in resource.arsc files. 21600
emma_coverage_stats.py Generates incremental code coverage reports for Java code in Chromium. Usage: build/android/emma_coverage_stats.py -v --out <output file path> --emma-dir <EMMA file directory> --lines-for-coverage-file <path to file containing lines for coverage> Creates a JSON representation of the overall and file coverage stats and saves this information to the specified output file. 18071
emma_coverage_stats_test.py Tests for _EmmaHtmlParser. Uses modified EMMA report HTML that contains only the subset of tags needed for test verification. 22471
envsetup.sh 1389
fast_local_dev_server.py Creates an server to offload non-critical-path GN targets. 10582
generate_jacoco_report.py Aggregates Jacoco coverage files to produce output. 9145
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. 894
incremental_install
java
lighttpd_server.py Provides a convenient wrapper for spawning a test lighttpd instance. Usage: lighttpd_server PATH_TO_DOC_ROOT 9684
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. 9698
list_class_verification_failures_test.py Create a rough approximation of a line of oatdump output. 10089
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 7314
main_dex_classes.flags 1710
method_count.py Tracks count of method/field/string/type as well as unique methods. 4107
native_flags
OWNERS 144
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. 5020
provision_devices.py Provisions Android devices with settings required for bots. Usage: ./provision_devices.py [-d <device serial number>] 22360
pylib
pylintrc 465
resource_sizes.gni 3830
resource_sizes.py Reports binary size metrics for an APK. More information at //docs/speed/binary_size/metrics.md. 36275
resource_sizes.pydeps 3294
screenshot.py 352
stacktrace
test
test_runner.py Runs all types of tests from one unified interface. 43943
test_runner.pydeps 11371
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). 9186
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. 4558
video_recorder.py 360