and use standrad Android API to query battery level and charging status This should fix #2025, fix #1759 and fix #1415.