mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
30 lines
922 B
Diff
30 lines
922 B
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Tad <tad@spotco.us>
|
||
|
Date: Fri, 18 Aug 2023 11:22:58 -0400
|
||
|
Subject: [PATCH] Add workaround for netmgrd
|
||
|
|
||
|
Signed-off-by: Tad <tad@spotco.us>
|
||
|
Change-Id: Id889f2a24e534bc3fa42f59726ade7ba615090a5
|
||
|
---
|
||
|
h_malloc.c | 7 +++++++
|
||
|
1 file changed, 7 insertions(+)
|
||
|
|
||
|
diff --git a/h_malloc.c b/h_malloc.c
|
||
|
index f680fa6..2cbb22e 100644
|
||
|
--- a/h_malloc.c
|
||
|
+++ b/h_malloc.c
|
||
|
@@ -1070,6 +1070,13 @@ COLD static void handle_bugs(void) {
|
||
|
if (strcmp(audio_service, path) == 0) {
|
||
|
ro.slot_randomize = false;
|
||
|
}
|
||
|
+
|
||
|
+ // Qualcomm network manager daemon incompatibility
|
||
|
+ if (strstr(path, "netmgrd") != 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;
|
||
|
+ }
|
||
|
}
|
||
|
|
||
|
COLD static void init_slow_path(void) {
|