mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
Replace the API 35 release defaults with API 36, an external upload key, R8 and resource shrinking. Omit the debug probes, benchmark receiver and unused permission, silence native speech diagnostics, and guard password-field context at the input connection. Give the download a generic user agent and ship the Android privacy policy offline. Verified on the Studio: jarsigner, bundletool and byte-identical installed splits on API 31 and API 36; all ELF load segments and APK native offsets meet 16 KB alignment. Fresh model downloads and offline insertion passed on both. Binder traces showed zero reads in four password variants versus ten in an ordinary editor. Five tests passed in each build variant.
16 lines
548 B
Prolog
16 lines
548 B
Prolog
# libhexspeech resolves this class and method by their JNI names.
|
|
-keep class ly.anoma.hex.speech.Whisper {
|
|
native <methods>;
|
|
}
|
|
|
|
# Drop diagnostic calls from managed release code, including dependencies.
|
|
-assumenosideeffects class android.util.Log {
|
|
public static boolean isLoggable(java.lang.String, int) return false;
|
|
public static int v(...);
|
|
public static int d(...);
|
|
public static int i(...);
|
|
public static int w(...);
|
|
public static int e(...);
|
|
public static int wtf(...);
|
|
public static int println(...);
|
|
}
|