| 1 | % SPLIT-SELECT(1) |
| 2 | % The Android Open Source Project |
| 3 | |
| 4 | # NAME |
| 5 | |
| 6 | split-select - APK split and selection tool |
| 7 | |
| 8 | WARNING: This manual might be outdated, please refer to `split-select --help`. |
| 9 | |
| 10 | # SYNOPSIS |
| 11 | |
| 12 | **split-select** --help |
| 13 | |
| 14 | **split-select** --target _config_ --base _path/to/apk_ |
| 15 | [--split _path/to/apk_ [...]] |
| 16 | |
| 17 | **split-select** --generate --base _path/to/apk_ [--split _path/to/apk_ [...]] |
| 18 | |
| 19 | # OPTIONS |
| 20 | |
| 21 | --help |
| 22 | : Displays more information about this program. |
| 23 | |
| 24 | --target _config_ |
| 25 | : Performs the Split APK selection on the given configuration. |
| 26 | |
| 27 | --generate |
| 28 | : Generates the logic for selecting the Split APK, in JSON format. |
| 29 | |
| 30 | --base _path/to/apk_ |
| 31 | : Specifies the base APK, from which all Split APKs must be based off. |
| 32 | |
| 33 | --split _path/to/apk_ |
| 34 | : Includes a Split APK in the selection process. |
| 35 | |
| 36 | Where **config** is an extended AAPT resource qualifier of the form |
| 37 | "resource-qualifiers:extended-qualifiers", where "resource-qualifiers" is an |
| 38 | AAPT resource qualifier (ex: en-rUS-sw600dp-xhdpi), and 'extended-qualifiers' |
| 39 | is an ordered list of one qualifier (or none) from each category: |
| 40 | |
| 41 | ``` |
| 42 | Architecture: armeabi, armeabi-v7a, arm64-v8a, x86, x86_64, mips |
| 43 | ``` |
| 44 | |
| 45 | Generates the logic for selecting a Split APK given some target Android device |
| 46 | configuration. Using the flag **--generate** will emit a JSON encoded tree of |
| 47 | rules that must be satisfied in order to install the given Split APK. Using the |
| 48 | flag **--target** along with the device configuration will emit the set of Split |
| 49 | APKs to install, following the same logic that would have been emitted via JSON. |