summaryrefslogtreecommitdiffstats
path: root/twrp.cpp
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2013-09-11 16:56:20 +0200
committerGerrit Code Review <gerrit@198.50.184.117>2013-09-12 16:11:32 +0200
commitf193f88e6d54c186bd425c7f77dab3e6782b046b (patch)
tree257462bc1bac3b2e28e9599ff1993ee3d20f56c9 /twrp.cpp
parentPull ROM info from build.prop for backup names (diff)
downloadandroid_bootable_recovery-f193f88e6d54c186bd425c7f77dab3e6782b046b.tar
android_bootable_recovery-f193f88e6d54c186bd425c7f77dab3e6782b046b.tar.gz
android_bootable_recovery-f193f88e6d54c186bd425c7f77dab3e6782b046b.tar.bz2
android_bootable_recovery-f193f88e6d54c186bd425c7f77dab3e6782b046b.tar.lz
android_bootable_recovery-f193f88e6d54c186bd425c7f77dab3e6782b046b.tar.xz
android_bootable_recovery-f193f88e6d54c186bd425c7f77dab3e6782b046b.tar.zst
android_bootable_recovery-f193f88e6d54c186bd425c7f77dab3e6782b046b.zip
Diffstat (limited to 'twrp.cpp')
-rw-r--r--twrp.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/twrp.cpp b/twrp.cpp
index 5e1956f23..57e1657b3 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -249,14 +249,12 @@ int main(int argc, char **argv) {
// Device doesn't have su installed
DataManager::SetValue("tw_busy", 1);
if (gui_startPage("installsu") != 0) {
- LOGERR("Failed to start decrypt GUI page.\n");
+ LOGERR("Failed to start SuperSU install page.\n");
}
} else if (TWFunc::Check_su_Perms() > 0) {
// su perms are set incorrectly
- DataManager::SetValue("tw_busy", 1);
- if (gui_startPage("fixsu") != 0) {
- LOGERR("Failed to start decrypt GUI page.\n");
- }
+ LOGINFO("Root permissions appear to be lost... fixing. (This will always happen on 4.3+ ROMs with SELinux.\n");
+ TWFunc::Fix_su_Perms();
}
sync();
PartitionManager.UnMount_By_Path("/system", false);