Add support for "persist" option

Add support for supporting a "persist" option. When true
this option witll set bit 0 of the partition table entry
flags to 1. This indicates to the bootloader that it should
not be deleted during fastboot operations.

TEST: Added unittests
BUG: 72233168
Change-Id: I7ef9ca2795c81bfa68a803334dc1e1e30e66c7ac
20 files changed
tree: e3fb7c085161e3c6d7fda74cbd3317df99f2d18e
  1. test/
  2. Android.mk
  3. bpt_test
  4. bpt_unittest.py
  5. bpttool
  6. README