From 18f8a0f997e6408bc5f67db2ccd3193ba64ae3d0 Mon Sep 17 00:00:00 2001 From: Zephyron Date: Fri, 21 Feb 2025 18:46:48 +1000 Subject: 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. --- src/android/app/proguard-rules.pro | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/android/app/proguard-rules.pro') 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 -- cgit v1.2.3