mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
27 lines
994 B
Diff
27 lines
994 B
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Tad <tad@spotco.us>
|
||
|
Date: Tue, 15 Mar 2022 22:18:26 -0400
|
||
|
Subject: [PATCH] Expand workaround to all camera executables
|
||
|
|
||
|
Signed-off-by: Tad <tad@spotco.us>
|
||
|
---
|
||
|
h_malloc.c | 5 ++---
|
||
|
1 file changed, 2 insertions(+), 3 deletions(-)
|
||
|
|
||
|
diff --git a/h_malloc.c b/h_malloc.c
|
||
|
index a6e1a7c..662af35 100644
|
||
|
--- a/h_malloc.c
|
||
|
+++ b/h_malloc.c
|
||
|
@@ -1068,9 +1068,8 @@ COLD static void handle_bugs(void) {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
- // Pixel 3, Pixel 3 XL, Pixel 3a and Pixel 3a XL camera provider
|
||
|
- const char camera_provider[] = "/vendor/bin/hw/android.hardware.camera.provider@2.4-service_64";
|
||
|
- if (strcmp(camera_provider, path) == 0) {
|
||
|
+ // Any camera executable on system partition
|
||
|
+ if (strstr(path, "camera") != NULL && (strncmp("/system", path, 7) == 0 || strncmp("/vendor", path, 7) == 0)) {
|
||
|
ro.zero_on_free = false;
|
||
|
ro.purge_slabs = false;
|
||
|
ro.region_quarantine_protect = false;
|