frameworks/base: TRDS some tweaks and fixes (1/2)