From 0783d385d525cea7914c001c28357c203a608647 Mon Sep 17 00:00:00 2001 From: wiki de pasquale Date: Thu, 30 Jan 2020 21:12:49 +0100 Subject: [PATCH] Removed security note Note, and the backdrop, has been removed, since users which have chosen device that doesn't receive security updates in, at least 2 months, are getting triggered by their own choices (: --- .../topjohnwu/magisk/extensions/XAndroid.kt | 18 ----------- app/src/main/res/layout/fragment_home_md2.xml | 31 +------------------ 2 files changed, 1 insertion(+), 48 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/extensions/XAndroid.kt b/app/src/main/java/com/topjohnwu/magisk/extensions/XAndroid.kt index 71143b4bb..ee268bc6d 100644 --- a/app/src/main/java/com/topjohnwu/magisk/extensions/XAndroid.kt +++ b/app/src/main/java/com/topjohnwu/magisk/extensions/XAndroid.kt @@ -42,7 +42,6 @@ import com.topjohnwu.superuser.ShellUtils import java.io.File import java.io.FileNotFoundException import java.text.SimpleDateFormat -import java.util.* import java.lang.reflect.Array as JArray val packageName: String get() = get().packageName @@ -325,23 +324,6 @@ private val securityLevelFormatter get() = SimpleDateFormat("yyyy-MM-dd", currentLocale ) -/** Friendly reminder to seek newer roms or install oem updates. */ -val isDeviceSecure: Boolean - get() { - val latestPermittedTime = Calendar.getInstance().apply { - time = securityLevelDate - add(Calendar.MONTH, 2) - }.time.time - return now in 0..latestPermittedTime - } -val securityLevelDate get() = securityLevelFormatter.parseOrNull(securityLevel) ?: Date(0) -val securityLevel - get() = if (SDK_INT >= Build.VERSION_CODES.M) { - Build.VERSION.SECURITY_PATCH - } else { - null - } ?: "1970-01-01" //never - val isSAR get() = ShellUtils .fastCmd("grep_prop ro.build.system_root_image") diff --git a/app/src/main/res/layout/fragment_home_md2.xml b/app/src/main/res/layout/fragment_home_md2.xml index fb9d29e14..ae16d4c06 100644 --- a/app/src/main/res/layout/fragment_home_md2.xml +++ b/app/src/main/res/layout/fragment_home_md2.xml @@ -107,18 +107,6 @@ android:background="@drawable/bg_card" android:orientation="horizontal"> - - - - - - + app:layout_constraintTop_toTopOf="parent" />