Skip to content
Snippets Groups Projects
Commit 53304658 authored by Yifan Hong's avatar Yifan Hong Committed by Gerrit Code Review
Browse files

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

parents bdb639ea acb46e4c
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