From 82dee3ea69da15637974b9db64a7ace78cc945b0 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 12 Apr 2019 16:55:52 -0700 Subject: [PATCH] liblp: Use ro.boot.slot_suffix rather than ro.build.ab_update. Bug: 130433329 Test: liblp_test gtests Change-Id: I229f582dc829884e4e90187981902cd4d45637c6 --- fs_mgr/liblp/builder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs_mgr/liblp/builder.cpp b/fs_mgr/liblp/builder.cpp index 27222af8e..41c01da8a 100644 --- a/fs_mgr/liblp/builder.cpp +++ b/fs_mgr/liblp/builder.cpp @@ -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 {