summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/sign_and_push.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/sign_and_push.sh b/scripts/sign_and_push.sh
new file mode 100755
index 0000000..240f96a
--- /dev/null
+++ b/scripts/sign_and_push.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+## This script is used for signing the apk with the platform keys and pushing it into System partition.
+## Used for testing purposes.
+
+./gradlew assembleDebug
+rm PrivacyCentral.apk
+wait ${!}
+apksigner sign --key lineage_keys/platform.pk8 --cert lineage_keys/target_product_security_platform.x509.pem --out PrivacyCentral.apk app/build/outputs/apk/e/debug/app-e-debug.apk
+wait ${!}
+adb root
+wait ${!}
+adb devices
+wait ${!}
+adb install -r PrivacyCentral.apk
+wait ${!}
+adb remount && adb push privapp-permissions-foundation.e.privacycentralapp.xml system/etc/permissions
+wait ${!} \ No newline at end of file