summaryrefslogtreecommitdiff
path: root/src/android/app/proguard-rules.pro
diff options
context:
space:
mode:
authorZephyron <zephyron@citron-emu.orgq>2025-02-21 18:46:48 +1000
committerZephyron <zephyron@citron-emu.orgq>2025-02-21 18:46:48 +1000
commit18f8a0f997e6408bc5f67db2ccd3193ba64ae3d0 (patch)
treef0e72ad7f09701eff9b00732423c7b6491587e97 /src/android/app/proguard-rules.pro
parent4d50d2ba16d4d08f62a9e2a6626a43d12a36a0e7 (diff)
Add license verification for Android app
Implements a LicenseVerifier class to ensure app integrity and license compliance: - Verifies the app's package name matches the official release - Validates app signature against official release signature - Allows debug and EA (Early Access) builds - Shows violation dialog and exits if verification fails - Enforces GPLv3 license compliance for modified versions This helps prevent unauthorized modified versions from being distributed without source code, as required by the GPLv3 license.
Diffstat (limited to 'src/android/app/proguard-rules.pro')
-rw-r--r--src/android/app/proguard-rules.pro7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/android/app/proguard-rules.pro b/src/android/app/proguard-rules.pro
index 691e08fd0..6b1a4a2e5 100644
--- a/src/android/app/proguard-rules.pro
+++ b/src/android/app/proguard-rules.pro
@@ -22,3 +22,10 @@
-dontwarn java.beans.Introspector
-dontwarn java.beans.VetoableChangeListener
-dontwarn java.beans.VetoableChangeSupport
+
+# LicenseVerifier protection
+-keep class org.citron.citron_emu.utils.LicenseVerifier { *; }
+-keepnames class org.citron.citron_emu.utils.LicenseVerifier
+-dontskipnonpubliclibraryclasses
+-dontoptimize
+-dontpreverify