-
Notifications
You must be signed in to change notification settings - Fork 5
/
sign.sh
executable file
·27 lines (23 loc) · 979 Bytes
/
sign.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
KEYSDIR="$1"
OUTFILE="$2"
if [ -z "$KEYSDIR" ]; then
KEYSDIR="$HOME/.android-certs"
fi
if [ -z "$OUTFILE" ]; then
OUTFILE="signed-target_files.zip"
fi
sign_target_files_apks -o -d $KEYSDIR \
--extra_apks AdServicesApk.apk=$KEYSDIR/releasekey \
--extra_apks FederatedCompute.apk=$KEYSDIR/releasekey \
--extra_apks HalfSheetUX.apk=$KEYSDIR/releasekey \
--extra_apks HealthConnectBackupRestore.apk=$KEYSDIR/releasekey \
--extra_apks HealthConnectController.apk=$KEYSDIR/releasekey \
--extra_apks OsuLogin.apk=$KEYSDIR/releasekey \
--extra_apks SafetyCenterResources.apk=$KEYSDIR/releasekey \
--extra_apks ServiceConnectivityResources.apk=$KEYSDIR/releasekey \
--extra_apks ServiceUwbResources.apk=$KEYSDIR/releasekey \
--extra_apks ServiceWifiResources.apk=$KEYSDIR/releasekey \
--extra_apks WifiDialog.apk=$KEYSDIR/releasekey \
$OUT/obj/PACKAGING/target_files_intermediates/*-target_files*.zip \
$OUTFILE