summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-03-30 16:41:12 +0100
committerandroid-build-merger <android-build-merger@google.com>2019-03-30 16:41:12 +0100
commit1055819fa84aed004406e23417237c33a08c419c (patch)
treee9f635bd39b426228247ae3cf528f17061a55629 /recovery.cpp
parentMerge "Move install to separate module" am: a232d9dccb am: 3f25d6bb07 (diff)
parentMerge changes Ibbe7084e,If584fc8a am: bb8f0fff17 (diff)
downloadandroid_bootable_recovery-1055819fa84aed004406e23417237c33a08c419c.tar
android_bootable_recovery-1055819fa84aed004406e23417237c33a08c419c.tar.gz
android_bootable_recovery-1055819fa84aed004406e23417237c33a08c419c.tar.bz2
android_bootable_recovery-1055819fa84aed004406e23417237c33a08c419c.tar.lz
android_bootable_recovery-1055819fa84aed004406e23417237c33a08c419c.tar.xz
android_bootable_recovery-1055819fa84aed004406e23417237c33a08c419c.tar.zst
android_bootable_recovery-1055819fa84aed004406e23417237c33a08c419c.zip
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 421bc12f2..034918498 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -24,7 +24,6 @@
#include <limits.h>
#include <linux/fs.h>
#include <linux/input.h>
-#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -272,12 +271,6 @@ static bool erase_volume(const char* volume) {
return (result == 0);
}
-// Sets the usb config to 'state'
-bool SetUsbConfig(const std::string& state) {
- android::base::SetProperty("sys.usb.config", state);
- return android::base::WaitForProperty("sys.usb.state", state);
-}
-
static bool yes_no(Device* device, const char* question1, const char* question2) {
std::vector<std::string> headers{ question1, question2 };
std::vector<std::string> items{ " No", " Yes" };
@@ -746,20 +739,6 @@ static void print_property(const char* key, const char* name, void* /* cookie */
printf("%s=%s\n", key, name);
}
-void ui_print(const char* format, ...) {
- std::string buffer;
- va_list ap;
- va_start(ap, format);
- android::base::StringAppendV(&buffer, format, ap);
- va_end(ap);
-
- if (ui != nullptr) {
- ui->Print("%s", buffer.c_str());
- } else {
- fputs(buffer.c_str(), stdout);
- }
-}
-
static bool is_battery_ok(int* required_battery_level) {
using android::hardware::health::V1_0::BatteryStatus;
using android::hardware::health::V2_0::get_health_service;