From 210ebe3d4619c21ddaab44dfc37decbf79b9d2bc Mon Sep 17 00:00:00 2001 From: Captain Throwback Date: Sun, 3 Oct 2021 01:30:44 -0400 Subject: [PATCH] repacker: add root overwrite warning Change-Id: Ica03c62a04872cb0ff4705810a0e85efde0b0b54 --- gui/theme/common/languages/en.xml | 1 + twrpRepacker.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/gui/theme/common/languages/en.xml b/gui/theme/common/languages/en.xml index 3b611530..f1b93b55 100755 --- a/gui/theme/common/languages/en.xml +++ b/gui/theme/common/languages/en.xml @@ -512,6 +512,7 @@ Unpacking {1}... Repacking {1}... Select Image + If device was previously rooted, then root has been overwritten and will need to be reinstalled. Flash Current TWRP Flash Current TWRP? Flashing TWRP... diff --git a/twrpRepacker.cpp b/twrpRepacker.cpp index d959836e..b9f85975 100755 --- a/twrpRepacker.cpp +++ b/twrpRepacker.cpp @@ -259,6 +259,7 @@ bool twrpRepacker::Repack_Image_And_Flash(const std::string& Target_Image, const 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; }