commit | 3af8b53ae8cd70abaca17b7d9140ee12a14486b8 | [log] [tgz] |
---|---|---|
author | David Zeuthen <zeuthen@google.com> | Wed Sep 23 14:07:10 2015 -0400 |
committer | David Zeuthen <zeuthen@google.com> | Wed Sep 23 14:16:03 2015 -0400 |
tree | 03722d698f6f6e38ed165f31ec0ca094797507fa | |
parent | 34cee2b8a68c6df87b1abe4f2ef7957dc717044d [diff] |
boot_control_copy: Fix getCurrentSlot(). The getCurrentSlot() method wasn't returning the right value if setActiveBootSlot() was called with another slot since last reboot. Instead of peeking in the misc partition, just look at the dev_t for /system and compare it with the dev_t for system_a and system_b. Bug: 24201805 Change-Id: I601ab5e355e0f423637e6867d0afda97f68b57fd