repacker: add root overwrite warning
Change-Id: Ica03c62a04872cb0ff4705810a0e85efde0b0b54
diff --git a/gui/theme/common/languages/en.xml b/gui/theme/common/languages/en.xml
index 3b61153..f1b93b5 100755
--- a/gui/theme/common/languages/en.xml
+++ b/gui/theme/common/languages/en.xml
@@ -512,6 +512,7 @@
<string name="unpacking_image">Unpacking {1}...</string>
<string name="repacking_image">Repacking {1}...</string>
<string name="repack_image_hdr">Select Image</string>
+ <string name="repack_overwrite_warning">If device was previously rooted, then root has been overwritten and will need to be reinstalled.</string>
<string name="reflash_twrp">Flash Current TWRP</string>
<string name="reflash_twrp_confirm">Flash Current TWRP?</string>
<string name="reflashing_twrp">Flashing TWRP...</string>
diff --git a/twrpRepacker.cpp b/twrpRepacker.cpp
index d959836..b9f8597 100755
--- a/twrpRepacker.cpp
+++ b/twrpRepacker.cpp
@@ -259,6 +259,7 @@
TWFunc::removeDir(REPACK_ORIG_DIR, false);
}}
TWFunc::removeDir(REPACK_NEW_DIR, false);
+ gui_msg(Msg(msg::kWarning, "repack_overwrite_warning=If device was previously rooted, then root has been overwritten and will need to be reinstalled."));
return true;
}