release-request-05263112-375a-4b1f-a657-a14bb2a5c5a3-for-git_oc-mr1-release-4185249 snap-temp-L63000000082739046
Change-Id: If5b820c31fd15c067850d75cdb9d9518e1e1b666
This commit is contained in:
@@ -260,8 +260,6 @@ int format_volume(const char* volume, const char* directory) {
|
||||
if (result == 0 && directory != nullptr) {
|
||||
const char* e2fsdroid_argv[] = { "/sbin/e2fsdroid_static",
|
||||
"-e",
|
||||
"-S",
|
||||
"/file_contexts",
|
||||
"-f",
|
||||
directory,
|
||||
"-a",
|
||||
@@ -270,7 +268,7 @@ int format_volume(const char* volume, const char* directory) {
|
||||
nullptr };
|
||||
|
||||
result = exec_cmd(e2fsdroid_argv[0], const_cast<char**>(e2fsdroid_argv));
|
||||
}
|
||||
}
|
||||
} else { /* Has to be f2fs because we checked earlier. */
|
||||
if (v->key_loc != NULL && strcmp(v->key_loc, "footer") == 0 && length < 0) {
|
||||
LOG(ERROR) << "format_volume: crypt footer + negative length (" << length
|
||||
|
||||
+5
-5
@@ -301,15 +301,15 @@ void ScreenRecoveryUI::draw_screen_locked() {
|
||||
gr_color(0, 0, 0, 255);
|
||||
gr_clear();
|
||||
|
||||
static constexpr int TEXT_INDENT = 4;
|
||||
int x = TEXT_INDENT + kMarginWidth;
|
||||
int y = kMarginHeight;
|
||||
if (show_menu) {
|
||||
std::string recovery_fingerprint =
|
||||
android::base::GetProperty("ro.bootimage.build.fingerprint", "");
|
||||
static constexpr int kMenuIndent = 4;
|
||||
int x = kMarginWidth + kMenuIndent;
|
||||
|
||||
SetColor(INFO);
|
||||
y += DrawTextLine(x, y, "Android Recovery", true);
|
||||
std::string recovery_fingerprint =
|
||||
android::base::GetProperty("ro.bootimage.build.fingerprint", "");
|
||||
for (const auto& chunk : android::base::Split(recovery_fingerprint, ":")) {
|
||||
y += DrawTextLine(x, y, chunk.c_str(), false);
|
||||
}
|
||||
@@ -343,7 +343,7 @@ void ScreenRecoveryUI::draw_screen_locked() {
|
||||
size_t count = 0;
|
||||
for (int ty = gr_fb_height() - kMarginHeight - char_height_; ty >= y && count < text_rows_;
|
||||
ty -= char_height_, ++count) {
|
||||
DrawTextLine(x, ty, text_[row], false);
|
||||
DrawTextLine(kMarginWidth, ty, text_[row], false);
|
||||
--row;
|
||||
if (row < 0) row = text_rows_ - 1;
|
||||
}
|
||||
|
||||
+1
-2
@@ -322,8 +322,7 @@ Value* FormatFn(const char* name, State* state, const std::vector<std::unique_pt
|
||||
return StringValue(location);
|
||||
}
|
||||
|
||||
const char* e2fsdroid_argv[] = { "/sbin/e2fsdroid_static", "-e", "-S",
|
||||
"/file_contexts", "-a", mount_point.c_str(),
|
||||
const char* e2fsdroid_argv[] = { "/sbin/e2fsdroid_static", "-e", "-a", mount_point.c_str(),
|
||||
location.c_str(), nullptr };
|
||||
status = exec_cmd(e2fsdroid_argv[0], const_cast<char**>(e2fsdroid_argv));
|
||||
if (status != 0) {
|
||||
|
||||
Reference in New Issue
Block a user