Custom OTA server HOWTO: missing android_version

I have followed the [HOWTO] Create your custom OTA server and set up my own server through docker. This works fine. But when I try to update my device, I see the following error (through adb logcat):

01-24 13:50:27.807  2981  2981 D UpdatesActivity: Adding remote updates
01-24 13:50:27.808  2981  2981 E Utils   : Could not parse update object, index=0
01-24 13:50:27.808  2981  2981 E Utils   : org.json.JSONException: No value for android_version
01-24 13:50:27.808  2981  2981 E Utils   : 	at org.json.JSONObject.get(JSONObject.java:398)
01-24 13:50:27.808  2981  2981 E Utils   : 	at org.json.JSONObject.getString(JSONObject.java:559)
01-24 13:50:27.808  2981  2981 E Utils   : 	at org.lineageos.updater.misc.Utils.parseJsonUpdate(Utils.java:125)
01-24 13:50:27.808  2981  2981 E Utils   : 	at org.lineageos.updater.misc.Utils.parseJson(Utils.java:234)
01-24 13:50:27.808  2981  2981 E Utils   : 	at org.lineageos.updater.UpdatesActivity.loadUpdatesList(UpdatesActivity.java:379)
01-24 13:50:27.808  2981  2981 E Utils   : 	at org.lineageos.updater.UpdatesActivity.getUpdatesList(UpdatesActivity.java:414)
01-24 13:50:27.808  2981  2981 E Utils   : 	at org.lineageos.updater.UpdatesActivity.-$$Nest$mgetUpdatesList(Unknown Source:0)
01-24 13:50:27.808  2981  2981 E Utils   : 	at org.lineageos.updater.UpdatesActivity$3.onServiceConnected(UpdatesActivity.java:362)
01-24 13:50:27.808  2981  2981 E Utils   : 	at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:2188)
01-24 13:50:27.808  2981  2981 E Utils   : 	at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:2221)
01-24 13:50:27.808  2981  2981 E Utils   : 	at android.os.Handler.handleCallback(Handler.java:942)
01-24 13:50:27.808  2981  2981 E Utils   : 	at android.os.Handler.dispatchMessage(Handler.java:99)
01-24 13:50:27.808  2981  2981 E Utils   : 	at android.os.Looper.loopOnce(Looper.java:201)
01-24 13:50:27.808  2981  2981 E Utils   : 	at android.os.Looper.loop(Looper.java:288)
01-24 13:50:27.808  2981  2981 E Utils   : 	at android.app.ActivityThread.main(ActivityThread.java:7924)
01-24 13:50:27.808  2981  2981 E Utils   : 	at java.lang.reflect.Method.invoke(Native Method)
01-24 13:50:27.808  2981  2981 E Utils   : 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
01-24 13:50:27.808  2981  2981 E Utils   : 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)

The expected android_version seems to be missing. Looking at the repo https://github.com/julianxhokaxhiu/LineageOTA , the android_version field doesn’t seem to be returned anywhere (on branch 2.0).

I also had a look at this repo: https://gitlab.e.foundation/e/infra/LineageOTA
where indeed the android_version can be seen, but the server behaves differently and doesn’t pick up my build zips.

Am I missing something?

Regain your privacy! Adopt /e/ the unGoogled mobile OS and online servicesphone

At first, you may take a look at your Docker container logs: https://docs.docker.com/engine/reference/commandline/container_logs/.

Thank you @smu44

Just to confirm, is the [HOWTO] Create your custom OTA server up to date?

Not sure, seems pretty outdated to me :confused:

1 Like