liblp: Use ro.boot.slot_suffix rather than ro.build.ab_update.

Bug: 130433329
Test: liblp_test gtests
Change-Id: I229f582dc829884e4e90187981902cd4d45637c6
This commit is contained in:
David Anderson 2019-04-12 16:55:52 -07:00
parent 243887b1e1
commit 82dee3ea69

View file

@ -1057,7 +1057,7 @@ bool MetadataBuilder::IsABDevice() const {
if (sABOverrideSet) {
return sABOverrideValue;
}
return android::base::GetBoolProperty("ro.build.ab_update", false);
return !android::base::GetProperty("ro.boot.slot_suffix", "").empty();
}
bool MetadataBuilder::IsRetrofitDevice() const {