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 Oct 12, 2023
1 parent 32ea6eb commit 782413d
Show file tree
Hide file tree
Showing 53 changed files with 1,587 additions and 163 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From b57bc9c19071e85bfd23b5cb249ee5571acfa423 Mon Sep 17 00:00:00 2001
From: Alberto Ponces <[email protected]>
Date: Tue, 8 Jun 2021 09:44:26 +0100
Subject: [PATCH 1/2] misc: Remove securize preference
Subject: [PATCH] misc: Remove securize preference

---
.../java/me/phh/treble/app/MiscSettings.kt | 33 -------------------
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From d5569f56dc1bb217a3c20620f4c719b67e0b7e26 Mon Sep 17 00:00:00 2001
From: Andy CrossGate Yan <[email protected]>
Date: Thu, 5 Apr 2018 10:01:19 +0800
Subject: [PATCH 01/36] Disable vendor mismatch warning
Subject: [PATCH 01/39] Disable vendor mismatch warning

Change-Id: Ieb8fe91e2f02462f074312ed0f4885d183e9780b
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 7a43cefe8c152ffd8819a2be104a096961db3f97 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Tue, 5 Oct 2021 17:59:16 -0400
Subject: [PATCH 02/36] Fallback to stupid autobrightness if brightness values
Subject: [PATCH 02/39] Fallback to stupid autobrightness if brightness values
are broken

This is needed because of:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 03c19dc430fa6b954fdef5346d49cd645add594c Mon Sep 17 00:00:00 2001
From: Raphael Mounier <[email protected]>
Date: Sat, 6 Aug 2022 18:08:36 +0200
Subject: [PATCH 03/36] Fix env empty string - ANDROID_STORAGE
Subject: [PATCH 03/39] 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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From d9abd48f34ce986611e9bebed54555add08f14aa Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Tue, 28 Nov 2017 18:28:04 +0100
Subject: [PATCH 04/36] Relax requirement for visible flag to sdcards
Subject: [PATCH 04/39] 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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 20e7ad25ec793ba9291a39cb99832193342ac3a5 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Thu, 17 May 2018 20:28:35 +0200
Subject: [PATCH 05/36] Don't crash if there is IR HAL is not declared
Subject: [PATCH 05/39] Don't crash if there is IR HAL is not declared

Change-Id: I3afded27441bbee8244d5fda544b3e6d1238dc1b
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From c47433eb06a1fb40a76212064b760185b1819b5c Mon Sep 17 00:00:00 2001
From: Peter Cai <[email protected]>
Date: Wed, 1 Jun 2022 16:56:20 -0400
Subject: [PATCH 06/36] Implement a persistent property to override the default
Subject: [PATCH 06/39] Implement a persistent property to override the default
primary camera (0)

Change-Id: I49b45d00bf71d7932591b3516d49a680e1b6568b
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 2348038ffbe8071c7db1e37d3aaa7d78852994af Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Mon, 6 Aug 2018 12:49:00 +0200
Subject: [PATCH 07/36] Show APN Settings for CDMA carriers
Subject: [PATCH 07/39] Show APN Settings for CDMA carriers

---
telephony/java/android/telephony/CarrierConfigManager.java | 2 +-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 89fa2cf8f4ee50301f5dac092cb51fbb5b36bed1 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Thu, 8 Nov 2018 23:04:03 +0100
Subject: [PATCH 08/36] Re-order services so that it works even without qtaguid
Subject: [PATCH 08/39] Re-order services so that it works even without qtaguid

Change-Id: I0c0f527b3ae151d45c68f7ac6c205da3f34e74df
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 10840f40c1a6221fa9d08079667e27f758923581 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Sun, 24 Mar 2019 23:05:14 +0100
Subject: [PATCH 09/36] Support samsung Pie and Q light hal
Subject: [PATCH 09/39] Support samsung Pie and Q light hal

Change-Id: I01f94acd7d0672733e48854d80368f9ac6f861c6
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From d44d29905de26fff958aae8b6ae11b43f9ca8f2b Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Mon, 12 Aug 2019 23:08:26 +0200
Subject: [PATCH 10/36] Add support for samsung touch, physical and hover
Subject: [PATCH 10/39] Add support for samsung touch, physical and hover
proximity sensor as fallback to real proximity sensor

Change-Id: I7a0f8b4665c802140d19197d850b77b2a7ac1865
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From fc272941d85793fec06062e540ec51ed40c0a55b Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Sun, 5 Apr 2020 16:32:46 +0200
Subject: [PATCH 11/36] Always allow overriding the number of work profiles
Subject: [PATCH 11/39] Always allow overriding the number of work profiles

Change-Id: I6eb09aa71663c6fbe7563e3038bffcabdba0ff6a
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 966a233eaeb3a02abac02e25335ae5120fe09d02 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Sat, 6 Jun 2020 18:21:56 +0200
Subject: [PATCH 12/36] HOME deserves to wake-up devices just as well as back
Subject: [PATCH 12/39] HOME deserves to wake-up devices just as well as back
and menu

