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

Android 12.1 #1

Open
wants to merge 2,563 commits into
base: android-10.0
Choose a base branch
from
Open

Android 12.1 #1

wants to merge 2,563 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Mar 12, 2021

  1. Snap for 7202128 from 6e76b7d to sc-v2-release

    Change-Id: I24114565d80d1e15a7f2d5f65b770d7b5b705134
    android-build-team Robot committed Mar 12, 2021
    Configuration menu
    Copy the full SHA
    5112e29 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2021

  1. Snap for 7205268 from ee0d370 to sc-v2-release

    Change-Id: I84d4a5733c4ca380076cbe2b04608b69aa78f8c8
    android-build-team Robot committed Mar 13, 2021
    Configuration menu
    Copy the full SHA
    dbabc07 View commit details
    Browse the repository at this point in the history
  2. Record VAB boot time metrics.

    Bug: 180535575
    Test: apply OTA, snapshotctl dump
    Change-Id: Iedd761b2f6923a56b11f9d6868d6baf569ad38d0
    dvandercorp committed Mar 13, 2021
    Configuration menu
    Copy the full SHA
    0c37f62 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2021

  1. Record VAB boot time metrics. am: 0c37f62

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1631917
    
    Change-Id: Ida5a8fa561f788dfbdfba671385928dd70f7296e
    dvandercorp authored and android-build-merge-worker-robot committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    74db000 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    79d9e0b View commit details
    Browse the repository at this point in the history
  3. Pass in source slot to ctor of dynamic control

    When DynamicPartitionControlAndroid is constructed, it initializes both
    source and target slot to -1. These values get updated during
    PreparePartitionsForUpdate call. And we only
    PreparePartitionsForUpdate() when applying an OTA or applocating space
    for an OTA(not when verifying OTA metadata). Which means if
    VerifyPayloadApplicable() is called before any call two other APIs, we
    could be using an "Uninitialiazed"  dynamic partition control.
    
    To mitigate this problem, we pass in source_slot at ctor of
    DynamicPartitionControl, also make IsDynamicPartition() api take in a
    slot number to avoid reading uninitialized member fields.
    
    Bug: 181643302
    
    Test: apply an OTA, abort, restart update_engine, verify a payload
    Change-Id: I9a8a0fe8a9aca48e91241e15bdec33a1c1228553
    zhangxp1998 authored and Treehugger Robot committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    ebd115e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f260ea9 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2021

  1. Configuration menu
    Copy the full SHA
    e59ea77 View commit details
    Browse the repository at this point in the history
  2. Make update_engine reserve space for decompression via apexd

    Bug: 172911822
    Test: atest ApexHandlerAndroidTest (checked that file was created)
    Change-Id: I8024695ebba1a9c1796c05b27a0eec3da3b3d1bc
    Mohammad Samiul Islam committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    b0ab865 View commit details
    Browse the repository at this point in the history
  3. Make update_engine reserve space for decompression via apexd am: b0ab865

    
    
    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1614853
    
    Change-Id: Iefa9b70759279eab8bb6573df205840c3bec520d
    Mohammad Samiul Islam authored and android-build-merge-worker-robot committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    f057877 View commit details
    Browse the repository at this point in the history
  4. Make update_engine reserve space for decompression via apexd am: b0ab865

     am: f057877
    
    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1614853
    
    Change-Id: I927d67667d53f9c45cc92a2e083de4ab774ed6d5
    Mohammad Samiul Islam authored and android-build-merge-worker-robot committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    a37773e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cdde78a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1ddd2c7 View commit details
    Browse the repository at this point in the history
  7. Refactor verity reads/writes to a separate fucntion

    Test: th & serve an OTA with veity enabled, vabc disabled
    Change-Id: Ib1d5549ac615504a47c96a12b046975cfff01886
    zhangxp1998 committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    7f92567 View commit details
    Browse the repository at this point in the history
  8. Make update_engine reserve space for decompression via apexd am: b0ab865

     am: f057877 am: a37773e
    
    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1614853
    
    Change-Id: I1ae0e4c6c43f4602a7df0bce455de4a81786a1a7
    Mohammad Samiul Islam authored and android-build-merge-worker-robot committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    ed623a4 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2021

  1. Snap for 7216111 from 1ddd2c7 to sc-v2-release

    Change-Id: Idc12cd8be88fea2999672d59960d632872fc2df6
    android-build-team Robot committed Mar 18, 2021
    Configuration menu
    Copy the full SHA
    c65d4fa View commit details
    Browse the repository at this point in the history
  2. Snap for 7216685 from ed623a4 to sc-v2-release

    Change-Id: I4433bd8a409846cdae329635970a909c31b93c40
    android-build-team Robot committed Mar 18, 2021
    Configuration menu
    Copy the full SHA
    98e3c3b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    607f9fb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a69c638 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    327dce7 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2021

  1. Snap for 7219331 from 327dce7 to sc-v2-release

    Change-Id: Ie8be28c5a38d90e601388635d4bd858ed4ccebb4
    android-build-team Robot committed Mar 19, 2021
    Configuration menu
    Copy the full SHA
    754be4d View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2021

  1. Unmap all partitions after postinstall finishes

    If we don't unmap partitions, snapuserd will keep running in the
    background and do nothing. Unmap partitions so that memory associated
    with daemon can be freed.
    
    Test: th, apply an OTA, verify that _b partitions in /dev/block/mapper
    are gone
    Change-Id: I4a75f4abe3e69f9ad2a67a78472b61cfbd77b0eb
    
    Change-Id: Icacf1699a32bf045c2b832f7c1f021d90805d676
    zhangxp1998 committed Mar 22, 2021
    Configuration menu
    Copy the full SHA
    f7ef12a View commit details
    Browse the repository at this point in the history
  2. Add checks before writing hashtree/verity

    Verity that we read everything in hashtree_data_extent before writing
    hash tree.
    
    Bug: 173432386
    Test: th
    Change-Id: I00ab8053de71b13991adaa243b6cb6c7efd6e60f
    zhangxp1998 authored and Treehugger Robot committed Mar 22, 2021
    Configuration menu
    Copy the full SHA
    eeec381 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    786bb39 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d727ae0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ca37677 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d661845 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ff95b2b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    11d6a34 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2021

  1. Snap for 7227300 from 11d6a34 to sc-v2-release

    Change-Id: I866142205afbde97bf289c9ef032fb8b8f69330f
    android-build-team Robot committed Mar 23, 2021
    Configuration menu
    Copy the full SHA
    b7f2cc2 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2021

  1. Add CowWriterFileDescriptor

    Add a wrapper to use CowWriter as a file descriptor, this will be used
    by FileSystemVerification stage when writing FEC
    
    Test: treehugger
    Bug: 173432386
    
    Change-Id: Iea42ca1081cd6836c7700db172d6987f770d52c0
    zhangxp1998 committed Mar 24, 2021
    Configuration menu
    Copy the full SHA
    569c97e View commit details
    Browse the repository at this point in the history
  2. Make dynamic partition control android return a writable fd

    We can return a FileDescriptor object, which encapsulates logic needed
    to write to a COW. This way, filesystem verfication action can use the
    turend value directly for computing verity and hash the partition.
    
    Test: th
    Change-Id: Iafe9699ef0cc15961641fc94f8ad2820230a56e1
    zhangxp1998 committed Mar 24, 2021
    Configuration menu
    Copy the full SHA
    21a4991 View commit details
    Browse the repository at this point in the history
  3. Add CowWriterFileDescriptor am: 569c97e

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1474356
    
    Change-Id: I5a6ceb2a0adbdc4705dbfd7d7135e907cec33009
    zhangxp1998 authored and android-build-merge-worker-robot committed Mar 24, 2021
    Configuration menu
    Copy the full SHA
    db302a0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    36e848e View commit details
    Browse the repository at this point in the history
  5. Add CowWriterFileDescriptor am: 569c97e am: db302a0

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1474356
    
    Change-Id: Ia0489857534b13de934615187a9ba59abbb8a518
    zhangxp1998 authored and android-build-merge-worker-robot committed Mar 24, 2021
    Configuration menu
    Copy the full SHA
    7d8e2ec View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e6fc976 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e9cce3c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2a1b105 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2021

  1. Allow /postinstall files to have custom contexts

    We were mounting /postinstall with a 'context=...' option. This forces
    all files within /postinstall to have a single selinux context,
    limiting the possible granularity of our policies. Here we change it
    to simply default to the 'postinstall_file' context for the 'system'
    partition but allow individual files to have their own custom contexts
    defined by /system/sepolicy. Other partitions retain the single
    'postinstall_file' context.
    
    The sample_images were updated to manually add a selinux label for
    testing FS contexts.
    
    Test: Manual OTA of blueline
    Test: atest update_engine_unittests
    Bug: 181182967
    
    Change-Id: I0b8c2b2228fa08afecb64da9c276737eb9ae3631
    allight committed Mar 25, 2021
    Configuration menu
    Copy the full SHA
    7361d27 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2021

  1. Snap for 7236705 from 2a1b105 to sc-v2-release

    Change-Id: If8c0d0d141295eb4e2d4b400790a5751493cace5
    android-build-team Robot committed Mar 26, 2021
    Configuration menu
    Copy the full SHA
    32e95b5 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2021

  1. Check the super partiton size in VAB case

    When the snapshot is used, we should check that the maximum size
    of all dynamic partition groups doesn't exceed the super partition
    size.
    
    Bug: 182431975
    Test: primary payload fails as expected Pixel21
    Change-Id: I5df8976e6b7e011284b29fd554dda80e31305698
    Tianjie committed Mar 27, 2021
    Configuration menu
    Copy the full SHA
    9f4dc7f View commit details
    Browse the repository at this point in the history
  2. Check the super partiton size in VAB case am: 9f4dc7f

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1638182
    
    Change-Id: I8ff779815e569c2847c238c603858addd06a50f8
    Tianjie authored and android-build-merge-worker-robot committed Mar 27, 2021
    Configuration menu
    Copy the full SHA
    f08a8e7 View commit details
    Browse the repository at this point in the history
  3. Check the super partiton size in VAB case am: 9f4dc7f am: f08a8e7

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1638182
    
    Change-Id: Ic97cb8fca898485a6ffbd1411db7685ca8fb75a4
    Tianjie authored and android-build-merge-worker-robot committed Mar 27, 2021
    Configuration menu
    Copy the full SHA
    7a82a96 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    99a2cb8 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2021

  1. Support verity writes in VABC

    Test: generate an OTA with verity enabled, install it
    Bug: 173432386
    
    Change-Id: I14cccb1bb339c9824a95b8e42ac5144cb8b75c3f
    zhangxp1998 authored and Treehugger Robot committed Mar 28, 2021
    Configuration menu
    Copy the full SHA
    4f28a6c View commit details
    Browse the repository at this point in the history
  2. Support verity writes in VABC am: 4f28a6c

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1612456
    
    Change-Id: I88da9dcdafcbf6e001d59a2628cd31279b83aeaf
    zhangxp1998 authored and android-build-merge-worker-robot committed Mar 28, 2021
    Configuration menu
    Copy the full SHA
    d4d7b7c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d06fd13 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    abbf6d3 View commit details
    Browse the repository at this point in the history
  5. Snap for 7240964 from abbf6d3 to sc-v2-release

    Change-Id: I0428f7fca049c436c1bf8eb5289bb41c4b0362e6
    android-build-team Robot committed Mar 28, 2021
    Configuration menu
    Copy the full SHA
    f6a2428 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2021

  1. Merge "Allow /postinstall files to have custom contexts" into sc-dev

    allight authored and Android (Google) Code Review committed Mar 29, 2021
    Configuration menu
    Copy the full SHA
    bdddd0d View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2021

  1. Snap for 7243396 from bdddd0d to sc-v2-release

    Change-Id: If53b010e3efef34df0d462f9a9d5579c8f702120
    android-build-team Robot committed Mar 30, 2021
    Configuration menu
    Copy the full SHA
    218e9d9 View commit details
    Browse the repository at this point in the history
  2. Allow /postinstall files to have custom contexts

    We were mounting /postinstall with a 'context=...' option. This forces
    all files within /postinstall to have a single selinux context,
    limiting the possible granularity of our policies. Here we change it
    to simply default to the 'postinstall_file' context for the 'system'
    partition but allow individual files to have their own custom contexts
    defined by /system/sepolicy. Other partitions retain the single
    'postinstall_file' context.
    
    The sample_images were updated to manually add a selinux label for
    testing FS contexts.
    
    Test: Manual OTA of blueline
    Test: atest update_engine_unittests
    Bug: 181182967
    Change-Id: I0b8c2b2228fa08afecb64da9c276737eb9ae3631
    Merged-In: I0b8c2b2228fa08afecb64da9c276737eb9ae3631
    allight authored and Treehugger Robot committed Mar 30, 2021
    Configuration menu
    Copy the full SHA
    331e3bd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b165e44 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0bc81f6 View commit details
    Browse the repository at this point in the history
  5. [automerger skipped] Allow /postinstall files to have custom contexts…

    … am: 331e3bd am: b165e44 am: 0bc81f6 -s ours
    
    am skip reason: skip tag Change-Id I0b8c2b2228fa08afecb64da9c276737eb9ae3631 with SHA-1 7361d27 is already in history
    
    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1643782
    
    Change-Id: I3895837abeb044e3b8c1cff085def3287d2f24bd
    allight authored and android-build-merge-worker-robot committed Mar 30, 2021
    Configuration menu
    Copy the full SHA
    c1365fd View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2021

  1. Snap for 7246408 from c1365fd to sc-v2-release

    Change-Id: If69ee994bb8458af92b7b49f4d8b0076068893b6
    android-build-team Robot committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    44ab449 View commit details
    Browse the repository at this point in the history
  2. Add a unittest for read-after-write pattern in cow writer

    Test: th
    Change-Id: I4e461b03d4008d484eafe601d3de2f4b06bf585d
    zhangxp1998 committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    f55eab8 View commit details
    Browse the repository at this point in the history
  3. Report metrics on whether verity is used

    Test: th
    Change-Id: Ide00028036b8b382a233b52716795a5c5c8da4e6
    zhangxp1998 committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    9a5e368 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b2b5328 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0cf3b32 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f4471d6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c154fda View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    4a6f8ca View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1da6b8d View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2021

  1. Snap for 7249665 from 1da6b8d to sc-v2-release

    Change-Id: Ib0f773172c036ef71585d809d84c64301b4fb133
    android-build-team Robot committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    61f9cde View commit details
    Browse the repository at this point in the history
  2. Add no postinstall option

    Test: th
    Change-Id: I63904fae1a6900a6fd7a079667332102f2bede55
    zhangxp1998 committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    bec0f07 View commit details
    Browse the repository at this point in the history
  3. Add no postinstall option am: bec0f07

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1660742
    
    Change-Id: Idacf165f6a5cb9c99aa19f04255f96b772fe63d2
    zhangxp1998 authored and android-build-merge-worker-robot committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    33c2435 View commit details
    Browse the repository at this point in the history
  4. Add no postinstall option am: bec0f07 am: 33c2435

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1660742
    
    Change-Id: I032c705591178dd7a82cfc6ab53bcec98fe7c4b5
    zhangxp1998 authored and android-build-merge-worker-robot committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    df3a22e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d4a81ab View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2021

  1. Fix a potential wild pointer error when markSlotSuccessful comes late

    Bug: 178637306
    Bug: 169436297
    Test: make boot control's IsSlotMarkedSuccessful always return false,
        launch update_engine
    Change-Id: I12c01c5f062ec4b41718f2cada817f6557eb2b0e
    zhangxp1998 committed Apr 2, 2021
    Configuration menu
    Copy the full SHA
    65e8b6c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f22fa83 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d6f53a6 View commit details
    Browse the repository at this point in the history
  4. Fix a potential wild pointer error when markSlotSuccessful comes late

    Bug: 178637306
    Bug: 169436297
    Test: make boot control's IsSlotMarkedSuccessful always return false,
        launch update_engine
    Change-Id: I12c01c5f062ec4b41718f2cada817f6557eb2b0e
    Merged-In: I12c01c5f062ec4b41718f2cada817f6557eb2b0e
    zhangxp1998 authored and Yifan Hong committed Apr 2, 2021
    Configuration menu
    Copy the full SHA
    28d49bc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    db9dbde View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2021

  1. Snap for 7256110 from db9dbde to sc-v2-release

    Change-Id: Iff95421841893d26c9b0c36051107ae4b215c9f7
    android-build-team Robot committed Apr 3, 2021
    Configuration menu
    Copy the full SHA
    53b8ecf View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2021

  1. Add unittest for CleanupPreviousUpdateAction

    We had a severe bug in CleanupPreviousUpdateAction, undetected for a
    while. Added unittest to cover the bug so we don't regress.
    
    Bug: 169436297
    Bug: 178637306
    
    Test: th
    Change-Id: I40fc97a5c771ec001896ecd8f6d46b551cc7724c
    zhangxp1998 committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    b4b95c2 View commit details
    Browse the repository at this point in the history
  2. [automerger skipped] Fix a potential wild pointer error when markSlot…

    …Successful comes late am: 28d49bc -s ours
    
    am skip reason: skip tag Change-Id I12c01c5f062ec4b41718f2cada817f6557eb2b0e with SHA-1 65e8b6c is already in history
    
    Original change: https://googleplex-android-review.googlesource.com/c/platform/system/update_engine/+/14078192
    
    Change-Id: I5e646b892f902d76d8569f3f7c90a35655f5ce09
    zhangxp1998 authored and android-build-merge-worker-robot committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    c8b92aa View commit details
    Browse the repository at this point in the history
  3. [automerger skipped] Fix a potential wild pointer error when markSlot…

    …Successful comes late am: 28d49bc -s ours am: c8b92aa -s ours
    
    am skip reason: skip tag Change-Id I12c01c5f062ec4b41718f2cada817f6557eb2b0e with SHA-1 65e8b6c is already in history
    
    Original change: https://googleplex-android-review.googlesource.com/c/platform/system/update_engine/+/14078192
    
    Change-Id: I690d8b72a89eaf830a4b95b0bc7123d888b9371b
    zhangxp1998 authored and android-build-merge-worker-robot committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    411bcb8 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2021

  1. Snap for 7263361 from 411bcb8 to sc-v2-release

    Change-Id: Ia9ef2a5e07933991db2ea71a653cc148128e2ca2
    android-build-team Robot committed Apr 7, 2021
    Configuration menu
    Copy the full SHA
    2b01bef View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2021

  1. Configuration menu
    Copy the full SHA
    b92d11a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4df6448 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ce3262f View commit details
    Browse the repository at this point in the history
  4. Add vabc boot time and COW size metrics.

    Bug: 180535575
    Test: statsd_testdrive
    Change-Id: I8b40d069ff8c271ea40b3475003058ac6a940f76
    dvandercorp committed Apr 8, 2021
    Configuration menu
    Copy the full SHA
    b7e6ce5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e4e1df7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8bc4914 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c1bdf7d View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2021

  1. Snap for 7269314 from ce3262f to sc-v2-release

    Change-Id: Ia80cd97afc26f2d67b540f025eeb3cfdeccd3c3c
    android-build-team Robot committed Apr 9, 2021
    Configuration menu
    Copy the full SHA
    096465d View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2021

  1. Snap for 7272808 from c1bdf7d to sc-v2-release

    Change-Id: I9011cd56b0887f71f049777f179c304c5394728f
    android-build-team Robot committed Apr 10, 2021
    Configuration menu
    Copy the full SHA
    18c289e View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2021

  1. Add 5s timeout to cleanup commands

    Sometimes shutdown takes a while due to adb issues, gracefully terminate
    with a timeout. This will throw an exception if timeout occured, telling
    the developer that something went wrong.
    
    Test: python3 update_device.py ota.zip
    Change-Id: I44edc6a291fc682b9439ab97f2880d47dc4e457b
    zhangxp1998 committed Apr 15, 2021
    Configuration menu
    Copy the full SHA
    3a18895 View commit details
    Browse the repository at this point in the history
  2. Rename no-care-map flag

    Since other flags use - instead of _, keep no-care-map flag consistent
    
    Test: th
    Change-Id: Ibf981ecbf7b3804e20c52ef1de8f55732cbe6295
    zhangxp1998 committed Apr 15, 2021
    Configuration menu
    Copy the full SHA
    ffd2144 View commit details
    Browse the repository at this point in the history
  3. Add 5s timeout to cleanup commands am: 3a18895

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1674626
    
    Change-Id: I446135b7a4a42c16d52810be4538cb3efdec9711
    zhangxp1998 authored and android-build-merge-worker-robot committed Apr 15, 2021
    Configuration menu
    Copy the full SHA
    9816401 View commit details
    Browse the repository at this point in the history
  4. Rename no-care-map flag am: ffd2144

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1675666
    
    Change-Id: Idb5ceab1bdaea569dd9d5fd1f71a49e894c9a277
    zhangxp1998 authored and android-build-merge-worker-robot committed Apr 15, 2021
    Configuration menu
    Copy the full SHA
    869754e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    25b6a44 View commit details
    Browse the repository at this point in the history
  6. Rename no-care-map flag am: ffd2144 am: 869754e

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1675666
    
    Change-Id: Ib8bc6faf829e6ea73030546ba3d3293abb6b6a92
    zhangxp1998 authored and android-build-merge-worker-robot committed Apr 15, 2021
    Configuration menu
    Copy the full SHA
    bf99ac1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d193e1e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    df8c64d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4951f77 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    2a65c41 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2021

  1. CheckSuperPartitionAllocatableSpace: based on device prop

    Check allocatable space in super based on whether VAB is
    enabled on the device, instead of basing on whether snapshot
    is used for this update.
    
    On VAB devices where snapshot is not used, e.g. secondary
    update, we don't want to divide allocatable space by half.
    
    The logic changes from:
    
      if (!retrofit DAP && ! update uses snapshot && !sideload)
        allocatable_space /= 2
    
    to
    
      if (!retrofit DAP && ! VAB enabled)
        allocatable_space /= 2
    
    All other changes are cosmetic.
    
    Test: pass
    Bug: 185552745
    Change-Id: If182da4fdbc4b39160347205ccfa50642afc5511
    Yifan Hong committed Apr 16, 2021
    Configuration menu
    Copy the full SHA
    3a1293a View commit details
    Browse the repository at this point in the history
  2. DynamicPartitions: Check precondition for non-snapshot updates properly.

    This is a revision to I29af8aa653a8e. I29af8aa653a8e disables
    the check temporarily for secondary OTA. Re-enable the check properly.
    
    Test: pass
    Bug: 185552745
    Change-Id: Ie4e52b8d374c6b3624a2fd4f1576390a37189ff0
    Yifan Hong committed Apr 16, 2021
    Configuration menu
    Copy the full SHA
    265a8e3 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2021

  1. Snap for 7290612 from df8c64d to sc-v2-release

    Change-Id: Ib22f91deebfad9cd787a8d2e5947a01aab797d56
    android-build-team Robot committed Apr 17, 2021
    Configuration menu
    Copy the full SHA
    bd3ef50 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2021

  1. CheckSuperPartitionAllocatableSpace: based on device prop am: 3a1293a

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1678230
    
    Change-Id: I6728ec33a1bf1d1eab8bd17e8ae0afa0939d6466
    Yifan Hong authored and android-build-merge-worker-robot committed Apr 19, 2021
    Configuration menu
    Copy the full SHA
    b521391 View commit details
    Browse the repository at this point in the history
  2. DynamicPartitions: Check precondition for non-snapshot updates proper…

    …ly. am: 265a8e3
    
    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1678231
    
    Change-Id: I4e0f669bfdf15d768e48e34df26ceb330a846261
    Yifan Hong authored and android-build-merge-worker-robot committed Apr 19, 2021
    Configuration menu
    Copy the full SHA
    eca7271 View commit details
    Browse the repository at this point in the history
  3. CheckSuperPartitionAllocatableSpace: based on device prop am: 3a1293a

    …am: b521391
    
    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1678230
    
    Change-Id: I492c8937e3919d1668b62a99b560bfcacc7305e0
    Yifan Hong authored and android-build-merge-worker-robot committed Apr 19, 2021
    Configuration menu
    Copy the full SHA
    93da1fd View commit details
    Browse the repository at this point in the history
  4. DynamicPartitions: Check precondition for non-snapshot updates proper…

    …ly. am: 265a8e3 am: eca7271
    
    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1678231
    
    Change-Id: If928c41f87f191b8bd15b8c3ead5295df1307661
    Yifan Hong authored and android-build-merge-worker-robot committed Apr 19, 2021
    Configuration menu
    Copy the full SHA
    3123c10 View commit details
    Browse the repository at this point in the history
  5. CheckSuperPartitionAllocatableSpace: based on device prop am: 3a1293a

    …am: b521391 am: 93da1fd
    
    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1678230
    
    Change-Id: I05223570eae33671b7299f1c31ce69c78730d83d
    Yifan Hong authored and android-build-merge-worker-robot committed Apr 19, 2021
    Configuration menu
    Copy the full SHA
    fd18625 View commit details
    Browse the repository at this point in the history
  6. DynamicPartitions: Check precondition for non-snapshot updates proper…

    …ly. am: 265a8e3 am: eca7271 am: 3123c10
    
    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1678231
    
    Change-Id: I3a9ad7596b88b936cb4d8fb4589b2f4442d6cdec
    Yifan Hong authored and android-build-merge-worker-robot committed Apr 19, 2021
    Configuration menu
    Copy the full SHA
    bdb63f9 View commit details
    Browse the repository at this point in the history
  7. CheckSuperPartitionAllocatableSpace: based on device prop am: 3a1293a

    …am: b521391 am: 93da1fd am: fd18625
    
    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1678230
    
    Change-Id: I5d745b677f11942f0a2a82b8e9f41f2a951b7d5c
    Yifan Hong authored and android-build-merge-worker-robot committed Apr 19, 2021
    Configuration menu
    Copy the full SHA
    0af4ffd View commit details
    Browse the repository at this point in the history
  8. DynamicPartitions: Check precondition for non-snapshot updates proper…

    …ly. am: 265a8e3 am: eca7271 am: 3123c10 am: bdb63f9
    
    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1678231
    
    Change-Id: I69850fb474296c1826ce0a6f5dd036380e88a1ee
    Yifan Hong authored and android-build-merge-worker-robot committed Apr 19, 2021
    Configuration menu
    Copy the full SHA
    84b1bd8 View commit details
    Browse the repository at this point in the history
  9. Update shebang line for update_device.py.

    It is no longer python2 compatible.
    
    Test: pass
    Change-Id: Ibb0b7aa33ba1be3e2f40893da70f81c858479f7e
    Yifan Hong authored and Treehugger Robot committed Apr 19, 2021
    Configuration menu
    Copy the full SHA
    0c71550 View commit details
    Browse the repository at this point in the history
  10. Update shebang line for update_device.py. am: 0c71550

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1679889
    
    Change-Id: Ia60ffa8c9c9d98b234ab7a20157e0957dd3ab654
    Yifan Hong authored and android-build-merge-worker-robot committed Apr 19, 2021
    Configuration menu
    Copy the full SHA
    e45fa48 View commit details
    Browse the repository at this point in the history
  11. Update shebang line for update_device.py. am: 0c71550 am: e45fa48

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1679889
    
    Change-Id: I75f5d61636ba5860c53a25936a0d740eb2d65b3c
    Yifan Hong authored and android-build-merge-worker-robot committed Apr 19, 2021
    Configuration menu
    Copy the full SHA
    2729e39 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2021

  1. Update shebang line for update_device.py. am: 0c71550 am: e45fa48 am: 2…

    …729e39
    
    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1679889
    
    Change-Id: I712e68af4c8b380b25ead3fdd5d6b3f07e6e6611
    Yifan Hong authored and android-build-merge-worker-robot committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    e091269 View commit details
    Browse the repository at this point in the history
  2. Update shebang line for update_device.py. am: 0c71550 am: e45fa48 am: 2…

    …729e39 am: e091269
    
    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1679889
    
    Change-Id: I957e285ee3394fc704e8b95b680d5dadadcd8a29
    Yifan Hong authored and android-build-merge-worker-robot committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    8f76009 View commit details
    Browse the repository at this point in the history
  3. Snap for 7295815 from bdb63f9 to sc-v2-release

    Change-Id: I680436194a7a1b2392bcb7d7884c45277a7afef4
    android-build-team Robot committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    dafaba4 View commit details
    Browse the repository at this point in the history
  4. Refactor extent writer to take filedescriptor in constructor

    Functions which receive an instance of extent writer need to manually
    pass fd to ExtentWriter via Init() call, which breaks separation of
    concerns. It makes it hard for us to decouple InstallOp execution from
    writing of data, as the execution unit must be aware of which fd to pass
    to extent writer. In addition, many extents writer, such as snapshot
    extent writer, simply ignores the fd parameter, which is a indication of
    poor code structure.
    
    To address the above issue, we pass FileDescriptorPtr via constructor if
    needed. This way, whoever is "executing" InstallOps don't need to care
    about where the output data is going, and whoever's writing the data
    would be responsible for initializing an ExtentWriter.
    
    Test: th
    Change-Id: I6d1eabde085eefd55da9ecc0352d4a16ae458698
    zhangxp1998 authored and Treehugger Robot committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    4d22ca2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ac10c6c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bf4e119 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0be5fd6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    89e10f1 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2021

  1. Snap for 7298338 from 0be5fd6 to sc-v2-release

    Change-Id: If4e69e14da9c91ed1fdba1f3979963b21ccc45f2
    android-build-team Robot committed Apr 21, 2021
    Configuration menu
    Copy the full SHA
    a7d423f View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2021

  1. Use libgtest_prod_headers.

    Bug: http://b/185916167
    Test: treehugger
    Change-Id: Ia58cf5acc58d95b27e9e852e104e77a4b2c6bb06
    enh-google committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    88f3c8c View commit details
    Browse the repository at this point in the history
  2. Add OTA stress test script

    Test: python3 ota_stress_test.py ota.zip
    Change-Id: I313768945e2c2f98c950f283c7c860d334b99f08
    zhangxp1998 authored and Treehugger Robot committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    f708dda View commit details
    Browse the repository at this point in the history
  3. Use libgtest_prod_headers. am: 88f3c8c

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1683363
    
    Change-Id: Id3ea835fa07f296c2498cc04ea3a442327f5bdb8
    enh-google authored and android-build-merge-worker-robot committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    b6e9f2c View commit details
    Browse the repository at this point in the history
  4. Add OTA stress test script am: f708dda

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1674627
    
    Change-Id: I9a0c4f05d1bf08bfd510144be4ff7ad962c957fd
    zhangxp1998 authored and android-build-merge-worker-robot committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    41ce01b View commit details
    Browse the repository at this point in the history
  5. Use libgtest_prod_headers. am: 88f3c8c am: b6e9f2c

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1683363
    
    Change-Id: I4f9951f545695225621846dbf1deb49df018506c
    enh-google authored and android-build-merge-worker-robot committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    c032c9b View commit details
    Browse the repository at this point in the history
  6. Add OTA stress test script am: f708dda am: 41ce01b

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1674627
    
    Change-Id: I78890c07b146d1325e527e1cbdc3662aa3f0bac7
    zhangxp1998 authored and android-build-merge-worker-robot committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    5cc792b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d6f55f9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0da326c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e98f6de View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d2a75b2 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2021

  1. Snap for 7310088 from 0da326c to sc-v2-release

    Change-Id: I31bcdfbfaf0a53b159ea152ae7b114425b5c7931
    android-build-team Robot committed Apr 24, 2021
    Configuration menu
    Copy the full SHA
    0f38570 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2021

  1. Unmmap all partitions after postinstall

    Previous code will only unmap if postinstall finishes
    successfully, move call to Unmap() to top of cleanup function.
    
    Test: th
    Change-Id: Ibb8b5cd82dbed46da1ed32a3ec370f1acbb42890
    zhangxp1998 authored and Treehugger Robot committed Apr 27, 2021
    Configuration menu
    Copy the full SHA
    433d6c4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    89c87af View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    41d7982 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3e6c001 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b58dac2 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2021

  1. Snap for 7318334 from 3e6c001 to sc-v2-release

    Change-Id: I1da00194ee44fa10b51cf64d6978973cf7f6483a
    android-build-team Robot committed Apr 28, 2021
    Configuration menu
    Copy the full SHA
    428d453 View commit details
    Browse the repository at this point in the history
  2. Propagate the merge failure code to SnapshotMergeStats.

    Bug: 185290850
    Test: manual test
    Change-Id: I094c705a5a275e289eddb8f42e68e08f56975c83
    dvandercorp committed Apr 28, 2021
    Configuration menu
    Copy the full SHA
    6ac3d47 View commit details
    Browse the repository at this point in the history
  3. Report merge failure code from SnapshotMergeReported.

    Bug: 185290850
    Test: statsd_testdrive
    Change-Id: I743ca357225140635aae7a0b77338d35e64298da
    dvandercorp committed Apr 28, 2021
    Configuration menu
    Copy the full SHA
    906f9c3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4f94f1c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c52e3d8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2ea8449 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9cae43a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2dcfe8b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    32dbec3 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    40f54d8 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    ff2dde2 View commit details
    Browse the repository at this point in the history
  12. Check for VAB flag before calling UpdateUsesCompression

    On a device which doen't support VAB, calligng UpdateUsesCompression
    directly will cause libsnapshot to print error logs. Therefore check for
    VAB support first.
    
    Test: th
    Change-Id: Icfbf848908939069493f6c10f6a69f022b9b8350
    zhangxp1998 authored and Treehugger Robot committed Apr 28, 2021
    Configuration menu
    Copy the full SHA
    741c2d4 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    f999e2b View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    dff25b0 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    ca66627 View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2021

  1. Configuration menu
    Copy the full SHA
    b0755ec View commit details
    Browse the repository at this point in the history
  2. Snap for 7321546 from 32dbec3 to sc-v2-release

    Change-Id: I59c40678030a6902da73eb366fe6ecef85d85fc4
    android-build-team Robot committed Apr 29, 2021
    Configuration menu
    Copy the full SHA
    66b1fe5 View commit details
    Browse the repository at this point in the history
  3. Don't call into apexservice if device uses flattened apexes

    If device doesn't support updatable apexes (a.k.a. uses flattened
    apexes), then it won't have compressed apexes, so there is no need
    calling into apexd.
    
    Test: atest update_engine_unittests:ApexHandlerAndroidTest
    Test: build and flash aosp_cf_x86_phone_noapex-userdebug
    Test: m dist
    Test: python3 system/update_engine/scripts/update_device.py --file out/target/product/vsoc_x86_noapex/aosp_cf_x86_phone_noapex-ota-eng.ioffe.zip
    Test: checked OTA was successfully staged
    Bug: 185862111
    Change-Id: Ibf9db757f3af37d23fb8248108b2b6d22c95dec7
    nioffe committed Apr 29, 2021
    Configuration menu
    Copy the full SHA
    aedfef3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e0c1d5f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9bea790 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7297ac0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    cb146f5 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2021

  1. Snap for 7325276 from 7297ac0 to sc-v2-release

    Change-Id: I225381d7a486c48c565661102a0b59b7a6f84c62
    android-build-team Robot committed Apr 30, 2021
    Configuration menu
    Copy the full SHA
    612f267 View commit details
    Browse the repository at this point in the history
  2. Add COW version to the update_metadata.proto

    COW versioning will be used to detect if the COW library
    version matches with the version in the proto file.
    If not, VABC is disabled.
    
    Bug: 183863613
    Test: Apply OTA and verifiy if VABC is disabled if the versioning
    doesn't match
    Signed-off-by: Akilesh Kailash <[email protected]>
    Change-Id: I2d8690bd30d3436c6eb281d3e8d6545cb4888a75
    Akilesh Kailash committed Apr 30, 2021
    Configuration menu
    Copy the full SHA
    3632df9 View commit details
    Browse the repository at this point in the history
  3. Add COW version to the update_metadata.proto am: 3632df9

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1675042
    
    Change-Id: I67f9d382724a0c9f21fe6f04453ec6f117689d73
    Akilesh Kailash authored and android-build-merge-worker-robot committed Apr 30, 2021
    Configuration menu
    Copy the full SHA
    2b10c92 View commit details
    Browse the repository at this point in the history
  4. Add COW version to the update_metadata.proto am: 3632df9 am: 2b10c92

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1675042
    
    Change-Id: Iaf1f77f7ff78ee775d4f21dd6a6343b637b012ce
    Akilesh Kailash authored and android-build-merge-worker-robot committed Apr 30, 2021
    Configuration menu
    Copy the full SHA
    41b934b View commit details
    Browse the repository at this point in the history
  5. Add COW version to the update_metadata.proto am: 3632df9 am: 2b10c92

    …am: 41b934b
    
    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1675042
    
    Change-Id: I6e9c12ec66295e0a502367c39430b5e0225df50a
    Akilesh Kailash authored and android-build-merge-worker-robot committed Apr 30, 2021
    Configuration menu
    Copy the full SHA
    ed7c272 View commit details
    Browse the repository at this point in the history
  6. Add COW version to the update_metadata.proto am: 3632df9 am: 2b10c92

    …am: 41b934b am: ed7c272
    
    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1675042
    
    Change-Id: I55e05ed7b78b2810b5f3d3102262407f5b2e80ec
    Akilesh Kailash authored and android-build-merge-worker-robot committed Apr 30, 2021
    Configuration menu
    Copy the full SHA
    f89de36 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2021

  1. Snap for 7328689 from ed7c272 to sc-v2-release

    Change-Id: Iacdf8a2dff55e0393946c286bbc972e367d4083b
    android-build-team Robot committed May 1, 2021
    Configuration menu
    Copy the full SHA
    52f17b4 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2021

  1. Rename postinstall_mount_device to readonly_target_path

    When postinstall_mount_device is initially introduced, it's only
    intended to be used by postinstall action, hence  the name. Now we plan
    to use it for fs verification purpose as well, rename for better
    clarity.
    
    Test: th
    
    Change-Id: Iff996f2f513bb44694e39d758a69851793b9a565
    zhangxp1998 committed May 5, 2021
    Configuration menu
    Copy the full SHA
    a9b5d8c View commit details
    Browse the repository at this point in the history

