Revert "frameworks/base: Fix aliasing violations"

This reverts commit be8daafb8c914c0b0f5e6edb2598676fa96b42e5.