Replace remove-adservices.sh with patch-apk.sh

This commit is contained in:
TheKingFireS 2023-09-03 14:59:19 +02:00 committed by GitHub
parent 394ff7be4b
commit 41c14818d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,41 +0,0 @@
#!/bin/bash
# Ad Services Cleanup
if command -v "aapt" >/dev/null 2>&1; then
aapt r 15210-v1.5-4248-noads.apk user-messaging-platform.properties
aapt r 15210-v1.5-4248-noads.apk play-services-tasks.properties
aapt r 15210-v1.5-4248-noads.apk play-services-measurement-sdk-api.properties
aapt r 15210-v1.5-4248-noads.apk play-services-measurement-base.properties
aapt r 15210-v1.5-4248-noads.apk play-services-basement.properties
aapt r 15210-v1.5-4248-noads.apk play-services-base.properties
aapt r 15210-v1.5-4248-noads.apk play-services-appset.properties
aapt r 15210-v1.5-4248-noads.apk play-services-ads.properties
aapt r 15210-v1.5-4248-noads.apk play-services-ads-lite.properties
aapt r 15210-v1.5-4248-noads.apk play-services-ads-identifier.properties
aapt r 15210-v1.5-4248-noads.apk play-services-ads-base.properties
else
chmod +x lib/aapt
lib/aapt r 15210-v1.5-4248-noads.apk user-messaging-platform.properties
lib/aapt r 15210-v1.5-4248-noads.apk play-services-tasks.properties
lib/aapt r 15210-v1.5-4248-noads.apk play-services-measurement-sdk-api.properties
lib/aapt r 15210-v1.5-4248-noads.apk play-services-measurement-base.properties
lib/aapt r 15210-v1.5-4248-noads.apk play-services-basement.properties
lib/aapt r 15210-v1.5-4248-noads.apk play-services-base.properties
lib/aapt r 15210-v1.5-4248-noads.apk play-services-appset.properties
lib/aapt r 15210-v1.5-4248-noads.apk play-services-ads.properties
lib/aapt r 15210-v1.5-4248-noads.apk play-services-ads-lite.properties
lib/aapt r 15210-v1.5-4248-noads.apk play-services-ads-identifier.properties
lib/aapt r 15210-v1.5-4248-noads.apk play-services-ads-base.properties
fi
# Resigns the APK before exiting
if command -v "apksigner" >/dev/null 2>&1; then
apksigner sign --ks lib/android.jks --ks-pass pass:android 15210-v1.5-4248-noads.apk
else
exec java -jar lib/apksigner.jar sign --ks lib/android.jks --ks-pass pass:android 15210-v1.5-4248-noads.apk
fi
# Alternate Key:
# if command -v "apksigner" >/dev/null 2>&1; then
# apksigner sign --ks lib/public.jks --ks-pass pass:public 15210-v1.5-4248-noads.apk
# else
# exec java -jar lib/lib/apksigner.jar sign --ks lib/public.jks --ks-pass pass:public 15210-v1.5-4248-noads.apk
# fi