Commits on May 6, 2021

  1. Fix verity discarded bug

    If update_engine opens CowWriterFileDescriptor w/o writing anything,
    data past the resume label is readable while fd is open, but will
    be discarded once the fd is closed. Such "phantom read" causes
    inconsistency. This CL contains two changes to address the above bug:
    
    1. When device reboots after update, all I/O are served by snapuserd.
    update_engine should use snapuserd for verification to emulate bahvior
    of device after reboot.
    
    2. When a CowWriterFd is opened, don't call Finalize() if no verity is
    written. Since past-the-end data is discarded when we call Finalize()
    
    Test: th
    
    Bug: 186196758
    
    Change-Id: Ia1d31b671c16fded7319677fe0397f1288457201
    zhangxp1998 committed May 6, 2021
    Configuration menu
    Copy the full SHA
    9105f4b View commit details
    Browse the repository at this point in the history
  2. Create a minimal testcase to reproduce silent verity corruption

    b/186196758 is triggered by the following sequence of events:
    
    1. update_engine finish writing all install ops, emits kEndOfInstall
    label
    2. update_engine opens cow in append mode, invokes
    InitialiazeAppend(kEndOfInstall)
    3. update_engine writes verity data, invokes SnapshotWriter::Finalize()
    4. update_engine repeats step 2, but does not write any data after
    opening SnapshotWriter. Instead, it reads verity and make sure the hash
    matches what's specified in OTA payload.
    5. Reboot device, verity data corrupted, device rollback to slot _a.
    
    This is because, during step 4, when calling
    InitializeAppend(kEndOfInstall), the SnapshotWriter only reads up to the
    given label. But OpenReader() completely disregards the resume label and
    reads all ops. Therefore, update_engine sees the verity data, and
    determines that everything is fine. However, when calling
    SnapshotWriter::Finalize(), data after resume label are discarded,
    therefore verity data is gone.
    
    Test: th
    Bug: 186196758
    
    Change-Id: I0166271b64eb7b574434d617ce730f345ca93ff1
    zhangxp1998 committed May 6, 2021
    Configuration menu
    Copy the full SHA
    46d6c49 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6180c76 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e0042ab View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    27578a7 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2021

  1. Configuration menu
    Copy the full SHA
    0fe3e8f View commit details
    Browse the repository at this point in the history
  2. Fix verity discarded bug am: 9105f4b

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1686865
    
    Change-Id: I1fddd2c732e2e8c95c6b1142a85dae8d587101bf
    zhangxp1998 authored and android-build-merge-worker-robot committed May 7, 2021
    Configuration menu
    Copy the full SHA
    15242fd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c852a64 View commit details
    Browse the repository at this point in the history
  4. Fix verity discarded bug am: 9105f4b am: 15242fd

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1686865
    
    Change-Id: I763dabc5c8e66f2116a9e5630372a3488e1ceb03
    zhangxp1998 authored and android-build-merge-worker-robot committed May 7, 2021
    Configuration menu
    Copy the full SHA
    5465b60 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    74f3aef View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    70a2cda View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0f042c7 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7a311d0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d5bdc62 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2021

  1. Snap for 7347062 from 0f042c7 to sc-v2-release

    Change-Id: I3d2f29c40268c6026e37d93b8fedf4c805a6675e
    android-build-team Robot committed May 8, 2021
    Configuration menu
    Copy the full SHA
    866ccf0 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2021

  1. Add more unittest for fs verification VABC behavior

    Test: th
    Change-Id: I7db1874cffdacf93bbee8243dc45bb1bcc8b04ee
    zhangxp1998 committed May 11, 2021
    Configuration menu
    Copy the full SHA
    30486bd View commit details
    Browse the repository at this point in the history
  2. Add a case to cover repeatedelly running fs verification

    b/186196758 could be detected by keep running fs verification. The 2nd
    attempt will cause verity data to be discarded, but since data is still
    visible during the 2nd attempt, bug is only visible after device reboot,
    or running fs verification for the 3rd time.
    
    Bug: 186196758
    Test: th
    
    Change-Id: I7415665fa030b68acc3903499750702d8df5626e
    zhangxp1998 committed May 11, 2021
    Configuration menu
    Copy the full SHA
    81eb075 View commit details
    Browse the repository at this point in the history
  3. Refactor get partition path and IsVABC into separate function

    Test: th
    Change-Id: Ifb6efa1e63f5d5a047d18ac0876a1ecd860ba869
    zhangxp1998 committed May 11, 2021
    Configuration menu
    Copy the full SHA
    e012f65 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2021

  1. Configuration menu
    Copy the full SHA
    358b7f1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a083a4a View commit details
    Browse the repository at this point in the history
  3. Write verity first, then do fs verification

    Old behavior:
       Read partition, for each block:
        Update hasher
        Update verity writer
       before reading hashtree/verity:
        write hashtree/verity to disk
       Read the last verity blocks.
       Finalize hasher, verity hashes.
    
    The old bahvior tries to minimize fs read by only read once and feed
    data to hasher and verity writer. However, in VABC, reading/writing are
    handled very differently. Read can be done via regular fd, but writes
    must go through special COW API. As we have seen in b/186196758, using
    COW API in filesystem hashing can lead to inconsistent read and boot
    failure. Therefore, we've decided to write verity first using COW API,
    then read/hash partition using regular fd. This does mean that we need
    to read everything twice, but we think this is a worth while tradeoff.
    As verity writes can take 5 minutes, but reading the entire partition
    again only takes <10 seconds.
    
    New behavior:
        Read partition, for each block:
          Update verity writer
        Finalize verity writer, write verity to disk
        launch snapuserd, open a regular fd.
        Read partition, for each block:
          Update hasher
        Finaliaze hasher, verity hashes.
    
    Test: th
    Test: Manual testing on pixel of the following scenario:
            1. Verity enabled, VABC enabled, pause/resume multiple times
            2. Verity disabled, VABC enabled, pause/resume multiple times
            3. Verity Enabled, VABC enabled, pause/resume multiple times
    
    Bug: 186196758
    Change-Id: I2477c2dc4da5b921e84b48a54d0d8a877c1a52ef
    zhangxp1998 committed May 12, 2021
    Configuration menu
    Copy the full SHA
    8704c83 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e75db4f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5ac9a7d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e7dee68 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2021

  1. Configuration menu
    Copy the full SHA
    691ba04 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    55357fc View commit details
    Browse the repository at this point in the history
  3. ResetStatus if update_engine boot in different slot but same build

    Old behavior:
        When update_engine starts up after device take OTA and reboot, if
        device booted into a different build(check build fingerprint),
        ResetStatus().
    
    When we apply a self-ota, device will boot into the same build, so
    ResetStatus() is never called. If we apply the same OTA at this point,
    this OTA will be treated as a "resume", and will fail to install because
    we never call libsnapshot's API to allocate snapshot for new update.
    
    Changed to ResetStatus() if boot slot changed, or build fingerprint
    changed.
    
    Bug: 185019674
    Test: apply self-full OTA, reboot, repeat 2 times.
    Change-Id: Idcc29dc1c02f3b9b2c84ed1978abedb651a3875a
    zhangxp1998 committed May 13, 2021
    Configuration menu
    Copy the full SHA
    8660347 View commit details
    Browse the repository at this point in the history
  4. Fix some lint/style error

    Test: th
    Change-Id: I57a36f8f6254d3e57a4787f1a7d3cc3368bbd7a7
    zhangxp1998 committed May 13, 2021
    Configuration menu
    Copy the full SHA
    1d99ae1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5d4aeec View commit details
    Browse the repository at this point in the history
  6. Fix some lint/style error am: 1d99ae1

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1706025
    
    Change-Id: Ia9f5b7e89a9a27c6c4447aeae21fdb3a172a5eb2
    zhangxp1998 authored and android-build-merge-worker-robot committed May 13, 2021
    Configuration menu
    Copy the full SHA
    d9ff838 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    022e20e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    3c9703d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5dd1de1 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d121fd1 View commit details
    Browse the repository at this point in the history
  11. Fix some lint/style error am: 1d99ae1 am: d9ff838

    Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1706025
    
    Change-Id: I76acacf4ab3ab9c6645e4e02c6c13dd864d91591
    zhangxp1998 authored and android-build-merge-worker-robot committed May 13, 2021
    Configuration menu
    Copy the full SHA
    0a3e95f View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    3a4ca01 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    d2a1554 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    7c31449 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    f32b221 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    422e893 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    ba9b680 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    f62b297 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    d7c32b2 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    df4139c View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    08d0728 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2021

  1. Snap for 7360053 from 422e893 to sc-v2-release

    Change-Id: I11861c2f3b1d696354fab432c0eaf2256275b23c
    android-build-team Robot committed May 14, 2021
    Configuration menu
    Copy the full SHA
    4a54541 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2021

  1. Snap for 7362794 from 08d0728 to sc-v2-release

    Change-Id: Icd618b10c5f9343a69627ea673b481e3308a5545
    android-build-team Robot committed May 15, 2021
    Configuration menu
    Copy the full SHA
    4a04dcf View commit details
    Browse the repository at this point in the history

