summaryrefslogtreecommitdiff
path: root/recovery_main.cpp
diff options
context:
space:
mode:
authorHridya Valsaraju <hridya@google.com>2018-08-31 11:57:51 -0700
committerHridya Valsaraju <hridya@google.com>2018-09-07 15:02:43 -0700
commite4ef453914235d1ac3bea1c1a27975ee1ea7da73 (patch)
treef421eef0a20c95c43cf006e1607fd8e75947ab8a /recovery_main.cpp
parenta062fae9d7c69b2e701e3c27ac34fef506f67218 (diff)
Fix sideload for user devices by adding a new sideload config
Bug: 113563995 Test: Tested the 'adb sideload' command on marlin user/userdebug builds and walleye user/userdebug builds Change-Id: I00d565547b85f2db87012e4a08316609e03395ac
Diffstat (limited to 'recovery_main.cpp')
-rw-r--r--recovery_main.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/recovery_main.cpp b/recovery_main.cpp
index 020a5314..c3168fc2 100644
--- a/recovery_main.cpp
+++ b/recovery_main.cpp
@@ -305,11 +305,6 @@ static void redirect_stdio(const char* filename) {
}
}
-static bool SetUsbConfig(const std::string& state) {
- android::base::SetProperty("sys.usb.config", state);
- return android::base::WaitForProperty("sys.usb.state", state);
-}
-
int main(int argc, char** argv) {
// We don't have logcat yet under recovery; so we'll print error on screen and log to stdout
// (which is redirected to recovery.log) as we used to do.