2 * upgrade-apply-deltafs
4 * Copyright (c) 2017 - 2022 Samsung Electronics Co., Ltd.
6 * Licensed under the Apache License, Version 2.0 (the License);
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
28 //#define USE_POST_UPDATE
29 //#define USE_DELTA_DOWNLOAD
32 #define MAX_FILE_PATH 512
33 #define MAX_FOLDER_PATH 384
36 * FOTA Adaptaion header
39 #define ERROR -1 // 0XFFFFFFFF
50 #define UPI_ERROR(code) 0xFD##code
52 #define UPI_CONFIG_ERROR UPI_ERROR(9A)
54 #define UPI_DELTA_PATH_ERROR UPI_ERROR(AA)
55 #define UPI_DELTA_PATH_LENGTH_ERROR UPI_ERROR(AB)
57 #define UPI_VERSION_ERROR UPI_ERROR(BB)
59 #define UPI_VERIFY_ERROR UPI_ERROR(C0)
60 #define UPI_UPDATE_ERROR UPI_ERROR(D0)
62 #define UPI_INVALID_PARAM_ERROR UPI_ERROR(EA)
63 #define UPI_DELTACOUNT_ERROR UPI_ERROR(EC)
64 #define UPI_PARTINFO_ERROR UPI_ERROR(ED)
72 DM_VERITY_DISABLED = 0,
76 void log_deinit(void);