commit | eac16570926fd6b50e96f82b3049082fd6a0f68e | [log] [tgz] |
---|---|---|
author | Bowgo Tsai <bowgotsai@google.com> | Mon Feb 18 14:28:37 2019 +0800 |
committer | Bowgo Tsai <bowgotsai@google.com> | Thu Feb 21 10:32:18 2019 +0800 |
tree | ecac3fbfb5f987e8d0f5a5abbac3e4ada40183fa | |
parent | e4f42a0f09ff4afae26347b8ea087694651d1033 [diff] |
libfs_avb: support rollback protection for Live GSI This commit extracts the security patch level (SPL), e.g., com.android.build.system.security_patch = 2019-04-05 from AVB property descriptors when attempting to mount a standalone image (e.g., live GSI). Then compares the SPL between the old system.img and the new live system.img for rollback protection. Bug: 122705329 Test: boot an old Live GSI, checks rollback is detected Change-Id: I7aae58c0b2062a3ff57ed932ad58e7b604453fed