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

Commit 8bbd1def authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Try key access + Nexus 7 SDK spoof

parent 5d60503f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ import java.util.HashMap;
@SystemApi
public class SystemProperties {
    private static final String TAG = "SystemProperties";
    private static final boolean TRACK_KEY_ACCESS = false;
    private static final boolean TRACK_KEY_ACCESS = true;

    /**
     * Android O removed the property name length limit, but com.amazon.kindle 7.8.1.5
@@ -77,6 +77,8 @@ public class SystemProperties {
    private static void onKeyAccess(String key) {
        if (!TRACK_KEY_ACCESS) return;

        Log.d(TAG, "onKeyAccess " + key);

        if (key != null && key.startsWith("ro.")) {
            synchronized (sRoReads) {
                MutableInt numReads = sRoReads.getOrDefault(key, null);
−200 B (30.3 KiB)

File changed.

No diff preview for this file type.