public static void d(String msg, Object... args) { try { if (SystemPropertiesProxy.getBoolean(DEBUG_TAG, false)) android.util.Log.d(TAG, String.format(msg, args)); } catch (MissingFormatArgumentException e) { android.util.Log.e(TAG, "me.abitno.utils.Log", e); android.util.Log.d(TAG, msg); } }
@NonNull public static String getDeviceCodename(Context context) { return SystemPropertiesProxy.get(context, "ro.patcher.device", Build.DEVICE); }