From 24439442a8d2e70b6142eedf8a080e63d334d575 Mon Sep 17 00:00:00 2001 From: Patrick Baumann Date: Mon, 19 Nov 2018 14:28:51 -0800 Subject: [PATCH] Removes ASEC-related install flags Bug: 109941548 Test: install still works Change-Id: Ibaf87e678217a1ce140b4024d16ceb8d27fadec0 --- adb/client/adb_install.cpp | 12 +----------- adb/client/commandline.cpp | 2 -- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/adb/client/adb_install.cpp b/adb/client/adb_install.cpp index 0008f7205..203426922 100644 --- a/adb/client/adb_install.cpp +++ b/adb/client/adb_install.cpp @@ -227,18 +227,8 @@ static int install_app_streamed(int argc, const char** argv, bool use_fastdeploy static int install_app_legacy(int argc, const char** argv, bool use_fastdeploy, bool use_localagent) { - static const char* const DATA_DEST = "/data/local/tmp/%s"; - static const char* const SD_DEST = "/sdcard/tmp/%s"; - const char* where = DATA_DEST; - printf("Performing Push Install\n"); - for (int i = 1; i < argc; i++) { - if (!strcmp(argv[i], "-s")) { - where = SD_DEST; - } - } - // Find last APK argument. // All other arguments passed through verbatim. int last_apk = -1; @@ -257,7 +247,7 @@ static int install_app_legacy(int argc, const char** argv, bool use_fastdeploy, int result = -1; std::vector apk_file = {argv[last_apk]}; std::string apk_dest = - android::base::StringPrintf(where, android::base::Basename(argv[last_apk]).c_str()); + "/data/local/tmp/" + android::base::Basename(argv[last_apk]); if (use_fastdeploy == true) { TemporaryFile metadataTmpFile; diff --git a/adb/client/commandline.cpp b/adb/client/commandline.cpp index b5bed2881..d976507bb 100644 --- a/adb/client/commandline.cpp +++ b/adb/client/commandline.cpp @@ -146,10 +146,8 @@ static void help() { " install [-lrtsdg] [--instant] PACKAGE\n" " install-multiple [-lrtsdpg] [--instant] PACKAGE...\n" " push package(s) to the device and install them\n" - " -l: forward lock application\n" " -r: replace existing application\n" " -t: allow test packages\n" - " -s: install application on sdcard\n" " -d: allow version code downgrade (debuggable packages only)\n" " -p: partial application install (install-multiple only)\n" " -g: grant all runtime permissions\n"