I write Java backstage. When the Android client detects an update, I give my colleague on the Android side a connection. How can he download apk through this?
You can do an API to detect updates and pass the update address in the returned results. Put the APK generated by client development into the static file directory, and let Nginx or Apache handle HTTP downloads. It is not necessary to process Apk file itself through Java. If you need access rights or something like that, you can use sendfile to send the file after detecting the file. It is also not necessary to process Apk file with Java.