forked from MarcoBuster/Magisk
Request storage permission when patching boot images
This commit is contained in:
parent
6f41d9855b
commit
d520b3d2a0
@ -139,8 +139,9 @@ public class FlashActivity extends BaseActivity {
|
|||||||
new InstallMagisk(this, console, logs, InstallMagisk.SECOND_SLOT_MODE).exec();
|
new InstallMagisk(this, console, logs, InstallMagisk.SECOND_SLOT_MODE).exec();
|
||||||
break;
|
break;
|
||||||
case Const.Value.PATCH_BOOT:
|
case Const.Value.PATCH_BOOT:
|
||||||
new InstallMagisk(this, console, logs,
|
runWithPermission(new String[] {Manifest.permission.WRITE_EXTERNAL_STORAGE},
|
||||||
intent.getParcelableExtra(Const.Key.FLASH_SET_BOOT)).exec();
|
() -> new InstallMagisk(this, console, logs,
|
||||||
|
intent.getParcelableExtra(Const.Key.FLASH_SET_BOOT)).exec());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user