Commits on May 17, 2021

  1. Clean up reserved space for decompression when OTA cancelled

    OTA can terminate in the following ways:
    
    1) Before reboot, intentionally cancelled.
    2) Before reboot, failed due to error
    3) After reboot, failed due to error
    4) After reboot, success
    
    Cleaning up from ResetStatus should cover #1. For #2, there won't be
    automatic cleanup on failure, as sometimes we resume OTA from where it
    last failed. So user needs to explicitely call ResetStatus to clean up.
    for #2.
    
    Number #3 and #4 will be dealt in follow up cl.
    
    Bug: 172911822
    Test: Case #1: Intentionally cancel
      1. Allocated space:
         python3 update_device.py --allocate-only ota.zip
      2. Temp file deleted by:
         adb shell update_engine_client --reset_status
    
    Change-Id: Id6844e4ce4f248605b4a9ae07268dea55d629265
    Merged-In: Id6844e4ce4f248605b4a9ae07268dea55d629265
    (cherry picked from commit b5c07bf)
    Mohammad Samiul Islam committed May 17, 2021
    Configuration menu
    Copy the full SHA
    56ce23a View commit details
    Browse the repository at this point in the history

Commits on May 18, 2021

  1. Clean up reserved space for decompression when OTA cancelled am: 56ce23a

    
    
    Original change: https://googleplex-android-review.googlesource.com/c/platform/system/update_engine/+/14604456
    
    Change-Id: I7d63334ca0fa03a26d88b3c64f122d439d24ae3b
    Mohammad Samiul Islam authored and android-build-merge-worker-robot committed May 18, 2021
    Configuration menu
    Copy the full SHA
    eafc992 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2021

  1. Snap for 7374840 from eafc992 to sc-v2-release

    Change-Id: I4c6c158787798df274042954467a44ae04ec5c82
    android-build-team Robot committed May 19, 2021
    Configuration menu
    Copy the full SHA
    b4f005a View commit details
    Browse the repository at this point in the history

