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

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
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;