63 lines
2.3 KiB
Diff
63 lines
2.3 KiB
Diff
From d8a13aada0c4951deeda873543b8d6f33c402889 Mon Sep 17 00:00:00 2001
|
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
Date: Thu, 23 Nov 2023 22:31:47 +0800
|
|
Subject: [PATCH] sdk: I have Trust issues
|
|
|
|
Spare me the onboard and warnings
|
|
|
|
Change-Id: Id36104c8a9c386145e6d99a9d741947bddaa37be
|
|
---
|
|
.../internal/TrustInterfaceService.java | 29 -------------------
|
|
1 file changed, 29 deletions(-)
|
|
|
|
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/TrustInterfaceService.java b/lineage/lib/main/java/org/lineageos/platform/internal/TrustInterfaceService.java
|
|
index 473bfe08..281c70ef 100644
|
|
--- a/lineage/lib/main/java/org/lineageos/platform/internal/TrustInterfaceService.java
|
|
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/TrustInterfaceService.java
|
|
@@ -99,15 +99,6 @@ public class TrustInterfaceService extends LineageSystemService {
|
|
} catch (NoSuchElementException | RemoteException e) {
|
|
// ignore, the hal is not available
|
|
}
|
|
-
|
|
- // Onboard
|
|
- if (!hasOnboardedUser()) {
|
|
- postOnBoardingNotification();
|
|
- registerLocaleChangedReceiver();
|
|
- return;
|
|
- }
|
|
-
|
|
- runTestInternal();
|
|
}
|
|
}
|
|
|
|
@@ -351,26 +342,6 @@ public class TrustInterfaceService extends LineageSystemService {
|
|
LineageSettings.System.TRUST_INTERFACE_HINTED, 0) == 1;
|
|
}
|
|
|
|
- private void registerLocaleChangedReceiver() {
|
|
- IntentFilter filter = new IntentFilter(Intent.ACTION_LOCALE_CHANGED);
|
|
- mContext.registerReceiver(mReceiver, filter);
|
|
- }
|
|
-
|
|
- private final BroadcastReceiver mReceiver = new BroadcastReceiver() {
|
|
- @Override
|
|
- public void onReceive(Context context, Intent intent) {
|
|
- if (intent.getAction() == Intent.ACTION_LOCALE_CHANGED) {
|
|
- if (!hasOnboardedUser()) {
|
|
- // When are not onboarded, we want to change the language of the notification
|
|
- postOnBoardingNotification();
|
|
- } else {
|
|
- // We don't care anymore about language changes
|
|
- context.unregisterReceiver(this);
|
|
- }
|
|
- }
|
|
- }
|
|
- };
|
|
-
|
|
/* Service */
|
|
|
|
private final IBinder mService = new ITrustInterface.Stub() {
|
|
--
|
|
2.34.1
|
|
|