MCPcopy Create free account
hub / github.com/NativeScript/android / isDebuggableApp

Method isDebuggableApp

test-app/app/src/main/java/com/tns/Util.java:28–41  ·  view source on GitHub ↗
(Context context)

Source from the content-addressed store, hash-verified

26 }
27
28 public static boolean isDebuggableApp(Context context) {
29 int flags;
30 try {
31 flags = context.getPackageManager().getPackageInfo(context.getPackageName(), 0).applicationInfo.flags;
32 } catch (NameNotFoundException e) {
33 flags = 0;
34 if (Util.isDebuggableApp(context)) {
35 e.printStackTrace();
36 }
37 }
38
39 boolean isDebuggableApp = ((flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0);
40 return isDebuggableApp;
41 }
42
43 static boolean runPlugin(Logger logger, Context context) {
44 boolean success = false;

Callers 10

uncaughtExceptionMethod · 0.95
runPluginMethod · 0.95
hasErrorIntentMethod · 0.95
initRuntimeMethod · 0.95
initLiveSyncMethod · 0.95
initLoggingMethod · 0.95
getIntentMethod · 0.95
onClickMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected