Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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;