Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
feat: Sync with latest sources of TrebleDroid and Pixel Experience (c…
Browse files Browse the repository at this point in the history
…i-20230830,ci-20230905)
  • Loading branch information
ponces committed Sep 14, 2023
1 parent c9e57c0 commit efeae17
Show file tree
Hide file tree
Showing 47 changed files with 307 additions and 115 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
From 965a8782b744b61291b827ee5506d449aa6e94f4 Mon Sep 17 00:00:00 2001
From: Alberto Ponces <ponces26@gmail.com>
Date: Sun, 7 May 2023 22:39:30 +0000
Subject: [PATCH 3/3] treble: Force enable Wireless Display
Subject: [PATCH 3/3] treble: Force enable WifiDisplay

---
system.prop | 3 +++
1 file changed, 3 insertions(+)

diff --git a/system.prop b/system.prop
index fa2a5c9..6270c41 100644
index 986cb09..0ac85e3 100644
--- a/system.prop
+++ b/system.prop
@@ -49,3 +49,6 @@ bluetooth.profile.sap.server.enabled?=true

# Samsung vendors default to a Samsung-specific gadget for MTP. Set this to use AOSP's functionfs MTP
vendor.usb.use_ffs_mtp=1
@@ -53,3 +53,6 @@ vendor.usb.use_ffs_mtp=1
# Override media volume steps
ro.config.media_vol_steps=25
ro.config.media_vol_default=8
+
+# Wireless Display
+# WifiDisplay
+persist.debug.wfd.enable=1
--
2.34.1
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 5c9cd9cce43b6f3b1f0f5d5002631f00ee007fce Mon Sep 17 00:00:00 2001
From: Alberto Ponces <ponces26@gmail.com>
Date: Sun, 16 Oct 2022 16:46:23 +0100
Subject: [PATCH 1/3] Revert "Biometrics: Allow disabling of fingerprint cleanups"
Subject: [PATCH 1/4] Revert "Biometrics: Allow disabling of fingerprint cleanups"

This reverts commit f4d94e695e8107fd5fcd043a3174c4d9583277a9.
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From b26431544c2188cf29d44ec628338fca735a1c11 Mon Sep 17 00:00:00 2001
From: Alberto Ponces <ponces26@gmail.com>
Date: Wed, 4 Jan 2023 09:59:33 +0000
Subject: [PATCH 2/3] Revert "udfps: Restore illumination dot for global hbm"
Subject: [PATCH 2/4] Revert "udfps: Restore illumination dot for global hbm"

This reverts commit 845824efebf4ac6d24dfa702a37b11706031fd06.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 634e1840fad216d8950e0098d971ff4a35d176e0 Mon Sep 17 00:00:00 2001
From: Alberto Ponces <ponces26@gmail.com>
Date: Mon, 23 Jan 2023 16:28:11 +0000
Subject: [PATCH 3/3] Revert "AuthService: Add support for workaround side fps
Subject: [PATCH 3/4] Revert "AuthService: Add support for workaround side fps
props"

This reverts commit 065de1bce99b5be01f967beb5f573e616bcb4f15.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
From 7bba06b86b03fcf3f673f4099f61c3ef043c9d1c Mon Sep 17 00:00:00 2001
From: Alberto Ponces <ponces26@gmail.com>
Date: Wed, 13 Sep 2023 11:24:15 +0000
Subject: [PATCH 4/4] Revert "core: pm: Allow wildcard in RRO system property
value checks"

This reverts commit 2d8e30614ff873ee83203a92eba62f263a001eee.
---
.../pm/parsing/FrameworkParsingPackageUtils.java | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)

