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 |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 10 | LOCAL_MODULE_CLASS := 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 |
nebrassy | 204e36e | 2021-11-14 23:27:51 +0100 | [diff] [blame] | 32 | ifneq ($(wildcard system/libziparchive/Android.bp),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 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 | |
me-cafebabe | 80c1326 | 2022-06-09 16:32:17 +0800 | [diff] [blame] | 39 | ifneq ($(filter $(PRODUCT_USE_DYNAMIC_PARTITIONS) $(TW_INCLUDE_FASTBOOTD),true),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 40 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/fastbootd |
me-cafebabe | 80c1326 | 2022-06-09 16:32:17 +0800 | [diff] [blame] | 41 | endif |
bigbiff | c5012c5 | 2021-07-04 13:57:47 -0400 | [diff] [blame] | 42 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/bc |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 43 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/e2fsck |
| 44 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/e2fsdroid |
| 45 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mke2fs |
| 46 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/tune2fs |
| 47 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/resize2fs |
| 48 | |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 49 | #RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/twrpmtp |
me-cafebabe | 80c1326 | 2022-06-09 16:32:17 +0800 | [diff] [blame] | 50 | ifneq ($(filter $(PRODUCT_USE_DYNAMIC_PARTITIONS) $(TW_INCLUDE_FASTBOOTD),true),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 51 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/android.hardware.fastboot@1.0.so |
me-cafebabe | 80c1326 | 2022-06-09 16:32:17 +0800 | [diff] [blame] | 52 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 53 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/ld-android.so |
nebrassy | 76224bd | 2021-04-05 11:52:44 +0200 | [diff] [blame] | 54 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libandroid_runtime_lazy.so |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 55 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libc.so |
| 56 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libdl.so |
| 57 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libm.so |
| 58 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libfs_mgr.so |
bigbiff | a957f07 | 2021-03-07 18:20:29 -0500 | [diff] [blame] | 59 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libfscrypt.so |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 60 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libgsi.so |
| 61 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libkeyutils.so |
| 62 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/liblogwrap.so |
| 63 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/liblp.so |
| 64 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libprocessgroup.so |
| 65 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libprocessgroup_setup.so |
| 66 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libadbd.so |
| 67 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libadbd_services.so |
| 68 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libcap.so |
| 69 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libminijail.so |
| 70 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libunwindstack.so |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 71 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libbinderthreadstate.so |
| 72 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libmdnssd.so |
me-cafebabe | 8494d5f | 2022-06-09 17:55:39 +0800 | [diff] [blame] | 73 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.boot@1.0.so |
| 74 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.boot@1.1.so |
Captain Throwback | 0413221 | 2022-06-25 16:45:33 -0400 | [diff] [blame] | 75 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.boot@1.2.so |
me-cafebabe | 8494d5f | 2022-06-09 17:55:39 +0800 | [diff] [blame] | 76 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libasyncio.so |
Captain Throwback | 12673e2 | 2020-10-20 11:46:39 -0400 | [diff] [blame] | 77 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libinit.so |
bigbiff | 91bd7a7 | 2021-01-03 17:33:01 -0500 | [diff] [blame] | 78 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/bootstrap/libdl_android.so |
Captain Throwback | 12673e2 | 2020-10-20 11:46:39 -0400 | [diff] [blame] | 79 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libprotobuf-cpp-lite.so |
| 80 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbinder.so |
nebrassy | 76224bd | 2021-04-05 11:52:44 +0200 | [diff] [blame] | 81 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbinder_ndk.so |
Captain Throwback | 12673e2 | 2020-10-20 11:46:39 -0400 | [diff] [blame] | 82 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libchrome.so |
| 83 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libevent.so |
| 84 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/keystore |
bigbiff | df53b6c | 2022-01-17 19:31:52 -0500 | [diff] [blame] | 85 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/keystore_auth |
Captain Throwback | 12673e2 | 2020-10-20 11:46:39 -0400 | [diff] [blame] | 86 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/keystore_cli_v2 |
| 87 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/hwservicemanager |
| 88 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/servicemanager |
| 89 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/vold_prepare_subdirs |
| 90 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_VENDOR_EXECUTABLES)/vndservicemanager |
| 91 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/toybox |
bigbiff | 477006a | 2021-05-14 19:51:26 -0400 | [diff] [blame] | 92 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_VENDOR_EXECUTABLES)/hw/android.hardware.health@2.0-service |
nebrassy | 9c1709b | 2021-04-18 23:31:36 +0200 | [diff] [blame] | 93 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_VENDOR_EXECUTABLES)/hw/android.hardware.health@2.1-service |
bigbiff | 20edca8 | 2020-07-03 09:55:28 -0400 | [diff] [blame] | 94 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/charger |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 95 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/ueventd |
| 96 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/watchdogd |
bigbiff | 1f9e484 | 2020-10-31 11:33:15 -0400 | [diff] [blame] | 97 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/minadbd |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 98 | |
| 99 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcutils.so |
| 100 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrecovery.so |
| 101 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libusbhost.so |
| 102 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libutils.so |
| 103 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_com_err.so |
| 104 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_e2p.so |
| 105 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2fs.so |
| 106 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_profile.so |
| 107 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_uuid.so |
| 108 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_misc.so |
Ethan Yonker | 38c2ff8 | 2014-12-09 13:42:10 -0600 | [diff] [blame] | 109 | ifneq ($(wildcard external/e2fsprogs/lib/quota/Android.mk),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 110 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_quota.so |
Ethan Yonker | 38c2ff8 | 2014-12-09 13:42:10 -0600 | [diff] [blame] | 111 | endif |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 112 | ifneq ($(wildcard external/e2fsprogs/lib/ext2fs/Android.*),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 113 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2fs.so |
Ethan Yonker | bcff146 | 2015-01-04 22:01:33 -0600 | [diff] [blame] | 114 | endif |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 115 | ifneq ($(wildcard external/e2fsprogs/lib/blkid/Android.*),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 116 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_blkid.so |
Ethan Yonker | bcff146 | 2015-01-04 22:01:33 -0600 | [diff] [blame] | 117 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 118 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libpng.so |
| 119 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblog.so |
| 120 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libstdc++.so |
| 121 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libminuitwrp.so |
| 122 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libminadbd.so |
| 123 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libz.so |
| 124 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmtdutils.so |
| 125 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtar.so |
| 126 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtwadbbu.so |
| 127 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtwrpdigest.so |
| 128 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libutil-linux.so |
| 129 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libblkid.so |
| 130 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmmcutils.so |
| 131 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbmlutils.so |
| 132 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libflashutils.so |
| 133 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libfusesideload.so |
bigbiff | df8436b | 2020-08-30 16:22:34 -0400 | [diff] [blame] | 134 | 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] | 135 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 136 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so \ |
| 137 | $(if $(WITH_CRYPTO_UTILS),$(TARGET_OUT_SHARED_LIBRARIES)/libcrypto_utils.so) |
bigbiff | df8436b | 2020-08-30 16:22:34 -0400 | [diff] [blame] | 138 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 139 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/lib64/libbacktrace.so |
| 140 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libunwind.so |
| 141 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbase.so |
| 142 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libc++.so |
| 143 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libnetd_client.so |
| 144 | |
Captain Throwback | 12673e2 | 2020-10-20 11:46:39 -0400 | [diff] [blame] | 145 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/toolbox |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 146 | |
bigbiff bigbiff | af32bb9 | 2018-12-18 18:39:53 -0500 | [diff] [blame] | 147 | |
Ethan Yonker | 03a42f6 | 2014-08-08 11:03:51 -0500 | [diff] [blame] | 148 | ifneq ($(TW_OEM_BUILD),true) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 149 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/twrp |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 150 | else |
| 151 | TW_EXCLUDE_MTP := true |
| 152 | endif |
bigbiff bigbiff | af32bb9 | 2018-12-18 18:39:53 -0500 | [diff] [blame] | 153 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 154 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtwrpmtp-ffs.so |
| 155 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext4_utils.so |
| 156 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libaosprecovery.so |
Greg Wallace | ace7623 | 2016-01-27 17:15:51 -0500 | [diff] [blame] | 157 | ifneq ($(TW_INCLUDE_JPEG),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 158 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libjpeg.so |
Greg Wallace | ace7623 | 2016-01-27 17:15:51 -0500 | [diff] [blame] | 159 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 160 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libselinux.so |
| 161 | |
Dees_Troy | b05ddee | 2013-01-28 20:24:50 +0000 | [diff] [blame] | 162 | ifneq ($(TW_NO_EXFAT), true) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 163 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libexfat_twrp.so |
Dees Troy | b4bd697 | 2014-10-09 18:47:00 +0000 | [diff] [blame] | 164 | else |
Captain Throwback | 6a1acf2 | 2014-09-18 12:46:35 -0400 | [diff] [blame] | 165 | TW_NO_EXFAT_FUSE := true |
| 166 | endif |
Mohd Faraz | 6e5c758 | 2021-04-16 21:08:42 +0200 | [diff] [blame] | 167 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhardware.so |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 168 | ifeq ($(TW_INCLUDE_CRYPTO), true) |
Captain Throwback | 12673e2 | 2020-10-20 11:46:39 -0400 | [diff] [blame] | 169 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcryptfsfde.so |
| 170 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libdexfile_support.so |
| 171 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libf2fs_sparseblock.so |
Captain Throwback | 12673e2 | 2020-10-20 11:46:39 -0400 | [diff] [blame] | 172 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.authsecret@1.0.so |
| 173 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.oemlock@1.0.so |
| 174 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_VENDOR_SHARED_LIBRARIES)/libnos_transport.so |
| 175 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_VENDOR_SHARED_LIBRARIES)/libnos_datagram.so |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 176 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.keymaster@3.0.so |
| 177 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libgpt_twrp.so |
Dees Troy | c657cc0 | 2015-01-16 22:48:47 +0000 | [diff] [blame] | 178 | ifeq ($(TARGET_HW_DISK_ENCRYPTION),true) |
Ethan Yonker | dcd9f3f | 2017-06-05 09:23:34 -0500 | [diff] [blame] | 179 | ifeq ($(TARGET_CRYPTFS_HW_PATH),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 180 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_VENDOR_SHARED_LIBRARIES)/libcryptfs_hw.so |
Ethan Yonker | dcd9f3f | 2017-06-05 09:23:34 -0500 | [diff] [blame] | 181 | else |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 182 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcryptfs_hw.so |
Ethan Yonker | dcd9f3f | 2017-06-05 09:23:34 -0500 | [diff] [blame] | 183 | endif |
Dees Troy | c657cc0 | 2015-01-16 22:48:47 +0000 | [diff] [blame] | 184 | endif |
Ethan Yonker | bd7492d | 2016-12-07 13:55:01 -0600 | [diff] [blame] | 185 | # FBE files |
| 186 | ifeq ($(TW_INCLUDE_CRYPTO_FBE), true) |
Captain Throwback | 12673e2 | 2020-10-20 11:46:39 -0400 | [diff] [blame] | 187 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtwrpfscrypt.so |
bigbiff | df53b6c | 2022-01-17 19:31:52 -0500 | [diff] [blame] | 188 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.security.maintenance-ndk_platform.so |
| 189 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.system.keystore2-V1-ndk_platform.so |
| 190 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.security.apc-ndk_platform.so |
| 191 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.security.authorization-ndk_platform.so |
| 192 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymint_support.so |
| 193 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.security.keymint-V1-ndk_platform.so |
| 194 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.frameworks.stats-V1-ndk_platform.so |
| 195 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.security.secureclock-V1-ndk_platform.so |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 196 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libgatekeeper.so |
bigbiff | df53b6c | 2022-01-17 19:31:52 -0500 | [diff] [blame] | 197 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libgatekeeper_aidl.so |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 198 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster_messages.so |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 199 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbinder.so |
| 200 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libprotobuf-cpp-lite.so |
| 201 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsoftkeymasterdevice.so |
| 202 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.gatekeeper@1.0.so |
bigbiff | df53b6c | 2022-01-17 19:31:52 -0500 | [diff] [blame] | 203 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeystore2_aaid.so |
| 204 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeystore2_apc_compat.so |
| 205 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeystore2_crypto.so |
| 206 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkm_compat_service.so |
| 207 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeystore2_vintf_cpp.so |
| 208 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.security.compat-ndk_platform.so |
| 209 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkm_compat.so |
| 210 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymint.so |
| 211 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/lib_android_keymaster_keymint_utils.so |
| 212 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcppbor_external.so |
| 213 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcppbor.so |
| 214 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libpuresoftkeymasterdevice.so |
| 215 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcppcose_rkp.so |
| 216 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.security.sharedsecret-V1-ndk_platform.so |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 217 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/avbctl |
| 218 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/keystore |
bigbiff | df53b6c | 2022-01-17 19:31:52 -0500 | [diff] [blame] | 219 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/keystore2 |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 220 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/keystore_cli |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 221 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.system.wifi.keystore@1.0.so |
| 222 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.vibrator@1.0.so |
| 223 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.vibrator@1.1.so |
| 224 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.vibrator@1.2.so |
nebrassy | 76224bd | 2021-04-05 11:52:44 +0200 | [diff] [blame] | 225 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.vibrator-V1-ndk_platform.so |
| 226 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.vibrator-V1-cpp.so |
bigbiff | a957f07 | 2021-03-07 18:20:29 -0500 | [diff] [blame] | 227 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libstatslog.so |
| 228 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsoft_attestation_cert.so |
| 229 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libxml2.so |
bigbiff | df53b6c | 2022-01-17 19:31:52 -0500 | [diff] [blame] | 230 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libdiskconfig.so |
| 231 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhardware_legacy.so |
| 232 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libincfs.so |
| 233 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.health.storage@1.0.so |
| 234 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.health.storage@1.0.so |
| 235 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.health.storage-V1-ndk_platform.so |
| 236 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhardware_legacy.so |
| 237 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.system.suspend@1.0.so |
| 238 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/fscryptpolicyget |
Mohd Faraz | bc576cd | 2020-05-30 21:06:32 +0530 | [diff] [blame] | 239 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 240 | ifneq ($(wildcard system/keymaster/keymaster_stl.cpp),) |
| 241 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster_portable.so |
| 242 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster_staging.so |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 243 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 244 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libwifikeystorehal.so |
| 245 | ifneq ($(wildcard hardware/interfaces/weaver/Android.bp),) |
| 246 | 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] | 247 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 248 | ifneq ($(wildcard hardware/interfaces/weaver/1.0/Android.bp),) |
| 249 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.weaver@1.0.so |
| 250 | endif |
| 251 | ifneq ($(wildcard hardware/interfaces/confirmationui/1.0/Android.bp),) |
| 252 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.confirmationui@1.0.so |
| 253 | endif |
| 254 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsoftkeymaster.so |
| 255 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.keymaster@4.0.so |
bigbiff | a957f07 | 2021-03-07 18:20:29 -0500 | [diff] [blame] | 256 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.keymaster@4.1.so |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 257 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster4support.so |
bigbiff | a957f07 | 2021-03-07 18:20:29 -0500 | [diff] [blame] | 258 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster4_1support.so |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 259 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libutilscallstack.so |
| 260 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libdexfile.so |
| 261 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libservices.so |
| 262 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster_portable.so |
bigbiff | a957f07 | 2021-03-07 18:20:29 -0500 | [diff] [blame] | 263 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhwbinder.so |
| 264 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeystore-attestation-application-id.so |
Ethan Yonker | 9338282 | 2018-11-01 15:25:31 -0500 | [diff] [blame] | 265 | # 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] | 266 | #RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/lshal |
| 267 | #RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblshal.so |
| 268 | #RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libssl.so |
| 269 | #RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhidl-gen-hash.so |
Ethan Yonker | bd7492d | 2016-12-07 13:55:01 -0600 | [diff] [blame] | 270 | endif |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 271 | endif |
Ethan Yonker | 1b19016 | 2016-12-05 15:25:19 -0600 | [diff] [blame] | 272 | ifeq ($(AB_OTA_UPDATER), true) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 273 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/update_engine_sideload |
Captain Throwback | 0413221 | 2022-06-25 16:45:33 -0400 | [diff] [blame] | 274 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_VENDOR_EXECUTABLES)/hw/android.hardware.boot@1.0-service |
| 275 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_VENDOR_EXECUTABLES)/hw/android.hardware.boot@1.1-service |
| 276 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_VENDOR_EXECUTABLES)/hw/android.hardware.boot@1.2-service |
Captain Throwback | 0fd93ae | 2021-11-19 13:13:30 -0500 | [diff] [blame] | 277 | endif |
| 278 | ifeq ($(PRODUCT_USE_DYNAMIC_PARTITIONS),true) |
bigbiff | 5c083cc | 2021-06-10 19:55:18 -0400 | [diff] [blame] | 279 | ifeq ($(TW_EXCLUDE_LPDUMP),) |
| 280 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/bootctl |
| 281 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/lpdump |
| 282 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/lpdumpd |
| 283 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblpdump.so |
| 284 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblpdump_interface-V1-cpp.so |
| 285 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libprotobuf-cpp-full.so |
bigbiff | 569deef | 2021-12-12 20:45:24 -0500 | [diff] [blame] | 286 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblpdump_interface-cpp.so |
bigbiff | 5c083cc | 2021-06-10 19:55:18 -0400 | [diff] [blame] | 287 | endif |
Captain Throwback | d15051e | 2021-11-18 20:30:38 -0500 | [diff] [blame] | 288 | ifeq ($(TW_EXCLUDE_LPTOOLS),) |
| 289 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/lptools |
| 290 | endif |
Ethan Yonker | 1b19016 | 2016-12-05 15:25:19 -0600 | [diff] [blame] | 291 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 292 | |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 293 | ifneq ($(wildcard system/core/libsparse/Android.*),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 294 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsparse.so |
Dees_Troy | 4546fe7 | 2013-01-10 14:33:27 +0000 | [diff] [blame] | 295 | endif |
Captain Throwback | 630fd66 | 2022-04-05 17:10:29 -0400 | [diff] [blame] | 296 | ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 297 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libopenaes.so |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 298 | endif |
Dees_Troy | e501704 | 2013-08-29 16:38:55 +0000 | [diff] [blame] | 299 | ifeq ($(TARGET_USERIMAGES_USE_F2FS), true) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 300 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/make_f2fs |
Captain Throwback | 57db2cc | 2020-09-09 15:38:13 -0400 | [diff] [blame] | 301 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/fsck.f2fs |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 302 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/sload_f2fs |
nebrassy | 86c09dc | 2022-02-06 16:48:41 +0100 | [diff] [blame] | 303 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblz4.so |
Dees_Troy | e501704 | 2013-08-29 16:38:55 +0000 | [diff] [blame] | 304 | endif |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 305 | ifneq ($(wildcard system/core/reboot/Android.*),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 306 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/system/bin/reboot |
Dees Troy | 0226cd5 | 2013-11-04 14:12:35 +0000 | [diff] [blame] | 307 | endif |
Vojtech Bocek | 76ee903 | 2014-09-07 15:01:56 +0200 | [diff] [blame] | 308 | ifneq ($(TW_DISABLE_TTF), true) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 309 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libft2.so |
Vojtech Bocek | 76ee903 | 2014-09-07 15:01:56 +0200 | [diff] [blame] | 310 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 311 | ifneq ($(TW_RECOVERY_ADDITIONAL_RELINK_BINARY_FILES),) |
| 312 | RECOVERY_BINARY_SOURCE_FILES += $(TW_RECOVERY_ADDITIONAL_RELINK_BINARY_FILES) |
| 313 | endif |
| 314 | ifneq ($(TW_RECOVERY_ADDITIONAL_RELINK_LIBRARY_FILES),) |
| 315 | RECOVERY_LIBRARY_SOURCE_FILES += $(TW_RECOVERY_ADDITIONAL_RELINK_LIBRARY_FILES) |
Ethan Yonker | 0e67837 | 2014-11-18 12:17:06 -0600 | [diff] [blame] | 316 | endif |
bigbiff | 4740bca | 2022-07-18 15:55:03 -0400 | [diff] [blame] | 317 | ifneq ($(TW_RECOVERY_ADDITIONAL_RELINK_VENDOR_HW_BINARY_FILES),) |
| 318 | RECOVERY_VENDOR_HW_BINARY_FILES += $(TW_RECOVERY_ADDITIONAL_RELINK_VENDOR_HW_BINARY_FILES) |
| 319 | endif |
Dees Troy | e176a65 | 2015-01-20 19:35:21 +0000 | [diff] [blame] | 320 | ifneq ($(wildcard external/pcre/Android.mk),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 321 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libpcre.so |
Dees Troy | e176a65 | 2015-01-20 19:35:21 +0000 | [diff] [blame] | 322 | endif |
Ethan Yonker | b81d905 | 2015-07-09 13:20:53 -0500 | [diff] [blame] | 323 | ifeq ($(TW_INCLUDE_NTFS_3G),true) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 324 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mount.ntfs |
| 325 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/fsck.ntfs |
| 326 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mkfs.ntfs |
| 327 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libntfs-3g.so |
| 328 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libfuse-lite.so |
Greg Wallace | b39e6c6 | 2015-12-29 00:55:26 -0500 | [diff] [blame] | 329 | else |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 330 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/ntfs-3g |
| 331 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/ntfsfix |
| 332 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mkntfs |
Greg Wallace | b39e6c6 | 2015-12-29 00:55:26 -0500 | [diff] [blame] | 333 | endif |
Ethan Yonker | 483e9f4 | 2016-01-11 22:21:18 -0600 | [diff] [blame] | 334 | ifeq ($(BOARD_HAS_NO_REAL_SDCARD),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 335 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/sgdisk |
Ethan Yonker | 483e9f4 | 2016-01-11 22:21:18 -0600 | [diff] [blame] | 336 | endif |
Ctapchuk | fc35b15 | 2021-04-26 16:58:57 +0700 | [diff] [blame] | 337 | ifneq ($(TW_OZIP_DECRYPT_KEY),) |
| 338 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/ozip_decrypt |
| 339 | endif |
Captain Throwback | 1f12775 | 2016-01-19 17:30:20 -0500 | [diff] [blame] | 340 | ifeq ($(TWRP_INCLUDE_LOGCAT), true) |
Captain Throwback | 12673e2 | 2020-10-20 11:46:39 -0400 | [diff] [blame] | 341 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/logcat |
Ethan Yonker | e5a288c | 2016-02-15 09:23:57 -0600 | [diff] [blame] | 342 | ifeq ($(TARGET_USES_LOGD), true) |
Captain Throwback | 12673e2 | 2020-10-20 11:46:39 -0400 | [diff] [blame] | 343 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/logd |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 344 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsysutils.so |
| 345 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libnl.so |
Ethan Yonker | e5a288c | 2016-02-15 09:23:57 -0600 | [diff] [blame] | 346 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 347 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libpcrecpp.so |
| 348 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblogcat.so |
| 349 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcap.so |
Captain Throwback | 1f12775 | 2016-01-19 17:30:20 -0500 | [diff] [blame] | 350 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 351 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libvndksupport.so |
| 352 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhidlbase.so |
| 353 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhidltransport.so |
| 354 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.frameworks.stats@1.0.so |
| 355 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libziparchive.so |
| 356 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_blkid.so |
| 357 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_quota.so |
| 358 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhidl-gen-utils.so |
| 359 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libvintf.so |
| 360 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtinyxml2.so |
| 361 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hidl.token@1.0.so |
| 362 | ifneq ($(wildcard system/core/libkeyutils/Android.bp),) |
| 363 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeyutils.so |
Ethan Yonker | 8373cfe | 2017-09-08 06:50:54 -0500 | [diff] [blame] | 364 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 365 | ifeq ($(TARGET_ARCH), arm64) |
| 366 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libclang_rt.ubsan_standalone-aarch64-android.so |
| 367 | endif |
| 368 | ifeq ($(TARGET_ARCH), arm) |
| 369 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libclang_rt.ubsan_standalone-arm-android.so |
| 370 | endif |
| 371 | ifeq ($(TARGET_ARCH), x86_64) |
| 372 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libclang_rt.ubsan_standalone-x86_64-android.so |
| 373 | endif |
| 374 | ifeq ($(TARGET_ARCH), x86) |
| 375 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libclang_rt.ubsan_standalone-i686-android.so |
| 376 | endif |
| 377 | ifeq ($(TARGET_ARCH), mips) |
| 378 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libclang_rt.ubsan_standalone-mips-android.so |
| 379 | endif |
| 380 | ifeq ($(TARGET_ARCH), mips64) |
| 381 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libclang_rt.ubsan_standalone-mips64-android.so |
| 382 | endif |
| 383 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblogwrap.so |
| 384 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_misc.so |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 385 | |
nebrassy | 5078965 | 2021-02-12 23:36:44 +0100 | [diff] [blame] | 386 | ifneq ($(TW_EXCLUDE_NANO), true) |
Captain Throwback | 4549416 | 2022-04-05 10:15:08 -0400 | [diff] [blame] | 387 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_SYSTEM_EXT_EXECUTABLES)/nano |
| 388 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/libncurses.so |
| 389 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_VENDOR_SHARED_LIBRARIES)/libssh.so |
nebrassy | 5078965 | 2021-02-12 23:36:44 +0100 | [diff] [blame] | 390 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libssl.so |
| 391 | endif |
| 392 | |
DarthJabba9 | fba0cee | 2021-02-20 17:13:09 -0500 | [diff] [blame] | 393 | ifneq ($(TW_EXCLUDE_BASH), true) |
Captain Throwback | 4549416 | 2022-04-05 10:15:08 -0400 | [diff] [blame] | 394 | RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_SYSTEM_EXT_EXECUTABLES)/bash |
| 395 | RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/libncurses.so |
DarthJabba9 | fba0cee | 2021-02-20 17:13:09 -0500 | [diff] [blame] | 396 | endif |
| 397 | |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 398 | include $(CLEAR_VARS) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 399 | LOCAL_MODULE := relink_libraries |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 400 | LOCAL_MODULE_TAGS := optional |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 401 | LOCAL_MODULE_CLASS := EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 402 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/ |
althafvly | 003401c | 2020-12-10 21:33:02 +0530 | [diff] [blame] | 403 | ifneq ($(TARGET_ARCH), arm64) |
| 404 | ifneq ($(TARGET_ARCH), x86_64) |
| 405 | LOCAL_POST_INSTALL_CMD += $(RELINK) $(TARGET_RECOVERY_ROOT_OUT)/system/lib $(RECOVERY_LIBRARY_SOURCE_FILES) |
| 406 | else |
| 407 | LOCAL_POST_INSTALL_CMD += $(RELINK) $(TARGET_RECOVERY_ROOT_OUT)/system/lib64 $(RECOVERY_LIBRARY_SOURCE_FILES) |
| 408 | endif |
| 409 | else |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 410 | LOCAL_POST_INSTALL_CMD += $(RELINK) $(TARGET_RECOVERY_ROOT_OUT)/system/lib64 $(RECOVERY_LIBRARY_SOURCE_FILES) |
althafvly | 003401c | 2020-12-10 21:33:02 +0530 | [diff] [blame] | 411 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 412 | TARGET_LIBRARY_RELINK_FILES := $(notdir $(RECOVERY_LIBRARY_SOURCE_FILES)) |
| 413 | TARGET_BASE_LIBRARY_RELINK_MODULES := $(basename $(TARGET_LIBRARY_RELINK_FILES)) |
| 414 | TARGET_RELINK_LIBRARY_MODULES := $(filter-out libdexfile, $(TARGET_BASE_LIBRARY_RELINK_MODULES)) |
| 415 | LOCAL_REQUIRED_MODULES += $(TARGET_RELINK_LIBRARY_MODULES) |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 416 | include $(BUILD_PHONY_PACKAGE) |
| 417 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 418 | |
| 419 | include $(CLEAR_VARS) |
| 420 | LOCAL_MODULE := relink_binaries |
| 421 | LOCAL_MODULE_TAGS := optional |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 422 | LOCAL_MODULE_CLASS := EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 423 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/ |
| 424 | 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] | 425 | TARGET_BINARY_RELINK_FILES := $(filter-out bu, $(notdir $(RECOVERY_BINARY_SOURCE_FILES))) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 426 | LOCAL_REQUIRED_MODULES += $(TARGET_BINARY_RELINK_FILES) |
| 427 | include $(BUILD_PHONY_PACKAGE) |
| 428 | |
bigbiff | 4740bca | 2022-07-18 15:55:03 -0400 | [diff] [blame] | 429 | include $(CLEAR_VARS) |
| 430 | LOCAL_MODULE := relink_vendor_hw_binaries |
| 431 | LOCAL_MODULE_TAGS := optional |
| 432 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 433 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/ |
| 434 | LOCAL_POST_INSTALL_CMD += $(RELINK) $(TARGET_RECOVERY_ROOT_OUT)/vendor/bin/hw $(RECOVERY_VENDOR_HW_BINARY_FILES) |
| 435 | TARGET_VENDOR_BINARY_RELINK_FILES := $(notdir $(RECOVERY_VENDOR_HW_BINARY_FILES)) |
| 436 | LOCAL_REQUIRED_MODULES += $(TARGET_VENDOR_BINARY_RELINK_FILES) |
| 437 | $(warning vendor_hw: $(LOCAL_POST_INSTALL_CMD)) |
| 438 | include $(BUILD_PHONY_PACKAGE) |
| 439 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 440 | #build out TWRP ramdisk |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 441 | include $(CLEAR_VARS) |
bigbiff | 7ba7500 | 2020-04-11 20:47:09 -0400 | [diff] [blame] | 442 | LOCAL_MODULE := twrp_ramdisk |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 443 | LOCAL_MODULE_TAGS := optional |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 444 | LOCAL_MODULE_CLASS := EXECUTABLES |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 445 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 446 | LOCAL_POST_INSTALL_CMD += \ |
| 447 | 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] | 448 | mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/system/etc/selinux/ && \ |
Captain Throwback | 8bd1ac5 | 2020-10-19 13:09:17 -0400 | [diff] [blame] | 449 | mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/vendor/etc/selinux/ && \ |
| 450 | cp $(TARGET_OUT_ETC)/selinux/plat_service_contexts $(TARGET_RECOVERY_ROOT_OUT)/system/etc/selinux/plat_service_contexts && \ |
| 451 | cp $(TARGET_OUT_ETC)/selinux/plat_hwservice_contexts $(TARGET_RECOVERY_ROOT_OUT)/system/etc/selinux/plat_hwservice_contexts && \ |
| 452 | cp $(TARGET_OUT_VENDOR_ETC)/selinux/vndservice_contexts $(TARGET_RECOVERY_ROOT_OUT)/vendor/etc/selinux/vndservice_contexts && \ |
bigbiff | df53b6c | 2022-01-17 19:31:52 -0500 | [diff] [blame] | 453 | cp $(TARGET_OUT_VENDOR_ETC)/selinux/vendor_hwservice_contexts $(TARGET_RECOVERY_ROOT_OUT)/vendor/etc/selinux/vendor_hwservice_contexts && \ |
| 454 | cp $(TARGET_OUT_ETC)/selinux/plat_keystore2_key_contexts $(TARGET_RECOVERY_ROOT_OUT)/system/etc/selinux/plat_keystore2_key_contexts |
Captain Throwback | 8bd1ac5 | 2020-10-19 13:09:17 -0400 | [diff] [blame] | 455 | ifeq ($(TARGET_USES_MKE2FS), true) |
| 456 | LOCAL_POST_INSTALL_CMD += \ |
| 457 | && cp $(TARGET_OUT_ETC)/mke2fs.conf $(TARGET_RECOVERY_ROOT_OUT)/system/etc/mke2fs.conf |
| 458 | endif |
bigbiff | df53b6c | 2022-01-17 19:31:52 -0500 | [diff] [blame] | 459 | LOCAL_REQUIRED_MODULES += init_second_stage.recovery \ |
| 460 | reboot.recovery \ |
| 461 | plat_service_contexts \ |
| 462 | plat_hwservice_contexts \ |
| 463 | plat_hardware_contexts \ |
| 464 | vndservice_contexts \ |
| 465 | plat_keystore2_key_contexts \ |
| 466 | vendor_hwservice_contexts |
| 467 | |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 468 | include $(BUILD_PHONY_PACKAGE) |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 469 | |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 470 | # copy license file for OpenAES |
Captain Throwback | 630fd66 | 2022-04-05 17:10:29 -0400 | [diff] [blame] | 471 | ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 472 | include $(CLEAR_VARS) |
| 473 | LOCAL_MODULE := openaes_license |
| 474 | LOCAL_MODULE_TAGS := optional |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 475 | LOCAL_MODULE_CLASS := EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 476 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/license/openaes |
| 477 | LOCAL_SRC_FILES := ../openaes/LICENSE |
| 478 | include $(BUILD_PREBUILT) |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 479 | endif |
| 480 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 481 | ifeq ($(TW_INCLUDE_DUMLOCK), true) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 482 | #htcdumlock for /system for dumlock |
| 483 | include $(CLEAR_VARS) |
| 484 | LOCAL_MODULE := htcdumlocksys |
| 485 | LOCAL_MODULE_TAGS := optional |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 486 | LOCAL_MODULE_CLASS := EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 487 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
| 488 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 489 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 490 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 491 | #flash_image for /system for dumlock |
| 492 | include $(CLEAR_VARS) |
| 493 | LOCAL_MODULE := flash_imagesys |
| 494 | LOCAL_MODULE_TAGS := optional |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 495 | LOCAL_MODULE_CLASS := EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 496 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
| 497 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 498 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 499 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 500 | #dump_image for /system for dumlock |
| 501 | include $(CLEAR_VARS) |
| 502 | LOCAL_MODULE := dump_imagesys |
| 503 | LOCAL_MODULE_TAGS := optional |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 504 | LOCAL_MODULE_CLASS := EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 505 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
| 506 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 507 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 508 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 509 | #libbmlutils for /system for dumlock |
| 510 | include $(CLEAR_VARS) |
| 511 | LOCAL_MODULE := libbmlutils.so |
| 512 | LOCAL_MODULE_TAGS := optional |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 513 | LOCAL_MODULE_CLASS := EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 514 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
| 515 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 516 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 517 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 518 | #libflashutils for /system for dumlock |
| 519 | include $(CLEAR_VARS) |
| 520 | LOCAL_MODULE := libflashutils.so |
| 521 | LOCAL_MODULE_TAGS := optional |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 522 | LOCAL_MODULE_CLASS := EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 523 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
| 524 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 525 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 526 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 527 | #libmmcutils for /system for dumlock |
| 528 | include $(CLEAR_VARS) |
| 529 | LOCAL_MODULE := libmmcutils.so |
| 530 | LOCAL_MODULE_TAGS := optional |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 531 | LOCAL_MODULE_CLASS := EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 532 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
| 533 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 534 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 535 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 536 | #libmtdutils for /system for dumlock |
| 537 | include $(CLEAR_VARS) |
| 538 | LOCAL_MODULE := libmtdutils.so |
| 539 | LOCAL_MODULE_TAGS := optional |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 540 | LOCAL_MODULE_CLASS := EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 541 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
| 542 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 543 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 544 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 545 | #HTCDumlock.apk |
| 546 | include $(CLEAR_VARS) |
| 547 | LOCAL_MODULE := HTCDumlock.apk |
| 548 | LOCAL_MODULE_TAGS := optional |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 549 | LOCAL_MODULE_CLASS := EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 550 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
| 551 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 552 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 553 | endif |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 554 | |
bigbiff | 416fe3a | 2020-03-28 13:46:48 -0400 | [diff] [blame] | 555 | ifeq ($(TW_USE_TOOLBOX), true) |
| 556 | include $(CLEAR_VARS) |
| 557 | LOCAL_MODULE := mkshrc_twrp |
| 558 | LOCAL_MODULE_STEM := mkshrc |
| 559 | LOCAL_MODULE_TAGS := optional |
| 560 | LOCAL_MODULE_CLASS := ETC |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 561 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc |
bigbiff | 416fe3a | 2020-03-28 13:46:48 -0400 | [diff] [blame] | 562 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 563 | include $(BUILD_PREBUILT) |
| 564 | endif |
Captain Throwback | 5ab5964 | 2019-02-07 17:22:49 -0500 | [diff] [blame] | 565 | |
Ethan Yonker | b4bff5e | 2016-12-16 07:47:58 -0600 | [diff] [blame] | 566 | #TWRP App "placeholder" |
| 567 | include $(CLEAR_VARS) |
| 568 | LOCAL_MODULE := me.twrp.twrpapp.apk |
theimpulson | d95dcd2 | 2020-03-23 18:27:29 +0000 | [diff] [blame] | 569 | LOCAL_MODULE_TAGS := optional |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 570 | LOCAL_MODULE_CLASS := EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 571 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/bin |
Ethan Yonker | b4bff5e | 2016-12-16 07:47:58 -0600 | [diff] [blame] | 572 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 573 | include $(BUILD_PREBUILT) |
nijel8 | 2c821a8 | 2018-12-29 04:56:41 -0500 | [diff] [blame] | 574 | |
Stefan Tauner | 6ad1457 | 2020-01-11 22:28:53 +0100 | [diff] [blame] | 575 | #TWRP App permissions for Android 9+ |
| 576 | include $(CLEAR_VARS) |
| 577 | LOCAL_MODULE := privapp-permissions-twrpapp.xml |
bigbiff | f654e84 | 2020-06-05 21:03:23 -0400 | [diff] [blame] | 578 | LOCAL_MODULE_TAGS := optional |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 579 | LOCAL_MODULE_CLASS := EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 580 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/bin |
Stefan Tauner | 6ad1457 | 2020-01-11 22:28:53 +0100 | [diff] [blame] | 581 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 582 | include $(BUILD_PREBUILT) |
| 583 | |
Chaosmaster | 461e39f | 2020-02-07 01:48:13 +0100 | [diff] [blame] | 584 | ifneq (,$(filter $(TW_INCLUDE_REPACKTOOLS) $(TW_INCLUDE_RESETPROP) $(TW_INCLUDE_LIBRESETPROP), true)) |
Ethan Yonker | 53796e7 | 2019-01-11 22:49:52 -0600 | [diff] [blame] | 585 | ifeq ($(wildcard external/magisk-prebuilt/Android.mk),) |
mauronofrio | 76ef9f3 | 2019-12-23 20:29:24 +0100 | [diff] [blame] | 586 | $(warning Magisk prebuilt tools not found!) |
Ethan Yonker | 53796e7 | 2019-01-11 22:49:52 -0600 | [diff] [blame] | 587 | $(warning Please place https://github.com/TeamWin/external_magisk-prebuilt) |
| 588 | $(warning into external/magisk-prebuilt) |
| 589 | $(error magiskboot prebuilts not present; exiting) |
| 590 | endif |
| 591 | endif |
Captain Throwback | 6443cef | 2021-01-30 12:26:25 -0500 | [diff] [blame] | 592 | |
| 593 | # Include tzdata in TWRP to fix "__bionic_open_tzdata" log spam |
| 594 | # Dummy file to apply post-install patch |
| 595 | ifneq ($(TW_EXCLUDE_TZDATA), true) |
| 596 | include $(CLEAR_VARS) |
| 597 | LOCAL_MODULE := tzdata_twrp |
| 598 | LOCAL_MODULE_TAGS := optional |
| 599 | LOCAL_MODULE_CLASS := ETC |
| 600 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/system/bin |
| 601 | LOCAL_REQUIRED_MODULES := tzdata |
| 602 | |
| 603 | LOCAL_POST_INSTALL_CMD += \ |
| 604 | mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/system/usr/share/zoneinfo; \ |
| 605 | cp -f $(TARGET_OUT)/usr/share/zoneinfo/tzdata $(TARGET_RECOVERY_ROOT_OUT)/system/usr/share/zoneinfo/; |
| 606 | include $(BUILD_PHONY_PACKAGE) |
| 607 | endif |
nebrassy | 5078965 | 2021-02-12 23:36:44 +0100 | [diff] [blame] | 608 | |
| 609 | include $(CLEAR_VARS) |
| 610 | LOCAL_MODULE := nano_twrp |
| 611 | LOCAL_MODULE_TAGS := optional |
| 612 | LOCAL_MODULE_CLASS := ETC |
| 613 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/system/bin |
| 614 | LOCAL_REQUIRED_MODULES := nano libncurses |
| 615 | LOCAL_POST_INSTALL_CMD += \ |
Captain Throwback | 4549416 | 2022-04-05 10:15:08 -0400 | [diff] [blame] | 616 | cp -rf $(TARGET_OUT_SYSTEM_EXT_ETC)/nano $(TARGET_RECOVERY_ROOT_OUT)/system/etc/; \ |
nebrassy | 5078965 | 2021-02-12 23:36:44 +0100 | [diff] [blame] | 617 | cp -rf external/libncurses/lib/terminfo $(TARGET_RECOVERY_ROOT_OUT)/system/etc/; |
| 618 | include $(BUILD_PHONY_PACKAGE) |
| 619 | |
DarthJabba9 | fba0cee | 2021-02-20 17:13:09 -0500 | [diff] [blame] | 620 | ifneq ($(TW_EXCLUDE_BASH), true) |
| 621 | include $(CLEAR_VARS) |
| 622 | LOCAL_MODULE := bash_twrp |
| 623 | LOCAL_MODULE_TAGS := optional |
| 624 | LOCAL_MODULE_CLASS := ETC |
| 625 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/system/bin |
| 626 | LOCAL_REQUIRED_MODULES := bash |
| 627 | |
| 628 | LOCAL_POST_INSTALL_CMD += \ |
| 629 | mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/system/etc/bash/; \ |
Captain Throwback | 0265b25 | 2021-04-20 13:12:19 -0400 | [diff] [blame] | 630 | cp -rf external/bash/etc/* $(TARGET_RECOVERY_ROOT_OUT)/system/etc/bash/; \ |
DarthJabba9 | fba0cee | 2021-02-20 17:13:09 -0500 | [diff] [blame] | 631 | sed -i 's/ro.lineage.device/ro.product.device/' $(TARGET_RECOVERY_ROOT_OUT)/system/etc/bash/bashrc; \ |
| 632 | sed -i '/export TERM/d' $(TARGET_RECOVERY_ROOT_OUT)/system/etc/bash/bashrc; \ |
| 633 | mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/sbin; \ |
| 634 | ln -sf /system/bin/bash $(TARGET_RECOVERY_ROOT_OUT)/sbin/bash; |
| 635 | include $(BUILD_PHONY_PACKAGE) |
| 636 | endif |
| 637 | |