Right now we generate scripts that run tests, and scripts for installing incremental apks, and I think they have been quite nice to work with! Here's an idea for generating wrapper scripts for android_apk targets:
chrome_public_apk would generate out/Debug/bin/chrome_public_apk.
Here's what it can do:
out/Debug/bin/chrome_public_apk
* Shows help message
out/Debug/bin/chrome_public_apk install
* Installs on one or more devices.
* If multiple devices attached, show error with list of devices (like install_chrome_public_apk_incremental does)
* But allow --all to install to all devices.
out/Debug/bin/chrome_public_apk launch <url> [--args=]
* Does not trigger an install
* When --args is omitted, clears any existing command-line args file on the device(s)
* When --args is present, sets command-line args
* Runs on one or more devices (same as build/android/adb_run_chrome_public)
* If multiple devices attached, show error with list of devices (like install_chrome_public_apk_incremental does)
* But allow --all to install to all devices.
out/Debug/bin/chrome_public_apk run <url> [--args=]
* Installs and then launches
out/Debug/bin/chrome_public_apk stop
* Stops / kills chrome on all devices (or just those from -d flag)
out/Debug/bin/chrome_public_apk argv
* Prints current command-line flags
* Same as //build/android/adb_chrome_public_command_line
* Although launch sets this, it's still useful when starting chrome with your finger (you know, by actually touching the device)
out/Debug/bin/chrome_public_apk argv ""
* Clears command-line flags
out/Debug/bin/chrome_public_apk argv --a --b
* Sets command-line flags
out/Debug/bin/chrome_public_apk gdb
* Calls //build/android/adb_gdb with correct flags
out/Debug/bin/chrome_public_apk logcat
* Runs logcat with filter that shows only processes matching the package ID
* Requires --device if multiple devices are present.
The device location of the command-line-flags file would need to be set on GN targets. If no command_line_flags_file is set for a target, then have any attempts to set flags fail the scripts with "Target does not support setting command-line flags.")
The packageId and launch activity should be retrievable from the .apk (or AndroidManifest.xml).
Right now we generate scripts that run tests, and scripts for installing incremental apks, and I think they have been quite nice to work with! Here's an idea for generating wrapper scripts for android_apk targets:
ninja chrome_public_apk would generate out/Debug/bin/chrome_public_apk.
Here's what it can do:
out/Debug/bin/chrome_public_apk
* Shows help message
out/Debug/bin/chrome_public_apk install
* Installs on one or more devices.
* If multiple devices attached, show error with list of devices (like install_chrome_public_apk_incremental does)
* But allow --all to install to all devices.
out/Debug/bin/chrome_public_apk launch <url> [--args=]
* Does not trigger an install
* When --args is omitted, clears any existing command-line args file on the device(s)
* When --args is present, sets command-line args
* Runs on one or more devices (same as build/android/adb_run_chrome_public)
* If multiple devices attached, show error with list of devices (like install_chrome_public_apk_incremental does)
* But allow --all to install to all devices.
out/Debug/bin/chrome_public_apk run <url> [--args=]
* Installs and then launches
out/Debug/bin/chrome_public_apk stop
* Stops / kills chrome on all devices (or just those from -d flag)
out/Debug/bin/chrome_public_apk argv
* Prints current command-line flags
* Same as //build/android/adb_chrome_public_command_line
* Although launch sets this, it's still useful when starting chrome with your finger (you know, by actually touching the device)
out/Debug/bin/chrome_public_apk argv ""
* Clears command-line flags
out/Debug/bin/chrome_public_apk argv --a --b
* Sets command-line flags
out/Debug/bin/chrome_public_apk gdb
* Calls //build/android/adb_gdb with correct flags
out/Debug/bin/chrome_public_apk logcat
* Runs logcat with filter that shows only processes matching the package ID
* Requires --device if multiple devices are present.
The device location of the command-line-flags file would need to be set on GN targets. If no command_line_flags_file is set for a target, then have any attempts to set flags fail the scripts with "Target does not support setting command-line flags.")
The packageId and launch activity should be retrievable from the .apk (or AndroidManifest.xml).
Right now we generate scripts that run tests, and scripts for installing incremental apks, and I think they have been quite nice to work with! Here's an idea for generating wrapper scripts for android_apk targets:
ninja chrome_public_apk would generate out/Debug/bin/chrome_public_apk.
Here's what it can do:
Use --incremental flag to force selecting an incremental apk. Otherwise, select the one which was changed more recently.
out/Debug/bin/chrome_public_apk
* Shows help message
out/Debug/bin/chrome_public_apk install
* Installs on one or more devices.
* If multiple devices attached, show error with list of devices (like install_chrome_public_apk_incremental does)
* But allow --all to install to all devices.
out/Debug/bin/chrome_public_apk launch <url> [--args="--a --b"]
* Does not trigger an install
* When --args is omitted, clears any existing command-line args file on the device(s)
* When --args is present, sets command-line args
* Runs on one or more devices (same as build/android/adb_run_chrome_public)
* If multiple devices attached, show error with list of devices (like install_chrome_public_apk_incremental does)
* But allow --all to install to all devices.
out/Debug/bin/chrome_public_apk run <url> [--args=]
* Installs and then launches
out/Debug/bin/chrome_public_apk stop
* Stops / kills chrome on all devices (or just those from -d flag)
out/Debug/bin/chrome_public_apk argv
* Prints current command-line flags
* Same as //build/android/adb_chrome_public_command_line
* Although launch sets this, it's still useful when starting chrome with your finger (you know, by actually touching the device)
out/Debug/bin/chrome_public_apk argv --args=""
* Clears command-line flags
out/Debug/bin/chrome_public_apk argv --args="a --b"
* Sets command-line flags
out/Debug/bin/chrome_public_apk gdb
* Calls //build/android/adb_gdb with correct flags
out/Debug/bin/chrome_public_apk logcat
* Runs logcat with filter that shows only processes matching the package ID
* Requires --device if multiple devices are present.
The device location of the command-line-flags file would need to be set on GN targets. If no command_line_flags_file is set for a target, then have any attempts to set flags fail the scripts with "Target does not support setting command-line flags.")
The packageId and launch activity should be retrievable from the .apk (or AndroidManifest.xml).
Right now we generate scripts that run tests, and scripts for installing incremental apks, and I think they have been quite nice to work with! Here's an idea for generating wrapper scripts for android_apk targets:
ninja chrome_public_apk would generate out/Debug/bin/chrome_public_apk.
Here's what it can do:
Use --incremental flag to force selecting an incremental apk. Otherwise, select the one which was changed more recently.
out/Debug/bin/chrome_public_apk
* Shows help message
out/Debug/bin/chrome_public_apk install
* Installs on one or more devices.
* If multiple devices attached, show error with list of devices (like install_chrome_public_apk_incremental does)
* But allow --all to install to all devices.
out/Debug/bin/chrome_public_apk launch <url> [--args="--a --b"]
* Does not trigger an install
* When --args is omitted, clears any existing command-line args file on the device(s)
* When --args is present, sets command-line args
* Runs on one or more devices (same as build/android/adb_run_chrome_public)
* If multiple devices attached, show error with list of devices (like install_chrome_public_apk_incremental does)
* But allow --all to install to all devices.
out/Debug/bin/chrome_public_apk run <url> [--args=]
* Installs and then launches
out/Debug/bin/chrome_public_apk stop
* Stops / kills chrome on all devices (or just those from -d flag)
out/Debug/bin/chrome_public_apk argv
* Prints current command-line flags
* Same as //build/android/adb_chrome_public_command_line
* Although launch sets this, it's still useful when starting chrome with your finger (you know, by actually touching the device)
out/Debug/bin/chrome_public_apk argv --args=""
* Clears command-line flags
out/Debug/bin/chrome_public_apk argv --args="--a --b"
* Sets command-line flags
out/Debug/bin/chrome_public_apk gdb --args=="--a --b"
* Calls //build/android/adb_gdb with correct flags
* Requires --device if multiple devices are present.
out/Debug/bin/chrome_public_apk logcat
* Runs logcat with filter that shows only processes matching the package ID
* Requires --device if multiple devices are present.
The device location of the command-line-flags file would need to be set on GN targets. If no command_line_flags_file is set for a target, then have any attempts to set flags fail the scripts with "Target does not support setting command-line flags.")
The packageId and launch activity should be retrievable from the .apk (or AndroidManifest.xml).
Right now we generate scripts that run tests, and scripts for installing incremental apks, and I think they have been quite nice to work with! Here's an idea for generating wrapper scripts for android_apk targets:
ninja chrome_public_apk would generate out/Debug/bin/chrome_public_apk.
Here's what it can do:
Use --incremental flag to force selecting an incremental apk. Otherwise, select the one which was changed more recently.
out/Debug/bin/chrome_public_apk
* Shows help message
out/Debug/bin/chrome_public_apk install
* Installs on one or more devices.
* If multiple devices attached, show error with list of devices (like install_chrome_public_apk_incremental does)
* But allow --all to install to all devices.
out/Debug/bin/chrome_public_apk launch <url> [--args="--a --b"]
* Does not trigger an install
* When --args is omitted, clears any existing command-line args file on the device(s)
* When --args is present, sets command-line args
* Runs on one or more devices (same as build/android/adb_run_chrome_public)
* If multiple devices attached, show error with list of devices (like install_chrome_public_apk_incremental does)
* But allow --all to install to all devices.
out/Debug/bin/chrome_public_apk run <url> [--args=]
* Installs and then launches
out/Debug/bin/chrome_public_apk stop
* Stops / kills chrome on all devices (or just those from -d flag)
out/Debug/bin/chrome_public_apk argv
* Prints current command-line flags
* Same as //build/android/adb_chrome_public_command_line
* Although launch sets this, it's still useful when starting chrome with your finger (you know, by actually touching the device)
out/Debug/bin/chrome_public_apk argv --args=""
* Clears command-line flags
out/Debug/bin/chrome_public_apk argv --args="--a --b"
* Sets command-line flags
out/Debug/bin/chrome_public_apk gdb --args="--a --b"
* Calls //build/android/adb_gdb with correct flags
* Requires --device if multiple devices are present.
out/Debug/bin/chrome_public_apk logcat
* Runs logcat with filter that shows only processes matching the package ID
* Requires --device if multiple devices are present.
The device location of the command-line-flags file would need to be set on GN targets. If no command_line_flags_file is set for a target, then have any attempts to set flags fail the scripts with "Target does not support setting command-line flags.")
The packageId and launch activity should be retrievable from the .apk (or AndroidManifest.xml).
Right now we generate scripts that run tests, and scripts for installing incremental apks, and I think they have been quite nice to work with! Here's an idea for generating wrapper scripts for android_apk targets:
ninja chrome_public_apk would generate out/Debug/bin/chrome_public_apk.
Here's what it can do:
Use --incremental flag to force selecting an incremental apk. Otherwise, select the one which was changed more recently.
out/Debug/bin/chrome_public_apk
* Shows help message
out/Debug/bin/chrome_public_apk install
* Installs on one or more devices.
* If multiple devices attached, show error with list of devices (like install_chrome_public_apk_incremental does)
* But allow --all to install to all devices.
out/Debug/bin/chrome_public_apk launch <url> [--args="--a --b"]
* Does not trigger an install
* When --args is omitted, clears any existing command-line args file on the device(s)
* When --args is present, sets command-line args
* Runs on one or more devices (same as build/android/adb_run_chrome_public)
* If multiple devices attached, show error with list of devices (like install_chrome_public_apk_incremental does)
* But allow --all to install to all devices.
out/Debug/bin/chrome_public_apk run <url> [--args=]
* Installs and then launches
out/Debug/bin/chrome_public_apk stop
* Stops / kills chrome on all devices (or just those from -d flag)
out/Debug/bin/chrome_public_apk clear-data
* Clear states of the apk package.
out/Debug/bin/chrome_public_apk argv
* Prints current command-line flags
* Same as //build/android/adb_chrome_public_command_line
* Although launch sets this, it's still useful when starting chrome with your finger (you know, by actually touching the device)
out/Debug/bin/chrome_public_apk argv --args=""
* Clears command-line flags
out/Debug/bin/chrome_public_apk argv --args="--a --b"
* Sets command-line flags
out/Debug/bin/chrome_public_apk gdb --args="--a --b"
* Calls //build/android/adb_gdb with correct flags
* Requires --device if multiple devices are present.
out/Debug/bin/chrome_public_apk logcat
* Runs logcat with filter that shows only processes matching the package ID ?
* Requires --device if multiple devices are present.
The device location of the command-line-flags file would need to be set on GN targets. If no command_line_flags_file is set for a target, then have any attempts to set flags fail the scripts with "Target does not support setting command-line flags.")
The packageId and launch activity should be retrievable from the .apk (or AndroidManifest.xml).
Right now we generate scripts that run tests, and scripts for installing incremental apks, and I think they have been quite nice to work with! Here's an idea for generating wrapper scripts for android_apk targets:
ninja chrome_public_apk would generate out/Debug/bin/chrome_public_apk.
Here's what it can do:
Use --incremental flag to force selecting an incremental apk. Otherwise, select the one which was changed more recently.
out/Debug/bin/chrome_public_apk
* Shows help message
out/Debug/bin/chrome_public_apk install
* Installs on one or more devices.
* If both incremental and non-incremental apks exist, use --incremental or --non-incremental to select one.
* If multiple devices attached, show error with list of devices (like install_chrome_public_apk_incremental does)
* But allow --all to install to all devices.
out/Debug/bin/chrome_public_apk launch <url> [--args="--a --b"]
* Does not trigger an install
* When --args is omitted, clears any existing command-line args file on the device(s)
* When --args is present, sets command-line args
* Runs on one or more devices (same as build/android/adb_run_chrome_public)
* If multiple devices attached, show error with list of devices (like install_chrome_public_apk_incremental does)
* But allow --all to install to all devices.
out/Debug/bin/chrome_public_apk run <url> [--args=]
* Installs and then launches
out/Debug/bin/chrome_public_apk stop
* Stops / kills chrome on all devices (or just those from -d flag)
out/Debug/bin/chrome_public_apk clear-data
* Clear states of the apk package.
out/Debug/bin/chrome_public_apk argv
* Prints current command-line flags
* Same as //build/android/adb_chrome_public_command_line
* Although launch sets this, it's still useful when starting chrome with your finger (you know, by actually touching the device)
out/Debug/bin/chrome_public_apk argv --args=""
* Clears command-line flags
out/Debug/bin/chrome_public_apk argv --args="--a --b"
* Sets command-line flags
out/Debug/bin/chrome_public_apk gdb --args="--a --b"
* Calls //build/android/adb_gdb with correct flags
* Requires --device if multiple devices are present.
out/Debug/bin/chrome_public_apk logcat
* Runs logcat with filter that shows only processes matching the package ID ?
* Requires --device if multiple devices are present.
The device location of the command-line-flags file would need to be set on GN targets. If no command_line_flags_file is set for a target, then have any attempts to set flags fail the scripts with "Target does not support setting command-line flags.")
The packageId and launch activity should be retrievable from the .apk (or AndroidManifest.xml).
Comment 1 by wnwen@chromium.org
, Dec 14 2016Status: Assigned (was: Available)