Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | RELINK := $(LOCAL_PATH)/relink.sh |
| 4 | |
| 5 | #dummy file to trigger required modules |
| 6 | include $(CLEAR_VARS) |
bigbiff | ce8f83c | 2015-12-12 18:30:21 -0500 | [diff] [blame] | 7 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 8 | LOCAL_MODULE := teamwin |
theimpulson | d95dcd2 | 2020-03-23 18:27:29 +0000 | [diff] [blame] | 9 | LOCAL_MODULE_TAGS := optional |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 10 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 11 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/ |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 12 | |
Matt Mower | fb1c4ff | 2014-04-16 13:43:36 -0500 | [diff] [blame] | 13 | # Manage list |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 14 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/dump_image |
| 15 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/flash_image |
| 16 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/erase_image |
| 17 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/bu |
bigbiff | 416fe3a | 2020-03-28 13:46:48 -0400 | [diff] [blame] | 18 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 19 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/sh |
| 20 | |
| 21 | LOCAL_POST_INSTALL_CMD += $(hide) if [ -e "$(TARGET_RECOVERY_ROOT_OUT)/system/bin/egrep" ]; then \ |
| 22 | rm $(TARGET_RECOVERY_ROOT_OUT)/system/bin/egrep; fi; ln -s $(TARGET_RECOVERY_ROOT_OUT)/system/bin/grep $(TARGET_RECOVERY_ROOT_OUT)/system/bin/egrep; \ |
| 23 | if [ -e "$(TARGET_RECOVERY_ROOT_OUT)/system/bin/fgrep" ]; then \ |
| 24 | rm $(TARGET_RECOVERY_ROOT_OUT)/system/bin/fgrep; fi; ln -s $(TARGET_RECOVERY_ROOT_OUT)/system/bin/grep $(TARGET_RECOVERY_ROOT_OUT)/system/bin/fgrep; |
| 25 | |
| 26 | ifneq ($(wildcard external/zip/Android.mk),) |
| 27 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_OPTIONAL_EXECUTABLES)/zip |
bigbiff | 416fe3a | 2020-03-28 13:46:48 -0400 | [diff] [blame] | 28 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 29 | ifneq ($(wildcard external/unzip/Android.mk),) |
| 30 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_OPTIONAL_EXECUTABLES)/unzip |
| 31 | endif |
| 32 | ifneq ($(wildcard system/core/libziparchive/Android.bp),) |
| 33 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/unzip |
| 34 | endif |
| 35 | ifneq ($(wildcard external/one-true-awk/Android.bp),) |
| 36 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/awk |
Ethan Yonker | 5c93369 | 2014-04-04 11:26:32 -0500 | [diff] [blame] | 37 | endif |
bigbiff | 416fe3a | 2020-03-28 13:46:48 -0400 | [diff] [blame] | 38 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 39 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/adbd |
| 40 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/fastbootd |
| 41 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/e2fsck |
| 42 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/e2fsdroid |
| 43 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mke2fs |
| 44 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/tune2fs |
| 45 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/resize2fs |
| 46 | |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 47 | #RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/twrpmtp |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 48 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/android.hardware.fastboot@1.0.so |
| 49 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/android.hardware.health@1.0.so |
| 50 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/android.hardware.health@2.0.so |
| 51 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/ld-android.so |
| 52 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libc.so |
| 53 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libdl.so |
| 54 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libm.so |
| 55 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libfs_mgr.so |
| 56 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libfscrypt.so |
| 57 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libgsi.so |
| 58 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libkeyutils.so |
| 59 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/liblogwrap.so |
| 60 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/liblp.so |
| 61 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libprocessgroup.so |
| 62 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libprocessgroup_setup.so |
| 63 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libadbd.so |
| 64 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libadbd_services.so |
| 65 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libcap.so |
| 66 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libminijail.so |
| 67 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libunwindstack.so |
| 68 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libasyncio.so |
| 69 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libbinderthreadstate.so |
| 70 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libmdnssd.so |
Captain Throwback | 12673e2 | 2020-10-20 11:46:39 -0400 | [diff] [blame] | 71 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libinit.so |
| 72 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libdl_android.so |
| 73 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libprotobuf-cpp-lite.so |
| 74 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbinder.so |
| 75 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libchrome.so |
| 76 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libevent.so |
| 77 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/keystore |
| 78 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/keystore_cli_v2 |
| 79 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/hwservicemanager |
| 80 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/servicemanager |
| 81 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/vold_prepare_subdirs |
Captain Throwback | 49df547 | 2020-10-19 11:13:53 -0400 | [diff] [blame] | 82 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_VENDOR_EXECUTABLES)/hw/android.hardware.boot@1.0-service |
Captain Throwback | 12673e2 | 2020-10-20 11:46:39 -0400 | [diff] [blame] | 83 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_VENDOR_EXECUTABLES)/vndservicemanager |
| 84 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/toybox |
bigbiff | df8436b | 2020-08-30 16:22:34 -0400 | [diff] [blame] | 85 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_VENDOR_EXECUTABLES)/hw/android.hardware.health@2.0-service |
bigbiff | 20edca8 | 2020-07-03 09:55:28 -0400 | [diff] [blame] | 86 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/charger |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 87 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/ueventd |
| 88 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/watchdogd |
bigbiff | 1f9e484 | 2020-10-31 11:33:15 -0400 | [diff] [blame] | 89 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/minadbd |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 90 | |
| 91 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcutils.so |
| 92 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrecovery.so |
| 93 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libusbhost.so |
| 94 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libutils.so |
| 95 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_com_err.so |
| 96 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_e2p.so |
| 97 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2fs.so |
| 98 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_profile.so |
| 99 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_uuid.so |
| 100 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_misc.so |
Ethan Yonker | 38c2ff8 | 2014-12-09 13:42:10 -0600 | [diff] [blame] | 101 | ifneq ($(wildcard external/e2fsprogs/lib/quota/Android.mk),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 102 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_quota.so |
Ethan Yonker | 38c2ff8 | 2014-12-09 13:42:10 -0600 | [diff] [blame] | 103 | endif |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 104 | ifneq ($(wildcard external/e2fsprogs/lib/ext2fs/Android.*),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 105 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2fs.so |
Ethan Yonker | bcff146 | 2015-01-04 22:01:33 -0600 | [diff] [blame] | 106 | endif |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 107 | ifneq ($(wildcard external/e2fsprogs/lib/blkid/Android.*),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 108 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_blkid.so |
Ethan Yonker | bcff146 | 2015-01-04 22:01:33 -0600 | [diff] [blame] | 109 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 110 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libpng.so |
| 111 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblog.so |
| 112 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libstdc++.so |
| 113 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libminuitwrp.so |
| 114 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libminadbd.so |
| 115 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libz.so |
| 116 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmtdutils.so |
| 117 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtar.so |
| 118 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtwadbbu.so |
| 119 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtwrpdigest.so |
| 120 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libutil-linux.so |
| 121 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libblkid.so |
| 122 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmmcutils.so |
| 123 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbmlutils.so |
| 124 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libflashutils.so |
| 125 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libfusesideload.so |
bigbiff | df8436b | 2020-08-30 16:22:34 -0400 | [diff] [blame] | 126 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbootloader_message.so |
D. Andrei Măceș | b29a5e2 | 2016-12-22 06:19:44 -0500 | [diff] [blame] | 127 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 128 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so \ |
| 129 | $(if $(WITH_CRYPTO_UTILS),$(TARGET_OUT_SHARED_LIBRARIES)/libcrypto_utils.so) |
bigbiff | df8436b | 2020-08-30 16:22:34 -0400 | [diff] [blame] | 130 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 131 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libbacktrace.so |
| 132 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libunwind.so |
| 133 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbase.so |
| 134 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libc++.so |
| 135 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libnetd_client.so |
| 136 | |
Captain Throwback | 12673e2 | 2020-10-20 11:46:39 -0400 | [diff] [blame] | 137 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/toolbox |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 138 | |
bigbiff bigbiff | af32bb9 | 2018-12-18 18:39:53 -0500 | [diff] [blame] | 139 | |
Ethan Yonker | 03a42f6 | 2014-08-08 11:03:51 -0500 | [diff] [blame] | 140 | ifneq ($(TW_OEM_BUILD),true) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 141 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/twrp |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 142 | else |
| 143 | TW_EXCLUDE_MTP := true |
| 144 | endif |
bigbiff bigbiff | af32bb9 | 2018-12-18 18:39:53 -0500 | [diff] [blame] | 145 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 146 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtwrpmtp-ffs.so |
| 147 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext4_utils.so |
| 148 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libaosprecovery.so |
Greg Wallace | ace7623 | 2016-01-27 17:15:51 -0500 | [diff] [blame] | 149 | ifneq ($(TW_INCLUDE_JPEG),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 150 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libjpeg.so |
Greg Wallace | ace7623 | 2016-01-27 17:15:51 -0500 | [diff] [blame] | 151 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 152 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libselinux.so |
| 153 | |
Dees_Troy | b05ddee | 2013-01-28 20:24:50 +0000 | [diff] [blame] | 154 | ifneq ($(TW_NO_EXFAT), true) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 155 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libexfat_twrp.so |
Dees Troy | b4bd697 | 2014-10-09 18:47:00 +0000 | [diff] [blame] | 156 | else |
Captain Throwback | 6a1acf2 | 2014-09-18 12:46:35 -0400 | [diff] [blame] | 157 | TW_NO_EXFAT_FUSE := true |
| 158 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 159 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 160 | ifeq ($(TW_INCLUDE_CRYPTO), true) |
Captain Throwback | 12673e2 | 2020-10-20 11:46:39 -0400 | [diff] [blame] | 161 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcryptfsfde.so |
| 162 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libdexfile_support.so |
| 163 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libf2fs_sparseblock.so |
| 164 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhardware.so |
| 165 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.authsecret@1.0.so |
| 166 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.oemlock@1.0.so |
| 167 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_VENDOR_SHARED_LIBRARIES)/libnos_transport.so |
| 168 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_VENDOR_SHARED_LIBRARIES)/libnos_datagram.so |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 169 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.keymaster@3.0.so |
| 170 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libgpt_twrp.so |
Dees Troy | c657cc0 | 2015-01-16 22:48:47 +0000 | [diff] [blame] | 171 | ifeq ($(TARGET_HW_DISK_ENCRYPTION),true) |
Ethan Yonker | dcd9f3f | 2017-06-05 09:23:34 -0500 | [diff] [blame] | 172 | ifeq ($(TARGET_CRYPTFS_HW_PATH),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 173 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_VENDOR_SHARED_LIBRARIES)/libcryptfs_hw.so |
Ethan Yonker | dcd9f3f | 2017-06-05 09:23:34 -0500 | [diff] [blame] | 174 | else |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 175 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcryptfs_hw.so |
Ethan Yonker | dcd9f3f | 2017-06-05 09:23:34 -0500 | [diff] [blame] | 176 | endif |
Dees Troy | c657cc0 | 2015-01-16 22:48:47 +0000 | [diff] [blame] | 177 | endif |
Ethan Yonker | bd7492d | 2016-12-07 13:55:01 -0600 | [diff] [blame] | 178 | # FBE files |
| 179 | ifeq ($(TW_INCLUDE_CRYPTO_FBE), true) |
Captain Throwback | 12673e2 | 2020-10-20 11:46:39 -0400 | [diff] [blame] | 180 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtwrpfscrypt.so |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 181 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libgatekeeper.so |
| 182 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster_messages.so |
| 183 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeystore_binder.so |
| 184 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbinder.so |
| 185 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libprotobuf-cpp-lite.so |
| 186 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsoftkeymasterdevice.so |
| 187 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.gatekeeper@1.0.so |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 188 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/avbctl |
| 189 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/keystore |
| 190 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/keystore_cli |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 191 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.system.wifi.keystore@1.0.so |
| 192 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.vibrator@1.0.so |
| 193 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.vibrator@1.1.so |
| 194 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.vibrator@1.2.so |
Mohd Faraz | bc576cd | 2020-05-30 21:06:32 +0530 | [diff] [blame] | 195 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 196 | ifneq ($(wildcard system/keymaster/keymaster_stl.cpp),) |
| 197 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster_portable.so |
| 198 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster_staging.so |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 199 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 200 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libwifikeystorehal.so |
| 201 | ifneq ($(wildcard hardware/interfaces/weaver/Android.bp),) |
| 202 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.weaver@1.0.so |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 203 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 204 | ifneq ($(wildcard hardware/interfaces/weaver/1.0/Android.bp),) |
| 205 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.weaver@1.0.so |
| 206 | endif |
| 207 | ifneq ($(wildcard hardware/interfaces/confirmationui/1.0/Android.bp),) |
| 208 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.confirmationui@1.0.so |
| 209 | endif |
| 210 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsoftkeymaster.so |
| 211 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.keymaster@4.0.so |
| 212 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster4support.so |
| 213 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeystore_aidl.so |
| 214 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeystore_parcelables.so |
| 215 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libutilscallstack.so |
| 216 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libdexfile.so |
| 217 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libservices.so |
| 218 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster_portable.so |
Ethan Yonker | 9338282 | 2018-11-01 15:25:31 -0500 | [diff] [blame] | 219 | # lshal can be useful for seeing if you have things like the keymaster working properly, but it isn't needed for TWRP to work |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 220 | #RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/lshal |
| 221 | #RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblshal.so |
| 222 | #RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libssl.so |
| 223 | #RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhidl-gen-hash.so |
Ethan Yonker | bd7492d | 2016-12-07 13:55:01 -0600 | [diff] [blame] | 224 | endif |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 225 | endif |
Ethan Yonker | 1b19016 | 2016-12-05 15:25:19 -0600 | [diff] [blame] | 226 | ifeq ($(AB_OTA_UPDATER), true) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 227 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/update_engine_sideload |
| 228 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.boot@1.0.so |
| 229 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/bootctl |
Ethan Yonker | 1b19016 | 2016-12-05 15:25:19 -0600 | [diff] [blame] | 230 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 231 | |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 232 | ifneq ($(wildcard system/core/libsparse/Android.*),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 233 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsparse.so |
Dees_Troy | 4546fe7 | 2013-01-10 14:33:27 +0000 | [diff] [blame] | 234 | endif |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 235 | ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 236 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libopenaes.so |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 237 | endif |
Dees_Troy | e501704 | 2013-08-29 16:38:55 +0000 | [diff] [blame] | 238 | ifeq ($(TARGET_USERIMAGES_USE_F2FS), true) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 239 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/make_f2fs |
Captain Throwback | 57db2cc | 2020-09-09 15:38:13 -0400 | [diff] [blame] | 240 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/fsck.f2fs |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 241 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/sload_f2fs |
Dees_Troy | e501704 | 2013-08-29 16:38:55 +0000 | [diff] [blame] | 242 | endif |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 243 | ifneq ($(wildcard system/core/reboot/Android.*),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 244 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/reboot |
Dees Troy | 0226cd5 | 2013-11-04 14:12:35 +0000 | [diff] [blame] | 245 | endif |
Vojtech Bocek | 76ee903 | 2014-09-07 15:01:56 +0200 | [diff] [blame] | 246 | ifneq ($(TW_DISABLE_TTF), true) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 247 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libft2.so |
Vojtech Bocek | 76ee903 | 2014-09-07 15:01:56 +0200 | [diff] [blame] | 248 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 249 | ifneq ($(TW_RECOVERY_ADDITIONAL_RELINK_BINARY_FILES),) |
| 250 | RECOVERY_BINARY_SOURCE_FILES += $(TW_RECOVERY_ADDITIONAL_RELINK_BINARY_FILES) |
| 251 | endif |
| 252 | ifneq ($(TW_RECOVERY_ADDITIONAL_RELINK_LIBRARY_FILES),) |
| 253 | RECOVERY_LIBRARY_SOURCE_FILES += $(TW_RECOVERY_ADDITIONAL_RELINK_LIBRARY_FILES) |
Ethan Yonker | 0e67837 | 2014-11-18 12:17:06 -0600 | [diff] [blame] | 254 | endif |
Dees Troy | e176a65 | 2015-01-20 19:35:21 +0000 | [diff] [blame] | 255 | ifneq ($(wildcard external/pcre/Android.mk),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 256 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libpcre.so |
Dees Troy | e176a65 | 2015-01-20 19:35:21 +0000 | [diff] [blame] | 257 | endif |
Ethan Yonker | b81d905 | 2015-07-09 13:20:53 -0500 | [diff] [blame] | 258 | ifeq ($(TW_INCLUDE_NTFS_3G),true) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 259 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mount.ntfs |
| 260 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/fsck.ntfs |
| 261 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mkfs.ntfs |
| 262 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libntfs-3g.so |
| 263 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libfuse-lite.so |
Greg Wallace | b39e6c6 | 2015-12-29 00:55:26 -0500 | [diff] [blame] | 264 | else |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 265 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/ntfs-3g |
| 266 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/ntfsfix |
| 267 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mkntfs |
Greg Wallace | b39e6c6 | 2015-12-29 00:55:26 -0500 | [diff] [blame] | 268 | endif |
Ethan Yonker | 483e9f4 | 2016-01-11 22:21:18 -0600 | [diff] [blame] | 269 | ifeq ($(BOARD_HAS_NO_REAL_SDCARD),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 270 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/sgdisk |
Ethan Yonker | 483e9f4 | 2016-01-11 22:21:18 -0600 | [diff] [blame] | 271 | endif |
Captain Throwback | 1f12775 | 2016-01-19 17:30:20 -0500 | [diff] [blame] | 272 | ifeq ($(TWRP_INCLUDE_LOGCAT), true) |
Captain Throwback | 12673e2 | 2020-10-20 11:46:39 -0400 | [diff] [blame] | 273 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/logcat |
Ethan Yonker | e5a288c | 2016-02-15 09:23:57 -0600 | [diff] [blame] | 274 | ifeq ($(TARGET_USES_LOGD), true) |
Captain Throwback | 12673e2 | 2020-10-20 11:46:39 -0400 | [diff] [blame] | 275 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/logd |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 276 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsysutils.so |
| 277 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libnl.so |
Ethan Yonker | e5a288c | 2016-02-15 09:23:57 -0600 | [diff] [blame] | 278 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 279 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libpcrecpp.so |
| 280 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblogcat.so |
| 281 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcap.so |
Captain Throwback | 1f12775 | 2016-01-19 17:30:20 -0500 | [diff] [blame] | 282 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 283 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libvndksupport.so |
| 284 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhidlbase.so |
| 285 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhidltransport.so |
| 286 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.frameworks.stats@1.0.so |
| 287 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libziparchive.so |
| 288 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_blkid.so |
| 289 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_quota.so |
| 290 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhidl-gen-utils.so |
| 291 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libvintf.so |
| 292 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtinyxml2.so |
| 293 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hidl.token@1.0.so |
| 294 | ifneq ($(wildcard system/core/libkeyutils/Android.bp),) |
| 295 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeyutils.so |
Ethan Yonker | 8373cfe | 2017-09-08 06:50:54 -0500 | [diff] [blame] | 296 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 297 | ifeq ($(wildcard system/libhidl/transport/HidlTransportUtils.cpp),) |
| 298 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hidl.base@1.0.so |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 299 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 300 | ifeq ($(TARGET_ARCH), arm64) |
| 301 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libclang_rt.ubsan_standalone-aarch64-android.so |
| 302 | endif |
| 303 | ifeq ($(TARGET_ARCH), arm) |
| 304 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libclang_rt.ubsan_standalone-arm-android.so |
| 305 | endif |
| 306 | ifeq ($(TARGET_ARCH), x86_64) |
| 307 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libclang_rt.ubsan_standalone-x86_64-android.so |
| 308 | endif |
| 309 | ifeq ($(TARGET_ARCH), x86) |
| 310 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libclang_rt.ubsan_standalone-i686-android.so |
| 311 | endif |
| 312 | ifeq ($(TARGET_ARCH), mips) |
| 313 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libclang_rt.ubsan_standalone-mips-android.so |
| 314 | endif |
| 315 | ifeq ($(TARGET_ARCH), mips64) |
| 316 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libclang_rt.ubsan_standalone-mips64-android.so |
| 317 | endif |
| 318 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblogwrap.so |
| 319 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_misc.so |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 320 | |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 321 | include $(CLEAR_VARS) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 322 | LOCAL_MODULE := relink_libraries |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 323 | LOCAL_MODULE_TAGS := optional |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 324 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 325 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/ |
althafvly | 3081048 | 2020-12-10 21:33:02 +0530 | [diff] [blame] | 326 | ifneq ($(TARGET_ARCH), arm64) |
| 327 | ifneq ($(TARGET_ARCH), x86_64) |
| 328 | LOCAL_POST_INSTALL_CMD += $(RELINK) $(TARGET_RECOVERY_ROOT_OUT)/system/lib $(RECOVERY_LIBRARY_SOURCE_FILES) |
| 329 | else |
| 330 | LOCAL_POST_INSTALL_CMD += $(RELINK) $(TARGET_RECOVERY_ROOT_OUT)/system/lib64 $(RECOVERY_LIBRARY_SOURCE_FILES) |
| 331 | endif |
| 332 | else |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 333 | LOCAL_POST_INSTALL_CMD += $(RELINK) $(TARGET_RECOVERY_ROOT_OUT)/system/lib64 $(RECOVERY_LIBRARY_SOURCE_FILES) |
althafvly | 3081048 | 2020-12-10 21:33:02 +0530 | [diff] [blame] | 334 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 335 | TARGET_LIBRARY_RELINK_FILES := $(notdir $(RECOVERY_LIBRARY_SOURCE_FILES)) |
| 336 | TARGET_BASE_LIBRARY_RELINK_MODULES := $(basename $(TARGET_LIBRARY_RELINK_FILES)) |
| 337 | TARGET_RELINK_LIBRARY_MODULES := $(filter-out libdexfile, $(TARGET_BASE_LIBRARY_RELINK_MODULES)) |
| 338 | LOCAL_REQUIRED_MODULES += $(TARGET_RELINK_LIBRARY_MODULES) |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 339 | include $(BUILD_PHONY_PACKAGE) |
| 340 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 341 | |
| 342 | include $(CLEAR_VARS) |
| 343 | LOCAL_MODULE := relink_binaries |
| 344 | LOCAL_MODULE_TAGS := optional |
| 345 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 346 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/ |
| 347 | LOCAL_POST_INSTALL_CMD += $(RELINK) $(TARGET_RECOVERY_ROOT_OUT)/system/bin $(RECOVERY_BINARY_SOURCE_FILES) |
Mohd Faraz | a791d12 | 2020-09-27 16:06:42 +0530 | [diff] [blame] | 348 | TARGET_BINARY_RELINK_FILES := $(filter-out bu, $(notdir $(RECOVERY_BINARY_SOURCE_FILES))) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 349 | LOCAL_REQUIRED_MODULES += $(TARGET_BINARY_RELINK_FILES) |
| 350 | include $(BUILD_PHONY_PACKAGE) |
| 351 | |
| 352 | #build out TWRP ramdisk |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 353 | include $(CLEAR_VARS) |
bigbiff | 7ba7500 | 2020-04-11 20:47:09 -0400 | [diff] [blame] | 354 | LOCAL_MODULE := twrp_ramdisk |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 355 | LOCAL_MODULE_TAGS := optional |
| 356 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 357 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 358 | LOCAL_POST_INSTALL_CMD += \ |
| 359 | mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/sbin; ln -sf /system/bin/sh $(TARGET_RECOVERY_ROOT_OUT)/sbin/sh && \ |
bigbiff | 7ba7500 | 2020-04-11 20:47:09 -0400 | [diff] [blame] | 360 | mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/system/etc/selinux/ && \ |
Captain Throwback | 8bd1ac5 | 2020-10-19 13:09:17 -0400 | [diff] [blame] | 361 | mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/vendor/etc/selinux/ && \ |
| 362 | cp $(TARGET_OUT_ETC)/selinux/plat_service_contexts $(TARGET_RECOVERY_ROOT_OUT)/system/etc/selinux/plat_service_contexts && \ |
| 363 | cp $(TARGET_OUT_ETC)/selinux/plat_hwservice_contexts $(TARGET_RECOVERY_ROOT_OUT)/system/etc/selinux/plat_hwservice_contexts && \ |
| 364 | cp $(TARGET_OUT_VENDOR_ETC)/selinux/vndservice_contexts $(TARGET_RECOVERY_ROOT_OUT)/vendor/etc/selinux/vndservice_contexts && \ |
| 365 | cp $(TARGET_OUT_VENDOR_ETC)/selinux/vendor_hwservice_contexts $(TARGET_RECOVERY_ROOT_OUT)/vendor/etc/selinux/vendor_hwservice_contexts |
| 366 | ifeq ($(TARGET_USES_MKE2FS), true) |
| 367 | LOCAL_POST_INSTALL_CMD += \ |
| 368 | && cp $(TARGET_OUT_ETC)/mke2fs.conf $(TARGET_RECOVERY_ROOT_OUT)/system/etc/mke2fs.conf |
| 369 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 370 | LOCAL_REQUIRED_MODULES += init_second_stage.recovery reboot.recovery plat_service_contexts plat_hardware_contexts vndservice_contexts |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 371 | include $(BUILD_PHONY_PACKAGE) |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 372 | |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 373 | # copy license file for OpenAES |
| 374 | ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 375 | include $(CLEAR_VARS) |
| 376 | LOCAL_MODULE := openaes_license |
| 377 | LOCAL_MODULE_TAGS := optional |
| 378 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 379 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/license/openaes |
| 380 | LOCAL_SRC_FILES := ../openaes/LICENSE |
| 381 | include $(BUILD_PREBUILT) |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 382 | endif |
| 383 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 384 | ifeq ($(TW_INCLUDE_DUMLOCK), true) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 385 | #htcdumlock for /system for dumlock |
| 386 | include $(CLEAR_VARS) |
| 387 | LOCAL_MODULE := htcdumlocksys |
| 388 | LOCAL_MODULE_TAGS := optional |
| 389 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 390 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
| 391 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 392 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 393 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 394 | #flash_image for /system for dumlock |
| 395 | include $(CLEAR_VARS) |
| 396 | LOCAL_MODULE := flash_imagesys |
| 397 | LOCAL_MODULE_TAGS := optional |
| 398 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 399 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
| 400 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 401 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 402 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 403 | #dump_image for /system for dumlock |
| 404 | include $(CLEAR_VARS) |
| 405 | LOCAL_MODULE := dump_imagesys |
| 406 | LOCAL_MODULE_TAGS := optional |
| 407 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 408 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
| 409 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 410 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 411 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 412 | #libbmlutils for /system for dumlock |
| 413 | include $(CLEAR_VARS) |
| 414 | LOCAL_MODULE := libbmlutils.so |
| 415 | LOCAL_MODULE_TAGS := optional |
| 416 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 417 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
| 418 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 419 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 420 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 421 | #libflashutils for /system for dumlock |
| 422 | include $(CLEAR_VARS) |
| 423 | LOCAL_MODULE := libflashutils.so |
| 424 | LOCAL_MODULE_TAGS := optional |
| 425 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 426 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
| 427 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 428 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 429 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 430 | #libmmcutils for /system for dumlock |
| 431 | include $(CLEAR_VARS) |
| 432 | LOCAL_MODULE := libmmcutils.so |
| 433 | LOCAL_MODULE_TAGS := optional |
| 434 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 435 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
| 436 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 437 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 438 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 439 | #libmtdutils for /system for dumlock |
| 440 | include $(CLEAR_VARS) |
| 441 | LOCAL_MODULE := libmtdutils.so |
| 442 | LOCAL_MODULE_TAGS := optional |
| 443 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 444 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
| 445 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 446 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 447 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 448 | #HTCDumlock.apk |
| 449 | include $(CLEAR_VARS) |
| 450 | LOCAL_MODULE := HTCDumlock.apk |
| 451 | LOCAL_MODULE_TAGS := optional |
| 452 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 453 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
| 454 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 455 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 456 | endif |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 457 | |
bigbiff | 416fe3a | 2020-03-28 13:46:48 -0400 | [diff] [blame] | 458 | ifeq ($(TW_USE_TOOLBOX), true) |
| 459 | include $(CLEAR_VARS) |
| 460 | LOCAL_MODULE := mkshrc_twrp |
| 461 | LOCAL_MODULE_STEM := mkshrc |
| 462 | LOCAL_MODULE_TAGS := optional |
| 463 | LOCAL_MODULE_CLASS := ETC |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 464 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc |
bigbiff | 416fe3a | 2020-03-28 13:46:48 -0400 | [diff] [blame] | 465 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 466 | include $(BUILD_PREBUILT) |
| 467 | endif |
Captain Throwback | 5ab5964 | 2019-02-07 17:22:49 -0500 | [diff] [blame] | 468 | |
Ethan Yonker | b4bff5e | 2016-12-16 07:47:58 -0600 | [diff] [blame] | 469 | #TWRP App "placeholder" |
| 470 | include $(CLEAR_VARS) |
| 471 | LOCAL_MODULE := me.twrp.twrpapp.apk |
theimpulson | d95dcd2 | 2020-03-23 18:27:29 +0000 | [diff] [blame] | 472 | LOCAL_MODULE_TAGS := optional |
Ethan Yonker | b4bff5e | 2016-12-16 07:47:58 -0600 | [diff] [blame] | 473 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 474 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/bin |
Ethan Yonker | b4bff5e | 2016-12-16 07:47:58 -0600 | [diff] [blame] | 475 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 476 | include $(BUILD_PREBUILT) |
nijel8 | 2c821a8 | 2018-12-29 04:56:41 -0500 | [diff] [blame] | 477 | |
Stefan Tauner | 6ad1457 | 2020-01-11 22:28:53 +0100 | [diff] [blame] | 478 | #TWRP App permissions for Android 9+ |
| 479 | include $(CLEAR_VARS) |
| 480 | LOCAL_MODULE := privapp-permissions-twrpapp.xml |
bigbiff | f654e84 | 2020-06-05 21:03:23 -0400 | [diff] [blame] | 481 | LOCAL_MODULE_TAGS := optional |
Stefan Tauner | 6ad1457 | 2020-01-11 22:28:53 +0100 | [diff] [blame] | 482 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 483 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/bin |
Stefan Tauner | 6ad1457 | 2020-01-11 22:28:53 +0100 | [diff] [blame] | 484 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 485 | include $(BUILD_PREBUILT) |
| 486 | |
nijel8 | 2c821a8 | 2018-12-29 04:56:41 -0500 | [diff] [blame] | 487 | ifeq ($(TW_INCLUDE_CRYPTO), true) |
| 488 | ifneq ($(TW_CRYPTO_USE_SYSTEM_VOLD),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 489 | # Prebuilt vdc_pie for pre-Pie SDK Platforms |
| 490 | include $(CLEAR_VARS) |
| 491 | LOCAL_MODULE := vdc_pie |
| 492 | LOCAL_MODULE_TAGS := optional |
| 493 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 494 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/bin |
| 495 | LOCAL_SRC_FILES := vdc_pie-$(TARGET_ARCH) |
| 496 | include $(BUILD_PREBUILT) |
nijel8 | 2c821a8 | 2018-12-29 04:56:41 -0500 | [diff] [blame] | 497 | endif |
| 498 | endif |
Ethan Yonker | 53796e7 | 2019-01-11 22:49:52 -0600 | [diff] [blame] | 499 | |
Chaosmaster | 461e39f | 2020-02-07 01:48:13 +0100 | [diff] [blame] | 500 | ifneq (,$(filter $(TW_INCLUDE_REPACKTOOLS) $(TW_INCLUDE_RESETPROP) $(TW_INCLUDE_LIBRESETPROP), true)) |
Ethan Yonker | 53796e7 | 2019-01-11 22:49:52 -0600 | [diff] [blame] | 501 | ifeq ($(wildcard external/magisk-prebuilt/Android.mk),) |
mauronofrio | 76ef9f3 | 2019-12-23 20:29:24 +0100 | [diff] [blame] | 502 | $(warning Magisk prebuilt tools not found!) |
Ethan Yonker | 53796e7 | 2019-01-11 22:49:52 -0600 | [diff] [blame] | 503 | $(warning Please place https://github.com/TeamWin/external_magisk-prebuilt) |
| 504 | $(warning into external/magisk-prebuilt) |
| 505 | $(error magiskboot prebuilts not present; exiting) |
| 506 | endif |
| 507 | endif |