avbtool: Add --print_required_libavb_version option. am: 1097a78e50 am: 62768ff810 am: f917f7ebb2
am: b60c0f926d

Change-Id: I3aee42e77777886e75a4ac560e83cca1e2ae4ad4
diff --git a/avbtool b/avbtool
index 75bae27..b742acc 100755
--- a/avbtool
+++ b/avbtool
@@ -2271,7 +2271,7 @@
     c += ' {}'.format(str(ht.salt).encode('hex'))  # salt
     if ht.fec_num_roots > 0:
       c += ' 10'  # number of optional args
-      c += ' $(ANDROID_VERITY_MODE)'
+      c += ' restart_on_corruption'
       c += ' ignore_zero_blocks'
       c += ' use_fec_from_device PARTUUID=$(ANDROID_SYSTEM_PARTUUID)'
       c += ' fec_roots {}'.format(ht.fec_num_roots)
@@ -2282,7 +2282,7 @@
       c += ' fec_start {}'.format(ht.fec_offset/ht.data_block_size)
     else:
       c += ' 2'  # number of optional args
-      c += ' $(ANDROID_VERITY_MODE)'
+      c += ' restart_on_corruption'
       c += ' ignore_zero_blocks'
     c += '" root=/dev/dm-0'