Simplify get/set custom metadata

Bug: 145171640
Test: compile & run
Change-Id: Ic395af2937e6f92744b08de2aed91c6fcb546e3f
1 file changed