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

Commit 6032d79f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Disable checking AVB in runtime vintf"

parents 0228c8f9 c524fc8f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -102,8 +102,11 @@ static jint android_os_VintfObject_verify(JNIEnv* env, jclass, jobjectArray pack
        cPackageInfo[i] = cString;
        env->ReleaseStringUTFChars(element, cString);
    }
    // If we can run this code, the device should already pass AVB.
    // So, we don't need to check AVB here.
    std::string error;
    int32_t status = VintfObject::CheckCompatibility(cPackageInfo, &error);
    int32_t status = VintfObject::CheckCompatibility(
        cPackageInfo, &error, ::android::vintf::DISABLE_AVB_CHECK);
    if (status)
        LOG(WARNING) << "VintfObject.verify() returns " << status << ": " << error;
    return status;