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

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

Add logs for system properties access

parent cde55e9d
Loading
Loading
Loading
Loading
+15 −5
Original line number Diff line number Diff line
@@ -146,7 +146,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;
    }

    /**
@@ -162,7 +164,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;
    }

    /**
@@ -177,7 +181,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;
    }

    /**
@@ -192,7 +198,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; 
    }

    /**
@@ -212,7 +220,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;
    }

    /**