diff options
author | Amit Kumar <amitkma@e.email> | 2021-05-12 17:47:21 +0530 |
---|---|---|
committer | Amit Kumar <amitkma@e.email> | 2021-05-12 17:47:21 +0530 |
commit | 533f3f9147f5deda89103cab8afa5172d07750f9 (patch) | |
tree | 7c1f77b89205165a32dbc77f0702ab3c52e96084 /scripts | |
parent | 5296470724c8da6826bb3be8ccf684cef96ba119 (diff) |
Add script to build, sign and install apk as system app
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/sign_and_push.sh | 18 |
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 |