2022-10-15 07:53:14 -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>
|
|
|
|
Change-Id: I23513ec0379bbb10829f989690334e9704fd20e2
|
|
|
|
---
|
|
|
|
h_malloc.c | 3 ++-
|
|
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/h_malloc.c b/h_malloc.c
|
2023-02-26 14:05:00 -05:00
|
|
|
index 824119b..bc6eb16 100644
|
2022-10-15 07:53:14 -04:00
|
|
|
--- a/h_malloc.c
|
|
|
|
+++ b/h_malloc.c
|
2023-02-26 14:05:00 -05:00
|
|
|
@@ -1085,7 +1085,8 @@ COLD static void handle_bugs(void) {
|
2022-10-15 07:53:14 -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";
|
|
|
|
- if (strcmp(camera_provider, path) == 0) {
|
|
|
|
+ // Any camera executable on system partition
|
Many fixes to get bluejay booting & working proper
- Enable APEX for Pixel 6/7, necessary for camera and pKVM
- Also drop hack removing pKVM for Pixel 6/7
- patch from GrapheneOS
- Extend hmalloc workaround to /apex
- Deblobber:
- actually handle wildcard f/w/b overlays
- move some stuff around
- remove some more Pixel blobs
- flag and disable removal of camera extensions, being able to use the second camera is nice
- Adjust what hardenDefconfig disables, caused boot issues
minimal impact as most of these are already default-disabled
can be narrowed down in future
- Disable some of the bionic hardening patches, causing more boot issues
annoying to lose, but having a phone that boots is more important
- Add LTE only mode to 17.1, 18.1, 19.1, and 20.0, credit GrapheneOS
- Remove Pixel 2 ramdisk compression reverts, fixed upstream
And yes, I know I should've split up this commit...
Signed-off-by: Tad <tad@spotco.us>
2022-12-23 22:00:31 -05:00
|
|
|
+ if (strcmp(camera_provider, path) == 0 || (strstr(path, "camera") != NULL && (strncmp("/system", path, 7) == 0 || strncmp("/vendor", path, 7) == 0 || strncmp("/apex", path, 5) == 0))) {
|
2022-10-15 07:53:14 -04:00
|
|
|
ro.zero_on_free = false;
|
|
|
|
ro.purge_slabs = false;
|
|
|
|
ro.region_quarantine_protect = false;
|