diff --git a/app/build.gradle b/app/build.gradle
index 89d2503ae..ace3175f4 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -27,7 +27,7 @@ android {
productFlavors {
full {
- versionCode 130
+ versionCode 131
versionName "5.8.3"
}
stub {
diff --git a/app/src/full/java/com/topjohnwu/magisk/components/InstallMethodDialog.java b/app/src/full/java/com/topjohnwu/magisk/components/InstallMethodDialog.java
index 8502ebb8a..16e902c72 100644
--- a/app/src/full/java/com/topjohnwu/magisk/components/InstallMethodDialog.java
+++ b/app/src/full/java/com/topjohnwu/magisk/components/InstallMethodDialog.java
@@ -58,9 +58,17 @@ class InstallMethodDialog extends AlertDialog.Builder {
activity.startActivity(intent);
break;
case 3:
- intent = new Intent(activity, FlashActivity.class)
- .putExtra(Const.Key.FLASH_ACTION, Const.Value.FLASH_INACTIVE_SLOT);
- activity.startActivity(intent);
+ new CustomAlertDialog(activity)
+ .setTitle(R.string.warning)
+ .setMessage(R.string.install_inactive_slot_msg)
+ .setCancelable(true)
+ .setPositiveButton(R.string.yes, (d, i) -> {
+ Intent it = new Intent(activity, FlashActivity.class)
+ .putExtra(Const.Key.FLASH_ACTION, Const.Value.FLASH_INACTIVE_SLOT);
+ activity.startActivity(it);
+ })
+ .setNegativeButton(R.string.no_thanks, null)
+ .show();
break;
default:
}
diff --git a/app/src/full/res/values/strings.xml b/app/src/full/res/values/strings.xml
index 86c8ae264..74c185a66 100644
--- a/app/src/full/res/values/strings.xml
+++ b/app/src/full/res/values/strings.xml
@@ -100,6 +100,8 @@
Patch Boot Image File
Direct Install (Recommended)
Install to Inactive Slot (After OTA)
+ Warning
+ Your device will be FORCED to boot to the current inactive slot after a reboot!\nOnly use this option after OTA is done.\nContinue?
Select Method
Target Magisk version doesn\'t support boot image file patching
Select stock boot image dump in .img or .img.tar format