[MTE] Keep property and misc partition state synced

Bug: 245624194
Test: $ adb shell mtectrl memtag default
      $ adb shell mtectrl -s sys.testprop
      $ adb shell getprop sys.testprop
      memtag
      $ adb shell mtectrl memtag,memtag-kernel default
      $ adb shell mtectrl -s sys.testprop
      $ adb shell getprop sys.testprop
      memtag,memtag-kernel
      $ adb shell mtectrl -s sys.testprop memtag default
      $ adb shell getprop sys.testprop
      memtag
Test: boot and check arm64.memtag.bootctl
Test: flame:/ $ setprop arm64.memtag.bootctl memtag
      flame:/ $ getprop arm64.memtag.bootctl
      memtag
      flame:/ $ setprop persist.device_config.memory_safety_native.bootloader_override force_off
      flame:/ $ getprop arm64.memtag.bootctl
      memtag-off

Change-Id: Iac5fb49a10631a7f3300bedc477a2cfc1f583639
2 files changed