Skip to content

Commit

Permalink
feat: Sync with latest sources of TrebleDroid
Browse files Browse the repository at this point in the history
  • Loading branch information
ponces committed Dec 16, 2023
1 parent 5a9d083 commit 34289b2
Show file tree
Hide file tree
Showing 47 changed files with 160 additions and 50 deletions.
@@ -1,4 +1,4 @@
From aaeff66f60268291f87912f634113b58ebd4ec35 Mon Sep 17 00:00:00 2001
From 677726b407cc46a8b7ea33ca0a95fc973b720693 Mon Sep 17 00:00:00 2001
From: Chris Crump <chriscrawford893@gmail.com>
Date: Tue, 1 Nov 2022 17:27:48 -0400
Subject: [PATCH 9/9] feat: Add Face Unlock with ParanoidSense (1/2)
Expand Down Expand Up @@ -137,17 +137,17 @@ index 924aac4e70be..8cc77c16edac 100644
pw.println(" bouncerShowing: $bouncerShowing")
pw.println(" altBouncerShowing: $altBouncerShowing")
diff --git a/services/core/Android.bp b/services/core/Android.bp
index 18a9fe12ecb7..0b8fe87d2a86 100644
index 6cba27c50972..8cb2d1084c23 100644
--- a/services/core/Android.bp
+++ b/services/core/Android.bp
@@ -194,6 +194,7 @@ java_library_static {
"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",
],
javac_shard_size: 50,
javacflags: [

//AIDL
"vendor.samsung.hardware.biometrics.fingerprint-V1-java",
diff --git a/services/core/java/com/android/server/biometrics/log/BiometricLogger.java b/services/core/java/com/android/server/biometrics/log/BiometricLogger.java
index 87037af11a84..e8b042cd032c 100644
--- a/services/core/java/com/android/server/biometrics/log/BiometricLogger.java
Expand Down
@@ -1,7 +1,7 @@
From ed3a5e94a1bc6c13147e0fbbe21dde05001001c0 Mon Sep 17 00:00:00 2001
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
Date: Thu, 5 Apr 2018 10:01:19 +0800
Subject: [PATCH 01/45] Disable vendor mismatch warning
Subject: [PATCH 01/46] Disable vendor mismatch warning

Change-Id: Ieb8fe91e2f02462f074312ed0f4885d183e9780b
---
Expand Down
@@ -1,7 +1,7 @@
From ba7a834e3dfc496970973b3541f7b032e61adfb2 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Tue, 5 Oct 2021 17:59:16 -0400
Subject: [PATCH 02/45] Fallback to stupid autobrightness if brightness values
Subject: [PATCH 02/46] Fallback to stupid autobrightness if brightness values
are broken

This is needed because of:
Expand Down
@@ -1,7 +1,7 @@
From 83e00d63b8755ebd5aa364fd7003c0d51224b3ae Mon Sep 17 00:00:00 2001
From: Raphael Mounier <mounierr07@gmail.com>
Date: Sat, 6 Aug 2022 18:08:36 +0200
Subject: [PATCH 03/45] Fix env empty string - ANDROID_STORAGE
Subject: [PATCH 03/46] Fix env empty string - ANDROID_STORAGE

Huawei hi6250 define in init.hi6250.rc ANDROID_STORAGE to "", so check empty string and replace with default path. Apply change for all env directory
---
Expand Down
@@ -1,7 +1,7 @@
From 822e5c74e5c11757017ddc45fb782ff7d5b5b5d9 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Tue, 28 Nov 2017 18:28:04 +0100
Subject: [PATCH 04/45] Relax requirement for visible flag to sdcards
Subject: [PATCH 04/46] Relax requirement for visible flag to sdcards

The vast majority of sdcard readers are stable enough to be declared by
the API. (I see no counter-example)
Expand Down
@@ -1,7 +1,7 @@
From 0b025b95b427b9f5b793b1028df941b8db10a4a5 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Thu, 17 May 2018 20:28:35 +0200
Subject: [PATCH 05/45] Don't crash if there is IR HAL is not declared
Subject: [PATCH 05/46] Don't crash if there is IR HAL is not declared

Change-Id: I3afded27441bbee8244d5fda544b3e6d1238dc1b
---
Expand Down
@@ -1,7 +1,7 @@
From 461ee7bbc93f63c66ed54e4f020238d45b0f50db Mon Sep 17 00:00:00 2001
From: Peter Cai <peter@typeblog.net>
Date: Wed, 1 Jun 2022 16:56:20 -0400
Subject: [PATCH 06/45] Implement a persistent property to override the default
Subject: [PATCH 06/46] Implement a persistent property to override the default
primary camera (0)

Change-Id: I49b45d00bf71d7932591b3516d49a680e1b6568b
Expand Down
@@ -1,7 +1,7 @@
From 7041bef1ca282d3ea4d6077f51caaa1e1feba54f Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Mon, 6 Aug 2018 12:49:00 +0200
Subject: [PATCH 07/45] Show APN Settings for CDMA carriers
Subject: [PATCH 07/46] Show APN Settings for CDMA carriers

---
telephony/java/android/telephony/CarrierConfigManager.java | 2 +-
Expand Down
@@ -1,7 +1,7 @@
From 079c98abdc4626a283fc85466902cbbb4e60af15 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Thu, 8 Nov 2018 23:04:03 +0100
Subject: [PATCH 08/45] Re-order services so that it works even without qtaguid
Subject: [PATCH 08/46] Re-order services so that it works even without qtaguid

Change-Id: I0c0f527b3ae151d45c68f7ac6c205da3f34e74df
---
Expand Down
@@ -1,7 +1,7 @@
From c7ab96785599a347ed565a7a625af2d7f189e7f4 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Sun, 24 Mar 2019 23:05:14 +0100
Subject: [PATCH 09/45] Support samsung Pie and Q light hal
Subject: [PATCH 09/46] Support samsung Pie and Q light hal

Change-Id: I01f94acd7d0672733e48854d80368f9ac6f861c6
---
Expand Down
@@ -1,7 +1,7 @@
From 14f1569d88cb964d66876551f8a949f524dc0704 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Mon, 12 Aug 2019 23:08:26 +0200
Subject: [PATCH 10/45] Add support for samsung touch, physical and hover
Subject: [PATCH 10/46] Add support for samsung touch, physical and hover
proximity sensor as fallback to real proximity sensor

Change-Id: I7a0f8b4665c802140d19197d850b77b2a7ac1865
Expand Down
@@ -1,7 +1,7 @@
From 6caeae5b4ae8eb82d2885851d59b80ce1bf28aa5 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Sun, 5 Apr 2020 16:32:46 +0200
Subject: [PATCH 11/45] Always allow overriding the number of work profiles
Subject: [PATCH 11/46] Always allow overriding the number of work profiles

Change-Id: I6eb09aa71663c6fbe7563e3038bffcabdba0ff6a
---
Expand Down
@@ -1,7 +1,7 @@
From 41ac4ebea6fbd36cb07d9083c5d81e2f0a27bced Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Sat, 6 Jun 2020 18:21:56 +0200
Subject: [PATCH 12/45] HOME deserves to wake-up devices just as well as back
Subject: [PATCH 12/46] HOME deserves to wake-up devices just as well as back
and menu

Change-Id: Ia562bafd8c620d00c17e8eb338e4701c6c4a3c3a
Expand Down
@@ -1,7 +1,7 @@
From 2910c08065b4fc0b9ac6217bdeb0d1700c7e0739 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Tue, 29 Sep 2020 22:39:47 +0200
Subject: [PATCH 13/45] Some devices have proximity sensor reporting NaN as max
Subject: [PATCH 13/46] Some devices have proximity sensor reporting NaN as max
range for some reason. Make them behave standard way by setting 5 cm

Change-Id: I3c39e3e914a05903c140235702e0480d2d58a612
Expand Down
@@ -1,7 +1,7 @@
From 32ecb023f8e654e04e97280593c9ba4203f772c5 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Tue, 29 Sep 2020 22:40:10 +0200
Subject: [PATCH 14/45] Fix brightness range not being complete on Samsung
Subject: [PATCH 14/46] Fix brightness range not being complete on Samsung
devices

On some devices, minimum brightness is 0, which totally messes with
Expand Down
@@ -1,7 +1,7 @@
From c47fad89ce36c9e2f2d064f85572d25d31b5d35e Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Sun, 25 Oct 2020 23:57:26 +0100
Subject: [PATCH 15/45] Re-implement fnmatch-like behaviour for RRO java-side
Subject: [PATCH 15/46] Re-implement fnmatch-like behaviour for RRO java-side

T: Also apply to FrameworkParsingPackageUtils (@PeterCxy)

Expand Down
@@ -1,7 +1,7 @@
From d8e4fddb4ddc852e2534cf2dfb1c431d1477d3eb Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Fri, 11 Dec 2020 14:41:09 +0100
Subject: [PATCH 16/45] Remove useless notification about "console" service
Subject: [PATCH 16/46] Remove useless notification about "console" service
being running

---
Expand Down
@@ -1,7 +1,7 @@
From d5e596c961dd0205754cc7eb3385ccc9933c5c6b Mon Sep 17 00:00:00 2001
From: Peter Cai <peter@typeblog.net>
Date: Wed, 16 Dec 2020 21:24:12 +0800
Subject: [PATCH 17/45] Revert "Remove unused SystemProperties.set"
Subject: [PATCH 17/46] Revert "Remove unused SystemProperties.set"

This reverts commit debb4616ef67f9ed5054eca51ec58592358ff55f.

Expand Down
@@ -1,7 +1,7 @@
From f500eec93a1e40744ed6eb4806ab617bc4e6417c Mon Sep 17 00:00:00 2001
From: Peter Cai <peter@typeblog.net>
Date: Wed, 16 Dec 2020 13:46:15 +0800
Subject: [PATCH 18/45] TelephonyManager: bring back getNetworkClass()
Subject: [PATCH 18/46] TelephonyManager: bring back getNetworkClass()

This partially reverts commit c058cac051ab083dc7fb7ea6aa85699110b2e9bf.

Expand Down
@@ -1,7 +1,7 @@
From 5b09dfdf2027535fc074a22b4700ae91420ea325 Mon Sep 17 00:00:00 2001
From: Peter Cai <peter@typeblog.net>
Date: Wed, 16 Dec 2020 21:26:45 +0800
Subject: [PATCH 19/45] TelephonyManager: add API annotations for
Subject: [PATCH 19/46] TelephonyManager: add API annotations for
setTelephonyProperty

* This method was added back by reverting commit
Expand Down
@@ -1,7 +1,7 @@
From a3e3e20b4be52cf3798763949731a031a70b219e Mon Sep 17 00:00:00 2001
From: Alberto Ponces <ponces26@gmail.com>
Date: Tue, 2 Feb 2021 10:20:51 +0000
Subject: [PATCH 20/45] Fix Wakelock issue
Subject: [PATCH 20/46] Fix Wakelock issue

Prevent SystemUI crash due to "WakeLock under-locked Doze" (issue #12) by only releasing a wakelock that was not already released
---
Expand Down
@@ -1,7 +1,7 @@
From 7f8a1b8d93a24ee03edf506109a5f69bb03f33c7 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Sat, 20 Mar 2021 14:31:01 +0100
Subject: [PATCH 21/45] Automatically detect pick up sensor, so that an overlay
Subject: [PATCH 21/46] Automatically detect pick up sensor, so that an overlay
is required for the sole purpose of enabling pulse doze on pick up sensor

---
Expand Down
@@ -1,7 +1,7 @@
From 6abdb008ca62969aba90bc4f21590abb941de5b0 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Tue, 23 Mar 2021 19:43:26 +0100
Subject: [PATCH 22/45] Catch broken mainBuiltInDisplayCutoutRectApproximation
Subject: [PATCH 22/46] Catch broken mainBuiltInDisplayCutoutRectApproximation

Some devices (Redmi Note 9T) have:
mainBuiltInDisplayCutoutRectApproximation = @android:mainBuiltInDisplayCutout
Expand Down
@@ -1,7 +1,7 @@
From 0f90d39ebad877acbe691d4acb6a627d01311ad8 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Sat, 24 Mar 2018 08:01:48 +0100
Subject: [PATCH 23/45] backlight: Fix backlight control on Galaxy S9(+)
Subject: [PATCH 23/46] backlight: Fix backlight control on Galaxy S9(+)

Change-Id: I1fbbb47939c377597ef8ad6b88b2acea5f4acaa6

Expand Down
@@ -1,7 +1,7 @@
From 1efd969efcef058be0dfaadbbff06e0bbf56b63c Mon Sep 17 00:00:00 2001
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
Date: Sat, 4 Sep 2021 08:26:30 +0000
Subject: [PATCH 24/45] Revert "Switch long-press power behavior in AOSP."
Subject: [PATCH 24/46] Revert "Switch long-press power behavior in AOSP."

This reverts commit 803c77a0a24624111944832098c6f65158051dc4.
---
Expand Down
@@ -1,7 +1,7 @@
From c76c4c01b05216fe78db93d6d0d3269e1935fd4b Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Sat, 2 Apr 2022 18:04:01 -0400
Subject: [PATCH 25/45] Allow disabling of fingerprint cleanups, needed on some
Subject: [PATCH 25/46] Allow disabling of fingerprint cleanups, needed on some
Realme devices that cant enumerate

---
Expand Down
@@ -1,7 +1,7 @@
From 71d8e5906f7099eb28a3567b643dcb92f80ab790 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Mon, 20 Dec 2021 15:01:41 -0500
Subject: [PATCH 26/45] Dynamically resize boot animation to match screen size
Subject: [PATCH 26/46] Dynamically resize boot animation to match screen size

Change-Id: I54e49fc6b8c670103852e212d1416e27ff976205
---
Expand Down
@@ -1,7 +1,7 @@
From 802bdaaf5ee19687b3a27122b9fc11442969d87c Mon Sep 17 00:00:00 2001
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
Date: Sat, 15 Oct 2022 09:33:56 +0000
Subject: [PATCH 27/45] Revert "Remove more FDE methods from StorageManager"
Subject: [PATCH 27/46] Revert "Remove more FDE methods from StorageManager"

This reverts commit bd13f84152449a3ead6fa8604fd31f48c0224676.

Expand Down
@@ -1,7 +1,7 @@
From ef0e0c068a193ea6dae733c3b5811128b1f8a5cf Mon Sep 17 00:00:00 2001
From: Arne Coucheron <arco68@gmail.com>
Date: Thu, 5 Nov 2020 05:38:44 +0100
Subject: [PATCH 28/45] SystemUI: Use AVCProfileMain for screen recorder
Subject: [PATCH 28/46] SystemUI: Use AVCProfileMain for screen recorder

Some devices don't support the High profile very well.
Use Main profile, which is more compatible, so they
Expand Down
@@ -1,7 +1,7 @@
From c080cb6b2a2eff27e81b0b7de48ba9694d1b0b1d Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Sat, 3 Dec 2022 17:13:24 -0500
Subject: [PATCH 29/45] Set old fingerprint sensors to security "strong"
Subject: [PATCH 29/46] Set old fingerprint sensors to security "strong"

This allows removing config_biometric_sensors from overlays, which led
to Pixels not booting, because they are using AIDL biometric sensor, and
Expand Down
@@ -1,7 +1,7 @@
From 2cea79507bc6fc0d5a1def23b94aa789d2f26c67 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Wed, 14 Dec 2022 17:21:00 -0500
Subject: [PATCH 30/45] Call Samsung's ISehSysInputDev to report screen state
Subject: [PATCH 30/46] Call Samsung's ISehSysInputDev to report screen state
to touchscreen driver

This fixes touchscreen not waking up on Galaxy F23
Expand Down
@@ -1,7 +1,7 @@
From 456b5ce0a795047b48595967c2f436cbbf645bf0 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Fri, 2 Jun 2023 19:19:31 -0400
Subject: [PATCH 31/45] Try catch around constrainNitsAndBacklightArrays, and
Subject: [PATCH 31/46] Try catch around constrainNitsAndBacklightArrays, and
falls back to dumb curve. It crashes on Xperia 1 IV.

---
Expand Down
@@ -1,7 +1,7 @@
From a501d218943c17e76bb36d09083a133228eaf186 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Sat, 17 Jun 2023 08:31:55 -0400
Subject: [PATCH 32/45] Add Mediatek power hints on touch
Subject: [PATCH 32/46] Add Mediatek power hints on touch

Mediatek has multiple HALs (which existed concurrently), so it is a bit
of a mess.
Expand Down
@@ -1,7 +1,7 @@
From efa112706d84d526ddf1834641239c610df2cdea Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Wed, 5 Jul 2023 10:50:36 -0400
Subject: [PATCH 33/45] Detect Moto dynamic hardware feature
Subject: [PATCH 33/46] Detect Moto dynamic hardware feature

Moto added a custom node in sysconfig XMLs:
<unavailable-feature-conditional />
Expand Down
@@ -1,7 +1,7 @@
From b5f6ee6a02a2169b8473426768490ef30fcc4edd Mon Sep 17 00:00:00 2001
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
Date: Wed, 2 Aug 2023 20:59:53 +0800
Subject: [PATCH 34/45] Restore getSimStateForSlotIndex in SubscriptionManager
Subject: [PATCH 34/46] Restore getSimStateForSlotIndex in SubscriptionManager

MTK IMS still needs it here

Expand Down
@@ -1,7 +1,7 @@
From f0cf0e731a1e910cf8597df2cd9fbf26cda07e48 Mon Sep 17 00:00:00 2001
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
Date: Sat, 12 Aug 2023 20:11:17 +0800
Subject: [PATCH 35/45] Add runWithCleanCallingIdentity variant with both
Subject: [PATCH 35/46] Add runWithCleanCallingIdentity variant with both
executor and return value

This complements the fixup to ImsPhoneCallTracker (in fw/o/t) for U
Expand Down
@@ -1,7 +1,7 @@
From adea8cbb79dbde2ca017e57a3e80ed16fab5ad21 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Fri, 6 Oct 2023 10:57:13 -0400
Subject: [PATCH 36/45] Catch NPE in SystemUI
Subject: [PATCH 36/46] Catch NPE in SystemUI

No idea why it triggers, but it crashes SystemUI on boot for my TV
device
Expand Down
@@ -1,7 +1,7 @@
From f0494e39fb6c96c0d0d0d0d08b8ae75b69601674 Mon Sep 17 00:00:00 2001
From: Danny Lin <danny@kdrag0n.dev>
Date: Sat, 16 Oct 2021 05:27:57 -0700
Subject: [PATCH 37/45] Add support for app signature spoofing
Subject: [PATCH 37/46] Add support for app signature spoofing

This is needed by microG GmsCore to pretend to be the official Google
Play Services package, because client apps check the package signature
Expand Down
@@ -1,7 +1,7 @@
From f8b6f79d0cd7d84706459b9b5108864aa7b827d3 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Mon, 27 Dec 2021 17:57:11 -0500
Subject: [PATCH 38/45] Once we integrate Samsung Power hal in libpowermanager,
Subject: [PATCH 38/46] Once we integrate Samsung Power hal in libpowermanager,
libpowermanager and its deps require linking against
vendor.samsung.hardware.miscpower@2.0

Expand Down
@@ -1,7 +1,7 @@
From 702a3038300d11638339e0659d93409c1480208d Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Sun, 18 Dec 2022 18:20:40 -0500
Subject: [PATCH 39/45] FOD support for Asus, Samsung recent Xiaomi and
Subject: [PATCH 39/46] FOD support for Asus, Samsung recent Xiaomi and
RedMagic 8 devices

Thanks Asus for providing a free device to make this support
Expand Down
@@ -1,7 +1,7 @@
From 9fbe4871e5380d0b1366f34f66e69ea723cb0eb5 Mon Sep 17 00:00:00 2001
From: ChonDoit <thphantomblog@gmail.com>
Date: Thu, 24 Aug 2023 15:58:15 -0300
Subject: [PATCH 40/45] Fix brightness slider curve for some devices
Subject: [PATCH 40/46] Fix brightness slider curve for some devices

Some devices report max brightness as 2047 or 4095
---
Expand Down
@@ -1,7 +1,7 @@
From 2b6e41766dc946720a33a832bb4cfe59e9c1adfa Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Wed, 18 Oct 2023 16:53:40 -0400
Subject: [PATCH 41/45] Ignore cgroup creation errors
Subject: [PATCH 41/46] Ignore cgroup creation errors

For old kernels who don't have those modern cgroups
---
Expand Down

0 comments on commit 34289b2

Please sign in to comment.