Request storage permission when patching boot images

This commit is contained in:
topjohnwu 2018-09-08 23:27:19 -04:00
parent 6f41d9855b
commit d520b3d2a0

View File

@ -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;
} }
} }