Debian Codegraph @

internal/binres/testdata/gen.sh

raw symbols SCIP
1 #! /usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2
3 # version of build-tools tests run against
4 AAPT=${ANDROID_HOME:-${HOME}/Android/Sdk}/build-tools/32.0.0/aapt
5
6 # minimum version of android api for resource identifiers supported
7 APIJAR=${ANDROID_HOME:-${HOME}/Android/Sdk}/platforms/android-16/android.jar
8
9 for f in *.xml; do
10 RES=""
11 if [scip-shell system . . `[`. -d "${f:0:-4}-res" ]; then
12 RES="-S ${f:0:-4}-res"
13 fi
14 cpscip-shell system . . cp. "$f" AndroidManifest.xml
15 "$AAPT" p -M AndroidManifest.xml $RES -I "$APIJAR" -F tmp.apk
16 unzip -qq -o tmp.apk AndroidManifest.xml resources.arsc
17 mvscip-shell system . . mv. AndroidManifest.xml "${f:0:-3}bin"
18 mvscip-shell system . . mv. resources.arsc "${f:0:-3}arsc"
19 rmscip-shell system . . rm. tmp.apk
20 done