-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
KoysX
committed
Aug 22, 2023
1 parent
d7e2006
commit cbeffa2
Showing
28 changed files
with
234 additions
and
195 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
patches/misc/platform_device_phh_treble/0007-Address-a-QcRilAudio-denial.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,25 @@ | ||
From e99b4ad1cd44f00c7a8be67f7c3949212a731caf Mon Sep 17 00:00:00 2001 | ||
From: ChonDoit <thphantomblog@gmail.com> | ||
Date: Thu, 27 Jul 2023 21:34:49 +0000 | ||
Subject: [PATCH] Address a QcRilAudio denial | ||
|
||
07-27 14:17:12.726 547 547 I auditd : avc: denied { find } for interface=vendor.qti.qcril.am::IQcRilAudio sid=u:r:system_app:s0 pid=3172 scontext=u:r:system_app:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0 | ||
07-27 14:17:12.734 547 547 I auditd : avc: denied { find } for interface=vendor.qti.qcril.am::IQcRilAudio sid=u:r:system_app:s0 pid=3172 scontext=u:r:system_app:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0 | ||
--- | ||
sepolicy/qcrilam_app.te | 3 +++ | ||
1 file changed, 3 insertions(+) | ||
|
||
diff --git a/sepolicy/qcrilam_app.te b/sepolicy/qcrilam_app.te | ||
index 2b8e76e..025bea5 100644 | ||
--- a/sepolicy/qcrilam_app.te | ||
+++ b/sepolicy/qcrilam_app.te | ||
@@ -20,3 +20,6 @@ allow qcrilam_app radio_service:service_manager find; | ||
hal_client_domain(qcrilam_app, hal_telephony) | ||
|
||
allow qcrilam_app cgroup:file w_file_perms; | ||
+ | ||
+# Allow to find service | ||
+allow system_app hal_telephony_hwservice:hwservice_manager find; | ||
-- | ||
2.34.1 | ||
|
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
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
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
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
40 changes: 40 additions & 0 deletions
40
...es/pre/platform_device_phh_treble/0003-Add-Bluetooth-BQR-props-and-Nuke-SAP-Profile.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,40 @@ | ||
From 04a0ae146c09fe0e9da2d959df253a03ecb0edf5 Mon Sep 17 00:00:00 2001 | ||
From: ChonDoit <thphantomblog@gmail.com> | ||
Date: Mon, 19 Jun 2023 22:26:48 +0000 | ||
Subject: [PATCH] Add Bluetooth BQR props and Nuke SAP Profile | ||
|
||
--- | ||
system.prop | 10 +++++++++- | ||
1 file changed, 9 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/system.prop b/system.prop | ||
index fa2a5c9..bfb6145 100644 | ||
--- a/system.prop | ||
+++ b/system.prop | ||
@@ -30,6 +30,7 @@ bluetooth.device.class_of_device=90,2,12 | ||
|
||
# Enable system-side generic bluetooth audio HAL | ||
persist.bluetooth.system_audio_hal.enabled=1 | ||
+ | ||
# Set commonly-supported Bluetooth profiles to enabled | ||
# TODO: Enable BLE Audio profiles on newer vendors | ||
bluetooth.profile.asha.central.enabled?=true | ||
@@ -45,7 +46,14 @@ bluetooth.profile.opp.enabled?=true | ||
bluetooth.profile.pan.nap.enabled?=true | ||
bluetooth.profile.pan.panu.enabled?=true | ||
bluetooth.profile.pbap.server.enabled?=true | ||
-bluetooth.profile.sap.server.enabled?=true | ||
+#bluetooth.profile.sap.server.enabled?=true | ||
+ | ||
+# System props to enable Bluetooth Quality Report (BQR) feature | ||
+# BQR event mask configuration | ||
+persist.bluetooth.bqr.event_mask=14 | ||
+ | ||
+# BQR minimum report interval configuration | ||
+persist.bluetooth.bqr.min_interval_ms=500 | ||
|
||
# Samsung vendors default to a Samsung-specific gadget for MTP. Set this to use AOSP's functionfs MTP | ||
vendor.usb.use_ffs_mtp=1 | ||
-- | ||
2.34.1 | ||
|
24 changes: 24 additions & 0 deletions
24
...pre/platform_device_phh_treble/0004-Allow-servicemanager-to-access-hal-audio-sysbta.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,24 @@ | ||
From 4a7c81ca9da035f9aa03c41fa087fbdc5d2d87af Mon Sep 17 00:00:00 2001 | ||
From: ChonDoit <thphantomblog@gmail.com> | ||
Date: Fri, 11 Nov 2022 21:09:06 +0000 | ||
Subject: [PATCH 3/5] Allow servicemanager to access hal_audio_sysbta | ||
|
||
--- | ||
sepolicy/hal_audio_sysbta.te | 4 ++++ | ||
1 file changed, 4 insertions(+) | ||
|
||
diff --git a/sepolicy/hal_audio_sysbta.te b/sepolicy/hal_audio_sysbta.te | ||
index d871ed3..e5c6087 100644 | ||
--- a/sepolicy/hal_audio_sysbta.te | ||
+++ b/sepolicy/hal_audio_sysbta.te | ||
@@ -8,3 +8,7 @@ hal_client_domain(hal_audio_sysbta, hal_allocator) | ||
|
||
# allow audioserver to call hal_audio dump with its own fd to retrieve status | ||
allow hal_audio_sysbta audioserver:fifo_file write; | ||
+ | ||
+# Allow servicemanager to access hal_audio_sysbta | ||
+allow servicemanager hal_audio_sysbta:dir r_dir_perms; | ||
+allow servicemanager hal_audio_sysbta:file r_file_perms; | ||
-- | ||
2.34.1 | ||
|
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 | ||
|
File renamed without changes.
65 changes: 0 additions & 65 deletions
65
...rebledroid/platform_frameworks_native/0010-Try-to-fallback-mCallingSid-to-getpidcon.patch
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
patches/trebledroid/platform_system_core/0001-Let-system-override-ro.apex.updatable.patch
100755 → 100644
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
patches/trebledroid/platform_system_core/0002-If-Vboot2-fails-fall-back-to-Vboot1.patch
100755 → 100644
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.