From 533f3f9147f5deda89103cab8afa5172d07750f9 Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Wed, 12 May 2021 17:47:21 +0530 Subject: Add script to build, sign and install apk as system app --- scripts/sign_and_push.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 scripts/sign_and_push.sh (limited to 'scripts/sign_and_push.sh') 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 -- cgit v1.2.1