ee01c80afe
--fastdeploy does not require -r anymore, and reverts to a normal install if the application is not already on the device. Bug: 120828611 Test: mm -j72 Test: adb install --fastdeploy --force-agent --local-agent /mnt/raid/boat-attack-apk/boat-attack-swappy.apk Change-Id: Ice2a71493a34ee7d0debabcce6a9aebb0af79e62
35 lines
1.4 KiB
C++
35 lines
1.4 KiB
C++
/*
|
|
* Copyright (C) 2018 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
enum FastDeploy_AgentUpdateStrategy {
|
|
FastDeploy_AgentUpdateAlways,
|
|
FastDeploy_AgentUpdateNewerTimeStamp,
|
|
FastDeploy_AgentUpdateDifferentVersion
|
|
};
|
|
|
|
void fastdeploy_set_local_agent(bool use_localagent);
|
|
int get_device_api_level();
|
|
void update_agent(FastDeploy_AgentUpdateStrategy agentUpdateStrategy);
|
|
void extract_metadata(const char* apkPath, FILE* outputFp);
|
|
void create_patch(const char* apkPath, const char* metadataPath, const char* patchPath);
|
|
void apply_patch_on_device(const char* apkPath, const char* patchPath, const char* outputPath);
|
|
void install_patch(const char* apkPath, const char* patchPath, int argc, const char** argv);
|
|
std::string get_patch_path(const char* apkPath);
|
|
bool find_package(const char* apkPath);
|