Change-Id: Ia562bafd8c620d00c17e8eb338e4701c6c4a3c3a
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 4d40a5e693476a33bcf124ab5e2b0a6acf3897b8 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Tue, 29 Sep 2020 22:39:47 +0200
Subject: [PATCH 13/36] Some devices have proximity sensor reporting NaN as max
Subject: [PATCH 13/39] 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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From a0d3a673f2fc29205bc227558792917fcb4e8eb6 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Tue, 29 Sep 2020 22:40:10 +0200
Subject: [PATCH 14/36] Fix brightness range not being complete on Samsung
Subject: [PATCH 14/39] Fix brightness range not being complete on Samsung
devices

On some devices, minimum brightness is 0, which totally messes with
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 95fa02d91ee78ffc41c19571c934a0629fe1e8ee Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Sun, 25 Oct 2020 23:57:26 +0100
Subject: [PATCH 15/36] Re-implement fnmatch-like behaviour for RRO java-side
Subject: [PATCH 15/39] Re-implement fnmatch-like behaviour for RRO java-side

T: Also apply to FrameworkParsingPackageUtils (@PeterCxy)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From dfbcca0ba6887ab2944b9412734007545f054481 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Fri, 11 Dec 2020 14:41:09 +0100
Subject: [PATCH 16/36] Remove useless notification about "console" service
Subject: [PATCH 16/39] Remove useless notification about "console" service
being running

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 42a3481fae87c90e200067457b34934fd17c0901 Mon Sep 17 00:00:00 2001
From: Peter Cai <[email protected]>
Date: Wed, 16 Dec 2020 21:24:12 +0800
Subject: [PATCH 17/36] Revert "Remove unused SystemProperties.set"
Subject: [PATCH 17/39] Revert "Remove unused SystemProperties.set"

This reverts commit debb4616ef67f9ed5054eca51ec58592358ff55f.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 483e24ed172206d8bad47e0db4cdea12a6ef85f6 Mon Sep 17 00:00:00 2001
From: Peter Cai <[email protected]>
Date: Wed, 16 Dec 2020 13:46:15 +0800
Subject: [PATCH 18/36] TelephonyManager: bring back getNetworkClass()
Subject: [PATCH 18/39] TelephonyManager: bring back getNetworkClass()

This partially reverts commit c058cac051ab083dc7fb7ea6aa85699110b2e9bf.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 6fef4936b5844634735f7001bcc9b38e26ade3fc Mon Sep 17 00:00:00 2001
From: Peter Cai <[email protected]>
Date: Wed, 16 Dec 2020 21:26:45 +0800
Subject: [PATCH 19/36] TelephonyManager: add API annotations for
Subject: [PATCH 19/39] TelephonyManager: add API annotations for
setTelephonyProperty

* This method was added back by reverting commit
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 4953a3b1c494866ad1f7aba5125cf0efe2a19c7b Mon Sep 17 00:00:00 2001
From: Alberto Ponces <[email protected]>
Date: Tue, 2 Feb 2021 10:20:51 +0000
Subject: [PATCH 20/36] Fix Wakelock issue
Subject: [PATCH 20/39] 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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 2181e71e36cde8ebecacd6b4e70dd6a75c3c7041 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Sat, 20 Mar 2021 14:31:01 +0100
Subject: [PATCH 21/36] Automatically detect pick up sensor, so that an overlay
Subject: [PATCH 21/39] 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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From d395e20a564ca1023bceb1cec1f2537e653a2655 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Tue, 23 Mar 2021 19:43:26 +0100
Subject: [PATCH 22/36] Catch broken mainBuiltInDisplayCutoutRectApproximation
Subject: [PATCH 22/39] Catch broken mainBuiltInDisplayCutoutRectApproximation

Some devices (Redmi Note 9T) have:
mainBuiltInDisplayCutoutRectApproximation = @android:mainBuiltInDisplayCutout
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 0bcbe26b1b9f3592267db114af6cdcfbcc71e221 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Sat, 24 Mar 2018 08:01:48 +0100
Subject: [PATCH 23/36] backlight: Fix backlight control on Galaxy S9(+)
Subject: [PATCH 23/39] backlight: Fix backlight control on Galaxy S9(+)

Change-Id: I1fbbb47939c377597ef8ad6b88b2acea5f4acaa6

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 789afc4f5b96073871349e86464c97c43c67b667 Mon Sep 17 00:00:00 2001
From: Andy CrossGate Yan <[email protected]>
Date: Sat, 4 Sep 2021 08:26:30 +0000
Subject: [PATCH 24/36] Revert "Switch long-press power behavior in AOSP."
Subject: [PATCH 24/39] Revert "Switch long-press power behavior in AOSP."

