Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For dynamic partitions devices. Like poco X2(phoenix) and Redmi Note 9s(Curtana) #10

Open
wants to merge 2 commits into
base: android-10
Choose a base branch
from

Commits on Jul 31, 2020

  1. releasetools: do not remove dynamic partitions in system-only builds

    * Before this commit, the generated `dynamic_partitions_op_list` in
      FullOTA packages always tries to remove all partitions and recreate
      them upon flashing. This makes it impossible to have a system-only
      "FullOTA" because vendor partition(s) are always removed.
    
    * This commit detects if a build is vendor-less and disables every
      dynamic partition operation except `resize`, in order to keep the
      original content around after the flash. The change should not affect
      non-dynamic-partition or builds with vendor image included.
    
    Change-Id: I0cded7f3b2958f35103d73d19b7fb5f292f6c17f
    Signed-off-by: Jesse Chan <jc@lineageos.org>
    PeterCxy authored and teamsolo committed Jul 31, 2020
    Configuration menu
    Copy the full SHA
    2e8eeec View commit details
    Browse the repository at this point in the history
  2. Generate block based OTA for product partitions

    Currently only the system and vendor partitions are updated in the
    generic block based OTA generation script. Since the product partition
    is quite large and consist most of APK files, it would be beneficial to
    update it similar to system. Handle the odm and system_ext partitions in
    the same way as well.
    
    Bug: 132683080
    Test: Run unit tests, generate full and incremental OTA with product partitions.
    Change-Id: I13478cf9bd32137c6729b8c9cb102080147093f2
    Tianjie Xu authored and teamsolo committed Jul 31, 2020
    Configuration menu
    Copy the full SHA
    9235273 View commit details
    Browse the repository at this point in the history