Removed call to external aapt2 process Replaced several layers of error handling with calls to fatal() Changed output messages for failures to be more useful for diagnostics Bug: 116753196 Test: mm Test: adb install -r --fastdeploy --force-agent --local-agent ~/example_apks/example.apk Test: adb install -r --fastdeploy --no-streaming --force-agent --local-agent ~/example_apks/example.apk Change-Id: I6006d8aa584e789a086a31e79a41d1416e54402a
27 lines
909 B
C++
27 lines
909 B
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>
|
|
|
|
int install_app(int argc, const char** argv);
|
|
int install_multiple_app(int argc, const char** argv);
|
|
int uninstall_app(int argc, const char** argv);
|
|
|
|
int delete_device_file(const std::string& filename);
|
|
int delete_host_file(const std::string& filename);
|
|
|