Commits on May 21, 2021

  1. Freeze AIDL APIs for SC

    Bug: 188713899
    Test: m
    Change-Id: I8d87d565a29adb4836ce83ceb02fd97c2739261c
    jiyongp committed May 21, 2021
    Configuration menu
    Copy the full SHA
    4ac16e5 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2021

  1. Freeze AIDL APIs for SC am: 4ac16e5

    Original change: https://googleplex-android-review.googlesource.com/c/platform/system/update_engine/+/14673218
    
    Change-Id: If495ca479636a575638bfa09f16f869d4f1614bd
    jiyongp authored and android-build-merge-worker-robot committed May 26, 2021
    Configuration menu
    Copy the full SHA
    3e9155a View commit details
    Browse the repository at this point in the history

Commits on May 27, 2021

  1. Snap for 7401515 from 3e9155a to sc-v2-release

    Change-Id: I5a279967ffe6b296b1ac6f76292650120e118d1d
    android-build-team Robot committed May 27, 2021
    Configuration menu
    Copy the full SHA
    2436de2 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2021

  1. Add ramdisk_available to init_first_stage's deps

    Bug: 187196593
    Test: boot
    Change-Id: I0a9ba90f0ae6f0b551e73d0a4361b8cf5d2c1e85
    Merged-In: I0a9ba90f0ae6f0b551e73d0a4361b8cf5d2c1e85
    iskim517 committed Jun 23, 2021
    Configuration menu
    Copy the full SHA
    7729c21 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2021

  1. Configuration menu
    Copy the full SHA
    fd83d01 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2021

  1. Snap for 7493928 from fd83d01 to sc-v2-release

    Change-Id: I5b3e1cdef5b180d754964c5b51d248d78763c2dd
    Android Build Coastguard Worker committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    bf164d5 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2021

  1. Revert "Add ramdisk_available to init_first_stage's deps"

    Revert "Add ramdisk_available to init_first_stage's deps"
    
    Revert "Add ramdisk_available to init_first_stage's deps"
    
    Revert "Add ramdisk_available to init_first_stage's deps"
    
    Revert "Add ramdisk_available to init_first_stage's deps"
    
    Revert "Add ramdisk_available to init_first_stage's deps"
    
    Revert "Add ramdisk_available to init_first_stage's deps"
    
    Revert "Add ramdisk_available to init_first_stage's deps"
    
    Revert "Completely migrate init first stage to Soong"
    
    Revert "Add ramdisk_available to init_first_stage's deps"
    
    Revert "Add ramdisk_available to init_first_stage's deps"
    
    Revert "Add ramdisk_available to init_first_stage's deps"
    
    Revert "Add ramdisk_available to init_first_stage's deps"
    
    Revert "Add ramdisk_available to init_first_stage's deps"
    
    Revert "Add ramdisk_available to init_first_stage's deps"
    
    Revert "Add ramdisk_available to init_first_stage's deps"
    
    Revert "Update init_first_stage"
    
    Revert "Add ramdisk_available to init_first_stage's deps"
    
    Revert "Add ramdisk_available to init_first_stage's deps"
    
    Revert "Add BOARD_BUILD_SYSTEM_ROOT_IMAGE to config vars"
    
    Revert "Add install_in_root to cc_binary"
    
    Revert "Add ramdisk_available to init_first_stage's deps"
    
    Revert submission 15071196-init_first_stage_soong
    
    Reason for revert: fixes b/192248690
    Reverted Changes:
    I23cf4f975:Add ramdisk_available to init_first_stage's deps
    Icd98c7e24:Add ramdisk_available to init_first_stage's deps
    If9da9ba16:Add ramdisk_available to init_first_stage's deps
    Ibc8668029:Add ramdisk_available to init_first_stage's deps
    I3b4b8c475:Add ramdisk_available to init_first_stage's deps
    I59cd149e0:Completely migrate init first stage to Soong
    I36d789578:Add ramdisk_available to init_first_stage's deps
    I2a0daa612:Add BUILD_USES_RECOVERY_AS_BOOT to soong config
    Ic76c325ce:Directly create ramdisk dirs in ramdisk image rule...
    I4c5374deb:Add BOARD_BUILD_SYSTEM_ROOT_IMAGE to config vars
    I8aab5faf3:Add ramdisk_available to init_first_stage's deps
    I9d5a10661:Add ramdisk_available to init_first_stage's deps
    Iaa2edeb4a:Add ramdisk_available to init_first_stage's deps
    I7cb582ca0:Update init_first_stage
    I06091d15e:Add ramdisk_available to init_first_stage's deps
    I8bdb8dda3:Add ramdisk_available to init_first_stage's deps
    I7436b8dd1:Add ramdisk_available to init_first_stage's deps
    I39693fd86:Add ramdisk_available to init_first_stage's deps
    I0a9ba90f0:Add ramdisk_available to init_first_stage's deps
    Ib66b4c4ea:Add ramdisk_available to init_first_stage's deps
    I31ce63d23:Add ramdisk_available to init_first_stage's deps
    Icb580f97c:Add ramdisk_available to init_first_stage's deps
    I044a075b7:Add ramdisk_available to init_first_stage's deps
    I33164a7e7:Fix ndk and aml arch order
    Ib8d92904a:Add ramdisk_available to sysprop_library
    Ibc3516453:Add install_in_root to cc_binary
    
    Change-Id: I7c7f5feaca6e8e78a3334932847da14e46e4f01a
    iskim517 committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    4bdbf0f View commit details
    Browse the repository at this point in the history
  2. Record the source build fingerprint in SnapshotMergeStats.

    This also adds a manual call to WriteState(). If update_engine crashes
    or the device reboots, it's possible that certain stats (such as the COW
    file stats) will be gone by the time the merge state is recovered.
    Forcing a write prevents this.
    
    Note that the write was previously implicit in set_cow_file_size, but is
    now explicit before calling InitiateMerge().
    
    Bug: 188909957
    Test: manual test
    Change-Id: I27cdc72272a9fa4ff5df4968e200fc14f63d0146
    Merged-In: I27cdc72272a9fa4ff5df4968e200fc14f63d0146
    dvandercorp committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    e2b8349 View commit details
    Browse the repository at this point in the history
  3. Report source and target build fingerprints in SNAPSHOT_MERGE_REPORTED.

    Bug: 188909957
    Test: manual test
    Change-Id: I108c20cf1e092478be2ae59701514f32d9b0a9f3
    Merged-In: I108c20cf1e092478be2ae59701514f32d9b0a9f3
    dvandercorp committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    cfd7c0f View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2021

  1. Configuration menu
    Copy the full SHA
    484c81a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    31c59b6 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2021

  1. Snap for 7521319 from 31c59b6 to sc-v2-release

    Change-Id: I42ea76ecaaeab7962b8e9af5d7d564b6d0b5ab7d
    Android Build Coastguard Worker committed Jul 3, 2021
    Configuration menu
    Copy the full SHA
    cbdd807 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2021

  1. Merge "Revert "Add ramdisk_available to init_first_stage's deps"" int…

    …o sc-dev
    TreeHugger Robot authored and Android (Google) Code Review committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    04206a9 View commit details
    Browse the repository at this point in the history
  2. Merge "Revert "Add ramdisk_available to init_first_stage's deps"" int…

    …o sc-dev am: 04206a9
    
    Original change: https://googleplex-android-review.googlesource.com/c/platform/system/update_engine/+/15167755
    
    Change-Id: I945e618f872acaa6b0c57efa1ba3942c6cc04187
    TreeHugger Robot authored and android-build-merge-worker-robot committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    7a3b279 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2021

  1. Snap for 7529132 from 7a3b279 to sc-v2-release

    Change-Id: I30d873a8bfdd5cb0996d575adf89975aa8a4ce56
    Android Build Coastguard Worker committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    9294946 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2021

  1. Don't check for FEC offset if fec is disabled

    Test: th
    Bug: 194661607
    Bug: 194779085
    
    Change-Id: I0e37136313914f1ee9a4eae0e5db59807adc7dc5
    Merged-In: I0e37136313914f1ee9a4eae0e5db59807adc7dc5
    zhangxp1998 committed Jul 27, 2021
    Configuration menu
    Copy the full SHA
    b5f0996 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2279c1f View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2021

  1. Snap for 7588529 from 2279c1f to sc-v2-release

    Change-Id: I4df8fea97335e94d5f43d571ddbac43ad7b99db6
    Android Build Coastguard Worker committed Jul 28, 2021
    Configuration menu
    Copy the full SHA
    3037e0e View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2021

  1. Consider .capex files as zip archives

    This reduces size of SP2A.210827.001-to-SP2A.210903.001.zip OTA
    package from 83MB to 66MB. Which is ~21% improvement.
    
    Tests: th
    Bug: 199920825
    
    (cherry picked from commit dc1f258)
    
    Change-Id: I10fa03401e5920c633c3ce5d6cf737489fecb6de
    Merged-In: I10fa03401e5920c633c3ce5d6cf737489fecb6de
    zhangxp1998 committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    6ac9005 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    67dd5dc View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2021

  1. Snap for 7736437 from 67dd5dc to sc-v2-release

    Change-Id: I2dcfdf37efd292a57585c0f5ab1861867beaacff
    Android Build Coastguard Worker committed Sep 15, 2021
    Configuration menu
    Copy the full SHA
    e7ba2a8 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2022

  1. Don't verify payload signatures in recovery

    Change-Id: I0ce626ef993c2a7c87e03f705ef2e866a3391db1
    aleasto authored and CaptainThrowback committed May 8, 2022
    Configuration menu
    Copy the full SHA
    9c60d1f View commit details
    Browse the repository at this point in the history
  2. delta_performer: skip build timestamp verification if ro.secure=0

    Change-Id: Ie450f500460fca282a78f338a4b50f55dceed450
    CaptainThrowback committed May 8, 2022
    Configuration menu
    Copy the full SHA
    263aec9 View commit details
    Browse the repository at this point in the history
  3. update_engine: fix progress display

    Change-Id: I19800c02cd4f26ae54c35a45ef8bc927459d5672
    chaosmaster authored and CaptainThrowback committed May 8, 2022
    Configuration menu
    Copy the full SHA
    d2258d9 View commit details
    Browse the repository at this point in the history
  4. utils.cc: remove kPayloadTimestampError check

    Change-Id: I894c680f5d179b715cd3e4330045d81a40f21732
    CaptainThrowback committed May 8, 2022
    Configuration menu
    Copy the full SHA
    5ad1ad4 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2022

  1. update_engine: Report warning if payload is unable to parse manifest …

    …in update file
    
    Change-Id: Icb48720791812afed7741eb02ab15176f60d7350
    (cherry picked from commit 70af8d5)
    micky387 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    e003ae5 View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2022

  1. force PrepareSnapshotPartitionsForUpdate to fail in recovery

    Change-Id: I89e80641a6154b5de4ecae6ccaf9b01cd73b0036
    nebrassy authored and CaptainThrowback committed Dec 2, 2022
    Configuration menu
    Copy the full SHA
    f283598 View commit details
    Browse the repository at this point in the history
  2. conditionally allow creating snapshots for incrementals

    Change-Id: I33e38472579a145bb6858963eed74d96ee7078a2
    nebrassy authored and CaptainThrowback committed Dec 2, 2022
    Configuration menu
    Copy the full SHA
    37a06f4 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2022

  1. update_engine: fix full payload zip installation

    These commits break full payload zip flashing on multiple devices
    
    ----------
    
    Revert "conditionally allow creating snapshots for incrementals"
    
    This reverts commit 37a06f4.
    
    Revert "force PrepareSnapshotPartitionsForUpdate to fail in recovery"
    
    This reverts commit f283598.
    
    Change-Id: Ic54d7d31082c9b7722cc1e7c30660deea00b0d5b
    CaptainThrowback committed Dec 21, 2022
    Configuration menu
    Copy the full SHA
    f56f725 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2023

  1. payload_consumer: increase max minor payload version

    Change-Id: I6d55638812cac29ea4d4cdd79b932a3f15c42b0a
    CaptainThrowback committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    fb0d3a5 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2023

  1. update_engine: remove incremental update check

    Allows incremental update zips to be installed on virtual AB devices
    
    Change-Id: I5b0115e50967cdacf47f13f5fc0107580ff52a7d
    CaptainThrowback authored and bigbiff committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    ea754dd View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2023

  1. Allow empty version on partial updates

    Change-Id: I96cc42fe22a460a0af834a30a335c3f190fc0e58
    TWINNFAMOUS committed Nov 24, 2023
    Configuration menu
    Copy the full SHA
    cdc4094 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2024

  1. update_engine: allow allocatable space to be overridden

    The override is needed in cases where update_engine erroneously concludes that there isn't sufficient space for dynamic partitions.
    
    This prevents some ROMs from being flashed. This patch allows the available space to be overridden, via a prop (ro.dynamic.full_size).
    
    In a typical situation where this problem occurs, you will see something like this in the recovery log:
    'update_engine_sideload E 12-17 04:06:00   809   809 [ERROR:dynamic_partition_control_android.cc(830)]
    The maximum size of all groups for the target slot (9126805504) has exceeded allocatable space for dynamic partitions 9125756928'
    
    So, update_engine has used a calculation of the allocatable space that doesn't match the actual available space.
    
    In this example, running "resetprop ro.dynamic.full_size 9126805504" via runatboot.sh or postrecoveryboot.sh will override the allocatable space and allow the ROM to flash.
    
    If the prop is used, the override will only be triggered if the value supplied is higher than the calculated allocatable space.
    
    If the prop is not used at all, then everything will carry on as normal.
    
    Change-Id: I25e69d416c3cd0c766901bed0119e74b4708fbca
    DarthJabba9 committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    3c67251 View commit details
    Browse the repository at this point in the history