Hard-coded values in styles can be copied between AssetManagers even if the source package is not present in the destination AssetManager. Only references and strings should be prevented from being copied over because they would be invalid in the destination AssetManager. Bug:126400561 Test: manual Change-Id: I970a3e961763b2c003c15b950d864a9a0b615022
9 lines
245 B
Bash
Executable File
9 lines
245 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
PATH_TO_FRAMEWORK_RES=${ANDROID_BUILD_TOP}/prebuilts/sdk/current/public/android.jar
|
|
|
|
aapt2 compile -o compiled.flata --dir res
|
|
aapt2 link -o styles.apk --manifest AndroidManifest.xml -I $PATH_TO_FRAMEWORK_RES compiled.flata
|