diff --git a/core/jni/android_os_VintfObject.cpp b/core/jni/android_os_VintfObject.cpp index ce4a33735c6dd4bab6aa2b4ba4257050738affcc..8dc9d0aa578e8051c0be3cf54802727508676665 100644 --- a/core/jni/android_os_VintfObject.cpp +++ b/core/jni/android_os_VintfObject.cpp @@ -39,6 +39,7 @@ using vintf::CompatibilityMatrix; using vintf::HalManifest; using vintf::Level; using vintf::SchemaType; +using vintf::SepolicyVersion; using vintf::to_string; using vintf::toXml; using vintf::Version; @@ -139,7 +140,7 @@ static jstring android_os_VintfObject_getPlatformSepolicyVersion(JNIEnv* env, jc return nullptr; } - Version latest; + SepolicyVersion latest; for (const auto& range : versions) { latest = std::max(latest, range.maxVer()); }