List of usage examples for android.content.pm ApplicationInfo FLAG_DEBUGGABLE
int FLAG_DEBUGGABLE
To view the source code for android.content.pm ApplicationInfo FLAG_DEBUGGABLE.
Click Source Link
From source file:Main.java
public static boolean isDebuggable(ApplicationInfo applicationInfo) { if ((applicationInfo.flags &= ApplicationInfo.FLAG_DEBUGGABLE) != 0) { return true; }/*from w w w .j a v a 2 s . c o m*/ return false; }
From source file:Main.java
public static boolean isDebuggable(Context context) { return (context.getApplicationInfo().flags &= ApplicationInfo.FLAG_DEBUGGABLE) != 0; }
From source file:Main.java
public static boolean isDebugModeEnable(Context context) { return (context.getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0; }
From source file:Main.java
public static boolean isDebuggable(Context context) { int flags = context.getApplicationInfo().flags; flags &= ApplicationInfo.FLAG_DEBUGGABLE; return (flags != 0); }
From source file:Main.java
static boolean isDebug(Context context) { return (0 != (context.getApplicationContext() .getApplicationInfo().flags &= ApplicationInfo.FLAG_DEBUGGABLE)); }
From source file:Main.java
public static boolean isDebuggable(Context c) { return (0 != (c.getApplicationInfo().flags &= ApplicationInfo.FLAG_DEBUGGABLE)); }
From source file:Main.java
public static boolean isDebugBuild(Context context) { return (0 != (context.getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE)); }
From source file:Main.java
public static boolean isAppDebuggable(Context context) { return (0 != (context.getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE)); }
From source file:Main.java
public static boolean isApkDebug(Context context) { try {//from ww w . ja va 2 s .c o m ApplicationInfo info = context.getApplicationInfo(); return (info.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0; } catch (Exception e) { } return false; }
From source file:Main.java
public static boolean isDebuggable(Context context) { if (context == null) { return false; }/*from w w w .j a v a2s .c o m*/ return (0 != (context.getApplicationInfo().flags &= ApplicationInfo.FLAG_DEBUGGABLE)); }