resolve merge conflicts of a71003d to nyc-mr2-dev-plus-aosp

Test: Android compiles.
Change-Id: Ifa47225939dc6f59890b5c5fd1584547c09605a6