mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-27 07:47:38 +00:00
Limit Boot Image selection dialog to File Managers
This commit is contained in:
parent
de8bc9ca9d
commit
98a36819bc
@ -50,7 +50,7 @@ class InstallMethodDialog extends AlertDialog.Builder {
|
|||||||
|
|
||||||
private void patchBoot(BaseActivity a) {
|
private void patchBoot(BaseActivity a) {
|
||||||
Utils.toast(R.string.boot_file_patch_msg, Toast.LENGTH_LONG);
|
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.runWithExternalRW(() ->
|
||||||
a.startActivityForResult(intent, Const.ID.SELECT_BOOT,
|
a.startActivityForResult(intent, Const.ID.SELECT_BOOT,
|
||||||
(requestCode, resultCode, data) -> {
|
(requestCode, resultCode, data) -> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user