support android-16.0.0_r2
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
From a9b5b360b730768adc58f0bd203c65d88915fe31 Mon Sep 17 00:00:00 2001
|
||||
From: Ziyang Zhou <ziyang.zhou@outlook.com>
|
||||
Date: Sat, 15 Oct 2022 09:12:31 +0800
|
||||
Subject: [PATCH 1/2] ignore compatibility check
|
||||
|
||||
---
|
||||
VintfObject.cpp | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/VintfObject.cpp b/VintfObject.cpp
|
||||
index 708e58c..fb0b72e 100644
|
||||
--- a/VintfObject.cpp
|
||||
+++ b/VintfObject.cpp
|
||||
@@ -744,7 +744,6 @@ int32_t VintfObject::checkCompatibility(std::string* error, CheckFlags::Type fla
|
||||
error->insert(0,
|
||||
"Runtime info and framework compatibility matrix are incompatible: ");
|
||||
}
|
||||
- return INCOMPATIBLE;
|
||||
}
|
||||
}
|
||||
|
||||
--
|
||||
2.49.0
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
From 2badf1f0d45dcd2619a6b05b396bb133f08cbc32 Mon Sep 17 00:00:00 2001
|
||||
From: Ziyang Zhou <ziyang.zhou@outlook.com>
|
||||
Date: Thu, 5 Sep 2024 19:05:14 +0800
|
||||
Subject: [PATCH 2/2] ignore /proc/config.gz failed read
|
||||
|
||||
---
|
||||
KernelConfigs.cpp | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/KernelConfigs.cpp b/KernelConfigs.cpp
|
||||
index 3de65ea..3583d66 100644
|
||||
--- a/KernelConfigs.cpp
|
||||
+++ b/KernelConfigs.cpp
|
||||
@@ -34,6 +34,7 @@ status_t LoadKernelConfigs(std::map<std::string, std::string>* configs) {
|
||||
gzFile f = gzopen("/proc/config.gz", "rb");
|
||||
if (f == NULL) {
|
||||
LOG(ERROR) << "Could not open /proc/config.gz: " << errno;
|
||||
+ errno = 0; // HACKED
|
||||
return -errno;
|
||||
}
|
||||
|
||||
--
|
||||
2.49.0
|
||||
|
||||
Reference in New Issue
Block a user