diff --git a/Android.mk b/Android.mk index b17969d1..2e341d90 100755 --- a/Android.mk +++ b/Android.mk @@ -142,7 +142,7 @@ else LOCAL_SHARED_LIBRARIES += libcrypto endif -ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 24; echo $$?),0) +ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 23; echo $$?),0) LOCAL_SHARED_LIBRARIES += libbase endif @@ -390,6 +390,20 @@ endif ifneq ($(TW_CLOCK_OFFSET),) LOCAL_CFLAGS += -DTW_CLOCK_OFFSET=$(TW_CLOCK_OFFSET) endif +ifneq ($(TW_OVERRIDE_SYSTEM_PROPS),) + TW_INCLUDE_LIBRESETPROP := true + LOCAL_CFLAGS += -DTW_OVERRIDE_SYSTEM_PROPS=$(TW_OVERRIDE_SYSTEM_PROPS) +endif +ifneq ($(TW_INCLUDE_LIBRESETPROP),) + ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 24; echo $$?),0) + $(warning libresetprop is not available for android < 7) + else + LOCAL_SHARED_LIBRARIES += libresetprop + LOCAL_C_INCLUDES += external/magisk-prebuilt/include + LOCAL_CFLAGS += -DTW_INCLUDE_LIBRESETPROP + endif +endif + TWRP_REQUIRED_MODULES += \ relink \ relink_init \ diff --git a/data.cpp b/data.cpp index 088dbda6..b1e8404b 100755 --- a/data.cpp +++ b/data.cpp @@ -783,6 +783,7 @@ void DataManager::SetDefaultValues() #else mPersist.SetValue(TW_NO_SHA2, "1"); #endif + mPersist.SetValue(TW_UNMOUNT_SYSTEM, "1"); #ifdef TW_NO_SCREEN_TIMEOUT mConst.SetValue("tw_screen_timeout_secs", "0"); diff --git a/etc/init.rc b/etc/init.rc index d0baeb88..73b88d21 100644 --- a/etc/init.rc +++ b/etc/init.rc @@ -13,7 +13,6 @@ on early-init # ueventd wants to write to /acct mount cgroup none /acct cpuacct mkdir /acct/uid - start ueventd on init diff --git a/gui/theme/common/landscape.xml b/gui/theme/common/landscape.xml index 8244c461..230b72f7 100755 --- a/gui/theme/common/landscape.xml +++ b/gui/theme/common/landscape.xml @@ -2937,6 +2937,9 @@ + + + diff --git a/gui/theme/common/languages/en.xml b/gui/theme/common/languages/en.xml index 4a0ac7fd..3769da50 100755 --- a/gui/theme/common/languages/en.xml +++ b/gui/theme/common/languages/en.xml @@ -719,5 +719,8 @@ Include Kernel Log Use SHA2 for hashing Error changing bootloader boot slot to {1} + Unmount System before installing a ZIP + Unmounting System... + Failed unmounting System diff --git a/gui/theme/common/portrait.xml b/gui/theme/common/portrait.xml index e014cc53..83704146 100755 --- a/gui/theme/common/portrait.xml +++ b/gui/theme/common/portrait.xml @@ -3150,6 +3150,9 @@ + + +