Skip to content
Snippets Groups Projects
Commit e1cee4e6 authored by Yifan Hong's avatar Yifan Hong Committed by Automerger Merge Worker
Browse files

Merge "Release VintfObject memory after compat check at boot time." into main am: 53304658

parents 8ca90fd1 53304658
No related branches found
No related tags found
No related merge requests found
......@@ -96,8 +96,11 @@ static jobjectArray android_os_VintfObject_report(JNIEnv* env, jclass)
static jint android_os_VintfObject_verifyBuildAtBoot(JNIEnv* env, jclass) {
std::string error;
// Use temporary VintfObject, not the shared instance, to release memory
// after check.
int32_t status =
VintfObject::GetInstance()
VintfObject::Builder()
.build()
->checkCompatibility(&error, ENABLE_ALL_CHECKS.disableAvb().disableKernel());
if (status)
LOG(WARNING) << "VintfObject.verifyBuildAtBoot() returns " << status << ": " << error;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment