mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[Android] OTA: Differentiate architectures (#4402)
This seems like a good thing to have. However, Android OTA seems to be broken due to some permission issue.
This commit is contained in:
@@ -44,8 +44,14 @@ local ota_channels = {
|
||||
nightly = _("Development"),
|
||||
}
|
||||
|
||||
-- "x86", "x64", "arm", "arm64", "ppc", "mips" or "mips64".
|
||||
local arch = jit.arch
|
||||
|
||||
function OTAManager:getOTAModel()
|
||||
if Device:isAndroid() then
|
||||
if arch == "x86" then
|
||||
return "android-x86"
|
||||
end
|
||||
return "android"
|
||||
elseif Device:isCervantes() then
|
||||
return "cervantes"
|
||||
|
||||
Reference in New Issue
Block a user