aapt2: Fix deprecated proto API usage.

Bug: 203713560
Test: presubmit
Change-Id: Ie8bb2c010cff1c2e861918496290d1ef6dd6daef
2 files changed