This repository has been archived by the owner on Dec 12, 2023. It is now read-only.
forked from AndyCGYan/lineage_build_unified
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Sync with latest sources of TrebleDroid (ci-20230818)
- Loading branch information
Showing
145 changed files
with
292 additions
and
176 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
...ackages_modules_Bluetooth/0001-Revert-gd-hci-Allow-disabling-selected-local-command.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
From 7cf56d80f82f3058a8a63da5e3f25fd2ac5bd988 Mon Sep 17 00:00:00 2001 | ||
From: Alberto Ponces <ponces26@gmail.com> | ||
Date: Mon, 21 Aug 2023 12:59:47 +0000 | ||
Subject: [PATCH] Revert "gd: hci: Allow disabling selected local commands" | ||
|
||
This reverts commit d7c59612960e6ed25c7458b0d6f690861765ac0d. | ||
--- | ||
system/gd/hci/controller.cc | 14 -------------- | ||
1 file changed, 14 deletions(-) | ||
|
||
diff --git a/system/gd/hci/controller.cc b/system/gd/hci/controller.cc | ||
index 58ee4726cf..6af46d02ad 100644 | ||
--- a/system/gd/hci/controller.cc | ||
+++ b/system/gd/hci/controller.cc | ||
@@ -16,7 +16,6 @@ | ||
|
||
#include "hci/controller.h" | ||
|
||
-#include <android-base/strings.h> | ||
#include <future> | ||
#include <memory> | ||
#include <string> | ||
@@ -26,14 +25,10 @@ | ||
#include "hci/hci_layer.h" | ||
#include "hci_controller_generated.h" | ||
#include "os/metrics.h" | ||
-#include "os/system_properties.h" | ||
|
||
namespace bluetooth { | ||
namespace hci { | ||
|
||
-static const char kPropertyDisabledCommands[] = | ||
- "bluetooth.hci.disabled_commands"; | ||
- | ||
using os::Handler; | ||
|
||
struct Controller::impl { | ||
@@ -265,15 +260,6 @@ struct Controller::impl { | ||
ErrorCode status = complete_view.GetStatus(); | ||
ASSERT_LOG(status == ErrorCode::SUCCESS, "Status 0x%02hhx, %s", status, ErrorCodeText(status).c_str()); | ||
local_supported_commands_ = complete_view.GetSupportedCommands(); | ||
- | ||
- if (auto disabledCommands = os::GetSystemProperty(kPropertyDisabledCommands)) { | ||
- for (const auto& command : android::base::Split(*disabledCommands, ",")) { | ||
- uint16_t index = std::stoi(command); | ||
- uint16_t byte_index = index / 10; | ||
- uint16_t bit_index = index % 10; | ||
- local_supported_commands_[byte_index] &= ~(1 << bit_index); | ||
- } | ||
- } | ||
} | ||
|
||
void read_local_extended_features_complete_handler(std::promise<void> promise, CommandCompleteView view) { | ||
-- | ||
2.34.1 | ||
|
2 changes: 1 addition & 1 deletion
2
patches/trebledroid/platform_bionic/0001-Disable-vndklite-handling.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ebledroid/platform_bionic/0002-Add-new-mechanism-to-fake-vendor-props-on-a-per-proc.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
patches/trebledroid/platform_bionic/0003-Rework-property-overriding.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ebledroid/platform_bionic/0004-Add-some-properties-to-fake-in-keymaster-prop-replac.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rebledroid/platform_bootable_recovery/0001-Don-t-reboot-if-we-couldn-t-get-bootctrl.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
patches/trebledroid/platform_build/0001-build-remove-emulator-crap-from-GSI.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
patches/trebledroid/platform_build/0002-build-Bypass-vendor-calls.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
patches/trebledroid/platform_build/0003-Remove-init.vndk-nodef.rc.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
patches/trebledroid/platform_build/0004-build-Remove-llkd.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...platform_external_selinux/0001-Increase-default-log_level-to-get-actual-selinux-err.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...platform_external_selinux/0002-Revert-libsepol-Make-an-unknown-permission-an-error-.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...platform_external_selinux/0003-Workaround-device-phh-treble-conflict-with-SELinux-p.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...platform_external_selinux/0004-Allow-devices-virtual-block-genfscon-conflict-seen-o.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...d/platform_external_selinux/0005-if-service-is-rcs-accept-conflict.-Seen-on-Moto-E5.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
patches/trebledroid/platform_external_selinux/0006-Allow-mismatches-of-exfat-genfscon.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...platform_external_selinux/0007-Enable-multipl_decls-by-default.-This-is-needed-beca.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ledroid/platform_external_selinux/0008-Fix-boot-on-Moto-devices-using-unknown-class.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...platform_external_selinux/0009-Improve-SELinux-policy-workaround-on-device-phh-treb.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...platform_external_selinux/0010-Allow-sys-vm-watermark_scale_factor-conflict-seen-on.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From 24b3713d636c6869b35a511a00495642c9b23ccd Mon Sep 17 00:00:00 2001 | ||
From: Pierre-Hugues Husson <phh@phh.me> | ||
Date: Thu, 20 Jul 2023 14:21:21 -0400 | ||
Subject: [PATCH 10/10] Allow /sys/vm/watermark_scale_factor conflict -- seen | ||
on Freebox Player Pop | ||
|
||
--- | ||
libsepol/cil/src/cil_post.c | 9 +++++++++ | ||
1 file changed, 9 insertions(+) | ||
|
||
diff --git a/libsepol/cil/src/cil_post.c b/libsepol/cil/src/cil_post.c | ||
index 97bf54f8..4cf1f2d3 100644 | ||
--- a/libsepol/cil/src/cil_post.c | ||
+++ b/libsepol/cil/src/cil_post.c | ||
@@ -502,6 +502,15 @@ int cil_post_genfscon_context_compare(const void *a, const void *b) | ||
*/ | ||
if(strcmp(a_genfscon->path_str, "/devices/virtual/block/") == 0) | ||
bypass = 1; | ||
+ /* | ||
+ * This conflict has been seen on Freebox Player Pop | ||
+ * - AOSP T says (genfscon proc "/sys/vm/watermark_scale_factor" (u object_r proc_watermark_scale_factor ((s0) (s0)))) | ||
+ * - stock rom says proc_vm_writable | ||
+ * | ||
+ * Stock ROM uses it only in recovery so it's safe to ignore | ||
+ */ | ||
+ if(strcmp(a_genfscon->path_str, "/sys/vm/watermark_scale_factor") == 0) | ||
+ bypass = 1; | ||
if(strcmp(a_genfscon->fs_str, "exfat") == 0 || strcmp(a_genfscon->fs_str, "esdfs") == 0) { | ||
if(strcmp(a_genfscon->path_str, "/") == 0) | ||
bypass = 1; | ||
-- | ||
2.25.1 | ||
|
2 changes: 1 addition & 1 deletion
2
...id/platform_frameworks_av/0001-APM-Restore-S-R-and-Q-behavior-respectively-for-tele.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
patches/trebledroid/platform_frameworks_av/0002-Fix-BT-in-call-on-CAF-devices.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...id/platform_frameworks_av/0003-Add-partial-cam-id-is-hardcoded-support-for-Asus-ZF6.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...id/platform_frameworks_av/0004-APM-Optionally-force-load-audio-policy-for-system-si.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...edroid/platform_frameworks_av/0005-APM-Remove-A2DP-audio-ports-from-the-primary-HAL.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...id/platform_frameworks_av/0006-audiopolicy-try-again-with-trimmed-audio-port-name-i.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...id/platform_frameworks_av/0007-camera-Implement-property-to-override-default-camera.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...id/platform_frameworks_av/0008-There-are-three-SCO-devices.-Fallback-from-one-to-th.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...id/platform_frameworks_av/0009-Add-persist.sys.phh.samsung.camera_ids-property-to-a.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ledroid/platform_frameworks_av/0011-Add-a-property-to-force-camera-timestamp-source.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
patches/trebledroid/platform_frameworks_av/0012-FIH-devices-Fix-Earpiece-audio-output.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...id/platform_frameworks_av/0013-No-longer-make-re-assigning-legacy-audio-groups-fata.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
patches/trebledroid/platform_frameworks_av/0014-Make-camera-IDs-filter-out-optional.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
patches/trebledroid/platform_frameworks_av/0015-Support-Samsung-R-multi-cams.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
patches/trebledroid/platform_frameworks_av/0016-Don-t-crash-on-unknown-audio-devices.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...id/platform_frameworks_av/0017-Not-all-sources-in-a-route-are-valid.-Dont-ignore-th.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...droid/platform_frameworks_av/0018-Use-a-fake-volume-policy-when-none-has-been-found.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...id/platform_frameworks_av/0019-When-aux-cameras-are-enabled-ignore-system-only-came.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...id/platform_frameworks_av/0020-Revert-Remove-support-for-audio-HAL-V2-from-the-fram.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...es/trebledroid/platform_frameworks_av/0021-Fix-parsing-audio-hal-7.0-audio-policies.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...id/platform_frameworks_av/0022-fixup-Not-all-sources-in-a-route-are-valid.-Dont-ign.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...trebledroid/platform_frameworks_av/0023-Add-a-prop-to-change-Samsung-flash-strength.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...roid/platform_frameworks_av/0024-Support-variable-flash-strength-on-samsung-hal-4.0.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ledroid/platform_frameworks_av/0025-voip-Fix-high-pitched-voice-on-Qualcomm-devices.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...id/platform_frameworks_av/0026-Fix-audio-hal-2.0-support.-Fixup-of-Revert-Remove-su.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...id/platform_frameworks_av/0027-Allow-uname-syscall-in-all-seccomp-This-is-needed-be.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...id/platform_frameworks_av/0028-audiopolicy-Fix-broken-mic-while-video-recording-on-.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.