From fa67cbf18bc43ff8cda34b91acdb43feb1214777 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Fri, 20 Jul 2018 12:22:33 -0500 Subject: Remove SuperSU Change-Id: I2ca7580bbde5a8903b9ba5c1513ddba887e8d49e --- Android.mk | 13 - gui/action.cpp | 3 +- gui/theme/common/landscape.xml | 47 +-- gui/theme/common/languages/cz.xml | 9 +- gui/theme/common/languages/de.xml | 9 +- gui/theme/common/languages/el.xml | 9 +- gui/theme/common/languages/en.xml | 9 +- gui/theme/common/languages/es.xml | 9 +- gui/theme/common/languages/fr.xml | 9 +- gui/theme/common/languages/hu.xml | 9 +- gui/theme/common/languages/it.xml | 9 +- gui/theme/common/languages/nl.xml | 9 +- gui/theme/common/languages/pl.xml | 9 +- gui/theme/common/languages/pt_BR.xml | 9 +- gui/theme/common/languages/pt_PT.xml | 9 +- gui/theme/common/languages/ru.xml | 9 +- gui/theme/common/languages/sk.xml | 9 +- gui/theme/common/languages/sl.xml | 9 +- gui/theme/common/languages/tr.xml | 9 +- gui/theme/common/languages/uk.xml | 9 +- gui/theme/common/portrait.xml | 47 +-- gui/theme/common/watch.xml | 44 +-- gui/theme/extra-languages/languages/ja.xml | 9 +- gui/theme/extra-languages/languages/zh_CN.xml | 9 +- gui/theme/extra-languages/languages/zh_TW.xml | 9 +- prebuilt/99SuperSUDaemon | 2 - prebuilt/Android.mk | 108 ------- prebuilt/Superuser.apk | Bin 28674 -> 0 bytes prebuilt/chattr | Bin 9956 -> 0 bytes prebuilt/chattr.pie | Bin 9756 -> 0 bytes prebuilt/install-recovery.sh | 17 -- prebuilt/install-supersu.sh | 405 -------------------------- prebuilt/libsupol.so | Bin 170232 -> 0 bytes prebuilt/libsupol.soarm64 | Bin 276888 -> 0 bytes prebuilt/suarm | Bin 75364 -> 0 bytes prebuilt/suarm64 | Bin 100272 -> 0 bytes prebuilt/supolicy | Bin 29972 -> 0 bytes prebuilt/supolicyarm64 | Bin 30168 -> 0 bytes twrp-functions.cpp | 8 - twrp-functions.hpp | 1 - twrp.cpp | 18 -- 41 files changed, 24 insertions(+), 869 deletions(-) delete mode 100644 prebuilt/99SuperSUDaemon delete mode 100644 prebuilt/Superuser.apk delete mode 100755 prebuilt/chattr delete mode 100644 prebuilt/chattr.pie delete mode 100644 prebuilt/install-recovery.sh delete mode 100755 prebuilt/install-supersu.sh delete mode 100644 prebuilt/libsupol.so delete mode 100644 prebuilt/libsupol.soarm64 delete mode 100644 prebuilt/suarm delete mode 100644 prebuilt/suarm64 delete mode 100644 prebuilt/supolicy delete mode 100644 prebuilt/supolicyarm64 diff --git a/Android.mk b/Android.mk index b51637ba6..6880ed2c2 100644 --- a/Android.mk +++ b/Android.mk @@ -156,7 +156,6 @@ ifeq ($(TW_OEM_BUILD),true) LOCAL_CFLAGS += -DTW_OEM_BUILD BOARD_HAS_NO_REAL_SDCARD := true TW_USE_TOOLBOX := true - TW_EXCLUDE_SUPERSU := true TW_EXCLUDE_MTP := true endif @@ -430,18 +429,6 @@ ifeq ($(TW_INCLUDE_DUMLOCK), true) htcdumlock htcdumlocksys flash_imagesys dump_imagesys libbmlutils.so \ libflashutils.so libmmcutils.so libmtdutils.so HTCDumlock.apk endif -ifneq ($(TW_EXCLUDE_SUPERSU), true) - LOCAL_ADDITIONAL_DEPENDENCIES += \ - install-recovery.sh 99SuperSUDaemon Superuser.apk - ifeq ($(TARGET_ARCH), arm) - LOCAL_ADDITIONAL_DEPENDENCIES += \ - chattr.pie libsupol.so suarm supolicy - endif - ifeq ($(TARGET_ARCH), arm64) - LOCAL_ADDITIONAL_DEPENDENCIES += \ - libsupol.soarm64 suarm64 supolicyarm64 - endif -endif ifeq ($(TW_INCLUDE_FB2PNG), true) LOCAL_ADDITIONAL_DEPENDENCIES += fb2png endif diff --git a/gui/action.cpp b/gui/action.cpp index 3d497ca5c..fb05d77b4 100644 --- a/gui/action.cpp +++ b/gui/action.cpp @@ -1607,8 +1607,7 @@ int GUIAction::installsu(std::string arg __unused) if (simulate) { simulate_progress_bar(); } else { - if (!TWFunc::Install_SuperSU()) - op_status = 1; + LOGERR("Installing SuperSU was deprecated from TWRP.\n"); } operation_end(op_status); diff --git a/gui/theme/common/landscape.xml b/gui/theme/common/landscape.xml index f460e6fee..5bbfe9029 100644 --- a/gui/theme/common/landscape.xml +++ b/gui/theme/common/landscape.xml @@ -2737,7 +2737,7 @@ @@ -4726,51 +4726,6 @@ - -