public static boolean isDebugVersion(Context context) {
   try {
      ApplicationInfo info = context.getApplicationInfo();
      return (info.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;
   } catch (Exception e) {
      e.printStackTrace();
   }
   return false;
}
 

 

相关文章: