fix battery sensing on API 19