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

@@ -37,9 +37,11 @@ local function update()
local update_file = io.open(new_update, "r")
if update_file ~= nil then
io.close(update_file)
A.showProgress()
if os.execute("tar xf " .. new_update) == 0 then
os.execute("mv " .. new_update .. " " .. installed)
end
A.dismissProgress()
end
end