frameworks/base: Fix aliasing violations 1/3