summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-03-30 16:18:18 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-03-30 16:18:18 +0100
commitbb8f0fff17488fb3935646d53860a0bf24749960 (patch)
treebca9e55c10ab5d09e5fb76cf9c71bc5ff8138cdd /recovery.cpp
parentMerge "Move install to separate module" (diff)
parentrecovery: Remove SetUsbConfig() out of common.h. (diff)
downloadandroid_bootable_recovery-bb8f0fff17488fb3935646d53860a0bf24749960.tar
android_bootable_recovery-bb8f0fff17488fb3935646d53860a0bf24749960.tar.gz
android_bootable_recovery-bb8f0fff17488fb3935646d53860a0bf24749960.tar.bz2
android_bootable_recovery-bb8f0fff17488fb3935646d53860a0bf24749960.tar.lz
android_bootable_recovery-bb8f0fff17488fb3935646d53860a0bf24749960.tar.xz
android_bootable_recovery-bb8f0fff17488fb3935646d53860a0bf24749960.tar.zst
android_bootable_recovery-bb8f0fff17488fb3935646d53860a0bf24749960.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;