Support AR one-shot fuse on the new platform
Bug: 351059371 Flag: EXEMPT bugfix Change-Id: I14faf995aa259b607300616ba1a1ea6d24a92d2a Signed-off-by: Steven Tsai <steventsai@google.com>
This commit is contained in:
parent
90ea9b5fca
commit
c984d655c2
2 changed files with 10 additions and 10 deletions
|
@ -19,6 +19,7 @@
|
||||||
#include "BootControl.h"
|
#include "BootControl.h"
|
||||||
|
|
||||||
#include <android-base/file.h>
|
#include <android-base/file.h>
|
||||||
|
#include <android-base/properties.h>
|
||||||
#include <android-base/unique_fd.h>
|
#include <android-base/unique_fd.h>
|
||||||
#include <bootloader_message/bootloader_message.h>
|
#include <bootloader_message/bootloader_message.h>
|
||||||
#include <cutils/properties.h>
|
#include <cutils/properties.h>
|
||||||
|
@ -254,16 +255,15 @@ static bool blowAR_gs101() {
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool blowAR() {
|
static bool blowAR() {
|
||||||
char platform[PROPERTY_VALUE_MAX];
|
const auto& platform = ::android::base::GetProperty("ro.boot.hardware.platform", "");
|
||||||
property_get("ro.boot.hardware.platform", platform, "");
|
|
||||||
|
|
||||||
if (std::string(platform) == "gs101") {
|
if (platform == "gs101") {
|
||||||
return blowAR_gs101();
|
return blowAR_gs101();
|
||||||
} else if (std::string(platform) == "gs201" || std::string(platform) == "zuma") {
|
} else if (platform == "gs201" || platform == "zuma" || platform == "zumapro") {
|
||||||
return blowAR_zuma();
|
return blowAR_zuma();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
#include <android-base/file.h>
|
#include <android-base/file.h>
|
||||||
#include <android-base/logging.h>
|
#include <android-base/logging.h>
|
||||||
|
#include <android-base/properties.h>
|
||||||
#include <android-base/unique_fd.h>
|
#include <android-base/unique_fd.h>
|
||||||
#include <bootloader_message/bootloader_message.h>
|
#include <bootloader_message/bootloader_message.h>
|
||||||
#include <cutils/properties.h>
|
#include <cutils/properties.h>
|
||||||
|
@ -251,16 +252,15 @@ static bool blowAR_gs101() {
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool blowAR() {
|
static bool blowAR() {
|
||||||
char platform[PROPERTY_VALUE_MAX];
|
const auto& platform = ::android::base::GetProperty("ro.boot.hardware.platform", "");
|
||||||
property_get("ro.boot.hardware.platform", platform, "");
|
|
||||||
|
|
||||||
if (std::string(platform) == "gs101") {
|
if (platform == "gs101") {
|
||||||
return blowAR_gs101();
|
return blowAR_gs101();
|
||||||
} else if (std::string(platform) == "gs201" || std::string(platform) == "zuma") {
|
} else if (platform == "gs201" || platform == "zuma" || platform == "zumapro") {
|
||||||
return blowAR_zuma();
|
return blowAR_zuma();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static constexpr MergeStatus ToAIDLMergeStatus(HIDLMergeStatus status) {
|
static constexpr MergeStatus ToAIDLMergeStatus(HIDLMergeStatus status) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue