ManifestUtils { public static boolean isDebuggable(@NonNull final Context context) { final int applicationFlags = context.getApplicationInfo().flags; return Utils.bitMaskContainsFlag(applicationFlags, ApplicationInfo.FLAG_DEBUGGABLE); } private  ManifestUtils(); static void checkWebViewActivitiesDeclared(@NonNull final Context context); static void checkNativeActivitiesDeclared(@NonNull final Context context); static boolean isDebuggable(@NonNull final Context context);  }
@Test public void isDebuggable_whenApplicationIsDebuggable_shouldReturnTrue() throws Exception { setDebugMode(true); assertThat(ManifestUtils.isDebuggable(context)).isTrue(); }
@Test public void isDebuggable_whenApplicationIsNotDebuggable_shouldReturnFalse() throws Exception { setDebugMode(false); assertThat(ManifestUtils.isDebuggable(context)).isFalse(); }