diff options
author | Doug Zongker <dougz@android.com> | 2014-02-14 00:18:19 +0100 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2014-02-14 00:18:19 +0100 |
commit | a1bc148c7c81f886426c253f2ea7beb0f301f6b0 (patch) | |
tree | 2ece82d93c5be1f793d8cf1d475dcd5d2cab442a /minelf/Retouch.h | |
parent | add syspatch support to updater (diff) | |
download | android_bootable_recovery-a1bc148c7c81f886426c253f2ea7beb0f301f6b0.tar android_bootable_recovery-a1bc148c7c81f886426c253f2ea7beb0f301f6b0.tar.gz android_bootable_recovery-a1bc148c7c81f886426c253f2ea7beb0f301f6b0.tar.bz2 android_bootable_recovery-a1bc148c7c81f886426c253f2ea7beb0f301f6b0.tar.lz android_bootable_recovery-a1bc148c7c81f886426c253f2ea7beb0f301f6b0.tar.xz android_bootable_recovery-a1bc148c7c81f886426c253f2ea7beb0f301f6b0.tar.zst android_bootable_recovery-a1bc148c7c81f886426c253f2ea7beb0f301f6b0.zip |
Diffstat (limited to '')
-rw-r--r-- | minelf/Retouch.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/minelf/Retouch.h b/minelf/Retouch.h deleted file mode 100644 index 13bacd5ad..000000000 --- a/minelf/Retouch.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2009 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. - */ - -#ifndef _MINELF_RETOUCH -#define _MINELF_RETOUCH - -#include <stdbool.h> -#include <sys/types.h> - -typedef struct { - char tag[8]; /* "RETOUCH ", not zero-terminated */ - uint32_t blob_size; /* in bytes, located right before this struct */ -} retouch_info_t __attribute__((packed)); - -#define RETOUCH_DONT_MASK 0 -#define RETOUCH_DO_MASK 1 - -#define RETOUCH_DATA_ERROR 0 // This is bad. Should not happen. -#define RETOUCH_DATA_MATCHED 1 // Up to an uniform random offset. -#define RETOUCH_DATA_MISMATCHED 2 // Partially randomized, or total mess. -#define RETOUCH_DATA_NOTAPPLICABLE 3 // Not retouched. Only when inferring. - -// Mask retouching in-memory. Used before apply_patch[_check]. -// Also used to determine status of retouching after a crash. -// -// If desired_offset is not NULL, then apply retouching instead, -// and return that in retouch_offset. -int retouch_mask_data(uint8_t *binary_object, - int32_t binary_size, - int32_t *desired_offset, - int32_t *retouch_offset); -#endif |