Commit Graph

101126 Commits

Author SHA1 Message Date
Matt Mower
70bb27e71e build: Separate commands in recovery foreach loops
The foreach loops output a space separated list, not necessarily one
command per line. Separate commands with semicolons. Notably, this
fixes an issue with multiple device directories included in
TARGET_RECOVERY_DEVICE_DIRS.

Change-Id: I5ebdc84ecaaacabaea77b8b752141e2041622480
2025-02-05 20:35:57 +08:00
Tom Marshall
3942072885 build: recovery: Support adding device-specific items
Change-Id: I25205e68282680932917016646dabd1abadbfce6
2025-02-05 20:35:57 +08:00
M1cha
9b91836d1f releasetools: ota_from_target_files: add FullOTA_PostValidate
Change-Id: I152412049f90fd546d4516cc064238c3192be553
2025-02-05 20:35:57 +08:00
Michael Bestas
2360e10760 Don't enable ADB by default on userdebug builds
Squashed with the following commits:

Author: Scott Mertz <scott@cyngn.com>
Date:   Thu Feb 26 10:51:44 2015 -0800
    Enable ADB by default when ro.adb.secure is not 1
    * Property ro.build.type is not part of the default.prop we can't
      use this to decide how to apply adb by default within this function
    Change-Id: Ib3eb24c655353966d64c7148d7530244b628ce94

Author: LibXZR <i@xzr.moe>
Date:   Sat Apr 30 16:29:35 2022 +0800
    tools: Let adb secure check depend on "==0" rather than "!=1"
    We are using PRODUCT_SYSTEM_DEFAULT_PROPERTIES to set
    `ro.adb.secure` property. But unfortunately this flag only
    affect system partition, which means in other partitions
    e.g. vendor and system_ext `ro.adb.secure` stays empty.
    Thus `persist.sys.usb.config=adb` is unconditionally set
    in partitions other than system, which lead to adb enabled
    by default even on user build.
    Change-Id: I1f8b463b3ec645309369f36014bed556e75ed210
    Signed-off-by: LibXZR <i@xzr.moe>

Change-Id: I33ae5c6f2787017a62e679aa0c28d4b909d45935
2025-02-05 20:35:57 +08:00
TheScarastic
abb95af328 Don't make recovery patch for devices with prebuilt vendor
Change-Id: I05c0155e6331bfeccd4ad545e003fa3fa3498044
2025-02-05 20:35:57 +08:00
dianlujitao
6a1b8b765e Move recovery-from-boot.p from /system to /vendor
The file was missed when moving recovery resources, but the assertion
path was changed, as a result non-Treble devices failed to build.

Fixes: Ia4045bd67ffb3d899efa8d20dab4c4299b87ee5f
Change-Id: Ib7822a9bd5b1a2ab7e762e9fb35dbb22291a3a76
2025-02-05 20:35:57 +08:00
Steve Kondik
6d06aad39d Allow override of device asserts, including multi-device support.
Set in board file with TARGET_OTA_ASSERT_DEVICE.
(cherry-picked from commit 0f452f21fc9323b9d1fe746161761cf40aaa5030)

Change-Id: I3d06bdc0e3e26bde0c0e646accd050364f9713b9

ota_from_target_files: Remove device dependent arguments

These device-specific arguments are defined at build time and are
necessary to generate the zip correctly. Don't use command line
arguments to specify them, but write all the needed information
in misc_info.txt when the target-files zip is generated.
ota_from_target_files will then read misc_info.txt and set
everything automatically.

Change-Id: Ibdbca575b76eb07b53fccfcea52a351c7e333f91
Signed-off-by: André Pinela <sheffzor@gmail.com>
2025-02-05 20:35:57 +08:00
Rashed Abdel-Tawab
464e82f94b build: Automatically replace old-style kernel header includes with new header lib
This is a combination of 3 commits.
This is the 1st commit message:

build: add kernel header dependency if module uses kernel headers

Many of the QCOM components use kernel headers, but don't declare
the dependency on them.  This is fine in CAF because of the way they
build the boot.img before anything else.  In CM, we don't build the
boot.img the same, so we run into a race between the kernel build &
these modules... and the modules lose.

Warn about modules that have this missing dependency, and add it for
them so we don't have to modify each Android.mk.

Change-Id: I95f1e47b5ef440f6f5d8f64a0c3f38d9572e839e

============================================================================
This is the commit message #2:

build: Switch kernel header inclusion

The build is switching to the target INSTALLED_KERNEL_HEADERS to
declare dependencies on kernel headers.

Change-Id: I913e74681b02dfcf1eaed3d1e47ff4ab2300b12d

============================================================================
This is the commit message #3:

build: Automatically replace old-style kernel header includes with new header lib

Since we do this via soong and the result is a header library, just replace all
legacy include paths that point to the old header location with calls to the new
header library. Since we no longer have the legacy include, we can also remove
the additional dependency.

This reverts commit fa798218e5b7f96e12ab3acc9d47a3f26a140777.

Change-Id: I716955534e50831e6568ca01e480aa8b90075d92
2025-02-05 20:35:57 +08:00
dianlujitao
05d4432080 Add extra variables to _readonly_late_variables
These are modified by us at a later stage, so be sure
to allow it.

Change-Id: Ib26e83e10aeb6c107fd6e5757185c05cd6665760
2025-02-05 20:35:57 +08:00
RITEFANG
4aeaa2f1d1 build: Add MinusOS build support
Squashed also with the following changes:

  Author: Luca Stefani <luca020400@lineageos.org>
  Date:   Thu Aug 17 22:22:13 2017 +0200

    core: Include PixelProject pathmap

  Change-Id: Ie25dee383cc5bc9bb6390cff2cb2460d526d80b6

  Author: Simon Shields <simon@lineageos.org>
  Date:   Fri Mar 2 12:55:47 2018 +1100

    build: unconditionally use PixelProject pathmap

    even if we're not building a pixelproject target, we need to
    use the pixelproject pathmap to make things like recovery and ril
    happy

  Change-Id: I974c30ad10d4ff5b7805c3df9c22010f1e002bf1

  Author: Luca Stefani <luca.stefani.ge1@gmail.com>
  Date:   Tue Jan 22 15:50:52 2019 +0100

    Don't export BUILD_NUMBER in envsetup

    * The value is meant to be set only before running an /official/ build
    * This allows us to execute consecutive make commands without
      running kati for every invocation

  Change-Id: Ifa94b839f30c7260009c8a3c91c202b50e28022e

  Author: Luca Stefani <luca020400@lineageos.org>
  Date:   Fri Aug 18 10:17:00 2017 +0200

    envsetup: Call fixup_common_out_dir

  Change-Id: I84e16b0df5822cfd8514c46d709109a13c20f86e

  Author: Adrian DC <radian.dc@gmail.com>
  Date:   Sat May 12 11:24:33 2018 +0200

    build: Include PixelProject specific properties in build.prop

     * Our properties were supposed to go to /system/etc/prop.default
        after the following commit:
        "pixelproject: Move to Google's method of defining system default props"
        Change-Id: I6cb0e28a7599b010b389cc541015a37010a00f4b

     * However if BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED is not true,
        only /default.prop will retain the properties contents of
        ADDITIONAL_DEFAULT_PROPERTIES and PRODUCT_SYSTEM_DEFAULT_PROPERTIES,
        and none of our versioning identification was held in the system

     * Enabling BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED globally would
        break all properties on devices that handle partitions usually
        at the device level rather than the kernel due to mounting races

     * Include the vendor/aosp/config/main.mk entrypoint to be allowed
        to extend ADDITION_BUILD_PROPERTIES as we need to define our releases

  Change-Id: I19918eece0f0dd3ee967db0339b4d09c9a6d540e
  Signed-off-by: Adrian DC <radian.dc@gmail.com>

  Author: Rashed Abdel-Tawab <rashed@linux.com>
  Date:   Thu Sep 5 21:35:38 2019 -0700

    core: Only include PixelProject SE policy if repo exists

  Change-Id: If799106d2da6d8c303430e316edff365a22f7c99

  Author: dianlujitao <dianlujitao@lineageos.org>
  Date:   Thu Sep 5 21:56:36 2019 +0800

    product: Exclude AOSP apn list on PixelProject build

    Change-Id: I1fd10089421a2e4b57ef565d87ad1f6036bd1898

  Author: Michael Bestas <mkbestas@lineageos.org>
  Date:   Fri Apr 12 02:10:12 2019 +0300

    build: Conditionally include AudioPackage14.mk instead of AllAudio.mk

    * AllAudio.mk doesn't contain latest material files and also
      contains multiple duplicate files. Just copy the latest
      material ones and we'll include the older files in vendor/aosp

    Change-Id: Ic7353216a3f3dc3c51006d951ac932cfd6e5f3b5

  Author: dhacker29 <dhackerdvm@gmail.com>
  Date:   Sat Jun 6 22:22:05 2015 -0400

    Remove LatinIME as it is included per target in vendor/aosp

    Change-Id: Ibce4a244ec0653a7c7798d864047ac667866a1dc

  Author: razorloves <razorloves@gmail.com>
  Date:   Mon Oct 7 05:10:56 2019 -0500

    build: Remove su inclusion

    This stops including su in all pixelproject userdebug/eng builds.
    Inclusion of su is conditionally handled in /vendor/aosp.

    Change-Id: Ia3ad978146f170a2b260d77afe9eb580d4b4f823

  Author: Michael Bestas <mkbestas@lineageos.org>
  Date:   Sat Nov 7 22:45:12 2020 +0200

    Stop including vendor specific clear_vars.mk

    vendor/aosp/build/core/clear_vars.mk is no-op since 16.0

    Change-Id: I7e159cc9ed5a838c9a04c1a8b7dcf925d83f0e20

Change-Id: Iab8b2ef8b644a7bea10bfd28b99d9e69539b1357
Signed-off-by: RITEFANG <1721985272@qq.com>
2025-02-05 20:35:57 +08:00
RITEFANG
add9250ecd Source aosp specific envsetup
Change-Id: I39d3e711a6beab47e3284919a9a4fef15b0f40b9
Signed-off-by: RITEFANG <1721985272@qq.com>
2025-02-05 20:30:38 +08:00
Chirayu Desai
6d4d3207eb envsetup: export ANDROID_BUILD_TOP earlier
Change-Id: Ia3497f61f4e9aaeeb793cecd3b4f488f0a48181a
2025-02-05 20:30:38 +08:00
Android Build Coastguard Worker
75bb8bac25 Version bump to AP4A.250205.002.C1 [core/build_id.mk]
Change-Id: I798a128fd734603ea1dbe42ad087d36dae481f73
2024-12-18 16:56:07 -08:00
Android Build Coastguard Worker
0530ba230c Version bump to AP4A.250205.002 [core/build_id.mk]
Change-Id: I4b14792a99fa9dcca93e57f4c297fb93dfe79a36
2024-12-18 12:31:41 -08:00
Android Build Coastguard Worker
25512f49ed Version bump to AP4A.250205.001 [core/build_id.mk]
Change-Id: I6ea25ddd48142f20d9eb62ce97ba0e73b5e539e6
2024-12-18 08:34:28 -08:00
Android Build Coastguard Worker
a2c016915b [coastguard skipped] Merge sparse cherrypicks from sparse-12701944-L55000030008465871 into 24Q4-release.
COASTGUARD_SKIP: I5072051e95d215a88a4b86abd3c0ff29fa289d4f

Change-Id: I9e74c17f23a51ebd3e4d95f5414c070c674299e9
2024-12-18 05:06:02 -08:00
Android Build Coastguard Worker
429d414e31 Version bump to AP4A.250105.002.C1 [core/build_id.mk]
Change-Id: I5072051e95d215a88a4b86abd3c0ff29fa289d4f
2024-12-18 05:03:58 -08:00
Android Build Coastguard Worker
50909e54ce [coastguard skipped] Merge sparse cherrypicks from sparse-12545800-L12600030008266990 into 24Q4-release.
COASTGUARD_SKIP: Idd9cf1bf1673258cc78c0deaa0492afa61f10678

Change-Id: I54f87a7ea0d8b34f8457243789bb145f0a45aa07
2024-12-09 23:06:34 +00:00
Android Build Coastguard Worker
2d5812a3d7 Version bump to AP4A.241205.004.R1 [core/build_id.mk]
Change-Id: Idd9cf1bf1673258cc78c0deaa0492afa61f10678
2024-12-09 23:04:24 +00:00
Android Build Coastguard Worker
68cc4e2581 [coastguard skipped] Merge sparse cherrypicks from sparse-12701944-L83700030007960137 into 24Q4-release.
COASTGUARD_SKIP: Id7041f37610385bf27b712bd960bd9ce4cac5bb2

Change-Id: Iaba8cc1d08f5693d7651424e861c75c922cafc41
2024-11-23 01:18:39 +00:00
Android Build Coastguard Worker
5abdcbf8ff Version bump to AP4A.250105.002.B1 [core/build_id.mk]
Change-Id: Id7041f37610385bf27b712bd960bd9ce4cac5bb2
2024-11-23 01:15:14 +00:00
Android Build Coastguard Worker
00e31d2777 [coastguard skipped] Merge sparse cherrypicks from sparse-12701944-L57500030007960221 into 24Q4-release.
COASTGUARD_SKIP: I2959ed13961bbc5b09444a8442bf0f32c706ea61

Change-Id: Ic52287f868e476743f3cf66b4119ffb46e5bcaee
2024-11-23 00:41:53 +00:00
Android Build Coastguard Worker
8c3eec3525 Version bump to AP4A.250105.002.A1 [core/build_id.mk]
Change-Id: I2959ed13961bbc5b09444a8442bf0f32c706ea61
2024-11-23 00:39:31 +00:00
Android Build Coastguard Worker
dd5da7b9be Version bump to AP4A.250105.002 [core/build_id.mk]
Change-Id: I10f49aec52212ffc6b5bfd41433fa523781ecf6b
2024-11-22 21:07:38 +00:00
Android Build Coastguard Worker
950aff63e8 Version bump to AP4A.250105.001 [core/build_id.mk]
Change-Id: I1b7c4ddbead7ede06a3331978664b75ab5e1de32
2024-11-22 17:00:32 +00:00
Android Build Coastguard Worker
1848ff5b0b [coastguard skipped] Merge sparse cherrypicks from sparse-12621605-L13000030007869570 into 24Q4-release.
COASTGUARD_SKIP: Ia862cc63447b71fbf4870fc2f9048f7f28c72f40

Change-Id: I03bd742c45ffcfe3416f132fe93f88e7cd1595d5
2024-11-19 14:08:01 +00:00
Android Build Coastguard Worker
72c14f548f Version bump to AP4A.241205.013.T1 [core/build_id.mk]
Change-Id: Ia862cc63447b71fbf4870fc2f9048f7f28c72f40
2024-11-19 14:06:36 +00:00
Android Build Coastguard Worker
9d76dfd759 [coastguard skipped] Merge sparse cherrypicks from sparse-12636973-L99400030007843745 into 24Q4-release.
COASTGUARD_SKIP: Idd8638b9e270c533eacce7da8c297654aa84bfb4

Change-Id: Ibcfbc679cbc20076b1959016fdc713f0d7ef6c10
2024-11-18 22:45:09 +00:00
Android Build Coastguard Worker
d31a642ab3 Version bump to AP4A.241205.004.F2 [core/build_id.mk]
Change-Id: Idd8638b9e270c533eacce7da8c297654aa84bfb4
2024-11-18 22:43:57 +00:00
Android Build Coastguard Worker
0edb71f4a4 [coastguard skipped] Merge sparse cherrypicks from sparse-12621605-L79200030007766629 into 24Q4-release.
COASTGUARD_SKIP: Ic3fccb5c51290587fdc3ea442ed2e83a0d65e714

Change-Id: I4830d760b994e3011edde8a12a086219a4d96fe0
2024-11-14 18:39:11 +00:00
Android Build Coastguard Worker
e1dbd4033e Version bump to AP4A.241205.013.C1 [core/build_id.mk]
Change-Id: Ic3fccb5c51290587fdc3ea442ed2e83a0d65e714
2024-11-14 18:37:19 +00:00
Android Build Coastguard Worker
f80a24e6f2 [coastguard skipped] Merge sparse cherrypicks from sparse-12635929-L51100030007751427 into 24Q4-release.
COASTGUARD_SKIP: I681d3aa539f9ccab607a080c19343891cec1a045

Change-Id: I34b4f95b1a91bc04f5cce6f5366c5d843491b02d
2024-11-13 16:20:06 +00:00
Android Build Coastguard Worker
6f26470df2 Version bump to AP4A.241205.013.A2 [core/build_id.mk]
Change-Id: I681d3aa539f9ccab607a080c19343891cec1a045
2024-11-13 16:18:51 +00:00
Android Build Coastguard Worker
8e7795e62c [coastguard skipped] Merge sparse cherrypicks from sparse-12545800-L17400030007600540 into 24Q4-release.
COASTGUARD_SKIP: Ibce65e1ae474283385e59ddeee9d9bbc6d2f3f4c

Change-Id: I99d5df7b9249ed1eeb5bd0d31519747d7828d0ad
2024-11-11 18:49:54 +00:00
Android Build Coastguard Worker
847981e4b0 Version bump to AP4A.241205.004.F1 [core/build_id.mk]
Change-Id: Ibce65e1ae474283385e59ddeee9d9bbc6d2f3f4c
2024-11-11 18:48:48 +00:00
Android Build Coastguard Worker
4ab4d632c5 [coastguard skipped] Merge sparse cherrypicks from sparse-12621605-L35400030007607992 into 24Q4-release.
COASTGUARD_SKIP: I470e765ded52826376b74d3b263b2519ca625ef1

