private static IInputMethodManager getIInputMethodManager(Context context) {
        return new IInputMethodManager((InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE));
    }
Runs the next task when all packages have been deleted or shuts down the activity if package
deletion fails.
engine/src/main/java/com/oasisfeng/island/provisioning/task/DeleteNonRequiredAppsTask.java