summaryrefslogtreecommitdiff
path: root/scripts/sign_and_push.sh
blob: 035a47bec6b9c71bcc9be91d6b9691e3eca60e73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

## This script is used for signing the apk with the platform keys and pushing it into System partition.
## Used for testing purposes.

## Note: It is used only to build /e/ OS variant build.

./gradlew assembleEDebug
adb root
wait ${!}
adb devices
wait ${!}
adb install -r app/build/outputs/apk/e/debug/PrivacyCentral-e-debug-1.0.0-alpha.apk
wait ${!}
adb remount && adb push privapp-permissions-foundation.e.privacycentralapp.xml system/etc/permissions
wait ${!}
adb shell am start -n "foundation.e.privacycentralapp.e/foundation.e.privacycentralapp.main.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER