Allows devices to run required actions before attempting
to extract firmware.
Example: motorola star images & pixel fbpk images.
Change-Id: I105c3a17c10f63f0ad72966354aed6baed695d7c
A/B OTA might be missing some partitions like devinfo and frp
which are required for factory images.
Change-Id: I9d6f91c736476d3540c541e3ffc7a28e72089e4a
Merge the two functions into one and explicitly list all partitions
based on proprietary file list instead of scanning the radio folder.
Change-Id: I28a426af04efa5e103dc86bd369f507187e49489
This allows extracting firmware from factory images.
The following changes have been made:
* Remove filesmap support, this is not used in AOSP releasetools.
* Remove directory check, append_firmware_calls_to_makefiles() is opt-in
and if some device calls it, firmware will always exist.
* Implement append_firmware_ab_ota_to_makefiles() to automatically
append firmware images to AB_OTA_PARTITIONS
* Add support for source:target firmware extraction and AB argument
TODO: extract firmware from OTA images
Change-Id: Ib2158925f53657af949a186200c9e98e1a4db810
Not enabled by default as >0.9 versions where reported to break some
libraries (see change I6c0cbe76baf241233fdd125f5ed1eccbd5855124), but
patchelf 0.8/9 also seems to break certain libraries while 0.17.2
doesn't. See I079925c0a38a08661accbbf07831e36e6adb4d76 for example.
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: Ib68152e7936d8c618d29278a264a141cbab77d05
Allows copying single files or building single packages.
To be used for CarrierSettings extract integration.
Change-Id: I9238355c56673f633e7a0a4afe70e9a9ad62af56
* This is used by a lot of things, and the script removes
the entire directory. That can cause issues with other things,
that don't expect the root TMPDIR to go away, or some contents
within it.
* Let's use our own variable
* You can still keep setting TMPDIR since mktemp respects that
Change-Id: I6c71ce38bab781cd7a8d285499f127c2bf248eb8
* This will be beneficial for copying firmware and other stuff to recovery.
Change-Id: Ibc7e887d32f9c00d5914ed4d2c9d79864f1f4745
Signed-off-by: Mohd Faraz <androiabledroid@gmail.com>
Signed-off-by: Mohd Faraz <mohd.faraz.abc@gmail.com>
Previously the wrong variables were checked to see if the prefix
matches, so e.g. no cc_prebuilt_binary were generated for those
binaries.
Change-Id: I744c6f6a4584921a26547478ac14a160c56e07b7
"comm" requires both input to be sorted. The T_X_LIB32 and T_X_LIB64
arrays from prefix_match-ing PRODUCT_PACKAGES_LIST may not always
be sorted, which causes certain multilib to be mis-categorized as
32-bit and 64-bit separately. The final blueprint would then have
duplicated targets.
Therefore, sort the package list first so that arrays generated
from the package list are also sorted. Set LC_ALL=C to avoid "sort"
using system locale.
Change-Id: Ia2bc9733d89de66eda52059237a54d624ba4b0ad
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Android 11 has removed /sbin support completely
Remove rootfs handling as that was only added for /sbin
Remove write_makefile_packages since it's no longer used
Change-Id: Ie44656d5e30da9637a850df53c4bf3fa1ab0fb2b
* Useful for BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES
if package name conflicts with something source-built but the output location differs
Change-Id: I3af45eae6b2d2cfc583128628edfef9e37ea3976
comm behavior will fail if does not receive a properly lexicographic
sort.
Not using appropiated LC_COLLATE leads to error. This is matching
current LC_ALL=C already used at sort commands.
Change-Id: I77f8acb419545a74812d3b36ba608719c2aa89e3
* Handles both sparse images as well as filesystem images
* Uses debugfs to extract, no root needed!
* Usecase: Factory images
Change-Id: I3e1bc3834dea108e63ab707a1a89dc2d0743913e
* This list hasn't been updated in a long time and doesn't contain
all the default vendor modules. Simply drop it and regenerate the
full list device side automatically with a script.
Change-Id: I8cf99d1b726f390f9a3bc2903e69eb26da7ebea9
This follows the style google uses, for example in [1].
With this change it will generate 'overrides: ["TargetOne", "TargetTwo"],'
instead of 'overrides: ["TargetOne TargetTwo"],' for this line:
-system/app/TargetZero/TargetZero.apk;OVERRIDES=TargetOne,TargetTwo
[1]: 2daf3ecf89/Android.bp (L53)
Change-Id: I154ee3a4cc51e0938c860dcfc125eacf279d102e