android: backport logger from LK 3.8

Change-Id: I4c94ff5ee6864390f8e0668ba6343e80f9d535da
Signed-off-by: zwliew <zhaoweiliew@gmail.com>