(Context context)
| 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; |
no outgoing calls
no test coverage detected