Merge "Remove stopship for idmap2 vendor sdk checking" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f5671d390d
@@ -68,9 +68,10 @@ struct InputOverlay {
|
|||||||
};
|
};
|
||||||
|
|
||||||
bool VendorIsQOrLater() {
|
bool VendorIsQOrLater() {
|
||||||
// STOPSHIP(b/119390857): Check api version once Q sdk version is finalized
|
constexpr int kQSdkVersion = 29;
|
||||||
std::string version = android::base::GetProperty("ro.vndk.version", "Q");
|
int version = std::atoi(android::base::GetProperty("ro.vndk.version", "29").data());
|
||||||
return version == "Q" || version == "q";
|
// If the string cannot be parsed, it is a development sdk codename.
|
||||||
|
return version >= kQSdkVersion || version == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Result<std::unique_ptr<std::vector<std::string>>> FindApkFiles(const std::vector<std::string>& dirs,
|
Result<std::unique_ptr<std::vector<std::string>>> FindApkFiles(const std::vector<std::string>& dirs,
|
||||||
|
|||||||
Reference in New Issue
Block a user