summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.idea/runConfigurations.xml10
-rw-r--r--.idea/runConfigurations/Build_system_app.xml13
-rwxr-xr-xscripts/sign_and_push.sh18
3 files changed, 31 insertions, 10 deletions
diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml
deleted file mode 100644
index 797acea..0000000
--- a/.idea/runConfigurations.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
- <component name="RunConfigurationProducerService">
- <option name="ignoredProducers">
- <set>
- <option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
- </set>
- </option>
- </component>
-</project> \ No newline at end of file
diff --git a/.idea/runConfigurations/Build_system_app.xml b/.idea/runConfigurations/Build_system_app.xml
new file mode 100644
index 0000000..755d57a
--- /dev/null
+++ b/.idea/runConfigurations/Build_system_app.xml
@@ -0,0 +1,13 @@
+<component name="ProjectRunConfigurationManager">
+ <configuration default="false" name="Build system app" type="ShConfigurationType">
+ <option name="INDEPENDENT_SCRIPT_PATH" value="true" />
+ <option name="SCRIPT_PATH" value="$PROJECT_DIR$/scripts/sign_and_push.sh" />
+ <option name="SCRIPT_OPTIONS" value="" />
+ <option name="INDEPENDENT_SCRIPT_WORKING_DIRECTORY" value="true" />
+ <option name="SCRIPT_WORKING_DIRECTORY" value="$PROJECT_DIR$" />
+ <option name="INDEPENDENT_INTERPRETER_PATH" value="true" />
+ <option name="INTERPRETER_PATH" value="/bin/bash" />
+ <option name="INTERPRETER_OPTIONS" value="" />
+ <method v="2" />
+ </configuration>
+</component> \ No newline at end of file
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