add support of screen brightness settings for Android

and use standrad Android API to query battery level and charging status
This should fix #2025, fix #1759 and fix #1415.
This commit is contained in:
chrox
2016-06-24 01:50:24 +08:00
parent f3732fd04d
commit 687b6df4f2
5 changed files with 14 additions and 4 deletions

View File

@@ -11,6 +11,7 @@ local Device = Generic:new{
hasKeys = yes,
hasDPad = no,
isAndroid = yes,
hasFrontlight = yes,
firmware_rev = "none",
display_dpi = ffi.C.AConfiguration_getDensity(android.app.config),
}