This reverts commit 803c77a0a24624111944832098c6f65158051dc4.
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From a8464a6ddab237f3b1e8fc11d1ad0caaf2737b4b Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Sat, 2 Apr 2022 18:04:01 -0400
Subject: [PATCH 25/36] Allow disabling of fingerprint cleanups, needed on some
Subject: [PATCH 25/39] Allow disabling of fingerprint cleanups, needed on some
Realme devices that cant enumerate

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 176c2aaa566723e42973d20b85a273251dab6e69 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Mon, 20 Dec 2021 15:01:41 -0500
Subject: [PATCH 26/36] Dynamically resize boot animation to match screen size
Subject: [PATCH 26/39] Dynamically resize boot animation to match screen size

Change-Id: I54e49fc6b8c670103852e212d1416e27ff976205
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From dbe19e9eef67309210e38cb8c82dde7207af0f43 Mon Sep 17 00:00:00 2001
From: Andy CrossGate Yan <[email protected]>
Date: Sat, 15 Oct 2022 09:33:56 +0000
Subject: [PATCH 27/36] Revert "Remove more FDE methods from StorageManager"
Subject: [PATCH 27/39] Revert "Remove more FDE methods from StorageManager"

This reverts commit bd13f84152449a3ead6fa8604fd31f48c0224676.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 6a75c260ab74f5a1c2c06a7784c7660283ad92bf Mon Sep 17 00:00:00 2001
From: Arne Coucheron <[email protected]>
Date: Thu, 5 Nov 2020 05:38:44 +0100
Subject: [PATCH 28/36] SystemUI: Use AVCProfileMain for screen recorder
Subject: [PATCH 28/39] 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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From b6349f97257d8d32b0aeb8361bfabd4158d36808 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Sat, 3 Dec 2022 17:13:24 -0500
Subject: [PATCH 29/36] Set old fingerprint sensors to security "strong"
Subject: [PATCH 29/39] 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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From cf30ee029a579c89c7e2bd3a2f5217619225433e Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Wed, 14 Dec 2022 17:21:00 -0500
Subject: [PATCH 30/36] Call Samsung's ISehSysInputDev to report screen state
Subject: [PATCH 30/39] Call Samsung's ISehSysInputDev to report screen state
to touchscreen driver

This fixes touchscreen not waking up on Galaxy F23
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 5cb88083662cb28ccb47c6ef896e8dabb4273e94 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Fri, 2 Jun 2023 19:19:31 -0400
Subject: [PATCH 31/36] Try catch around constrainNitsAndBacklightArrays, and
Subject: [PATCH 31/39] Try catch around constrainNitsAndBacklightArrays, and
falls back to dumb curve. It crashes on Xperia 1 IV.

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From dc79caf62c2ddb3e045c96cecd6f0afa502df7d4 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Sat, 17 Jun 2023 08:31:55 -0400
Subject: [PATCH 32/36] Add Mediatek power hints on touch
Subject: [PATCH 32/39] Add Mediatek power hints on touch

Mediatek has multiple HALs (which existed concurrently), so it is a bit
of a mess.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 9adcc2c90fdd7894cb938a75974e46c1f10f11d3 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Wed, 5 Jul 2023 10:50:36 -0400
Subject: [PATCH 33/36] Detect Moto dynamic hardware feature
Subject: [PATCH 33/39] Detect Moto dynamic hardware feature

Moto added a custom node in sysconfig XMLs:
<unavailable-feature-conditional />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 1629fd7946e9c880d440912c55b7995acfd92770 Mon Sep 17 00:00:00 2001
From: Andy CrossGate Yan <[email protected]>
Date: Wed, 2 Aug 2023 20:59:53 +0800
Subject: [PATCH 34/36] Restore getSimStateForSlotIndex in SubscriptionManager
Subject: [PATCH 34/39] Restore getSimStateForSlotIndex in SubscriptionManager

MTK IMS still needs it here

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 58acd8488a8e14021c599da71c532d768518799a Mon Sep 17 00:00:00 2001
From: Andy CrossGate Yan <[email protected]>
Date: Sat, 12 Aug 2023 20:11:17 +0800
Subject: [PATCH 35/36] Add runWithCleanCallingIdentity variant with both
Subject: [PATCH 35/39] Add runWithCleanCallingIdentity variant with both
executor and return value

This complements the fixup to ImsPhoneCallTracker (in fw/o/t) for U
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From cf7d56710717b8d7a3271cb59f100cf77becfe56 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Fri, 6 Oct 2023 10:57:13 -0400
Subject: [PATCH 36/36] Catch NPE in SystemUI
Subject: [PATCH 36/39] Catch NPE in SystemUI

No idea why it triggers, but it crashes SystemUI on boot for my TV
device
Expand Down
Loading

0 comments on commit 782413d

Please sign in to comment.