예제 #1
0
파일: Log.java 프로젝트: ColbyTang/BiLiBiLi
 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);
   }
 }
예제 #2
0
 @NonNull
 public static String getDeviceCodename(Context context) {
   return SystemPropertiesProxy.get(context, "ro.patcher.device", Build.DEVICE);
 }