Delete patches_platform/frameworks_base/0017-Limit-SafetyNet-workarounds-to-unstable-GMS-process.patch
This commit is contained in:
parent
67b69b0dcc
commit
94ea140e3f
@ -1,42 +0,0 @@
|
|||||||
From 05bc5fa10b4e2ebc539c32db04abbc995906ff05 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Danny Lin <danny@kdrag0n.dev>
|
|
||||||
Date: Mon, 1 Nov 2021 20:06:48 -0700
|
|
||||||
Subject: [PATCH 17/22] Limit SafetyNet workarounds to unstable GMS process
|
|
||||||
|
|
||||||
The unstable process is where SafetyNet attestation actually runs, so
|
|
||||||
we only need to spoof the model in that process. Leaving other processes
|
|
||||||
fixes various issues caused by model detection and flag provisioning,
|
|
||||||
including screen-off Voice Match in Google Assistant, broken At a Glance
|
|
||||||
weather and settings on Android 12, and more.
|
|
||||||
|
|
||||||
Change-Id: Idcf663907a6c3d0408dbd45b1ac53c9eb4200df8
|
|
||||||
---
|
|
||||||
.../com/android/internal/gmscompat/AttestationHooks.java | 5 ++++-
|
|
||||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/core/java/com/android/internal/gmscompat/AttestationHooks.java b/core/java/com/android/internal/gmscompat/AttestationHooks.java
|
|
||||||
index f2c85c82821f..37ce8c946de6 100644
|
|
||||||
--- a/core/java/com/android/internal/gmscompat/AttestationHooks.java
|
|
||||||
+++ b/core/java/com/android/internal/gmscompat/AttestationHooks.java
|
|
||||||
@@ -29,6 +29,8 @@ public final class AttestationHooks {
|
|
||||||
private static final String TAG = "GmsCompat/Attestation";
|
|
||||||
|
|
||||||
private static final String PACKAGE_GMS = "com.google.android.gms";
|
|
||||||
+ private static final String PROCESS_UNSTABLE = "com.google.android.gms.unstable";
|
|
||||||
+
|
|
||||||
private static volatile boolean sIsGms = false;
|
|
||||||
|
|
||||||
private AttestationHooks() { }
|
|
||||||
@@ -55,7 +57,8 @@ public final class AttestationHooks {
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void initApplicationBeforeOnCreate(Application app) {
|
|
||||||
- if (PACKAGE_GMS.equals(app.getPackageName())) {
|
|
||||||
+ if (PACKAGE_GMS.equals(app.getPackageName()) &&
|
|
||||||
+ PROCESS_UNSTABLE.equals(Application.getProcessName())) {
|
|
||||||
sIsGms = true;
|
|
||||||
spoofBuildGms();
|
|
||||||
}
|
|
||||||
--
|
|
||||||
2.34.1
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user