From 6438709f407649fe17ed08b887951e60e4ed7188 Mon Sep 17 00:00:00 2001 From: harvey186 Date: Sun, 10 Nov 2024 09:17:44 +0100 Subject: [PATCH] _r5 --- .../0003-1003-A15-r5-rw-system.patch | 32 ++ .../1001-A15_r5_generate.sh.patch | 132 +++++ .../1040-face_unlock.patch | 78 ++- ...moval.patch => 1001-A15-FCM_removal.patch} | 28 +- .../1001-A15_remove_token.patch | 36 -- .../0005-security_dashboard_e.patch | 27 + .../1003-dnscheck.grapheneos.patch | 21 +- .../0001-android.bp.patch | 0 ...Disable-O_DIRECT-for-old-kernels.patchOLD} | 0 .../1002-MI11tOverlay.patch | 523 ++++++++++++++++++ 10 files changed, 781 insertions(+), 96 deletions(-) create mode 100644 patches/LeOS-V/leos/platform_device_phh_treble/0003-1003-A15-r5-rw-system.patch create mode 100644 patches/LeOS-V/leos/platform_device_phh_treble/1001-A15_r5_generate.sh.patch rename patches/LeOS-V/leos/platform_packages_apps_ImsServiceEntitlement/{1002-A15-FCM_removal.patch => 1001-A15-FCM_removal.patch} (94%) delete mode 100644 patches/LeOS-V/leos/platform_packages_apps_ImsServiceEntitlement/1001-A15_remove_token.patch create mode 100644 patches/LeOS-V/leos/platform_packages_apps_Settings/0005-security_dashboard_e.patch rename patches/LeOS-V/leos/{platform_packages_sdervices_Telephony => platform_packages_services_Telephony}/0001-android.bp.patch (100%) rename patches/LeOS-V/leos/platform_system_apex/{0001-Disable-O_DIRECT-for-old-kernels.patch => 0001-Disable-O_DIRECT-for-old-kernels.patchOLD} (100%) create mode 100644 patches/LeOS-V/leos/platform_vendor_hardware_overlay/1002-MI11tOverlay.patch diff --git a/patches/LeOS-V/leos/platform_device_phh_treble/0003-1003-A15-r5-rw-system.patch b/patches/LeOS-V/leos/platform_device_phh_treble/0003-1003-A15-r5-rw-system.patch new file mode 100644 index 00000000..5285355d --- /dev/null +++ b/patches/LeOS-V/leos/platform_device_phh_treble/0003-1003-A15-r5-rw-system.patch @@ -0,0 +1,32 @@ +From c87860bc80843e38d816e11d311120faa7c2fe7d Mon Sep 17 00:00:00 2001 +From: harvey186 +Date: Sat, 9 Nov 2024 13:28:59 +0100 +Subject: [PATCH] 1003-A15-r5-rw-system + +--- + rw-system.sh | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/rw-system.sh b/rw-system.sh +index 7ea44f6..a7874d8 100644 +--- a/rw-system.sh ++++ b/rw-system.sh +@@ -843,12 +843,12 @@ copyprop() { + resetprop_phh ro.boot.veritymode enforcing + resetprop_phh ro.boot.warranty_bit 0 + resetprop_phh ro.warranty_bit 0 +- resetprop_phh ro.debuggable 0 +- resetprop_phh ro.secure 1 ++ resetprop_phh ro.debuggable 1 ++ resetprop_phh ro.secure 0 + resetprop_phh ro.build.type user + resetprop_phh --delete ro.build.selinux + +- resetprop_phh ro.adb.secure 1 ++ + + for abi in "" 64;do + f=/vendor/lib$abi/libstagefright_foundation.so +-- +2.34.1 + diff --git a/patches/LeOS-V/leos/platform_device_phh_treble/1001-A15_r5_generate.sh.patch b/patches/LeOS-V/leos/platform_device_phh_treble/1001-A15_r5_generate.sh.patch new file mode 100644 index 00000000..1e720e45 --- /dev/null +++ b/patches/LeOS-V/leos/platform_device_phh_treble/1001-A15_r5_generate.sh.patch @@ -0,0 +1,132 @@ +From df2b3de08afa114ffd666fa51bbb2d2dcc5c80c3 Mon Sep 17 00:00:00 2001 +From: harvey186 +Date: Sat, 9 Nov 2024 13:25:47 +0100 +Subject: [PATCH] generate.sh + +--- + generate.sh | 11 ++++++----- + {tdgsi_a64_ab => leos_a64_ab}/BoardConfig.mk | 0 + {tdgsi_arm64_ab => leos_arm64_ab}/BoardConfig.mk | 0 + tdgsi_a64_a/BoardConfig.mk | 8 -------- + tdgsi_arm64_a/BoardConfig.mk | 7 ------- + tdgsi_arm_a/BoardConfig.mk | 11 ----------- + tdgsi_arm_ab/BoardConfig.mk | 7 ------- + 7 files changed, 6 insertions(+), 38 deletions(-) + rename {tdgsi_a64_ab => leos_a64_ab}/BoardConfig.mk (100%) + rename {tdgsi_arm64_ab => leos_arm64_ab}/BoardConfig.mk (100%) + delete mode 100644 tdgsi_a64_a/BoardConfig.mk + delete mode 100644 tdgsi_arm64_a/BoardConfig.mk + delete mode 100644 tdgsi_arm_a/BoardConfig.mk + delete mode 100644 tdgsi_arm_ab/BoardConfig.mk + +diff --git a/generate.sh b/generate.sh +index 1e63d8c..606bdfe 100644 +--- a/generate.sh ++++ b/generate.sh +@@ -15,8 +15,8 @@ fi + echo 'PRODUCT_MAKEFILES := \' > AndroidProducts.mk + + for part in a ab;do +- for apps in vanilla gapps foss gapps-go;do +- for arch in arm64 arm a64;do ++ for apps in vanilla;do ++ for arch in arm64 a64;do + for su in yes no;do + apps_suffix="" + apps_script="" +@@ -64,7 +64,7 @@ for part in a ab;do + optional_base='$(call inherit-product, device/phh/treble/base-sas.mk)' + fi + +- target="treble_${arch}_${part_suffix}${apps_suffix}${su_suffix}" ++ target="leos_${arch}_${part_suffix}${apps_suffix}${su_suffix}" + + baseArch="$arch" + if [ "$arch" = "a64" ];then +@@ -80,15 +80,16 @@ for part in a ab;do + TARGET_GAPPS_ARCH := ${baseArch} + include build/make/target/product/aosp_${baseArch}.mk + \$(call inherit-product, device/phh/treble/base.mk) ++\$(call inherit-product, vendor/LeOS/leos.mk) + $optional_base + $apps_script + $rom_script + + PRODUCT_NAME := $target +-PRODUCT_DEVICE := tdgsi_${arch}_$part ++PRODUCT_DEVICE := leos_${arch}_$part + PRODUCT_BRAND := google + PRODUCT_SYSTEM_BRAND := google +-PRODUCT_MODEL := TrebleDroid $apps_name ++PRODUCT_MODEL := LeOS-V + + # Overwrite the inherited "emulator" characteristics + PRODUCT_CHARACTERISTICS := device +diff --git a/tdgsi_a64_ab/BoardConfig.mk b/leos_a64_ab/BoardConfig.mk +similarity index 100% +rename from tdgsi_a64_ab/BoardConfig.mk +rename to leos_a64_ab/BoardConfig.mk +diff --git a/tdgsi_arm64_ab/BoardConfig.mk b/leos_arm64_ab/BoardConfig.mk +similarity index 100% +rename from tdgsi_arm64_ab/BoardConfig.mk +rename to leos_arm64_ab/BoardConfig.mk +diff --git a/tdgsi_a64_a/BoardConfig.mk b/tdgsi_a64_a/BoardConfig.mk +deleted file mode 100644 +index d430bf8..0000000 +--- a/tdgsi_a64_a/BoardConfig.mk ++++ /dev/null +@@ -1,8 +0,0 @@ +-include build/make/target/board/generic_arm_ab/BoardConfig.mk +-include device/phh/treble/board-base.mk +- +-ifeq ($(BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE),) +-BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1572864000 +-endif +-TARGET_USES_64_BIT_BINDER := true +-BOARD_SYSTEMIMAGE_AS_SYSTEM := true +diff --git a/tdgsi_arm64_a/BoardConfig.mk b/tdgsi_arm64_a/BoardConfig.mk +deleted file mode 100644 +index c9bc831..0000000 +--- a/tdgsi_arm64_a/BoardConfig.mk ++++ /dev/null +@@ -1,7 +0,0 @@ +-include build/make/target/board/generic_arm64_ab/BoardConfig.mk +-include device/phh/treble/board-base.mk +- +-ifeq ($(BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE),) +-BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2080374784 +-endif +-BOARD_SYSTEMIMAGE_AS_SYSTEM := true +diff --git a/tdgsi_arm_a/BoardConfig.mk b/tdgsi_arm_a/BoardConfig.mk +deleted file mode 100644 +index 7340fc4..0000000 +--- a/tdgsi_arm_a/BoardConfig.mk ++++ /dev/null +@@ -1,11 +0,0 @@ +-include build/make/target/board/generic_arm_ab/BoardConfig.mk +-include device/phh/treble/board-base.mk +- +-ifeq ($(BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE),) +-BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1313583104 +-else +-BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 25165824 +-endif +- +-TARGET_USES_64_BIT_BINDER := false +-BOARD_SYSTEMIMAGE_AS_SYSTEM := true +diff --git a/tdgsi_arm_ab/BoardConfig.mk b/tdgsi_arm_ab/BoardConfig.mk +deleted file mode 100644 +index a9a4fe3..0000000 +--- a/tdgsi_arm_ab/BoardConfig.mk ++++ /dev/null +@@ -1,7 +0,0 @@ +-include build/make/target/board/generic_arm_ab/BoardConfig.mk +-include device/phh/treble/board-base.mk +- +-ifeq ($(BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE),) +-BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824 +-endif +-TARGET_USES_64_BIT_BINDER := false +-- +2.34.1 + diff --git a/patches/LeOS-V/leos/platform_frameworks_base/1040-face_unlock.patch b/patches/LeOS-V/leos/platform_frameworks_base/1040-face_unlock.patch index 25014a1d..24d833e5 100644 --- a/patches/LeOS-V/leos/platform_frameworks_base/1040-face_unlock.patch +++ b/patches/LeOS-V/leos/platform_frameworks_base/1040-face_unlock.patch @@ -131,23 +131,9 @@ index 97791acfb..bc04477fb 100644 pw.println(" canBypass: ${canBypass()}") pw.println(" bouncerShowing: $bouncerShowing") pw.println(" altBouncerShowing:" + -diff --git a/services/core/Android.bp b/services/core/Android.bp -index 0ee9e0d8b..4f8fd8829 100644 ---- a/services/core/Android.bp -+++ b/services/core/Android.bp -@@ -231,6 +231,10 @@ java_library_static { - "dreams_flags_lib", - "aconfig_new_storage_flags_lib", - "powerstats_flags_lib", -+ "vendor.oplus.hardware.biometrics.fingerprint-V2.1-java", -+ "vendor.oppo.hardware.biometrics.fingerprint-V2.1-java", -+ "vendor.xiaomi.hardware.fingerprintextension-V1.0-java", -+ "vendor.aospa.biometrics.face", - - //AIDL - "vendor.samsung.hardware.sysinput-V1-java", + diff --git a/services/core/java/com/android/server/biometrics/sensors/face/FaceService.java b/services/core/java/com/android/server/biometrics/sensors/face/FaceService.java -index bd6d59391..8253ac61f 100644 +index bd6d59391e4a..700dd26f49ca 100644 --- a/services/core/java/com/android/server/biometrics/sensors/face/FaceService.java +++ b/services/core/java/com/android/server/biometrics/sensors/face/FaceService.java @@ -26,6 +26,7 @@ import android.app.ActivityManager; @@ -158,14 +144,14 @@ index bd6d59391..8253ac61f 100644 import android.hardware.biometrics.IBiometricSensorReceiver; import android.hardware.biometrics.IBiometricService; import android.hardware.biometrics.IBiometricServiceLockoutResetCallback; -@@ -40,6 +41,7 @@ import android.hardware.face.FaceAuthenticateOptions; +@@ -39,6 +40,7 @@ import android.hardware.face.Face; + import android.hardware.face.FaceAuthenticateOptions; import android.hardware.face.FaceEnrollOptions; import android.hardware.face.FaceSensorConfigurations; - import android.hardware.face.FaceSensorPropertiesInternal; +import android.hardware.face.FaceSensorProperties; + import android.hardware.face.FaceSensorPropertiesInternal; import android.hardware.face.FaceServiceReceiver; import android.hardware.face.IFaceAuthenticatorsRegisteredCallback; - import android.hardware.face.IFaceService; @@ -72,6 +74,8 @@ import com.android.server.biometrics.sensors.ClientMonitorCallbackConverter; import com.android.server.biometrics.sensors.LockoutResetDispatcher; import com.android.server.biometrics.sensors.LockoutTracker; @@ -175,39 +161,47 @@ index bd6d59391..8253ac61f 100644 import java.io.FileDescriptor; import java.io.PrintWriter; -@@ -661,7 +665,23 @@ public class FaceService extends SystemService { - provider.second.scheduleGetFeature(provider.first, token, userId, feature, +@@ -662,12 +666,28 @@ public class FaceService extends SystemService { new ClientMonitorCallbackConverter(receiver), opPackageName); } -- + + private List getSenseProviders() { + final List providers = new ArrayList<>(); -+ if (SenseUtils.canUseProvider()) { -+ FaceSensorPropertiesInternal props = new FaceSensorPropertiesInternal( -+ SenseProvider.DEVICE_ID, -+ SensorProperties.STRENGTH_WEAK, -+ 1, /** maxEnrollmentsPerUser **/ -+ new ArrayList(), -+ FaceSensorProperties.TYPE_RGB, -+ false, /** supportsFaceDetection **/ -+ false, /** supportsSelfIllumination **/ -+ false); /** resetLockoutRequiresChallenge **/ -+ SenseProvider provider = new SenseProvider(getContext(), mBiometricStateCallback, props, mLockoutResetDispatcher); -+ providers.add(provider); -+ } ++ FaceSensorPropertiesInternal props = new FaceSensorPropertiesInternal( ++ SenseProvider.DEVICE_ID, ++ SensorProperties.STRENGTH_WEAK, ++ 1, /** maxEnrollmentsPerUser **/ ++ new ArrayList(), ++ FaceSensorProperties.TYPE_RGB, ++ false, /** supportsFaceDetection **/ ++ false, /** supportsSelfIllumination **/ ++ false); /** resetLockoutRequiresChallenge **/ ++ SenseProvider provider = new SenseProvider(getContext(), mBiometricStateCallback, props, mLockoutResetDispatcher); ++ providers.add(provider); + return providers; -+ ++ } ++ @android.annotation.EnforcePermission(android.Manifest.permission.USE_BIOMETRIC_INTERNAL) public void registerAuthenticators( FaceSensorConfigurations faceSensorConfigurations) { -@@ -681,6 +701,7 @@ public class FaceService extends SystemService { + super.registerAuthenticators_enforcePermission(); + +- if (!faceSensorConfigurations.hasSensorConfigurations()) { ++ if (!faceSensorConfigurations.hasSensorConfigurations() && !SenseUtils.canUseProvider()) { + Slog.d(TAG, "No face sensors to register."); + return; + } +@@ -677,6 +697,10 @@ public class FaceService extends SystemService { + private List getProviders( + FaceSensorConfigurations faceSensorConfigurations) { + final List providers = new ArrayList<>(); ++ if (SenseUtils.canUseProvider()) { ++ providers.addAll(getSenseProviders()); ++ return providers; ++ } + final Pair filteredSensorProps = filterAvailableHalInstances( faceSensorConfigurations); providers.add(mFaceProviderFunction.getFaceProvider(filteredSensorProps, - faceSensorConfigurations.getResetLockoutRequiresChallenge())); -+ providers.addAll(getSenseProviders()); - return providers; - } - diff --git a/services/core/java/com/android/server/biometrics/sensors/face/sense/BiometricTestSessionImpl.java b/services/core/java/com/android/server/biometrics/sensors/face/sense/BiometricTestSessionImpl.java new file mode 100644 index 000000000..c1122a202 diff --git a/patches/LeOS-V/leos/platform_packages_apps_ImsServiceEntitlement/1002-A15-FCM_removal.patch b/patches/LeOS-V/leos/platform_packages_apps_ImsServiceEntitlement/1001-A15-FCM_removal.patch similarity index 94% rename from patches/LeOS-V/leos/platform_packages_apps_ImsServiceEntitlement/1002-A15-FCM_removal.patch rename to patches/LeOS-V/leos/platform_packages_apps_ImsServiceEntitlement/1001-A15-FCM_removal.patch index d90fe513..87d2fcac 100644 --- a/patches/LeOS-V/leos/platform_packages_apps_ImsServiceEntitlement/1002-A15-FCM_removal.patch +++ b/patches/LeOS-V/leos/platform_packages_apps_ImsServiceEntitlement/1001-A15-FCM_removal.patch @@ -1,18 +1,18 @@ -From 4f7591caab051ae0664d9802da14cd071591ec91 Mon Sep 17 00:00:00 2001 +From d12c9b401eb1e2956df7845a0792105c410a8835 Mon Sep 17 00:00:00 2001 From: harvey186 -Date: Mon, 9 Sep 2024 16:14:56 +0200 -Subject: [PATCH] FCM_removal +Date: Sun, 10 Nov 2024 08:59:12 +0100 +Subject: [PATCH] 1002-A15-FCM_removal -Change-Id: Id723dba9a296fc356a2b86ba7081b6a070012f4c +Change-Id: I8dfe24756797bc8f8d350d210c270e14dccc5c03 --- Android.bp | 2 - - .../ImsEntitlementApi.java | 1 - + .../ImsEntitlementApi.java | 6 - .../fcm/FcmRegistrationReceiver.java | 32 ---- .../fcm/FcmRegistrationService.java | 153 ------------------ .../imsserviceentitlement/fcm/FcmService.java | 135 ---------------- .../fcm/FcmTokenStore.java | 83 ---------- .../imsserviceentitlement/fcm/FcmUtils.java | 73 --------- - 7 files changed, 479 deletions(-) + 7 files changed, 484 deletions(-) delete mode 100644 src/com/android/imsserviceentitlement/fcm/FcmRegistrationReceiver.java delete mode 100644 src/com/android/imsserviceentitlement/fcm/FcmRegistrationService.java delete mode 100644 src/com/android/imsserviceentitlement/fcm/FcmService.java @@ -34,13 +34,25 @@ index 55dcf84..74c730d 100644 "transport-api-aar", "firebase-measurement-connector-aar", diff --git a/src/com/android/imsserviceentitlement/ImsEntitlementApi.java b/src/com/android/imsserviceentitlement/ImsEntitlementApi.java -index af9ba27..7db4365 100644 +index cc5e5f0..7db4365 100644 --- a/src/com/android/imsserviceentitlement/ImsEntitlementApi.java +++ b/src/com/android/imsserviceentitlement/ImsEntitlementApi.java -@@ -107,7 +107,6 @@ public class ImsEntitlementApi { +@@ -30,8 +30,6 @@ import com.android.imsserviceentitlement.debug.DebugUtils; + import com.android.imsserviceentitlement.entitlement.EntitlementConfiguration; + import com.android.imsserviceentitlement.entitlement.EntitlementConfiguration.ClientBehavior; + import com.android.imsserviceentitlement.entitlement.EntitlementResult; +-import com.android.imsserviceentitlement.fcm.FcmTokenStore; +-import com.android.imsserviceentitlement.fcm.FcmUtils; + import com.android.imsserviceentitlement.ts43.Ts43Constants.ResponseXmlAttributes; + import com.android.imsserviceentitlement.ts43.Ts43SmsOverIpStatus; + import com.android.imsserviceentitlement.ts43.Ts43VolteStatus; +@@ -109,10 +107,6 @@ public class ImsEntitlementApi { public EntitlementResult checkEntitlementStatus() { Log.d(TAG, "checkEntitlementStatus subId=" + mSubId); ServiceEntitlementRequest.Builder requestBuilder = ServiceEntitlementRequest.builder(); +- mLastEntitlementConfiguration.getToken().ifPresent( +- token -> requestBuilder.setAuthenticationToken(token)); +- FcmUtils.fetchFcmToken(mContext, mSubId); - requestBuilder.setNotificationToken(FcmTokenStore.getToken(mContext, mSubId)); int entitlementVersion = TelephonyUtils.getEntitlementVersion(mContext, mSubId); requestBuilder.setEntitlementVersion(entitlementVersion + ".0"); diff --git a/patches/LeOS-V/leos/platform_packages_apps_ImsServiceEntitlement/1001-A15_remove_token.patch b/patches/LeOS-V/leos/platform_packages_apps_ImsServiceEntitlement/1001-A15_remove_token.patch deleted file mode 100644 index 7e2c610e..00000000 --- a/patches/LeOS-V/leos/platform_packages_apps_ImsServiceEntitlement/1001-A15_remove_token.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 172feede02ca905e5552cd24327ecd7804d2d78d Mon Sep 17 00:00:00 2001 -From: harvey186 -Date: Mon, 9 Sep 2024 12:47:34 +0200 -Subject: [PATCH] 1001-A15_remove_token - -Change-Id: Ib797f46ccaf2e4531907a91b484cd26689cb80da ---- - src/com/android/imsserviceentitlement/ImsEntitlementApi.java | 5 ----- - 1 file changed, 5 deletions(-) - -diff --git a/src/com/android/imsserviceentitlement/ImsEntitlementApi.java b/src/com/android/imsserviceentitlement/ImsEntitlementApi.java -index cc5e5f0..af9ba27 100644 ---- a/src/com/android/imsserviceentitlement/ImsEntitlementApi.java -+++ b/src/com/android/imsserviceentitlement/ImsEntitlementApi.java -@@ -30,8 +30,6 @@ import com.android.imsserviceentitlement.debug.DebugUtils; - import com.android.imsserviceentitlement.entitlement.EntitlementConfiguration; - import com.android.imsserviceentitlement.entitlement.EntitlementConfiguration.ClientBehavior; - import com.android.imsserviceentitlement.entitlement.EntitlementResult; --import com.android.imsserviceentitlement.fcm.FcmTokenStore; --import com.android.imsserviceentitlement.fcm.FcmUtils; - import com.android.imsserviceentitlement.ts43.Ts43Constants.ResponseXmlAttributes; - import com.android.imsserviceentitlement.ts43.Ts43SmsOverIpStatus; - import com.android.imsserviceentitlement.ts43.Ts43VolteStatus; -@@ -109,9 +107,6 @@ public class ImsEntitlementApi { - public EntitlementResult checkEntitlementStatus() { - Log.d(TAG, "checkEntitlementStatus subId=" + mSubId); - ServiceEntitlementRequest.Builder requestBuilder = ServiceEntitlementRequest.builder(); -- mLastEntitlementConfiguration.getToken().ifPresent( -- token -> requestBuilder.setAuthenticationToken(token)); -- FcmUtils.fetchFcmToken(mContext, mSubId); - requestBuilder.setNotificationToken(FcmTokenStore.getToken(mContext, mSubId)); - int entitlementVersion = TelephonyUtils.getEntitlementVersion(mContext, mSubId); - requestBuilder.setEntitlementVersion(entitlementVersion + ".0"); --- -2.34.1 - diff --git a/patches/LeOS-V/leos/platform_packages_apps_Settings/0005-security_dashboard_e.patch b/patches/LeOS-V/leos/platform_packages_apps_Settings/0005-security_dashboard_e.patch new file mode 100644 index 00000000..a04009be --- /dev/null +++ b/patches/LeOS-V/leos/platform_packages_apps_Settings/0005-security_dashboard_e.patch @@ -0,0 +1,27 @@ +From a54c5682c337ffe9b1307475e2b1b2405fc83505 Mon Sep 17 00:00:00 2001 +From: harvey186 +Date: Thu, 17 Oct 2024 11:19:02 +0200 +Subject: [PATCH] security_dashboard_e + +Change-Id: I359b3c1ac4ac56adea32d86edad57c7c4b1f9f3e +--- + res/values/strings.xml | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/res/values/strings.xml b/res/values/strings.xml +index a7f7e33..3956aeb 100644 +--- a/res/values/strings.xml ++++ b/res/values/strings.xml +@@ -696,6 +696,9 @@ + + + App security, device lock, permissions ++ ++ ++ Screen lock, app security + + + +-- +2.34.1 + diff --git a/patches/LeOS-V/leos/platform_packages_modules_NetworkStack/1003-dnscheck.grapheneos.patch b/patches/LeOS-V/leos/platform_packages_modules_NetworkStack/1003-dnscheck.grapheneos.patch index bae50a18..52d0bb61 100644 --- a/patches/LeOS-V/leos/platform_packages_modules_NetworkStack/1003-dnscheck.grapheneos.patch +++ b/patches/LeOS-V/leos/platform_packages_modules_NetworkStack/1003-dnscheck.grapheneos.patch @@ -1,25 +1,26 @@ -From b89b40764264478e67486ba22052e24ca54c4b25 Mon Sep 17 00:00:00 2001 +From d7973c5d6cfdef5c8a5b9a8294d09e521d6a2750 Mon Sep 17 00:00:00 2001 From: harvey186 -Date: Sat, 14 Sep 2024 13:12:03 +0200 -Subject: [PATCH] dnscheck.grapheneos +Date: Sun, 10 Nov 2024 09:06:56 +0100 +Subject: [PATCH] 1003-dnscheck.grapheneos -Change-Id: I4e949e53c4f862032f215e027cdab7dcf8ce5b11 +Change-Id: Id9ac8263d9665faa32e77949e8e031d8efc4f58d --- - src/com/android/networkstack/util/DnsUtils.java | 1 - - 1 file changed, 1 deletion(-) + src/com/android/networkstack/util/DnsUtils.java | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/networkstack/util/DnsUtils.java b/src/com/android/networkstack/util/DnsUtils.java -index ce56d11..95c44ba 100644 +index 622f56a5..95c44bab 100644 --- a/src/com/android/networkstack/util/DnsUtils.java +++ b/src/com/android/networkstack/util/DnsUtils.java -@@ -50,7 +50,6 @@ public class DnsUtils { +@@ -50,7 +50,7 @@ public class DnsUtils { public static final int TYPE_ADDRCONFIG = -1; // A one time host name suffix of private dns probe. // q.v. system/netd/server/dns/DnsTlsTransport.cpp --// public static final String PRIVATE_DNS_PROBE_HOST_SUFFIX = "-dnsotls-ds.metric.gstatic.com"; - public static final String PRIVATE_DNS_PROBE_HOST_SUFFIX = "-dnsotls-ds.dnscheck.grapheneos.org"; +- public static final String PRIVATE_DNS_PROBE_HOST_SUFFIX = "-dnsotls-ds.metric.gstatic.com"; ++ public static final String PRIVATE_DNS_PROBE_HOST_SUFFIX = "-dnsotls-ds.dnscheck.grapheneos.org"; private static final String TAG = DnsUtils.class.getSimpleName(); private static final boolean DBG = Log.isLoggable(TAG, Log.DEBUG); + -- 2.34.1 diff --git a/patches/LeOS-V/leos/platform_packages_sdervices_Telephony/0001-android.bp.patch b/patches/LeOS-V/leos/platform_packages_services_Telephony/0001-android.bp.patch similarity index 100% rename from patches/LeOS-V/leos/platform_packages_sdervices_Telephony/0001-android.bp.patch rename to patches/LeOS-V/leos/platform_packages_services_Telephony/0001-android.bp.patch diff --git a/patches/LeOS-V/leos/platform_system_apex/0001-Disable-O_DIRECT-for-old-kernels.patch b/patches/LeOS-V/leos/platform_system_apex/0001-Disable-O_DIRECT-for-old-kernels.patchOLD similarity index 100% rename from patches/LeOS-V/leos/platform_system_apex/0001-Disable-O_DIRECT-for-old-kernels.patch rename to patches/LeOS-V/leos/platform_system_apex/0001-Disable-O_DIRECT-for-old-kernels.patchOLD diff --git a/patches/LeOS-V/leos/platform_vendor_hardware_overlay/1002-MI11tOverlay.patch b/patches/LeOS-V/leos/platform_vendor_hardware_overlay/1002-MI11tOverlay.patch new file mode 100644 index 00000000..7e778047 --- /dev/null +++ b/patches/LeOS-V/leos/platform_vendor_hardware_overlay/1002-MI11tOverlay.patch @@ -0,0 +1,523 @@ +From 3bd9a788b7b2fe0071c60835aebef1a77f370cd2 Mon Sep 17 00:00:00 2001 +From: harvey186 +Date: Sun, 10 Nov 2024 09:15:17 +0100 +Subject: [PATCH] MI11tOverlay + +--- + Xiaomi/Mi11T/Android.mk | 8 + + Xiaomi/Mi11T/AndroidManifest.xml | 10 + + Xiaomi/Mi11T/res/values/config.xml | 294 +++++++++++++++++++++++++ + Xiaomi/Mi11T/res/xml/power_profile.xml | 155 +++++++++++++ + overlay.mk | 1 + + 5 files changed, 468 insertions(+) + create mode 100644 Xiaomi/Mi11T/Android.mk + create mode 100644 Xiaomi/Mi11T/AndroidManifest.xml + create mode 100644 Xiaomi/Mi11T/res/values/config.xml + create mode 100644 Xiaomi/Mi11T/res/xml/power_profile.xml + +diff --git a/Xiaomi/Mi11T/Android.mk b/Xiaomi/Mi11T/Android.mk +new file mode 100644 +index 0000000..2b091fb +--- /dev/null ++++ b/Xiaomi/Mi11T/Android.mk +@@ -0,0 +1,8 @@ ++LOCAL_PATH := $(call my-dir) ++include $(CLEAR_VARS) ++LOCAL_MODULE_TAGS := optional ++LOCAL_PACKAGE_NAME := treble-overlay-xiaomi-mi11t ++LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay ++LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true ++LOCAL_PRIVATE_PLATFORM_APIS := true ++include $(BUILD_PACKAGE) +diff --git a/Xiaomi/Mi11T/AndroidManifest.xml b/Xiaomi/Mi11T/AndroidManifest.xml +new file mode 100644 +index 0000000..349e59c +--- /dev/null ++++ b/Xiaomi/Mi11T/AndroidManifest.xml +@@ -0,0 +1,10 @@ ++ ++ ++ +diff --git a/Xiaomi/Mi11T/res/values/config.xml b/Xiaomi/Mi11T/res/values/config.xml +new file mode 100644 +index 0000000..b5a8010 +--- /dev/null ++++ b/Xiaomi/Mi11T/res/values/config.xml +@@ -0,0 +1,294 @@ ++ ++ ++ ++ ++ true ++ true ++ true ++ ++ ++ ++ 20.0dip ++ 30.0dip ++ 30.0dip ++ 48.0dip ++ ++ ++ ++ ++ 2 ++ 6 ++ 10 ++ 30 ++ 100 ++ 400 ++ 600 ++ 1000 ++ ++ ++ 800 ++ 800 ++ 500 ++ 500 ++ 500 ++ 500 ++ 500 ++ 500 ++ ++ ++ 2 ++ 10 ++ 30 ++ 100 ++ 800 ++ 2000 ++ 4000 ++ ++ ++ 3.5 ++ 4.3 ++ 5.0 ++ 17.0 ++ 24.3 ++ 29.7 ++ 34.0 ++ 46.0 ++ 59.0 ++ 76.0 ++ 81.0 ++ 82.0 ++ 82.0 ++ 82.0 ++ 83.0 ++ 83.0 ++ 83.0 ++ 84.0 ++ 84.0 ++ 85.0 ++ 85.0 ++ 85.0 ++ 85.0 ++ 86.0 ++ 86.0 ++ 87.0 ++ 89.0 ++ 90.0 ++ 91.0 ++ 93.0 ++ 94.0 ++ 96.0 ++ 97.0 ++ 99.0 ++ 100.0 ++ 101.0 ++ 104.0 ++ 105.0 ++ 106.0 ++ 108.0 ++ 109.0 ++ 111.0 ++ 112.0 ++ 114.0 ++ 116.0 ++ 137.0 ++ 157.0 ++ 180.0 ++ 205.0 ++ 226.0 ++ 257.0 ++ 280.0 ++ 295.0 ++ 369.0 ++ 400.0 ++ 416.7 ++ 433.3 ++ 450.0 ++ 466.7 ++ 483.3 ++ 500.0 ++ 512.5 ++ 525.0 ++ 537.5 ++ 550.0 ++ 562.5 ++ 575.0 ++ 587.5 ++ 600.0 ++ 610.0 ++ 620.0 ++ 630.0 ++ 640.0 ++ 650.0 ++ 660.0 ++ 670.0 ++ 680.0 ++ 690.0 ++ 700.0 ++ 705.0 ++ 710.0 ++ 715.0 ++ 720.0 ++ 725.0 ++ 730.0 ++ 735.0 ++ 740.0 ++ 745.0 ++ 750.0 ++ 755.0 ++ 760.0 ++ 765.0 ++ 770.0 ++ 775.0 ++ 800.0 ++ 816.7 ++ 833.3 ++ 850.0 ++ 866.7 ++ 883.3 ++ 900.0 ++ 914.3 ++ 928.6 ++ 942.9 ++ 957.1 ++ 971.4 ++ 985.7 ++ 1000.0 ++ ++ ++ 4 ++ 4 ++ 4 ++ 8 ++ 15 ++ 20 ++ 26 ++ 35 ++ 45 ++ 46 ++ 46 ++ 46 ++ 60 ++ 60 ++ 60 ++ 64 ++ 66 ++ 70 ++ 73 ++ 80 ++ 88 ++ 110 ++ 130 ++ 135 ++ 145 ++ 180 ++ 200 ++ 240 ++ 255 ++ ++ ++ 1 ++ 2 ++ 5 ++ 9 ++ 13 ++ 17 ++ 21 ++ 26 ++ 30 ++ 40 ++ 83 ++ 104 ++ 200 ++ 400 ++ 500 ++ 600 ++ 700 ++ 800 ++ 1000 ++ 1200 ++ 1500 ++ 1800 ++ 2000 ++ 2165 ++ 2680 ++ 3000 ++ 3540 ++ 4000 ++ ++ ++ 0:2:15 ++ ++ ++ 2000 ++ 2000 ++ 1000 ++ 1000 ++ 500 ++ 500 ++ 500 ++ 500 ++ ++ ++ 800 ++ 800 ++ 800 ++ 800 ++ 800 ++ 500 ++ 500 ++ 500 ++ ++ ++ 2 ++ 10 ++ 30 ++ 100 ++ 800 ++ 2000 ++ 4000 ++ ++ ++ 0 ++ ++ ++ 0 ++ ++ ++ ++ ++ 300.0% ++ ++ ++ ++ 1000 ++ 1000 ++ 6 ++ 3700 ++ 28 ++ 36 ++ 180 ++ 60 ++ 60 ++ 1 ++ 17 ++ 86 ++ 255 ++ 79 ++ 67 ++ 255 ++ 1 ++ 600 ++ ++ ++ ++ M 0,0 H -27 V 84 H 27 V 0 H 0 Z ++ ++ ++ true ++ false ++ false ++ true ++ true ++ false ++ ++ +diff --git a/Xiaomi/Mi11T/res/xml/power_profile.xml b/Xiaomi/Mi11T/res/xml/power_profile.xml +new file mode 100644 +index 0000000..73d3baf +--- /dev/null ++++ b/Xiaomi/Mi11T/res/xml/power_profile.xml +@@ -0,0 +1,155 @@ ++ ++ ++ ++ 0 ++ 87.19 ++ 403.79 ++ 21.21 ++ 0.29 ++ 1.12 ++ 112.32 ++ 36.56 ++ 24.58 ++ 89.93 ++ 119.91 ++ 690.25 ++ 30.61 ++ 205.01 ++ 94.5 ++ ++ 1.85 ++ 1.85 ++ ++ 0 ++ 0 ++ 0 ++ 0 ++ ++ 4 ++ 3 ++ 1 ++ ++ ++ 500000 ++ 600000 ++ 675000 ++ 750000 ++ 850000 ++ 925000 ++ 1000000 ++ 1075000 ++ 1250000 ++ 1350000 ++ 1450000 ++ 1525000 ++ 1625000 ++ 1725000 ++ 1800000 ++ 2000000 ++ ++ ++ 38.28 ++ 38.58 ++ 40.07 ++ 40.79 ++ 42.2 ++ 43.19 ++ 45.18 ++ 45.31 ++ 51.62 ++ 52.1 ++ 53.31 ++ 57.71 ++ 59.72 ++ 62.02 ++ 66.2 ++ 76.08 ++ ++ ++ 437000 ++ 700000 ++ 902000 ++ 1046000 ++ 1162000 ++ 1335000 ++ 1451000 ++ 1537000 ++ 1624000 ++ 1740000 ++ 1855000 ++ 1985000 ++ 2200000 ++ 2354000 ++ 2507000 ++ 2600000 ++ ++ ++ 54.78 ++ 72.2 ++ 81.18 ++ 95.58 ++ 111.47 ++ 117.26 ++ 129.38 ++ 141.26 ++ 147.71 ++ 161.09 ++ 185.82 ++ 209.2 ++ 247.72 ++ 293.28 ++ 346.95 ++ 358.09 ++ ++ ++ 659000 ++ 921000 ++ 1108000 ++ 1258000 ++ 1370000 ++ 1482000 ++ 1632000 ++ 1820000 ++ 1998000 ++ 2141000 ++ 2284000 ++ 2463000 ++ 2600000 ++ 2713000 ++ 2892000 ++ 3000000 ++ ++ ++ 79.61 ++ 96.4 ++ 116.92 ++ 134.02 ++ 143.51 ++ 160.75 ++ 182.09 ++ 204.07 ++ 248.71 ++ 291.45 ++ 336.45 ++ 398.92 ++ 444.4 ++ 505.96 ++ 641.21 ++ 722.08 ++ ++ 17.43 ++ 8.1 ++ 5000 ++ 0 ++ 0 ++ 0 ++ ++ 0 ++ ++ .0002 ++ .002 ++ .02 ++ .2 ++ 2 ++ ++ +diff --git a/overlay.mk b/overlay.mk +index e025bb2..42e1b68 100644 +--- a/overlay.mk ++++ b/overlay.mk +@@ -360,6 +360,7 @@ PRODUCT_PACKAGES += \ + treble-overlay-xiaomi-civi4pro-systemui \ + treble-overlay-xiaomi-mi11lite5g \ + treble-overlay-xiaomi-mi11lite5g-systemui \ ++ treble-overlay-xiaomi-mi11t \ + treble-overlay-xiaomi-mi11tpro \ + treble-overlay-xiaomi-mi12lite \ + treble-overlay-xiaomi-mi12lite-systemui \ +-- +2.34.1 +