From f193f88e6d54c186bd425c7f77dab3e6782b046b Mon Sep 17 00:00:00 2001 From: Dees Troy Date: Wed, 11 Sep 2013 14:56:20 +0000 Subject: Make fixing su perms automatic In 4.3+ with SELinux, su perms will be lost on every reboot so users will get the prompt to fix su perms in TWRP every time. Make fixing the su perms automatic instead of nagging the user. Change-Id: Ia8a2652018db5e1f6ffc5fec2a4ac0db3a8f32bb --- gui/action.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gui/action.cpp') diff --git a/gui/action.cpp b/gui/action.cpp index 78e862526..36f400613 100644 --- a/gui/action.cpp +++ b/gui/action.cpp @@ -603,6 +603,7 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */) } if (function == "togglestorage") { + LOGERR("togglestorage action was deprecated from TWRP\n"); if (arg == "internal") { DataManager::SetValue(TW_USE_EXTERNAL_STORAGE, 0); } else if (arg == "external") { @@ -1290,8 +1291,8 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */) if (simulate) { simulate_progress_bar(); } else { - if (!TWFunc::Fix_su_Perms()) - op_status = 1; + LOGERR("Fixing su permissions was deprecated from TWRP.\n"); + LOGERR("4.3+ ROMs with SELinux will always lose su perms.\n"); } operation_end(op_status, simulate); -- cgit v1.2.3