Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0334ce2 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Remove useless log for microG spoofing on user builds.

Indeed, it was flooding a lot in the logcat.

We still need to keep the isDebuggable() method used in the code
otherwise JNI is wrong.

noop() method is used to prevent the compiler from removing the
if (!isDebuggable()) condition.
parent 297874de
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1474,9 +1474,14 @@ public class ComputerEngine implements Computer {

    private static native boolean isDebuggable();

    private static void noop() {
        // no-op
    }

    public static boolean isMicrogSigned(AndroidPackage p) {
        if (!isDebuggable()) {
            Slog.v(TAG, "Detected user build for microg spoofing");
            // no-op. jni was KO because isDebuggable() was unused
            noop();
        }

        // Following apps are shipped as system apps: