1545fdf9bSopenharmony_ci/* 2545fdf9bSopenharmony_ci * Copyright (c) 2021 Huawei Device Co., Ltd. 3545fdf9bSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4545fdf9bSopenharmony_ci * you may not use this file except in compliance with the License. 5545fdf9bSopenharmony_ci * You may obtain a copy of the License at 6545fdf9bSopenharmony_ci * 7545fdf9bSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8545fdf9bSopenharmony_ci * 9545fdf9bSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10545fdf9bSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11545fdf9bSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12545fdf9bSopenharmony_ci * See the License for the specific language governing permissions and 13545fdf9bSopenharmony_ci * limitations under the License. 14545fdf9bSopenharmony_ci */ 15545fdf9bSopenharmony_ci 16545fdf9bSopenharmony_ci#include "app_log_wrapper.h" 17545fdf9bSopenharmony_ci#include "bundle_command.h" 18545fdf9bSopenharmony_ci 19545fdf9bSopenharmony_ciint main(int argc, char *argv[]) 20545fdf9bSopenharmony_ci{ 21545fdf9bSopenharmony_ci APP_LOGI("bm exec start"); 22545fdf9bSopenharmony_ci OHOS::AppExecFwk::BundleManagerShellCommand cmd(argc, argv); 23545fdf9bSopenharmony_ci std::cout << cmd.ExecCommand(); 24545fdf9bSopenharmony_ci APP_LOGI("bm exec end"); 25545fdf9bSopenharmony_ci quick_exit(0); 26545fdf9bSopenharmony_ci} 27