2022-03-15 22:22:32 -04:00
|
|
|
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>
|
2022-03-16 18:38:30 -04:00
|
|
|
Change-Id: I23513ec0379bbb10829f989690334e9704fd20e2
|
2022-03-15 22:22:32 -04:00
|
|
|
---
|
2022-03-16 18:38:30 -04:00
|
|
|
h_malloc.c | 3 ++-
|
|
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
2022-03-15 22:22:32 -04:00
|
|
|
|
|
|
|
diff --git a/h_malloc.c b/h_malloc.c
|
2022-03-16 18:38:30 -04:00
|
|
|
index a6e1a7c..1b574e4 100644
|
2022-03-15 22:22:32 -04:00
|
|
|
--- a/h_malloc.c
|
|
|
|
+++ b/h_malloc.c
|
2022-03-16 18:38:30 -04:00
|
|
|
@@ -1070,7 +1070,8 @@ COLD static void handle_bugs(void) {
|
2022-03-15 22:22:32 -04:00
|
|
|
|
2022-03-16 18:38:30 -04:00
|
|
|
// 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";
|
2022-03-15 22:22:32 -04:00
|
|
|
- if (strcmp(camera_provider, path) == 0) {
|
|
|
|
+ // Any camera executable on system partition
|
2022-03-16 18:38:30 -04:00
|
|
|
+ if (strcmp(camera_provider, path) == 0 || (strstr(path, "camera") != NULL && (strncmp("/system", path, 7) == 0 || strncmp("/vendor", path, 7) == 0))) {
|
2022-03-15 22:22:32 -04:00
|
|
|
ro.zero_on_free = false;
|
|
|
|
ro.purge_slabs = false;
|
|
|
|
ro.region_quarantine_protect = false;
|