diff options
Diffstat (limited to 'meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/stub-out-fastdeploy.patch')
| -rw-r--r-- | meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/stub-out-fastdeploy.patch | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/stub-out-fastdeploy.patch b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/stub-out-fastdeploy.patch deleted file mode 100644 index d86ef230f7..0000000000 --- a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/stub-out-fastdeploy.patch +++ /dev/null | |||
| @@ -1,95 +0,0 @@ | |||
| 1 | Upstream-Status: Pending | ||
| 2 | |||
| 3 | Description: Defer packaging fastdeploy with adb for 29.x.x tags. | ||
| 4 | Forwarded: not-needed | ||
| 5 | --- a/system/core/adb/client/commandline.cpp | ||
| 6 | +++ b/system/core/adb/client/commandline.cpp | ||
| 7 | @@ -59,7 +59,6 @@ | ||
| 8 | #include "bugreport.h" | ||
| 9 | #include "client/file_sync_client.h" | ||
| 10 | #include "commandline.h" | ||
| 11 | -#include "fastdeploy.h" | ||
| 12 | #include "services.h" | ||
| 13 | #include "shell_protocol.h" | ||
| 14 | #include "sysdeps/chrono.h" | ||
| 15 | --- a/system/core/adb/client/adb_install.cpp | ||
| 16 | +++ b/system/core/adb/client/adb_install.cpp | ||
| 17 | @@ -35,7 +35,6 @@ | ||
| 18 | #include "adb_utils.h" | ||
| 19 | #include "client/file_sync_client.h" | ||
| 20 | #include "commandline.h" | ||
| 21 | -#include "fastdeploy.h" | ||
| 22 | |||
| 23 | static constexpr int kFastDeployMinApi = 24; | ||
| 24 | |||
| 25 | @@ -167,14 +166,6 @@ | ||
| 26 | } | ||
| 27 | |||
| 28 | if (use_fastdeploy) { | ||
| 29 | - auto metadata = extract_metadata(file); | ||
| 30 | - if (metadata.has_value()) { | ||
| 31 | - // pass all but 1st (command) and last (apk path) parameters through to pm for | ||
| 32 | - // session creation | ||
| 33 | - std::vector<const char*> pm_args{argv + 1, argv + argc - 1}; | ||
| 34 | - auto patchFd = install_patch(pm_args.size(), pm_args.data()); | ||
| 35 | - return stream_patch(file, std::move(metadata.value()), std::move(patchFd)); | ||
| 36 | - } | ||
| 37 | } | ||
| 38 | |||
| 39 | struct stat sb; | ||
| 40 | @@ -267,16 +258,6 @@ | ||
| 41 | argv[last_apk] = apk_dest.c_str(); /* destination name, not source location */ | ||
| 42 | |||
| 43 | if (use_fastdeploy) { | ||
| 44 | - auto metadata = extract_metadata(apk_file[0]); | ||
| 45 | - if (metadata.has_value()) { | ||
| 46 | - auto patchFd = apply_patch_on_device(apk_dest.c_str()); | ||
| 47 | - int status = stream_patch(apk_file[0], std::move(metadata.value()), std::move(patchFd)); | ||
| 48 | - | ||
| 49 | - result = pm_command(argc, argv); | ||
| 50 | - delete_device_file(apk_dest); | ||
| 51 | - | ||
| 52 | - return status; | ||
| 53 | - } | ||
| 54 | } | ||
| 55 | |||
| 56 | if (do_sync_push(apk_file, apk_dest.c_str(), false)) { | ||
| 57 | @@ -292,7 +273,6 @@ | ||
| 58 | InstallMode installMode = INSTALL_DEFAULT; | ||
| 59 | bool use_fastdeploy = false; | ||
| 60 | bool is_reinstall = false; | ||
| 61 | - FastDeploy_AgentUpdateStrategy agent_update_strategy = FastDeploy_AgentUpdateDifferentVersion; | ||
| 62 | |||
| 63 | for (int i = 1; i < argc; i++) { | ||
| 64 | if (!strcmp(argv[i], "--streaming")) { | ||
| 65 | @@ -313,13 +293,10 @@ | ||
| 66 | use_fastdeploy = false; | ||
| 67 | } else if (!strcmp(argv[i], "--force-agent")) { | ||
| 68 | processedArgIndicies.push_back(i); | ||
| 69 | - agent_update_strategy = FastDeploy_AgentUpdateAlways; | ||
| 70 | } else if (!strcmp(argv[i], "--date-check-agent")) { | ||
| 71 | processedArgIndicies.push_back(i); | ||
| 72 | - agent_update_strategy = FastDeploy_AgentUpdateNewerTimeStamp; | ||
| 73 | } else if (!strcmp(argv[i], "--version-check-agent")) { | ||
| 74 | processedArgIndicies.push_back(i); | ||
| 75 | - agent_update_strategy = FastDeploy_AgentUpdateDifferentVersion; | ||
| 76 | } | ||
| 77 | } | ||
| 78 | |||
| 79 | @@ -331,13 +308,11 @@ | ||
| 80 | error_exit("Attempting to use streaming install on unsupported device"); | ||
| 81 | } | ||
| 82 | |||
| 83 | - if (use_fastdeploy && get_device_api_level() < kFastDeployMinApi) { | ||
| 84 | - printf("Fast Deploy is only compatible with devices of API version %d or higher, " | ||
| 85 | - "ignoring.\n", | ||
| 86 | - kFastDeployMinApi); | ||
| 87 | + if (use_fastdeploy) { | ||
| 88 | + printf("Fast Deploy is unavailable in this build of adb, " | ||
| 89 | + "ignoring.\n"); | ||
| 90 | use_fastdeploy = false; | ||
| 91 | } | ||
| 92 | - fastdeploy_set_agent_update_strategy(agent_update_strategy); | ||
| 93 | |||
| 94 | std::vector<const char*> passthrough_argv; | ||
| 95 | for (int i = 0; i < argc; i++) { | ||
