From 6a6480496517dc9343b80380637b40094b72d3a4 Mon Sep 17 00:00:00 2001 From: Jerry Zhang Date: Fri, 4 May 2018 11:24:10 -0700 Subject: recovery: Refactor common setup into main() Move more common setup into the main function. Main() handles all 1 time setup, such as ui, logging, and secontext. Recovery_main() takes in command line arguments, does any necessary recovery work, and can be called multiple times from main(). Test: Recovery works Bug: 78793464 Change-Id: I2d2595fc342b4ddfa80f4e06b30e44263132acd9 --- private/recovery.h | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 private/recovery.h (limited to 'private/recovery.h') diff --git a/private/recovery.h b/private/recovery.h deleted file mode 100644 index 5b2ca4b3f..000000000 --- a/private/recovery.h +++ /dev/null @@ -1,19 +0,0 @@ -/* - * 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 - -int start_recovery(int argc, char** argv); -- cgit v1.2.3