From 98a36819bc61f1378e3f305d259f86e8ba3a8e7e Mon Sep 17 00:00:00 2001 From: Remita Amine Date: Tue, 12 Feb 2019 15:26:30 +0100 Subject: [PATCH] Limit Boot Image selection dialog to File Managers --- .../java/com/topjohnwu/magisk/dialogs/InstallMethodDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/full/java/com/topjohnwu/magisk/dialogs/InstallMethodDialog.java b/app/src/full/java/com/topjohnwu/magisk/dialogs/InstallMethodDialog.java index 055391b98..6f3cb6ca0 100644 --- a/app/src/full/java/com/topjohnwu/magisk/dialogs/InstallMethodDialog.java +++ b/app/src/full/java/com/topjohnwu/magisk/dialogs/InstallMethodDialog.java @@ -50,7 +50,7 @@ class InstallMethodDialog extends AlertDialog.Builder { private void patchBoot(BaseActivity a) { Utils.toast(R.string.boot_file_patch_msg, Toast.LENGTH_LONG); - Intent intent = new Intent(Intent.ACTION_GET_CONTENT).setType("*/*"); + Intent intent = new Intent(Intent.ACTION_GET_CONTENT).setType("*/*").addCategory(Intent.CATEGORY_OPENABLE); a.runWithExternalRW(() -> a.startActivityForResult(intent, Const.ID.SELECT_BOOT, (requestCode, resultCode, data) -> {