diff --git a/core/java/android/content/pm/parsing/FrameworkParsingPackageUtils.java b/core/java/android/content/pm/parsing/FrameworkParsingPackageUtils.java
index b75ba82ad091..3e1c5bb3d7ec 100644
--- a/core/java/android/content/pm/parsing/FrameworkParsingPackageUtils.java
+++ b/core/java/android/content/pm/parsing/FrameworkParsingPackageUtils.java
@@ -186,8 +186,8 @@ public class FrameworkParsingPackageUtils {
* Returns {@code true} if both the property name and value are empty or if the given system
* property is set to the specified value. Properties can be one or more, and if properties are
* more than one, they must be separated by comma, and count of names and values must be equal,
- * and also every given system property must be set to the corresponding value or it's a
- * wildcard. In all other cases, returns {@code false}
+ * and also every given system property must be set to the corresponding value.
+ * In all other cases, returns {@code false}
*/
public static boolean checkRequiredSystemProperties(@Nullable String rawPropNames,
@Nullable String rawPropValues) {
@@ -213,17 +213,9 @@ public class FrameworkParsingPackageUtils {
return false;
}
for (int i = 0; i < propNames.length; i++) {
+ // Check property value: make sure it is both set and equal to expected value
final String currValue = SystemProperties.get(propNames[i]);
- // 1. Make sure prop is set.
- if (currValue == null) {
- return false;
- }
- // 2. Check next prop if expected value is a wildcard.
- if ("*".equals(propValues[i])) {
- continue;
- }
- // 3. Check if prop is equal to expected value.
- if (!currValue.equals(propValues[i])) {
+ if (!TextUtils.equals(currValue, propValues[i])) {
return false;
}
}
--
2.34.1

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From dd5f04527f516b9d29f0880c369850c988bf5954 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/41] Disable vendor mismatch warning
Subject: [PATCH 01/42] Disable vendor mismatch warning

Change-Id: Ieb8fe91e2f02462f074312ed0f4885d183e9780b
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 3cb9a996acd0b18c8e8fc795a6ad0d2a16b86192 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/41] Fallback to stupid autobrightness if brightness values
Subject: [PATCH 02/42] 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 cad0be943e66c3699978426224aa88fdccc76f57 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/41] Fix env empty string - ANDROID_STORAGE
Subject: [PATCH 03/42] 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 6e1730890226b81f066bc406d252eca2755bbf1a Mon Sep 17 00:00:00 2001
From: Danny Lin <danny@kdrag0n.dev>
Date: Sat, 16 Oct 2021 05:27:57 -0700
Subject: [PATCH 05/41] Add support for app signature spoofing
Subject: [PATCH 05/42] 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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From c50f5495f8354163524edd70a1b0486b5b2c0ba5 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 06/41] Don't crash if there is IR HAL is not declared
Subject: [PATCH 06/42] 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 4989f0c12573887465bdec33d79725b0af3d0895 Mon Sep 17 00:00:00 2001
From: Peter Cai <peter@typeblog.net>
Date: Wed, 1 Jun 2022 16:56:20 -0400
Subject: [PATCH 07/41] Implement a persistent property to override the default
Subject: [PATCH 07/42] 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 24a73637a51b62872071165d3270591b8b60aca1 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 08/41] Show APN Settings for CDMA carriers
Subject: [PATCH 08/42] 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 eb97b9394d81ca4cc349189870849aa104bb9235 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 09/41] Re-order services so that it works even without qtaguid
Subject: [PATCH 09/42] 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 40d6977f78106d0d7cd425b17dded76d2514b9f8 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 10/41] Support samsung Pie and Q light hal
Subject: [PATCH 10/42] 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 1de28985fd66076c88e5f0f940f53570d14ed359 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 11/41] Add support for samsung touch, physical and hover
Subject: [PATCH 11/42] 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 164389e58c9c7bde6c6227f794e6c02753e42a4b 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 12/41] Always allow overriding the number of work profiles
Subject: [PATCH 12/42] 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 af7c4f8dbb3df3e0fa72a270aea6e99844cb4475 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 13/41] HOME deserves to wake-up devices just as well as back
Subject: [PATCH 13/42] 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 8d3db32e7e61573363d5d22215e1776bdf63c503 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 14/41] Some devices have proximity sensor reporting NaN as max
Subject: [PATCH 14/42] 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 a976f4f5c99d23bf747a95f8d4ae6b57d64d5a97 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 15/41] Fix brightness range not being complete on Samsung
Subject: [PATCH 15/42] 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 0bfbc4c831e0bddc0c6f6632e8c75523ffc908f9 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 16/41] Re-implement fnmatch-like behaviour for RRO java-side
Subject: [PATCH 16/42] 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 eddf53831fcaa84a5fc8c8598a4b896a53f3f8ae 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 17/41] Remove useless notification about "console" service
Subject: [PATCH 17/42] 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 08ec5bf7b6de453cf5f9298ae8387a1aa67cc09c Mon Sep 17 00:00:00 2001
From: Peter Cai <peter@typeblog.net>
Date: Wed, 16 Dec 2020 21:24:12 +0800
Subject: [PATCH 18/41] Revert "Remove unused SystemProperties.set"
Subject: [PATCH 18/42] 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 176c48078adb48eadc003661c5511e099562af29 Mon Sep 17 00:00:00 2001
From: Peter Cai <peter@typeblog.net>
Date: Wed, 16 Dec 2020 13:46:15 +0800
Subject: [PATCH 19/41] TelephonyManager: bring back getNetworkClass()
Subject: [PATCH 19/42] 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 4d4e1b0cdbb31a848e744f3c1fc988a56a0c478c Mon Sep 17 00:00:00 2001
From: Peter Cai <peter@typeblog.net>
Date: Wed, 16 Dec 2020 21:26:45 +0800
Subject: [PATCH 20/41] TelephonyManager: add API annotations for
Subject: [PATCH 20/42] 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 3c0faf6ba0cf4ee36ede539e0ebcf617549afeef Mon Sep 17 00:00:00 2001
From: Alberto Ponces <ponces26@gmail.com>
Date: Tue, 2 Feb 2021 10:20:51 +0000
Subject: [PATCH 21/41] Fix Wakelock issue
Subject: [PATCH 21/42] 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 214975755dfae5f2b2a265b89214d3e1fd1bdd54 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 22/41] Automatically detect pick up sensor, so that an overlay
Subject: [PATCH 22/42] 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 7193d2f219f5b6feedc689d06b50ae7e43a7c433 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 23/41] Catch broken mainBuiltInDisplayCutoutRectApproximation
Subject: [PATCH 23/42] 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 33670e08f9a40421e081345be63cec5f11d597f7 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 24/41] backlight: Fix backlight control on Galaxy S9(+)
Subject: [PATCH 24/42] 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 4be42d7a0e772a3aa13e44744c01ad2c7432f5b8 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 25/41] Revert "Switch long-press power behavior in AOSP."
Subject: [PATCH 25/42] 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 61cf5dadd82d5378ddda800a9b3b5ad77e679a7d 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 26/41] Once we integrate Samsung Power hal in libpowermanager,
Subject: [PATCH 26/42] Once we integrate Samsung Power hal in libpowermanager,
libpowermanager and its deps require linking against
vendor.samsung.hardware.miscpower@2.0

Expand Down
Loading

0 comments on commit efeae17

Please sign in to comment.