Chromium Code Reviews| Index: build/android/gyp/apk_install.py |
| diff --git a/build/android/gyp/apk_install.py b/build/android/gyp/apk_install.py |
| index 19a217ccf5234a22814168ed7341f5fb9a76fe8a..4b4c7723deb95fbdd8a23e54ffeb584a62fbd6af 100755 |
| --- a/build/android/gyp/apk_install.py |
| +++ b/build/android/gyp/apk_install.py |
| @@ -58,6 +58,10 @@ def main(): |
| parser = optparse.OptionParser() |
| parser.add_option('--apk-path', |
| help='Path to .apk to install.') |
| + parser.add_option('--split-apk-path', |
| + help='Path to .apk splits (can specify multiple times, causes ' |
| + '--install-multiple to be used.', |
| + action='append') |
| parser.add_option('--install-record', |
| help='Path to install record (touched only when APK is installed).') |
| parser.add_option('--build-device-configuration', |
| @@ -85,7 +89,10 @@ def main(): |
| force_install = HasInstallMetadataChanged(device, apk_package, metadata_path) |
| def Install(): |
| - device.Install(options.apk_path, reinstall=True) |
| + # TODO: Filter splits using split-select. |
| + active_splits = options.split_apk_path |
| + device.Install(options.apk_path, reinstall=True, split_paths=active_splits) |
|
jbudorick
2015/05/13 15:15:42
Why should we do this instead of just installing e
agrieve
2015/05/13 15:47:46
I'm guessing you're question is about using "adb i
jbudorick
2015/05/13 15:49:14
Yeah, that was the question. Sorry, should've phra
agrieve1
2015/05/13 17:22:04
I'm guessing you're question is about using "adb i
|
| + |
| RecordInstallMetadata(device, apk_package, metadata_path) |
| build_utils.Touch(options.install_record) |