ReadArgs now returns a boolean value instead of
integer. Hence the condition check needs to be
negated to keep same behaviour as N
Change-Id: I53887822231075657220479f0e773797ad4c9935
Update the emmc dev block path that is being used
in gpt-utils with correct path - /dev/block/mmcblk0.
Change-Id: Ie8f459ea5f8d913cc34fe7a64b651bb3016b9883
On 64 bit architecture, off_t is 'long long', whereas on 32 bit
architecture off_t is just 'long', i.e. 4 bytes less. Due to this,
integer overflow is seen, and gpt-utils was not able to mark bootup as
successful, causing the device to be slot switched after 7 reboots by
the bootloader. Use off64_t instead.
Change-Id: I4c568188dc1b9076b282ba66d1ec45a81861a2a0
We now compile the oem-updater if either AB_OTA_UPDATER is set to true or
if TARGET_RECOVERY_UPDATER_LIBS contains librecovery_updater_msm.This is to
ensure that the library is built in both A/B and non A/B build configurations.
Change-Id: I0b93ee8fc513cd4b3f657753700bfec95beb1265
Numerous changes for initial bring-up:
- Add pure AOSP handling to libhealthd.msm
- Update to new ReadArgs() API in librecovery_updater_msm
- Temporarily disable common device overlay
- Switch qcom_diag AID to diag
Change-Id: I76892dfa6da6cf3e9ce6e96733f1f1057b5c1f83
- Makefile change to add support for builds that do not have a recovery
partition
- Updated the list of A/B partitions
- Fixed the order of writes in the gpt_disk_commit function
- Added a function to get the layout of a set of partitions on a disk
Change-Id: Icef65178f42cbb01727fe046640602d4cdfd339b
KW throws warning about possible access of an array by out of index
range. Size of the placeholder buffer for an input word has been
increased which was half of the input word's length.
Change-Id: I7c1dbb51456fcbd680fd83db947ebd3f9397a7d7
We now support the failsafe update of the xbl partition on UFS based
devices. UFS does not support having a backup GPT for it's 'boot'
partition(xbl), so the failsafe update of this partition requires
special handling
Change-Id: Iabf4ee5ba51f68cfc1e921ebcf9e169ccb35eb7d
We now swap the complete primary and backup filesystem entry instead
of only the guid field.
CRs-Fixed: 777204
Change-Id: I2fbc8a045452d6160ca12ce1baac085b0e0e1bb7
The Ion API is changing yet again. heap_mask has been renamed in Ion to
heap_id_mask. Rename ours.
Change-Id: I5fbf5d08a1a3ad28f17accb8b4b521586420a8fe
Current ION heap is smaller that the biggest modem image on some
devices. Using PIL1 heap looks resonable cause it is used to load
firmwares. The fact that this heap is defined for most of platforms
and the size is bigger than biggest modem image makes it good
candidate for usage.
Change-Id: Ia86a08d911ff1744f4c8a2dbb5b3c3618debfbda
Do not abort update on missing backup boot partition/s.
Instead simply skip boot chain swap and return without error
Change-Id: I08fb4548d91258afcdb0828aa1bbadc95b0dbdd8
This library is charged with:
- decrypting firmware radio images during recovery update
- preventing device boot break on main/backup bootloaders update failure
Those features are implemented by registering device specific updater
script commands used by update mechanism. The library is statically
linked to Android updater executable during Android build. The commands
implemented in the library will be called by updater-script during OTA
update.
Change-Id: Ia93901ba83efd4aed833250c5d52bd18cab0a740