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

Commit 15b0ddf1 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Add logs for system properties access

parent d7128492
Loading
Loading
Loading
Loading
+15 −5
Original line number Diff line number Diff line
@@ -178,7 +178,9 @@ public class SystemProperties {
    @SystemApi
    public static String get(@NonNull String key) {
        if (TRACK_KEY_ACCESS) onKeyAccess(key);
        return native_get(key);
        String res = native_get(key);
        Log.i(TAG, "jklee key=" + key + " res=" + res);
        return res;
    }

    /**
@@ -194,7 +196,9 @@ public class SystemProperties {
    @SystemApi
    public static String get(@NonNull String key, @Nullable String def) {
        if (TRACK_KEY_ACCESS) onKeyAccess(key);
        return native_get(key, def);
        String res = native_get(key, def);
        Log.i(TAG, "jklee key=" + key + " res=" + res);
        return res;
    }

    /**
@@ -209,7 +213,9 @@ public class SystemProperties {
    @SystemApi
    public static int getInt(@NonNull String key, int def) {
        if (TRACK_KEY_ACCESS) onKeyAccess(key);
        return native_get_int(key, def);
        int res = native_get_int(key, def);
        Log.i(TAG, "jklee key=" + key + " res=" + res);
        return res;
    }

    /**
@@ -224,7 +230,9 @@ public class SystemProperties {
    @SystemApi
    public static long getLong(@NonNull String key, long def) {
        if (TRACK_KEY_ACCESS) onKeyAccess(key);
        return native_get_long(key, def);
        long res = native_get_long(key, def);
        Log.i(TAG, "jklee key=" + key + " res=" + res);
        return res; 
    }

    /**
@@ -244,7 +252,9 @@ public class SystemProperties {
    @SystemApi
    public static boolean getBoolean(@NonNull String key, boolean def) {
        if (TRACK_KEY_ACCESS) onKeyAccess(key);
        return native_get_boolean(key, def);
        boolean res = native_get_boolean(key, def);
        Log.i(TAG, "jklee key=" + key + " res=" + res);
        return res;
    }

    /**