Change-Id: I830874ab9d95ff9ff41b01e734aedd3f2641c7a7
2024-11-11 18:13:08 +00:00
Android Build Coastguard Worker
2d2e7de159 Version bump to AP4A.241205.013.B1 [core/build_id.mk]
Change-Id: I470e765ded52826376b74d3b263b2519ca625ef1
2024-11-11 18:09:22 +00:00
Android Build Coastguard Worker
5d2b8cef47 [coastguard skipped] Merge sparse cherrypicks from sparse-12621605-L35300030007705978 into 24Q4-release.
COASTGUARD_SKIP: Id0f6decd750dcb8522d3aac0b756a2bb7207c263

Change-Id: Ia92916a0f96a06d4290f161f619e7516466e1e9d
2024-11-11 15:38:27 +00:00
Android Build Coastguard Worker
6614b21c1c Version bump to AP4A.241205.013.A1 [core/build_id.mk]
Change-Id: Id0f6decd750dcb8522d3aac0b756a2bb7207c263
2024-11-11 15:36:45 +00:00
Android Build Coastguard Worker
3734721784 [coastguard skipped] Merge sparse cherrypicks from sparse-12553254-L49400030007650015 into 24Q4-release.
COASTGUARD_SKIP: I155fc8daf99581bfa29683ee5532b2be0fa92c2e

Change-Id: I5021de8533d78c0c01d7a9b7f475c88750059e16
2024-11-08 01:07:28 +00:00
Android Build Coastguard Worker
702a4d66bd Version bump to AP4A.241205.004.E2 [core/build_id.mk]
Change-Id: I155fc8daf99581bfa29683ee5532b2be0fa92c2e
2024-11-08 01:06:41 +00:00
Android Build Coastguard Worker
64078752f5 Version bump to AP4A.241205.013 [core/build_id.mk]
Change-Id: I7f5c85707b6422e67ef693548e7ae812293e6396
2024-11-07 16:02:29 +00:00
Android Build Coastguard Worker
dce38d96be Version bump to AP4A.241205.012 [core/build_id.mk]
Change-Id: I08468e9e508b18afabde5097fe9743012ec459de
2024-11-04 20:44:46 +00:00
Android Build Coastguard Worker
e99e203bb3 Version bump to AP4A.241205.011 [core/build_id.mk]
Change-Id: Iff14792808f7fc96d580f945415f46e84ec6abb0
2024-10-31 19:25:58 +00:00
Android Build Coastguard Worker
7d8bd3838b Version bump to AP4A.241205.010 [core/build_id.mk]
Change-Id: I3b0e7bb957f9738b363bb01e38a5e9237279814c
2024-10-30 23:08:35 +00:00
Android Build Coastguard Worker
2907d249f4 Version bump to AP4A.241205.009 [core/build_id.mk]
Change-Id: Ib638206147177dcc41fe29f3d97f5c2d09a20d3d
2024-10-30 18:24:30 +00:00
Android Build Coastguard Worker
ee5015957d [coastguard skipped] Merge sparse cherrypicks from sparse-12545800-L12100030007483540 into 24Q4-release.
COASTGUARD_SKIP: I1e8fa883134a7c015790e0f55300f94ebcac3241

Change-Id: I7c55c88b3620628d32d72cc4bcfa718a7d32a8b2
2024-10-30 17:41:02 +00:00
Android Build Coastguard Worker
10895005e5 Version bump to AP4A.241205.004.X1 [core/build_id.mk]
Change-Id: I1e8fa883134a7c015790e0f55300f94ebcac3241
2024-10-30 17:39:52 +00:00
Android Build Coastguard Worker
bed99211a3 Make change and version bump to AP4A.241205.008
Merge cherrypicks of ['android-review.googlesource.com/3299864'] into 24Q4-release.

Change-Id: Ic2aa560c41771e3ffe1748cb3dc4f801808e6881
2024-10-30 00:20:58 +00:00
Evgenii Stepanov
cafb3c3b62 Revert^3 "Use -target-feature for MTE"
This reverts commit fe67d8f1f2.

Reason for revert: reapplied too early
(cherry picked from https://android-review.googlesource.com/q/commit:476da833e12179d31f6a301ad65bf45c63a28818)
Merged-In: I8d5f8b056a644b661bf03e79e1f1a783a3dcbf1d
Change-Id: I8d5f8b056a644b661bf03e79e1f1a783a3dcbf1d
2024-10-30 00:19:11 +00:00