Revert "frameworks/base: Fix aliasing violations"

This reverts commit ecdfbfe9f4240da938d5b8d587ed85f6970dd652.