ooni.org icon indicating copy to clipboard operation
ooni.org copied to clipboard

Add direct link to OONI Probe app apk

Open hellais opened this issue 6 years ago • 13 comments

To overcome the fact that in some countries there is no Play Store.

We can possibly use a direct link to the f-droid apk or to the apk in the github release.

hellais avatar Aug 02 '19 16:08 hellais

Does F-Droid offer links that always point to the latest release? Github offers that but I fail to find built apks in the probe-android repo

thepigeonoftime avatar Sep 20 '19 13:09 thepigeonoftime

Yeah there is a link to the f-droid apk here: https://f-droid.org/en/packages/org.openobservatory.ooniprobe/.

I think am not sure how to get the latest one automatically though, maybe @eighthave knows if this is possible.

hellais avatar Sep 24 '19 11:09 hellais

there is a Setting to enable automatic updates

eighthave avatar Sep 24 '19 11:09 eighthave

@eighthave the question is if it's possible to get a direct link to the f-droid apk for the latest OONI Probe apk, something like: https://f-droid.org/repo/org.openobservatory.ooniprobe_LATEST.apk

hellais avatar Sep 24 '19 11:09 hellais

not currently, since we discourage direct downloads. It is much safer to install via F-Droid.

eighthave avatar Sep 24 '19 11:09 eighthave

@p1g30n I think we should address this by uploading the built apk to github releases then. I have filed this issue: https://github.com/ooni/probe-android/issues/261.

hellais avatar Sep 24 '19 11:09 hellais

not currently, since we discourage direct downloads. It is much safer to install via F-Droid.

Yes this is true, however we have heard this request from many users that they would like to be able to directly download the apk to install it as this will allow them to distribute the application also without internet connectivity.

hellais avatar Sep 24 '19 11:09 hellais

F-Droid has the "Nearby Swap" for that purpose. It also supports mirrors on USB thumb drives and SDCards.

eighthave avatar Sep 24 '19 11:09 eighthave

Right, though it requires that the user first installs f-droid and then the app, which adds some friction to the install process. It's probably a good idea to document somewhere this approach as the best practice, but we probably still want to offer also a simple direct apk download.

@eighthave is there a link to some f-droid documentation on how this feature works?

hellais avatar Sep 24 '19 11:09 hellais

https://f-droid.org/tutorials/swap/

eighthave avatar Sep 24 '19 11:09 eighthave

@hellais Using Github would also enable an easy way to display the latest version number on the ooni website using their release API. Maybe it's also possible to automate generating and displaying a sha256 hash for some basic means of verification. If that makes sense I'll add it to the new issue

thepigeonoftime avatar Sep 24 '19 12:09 thepigeonoftime

Seeing that built apks are now included in the android releases ( https://github.com/ooni/probe-android/releases/tag/v2.2.0 ) here is a propositional draft for displaying them on the ooni website: https://repl.it/repls/DullRoundTests

There seems to be no way to have a static link that always points to the latest apk, this approach is the best I can think of at the moment without having to add stuff server side.

thepigeonoftime avatar Oct 16 '19 19:10 thepigeonoftime

Seeing that built apks are now included in the android releases ( https://github.com/ooni/probe-android/releases/tag/v2.2.0 ) here is a propositional draft for displaying them on the ooni website: https://repl.it/repls/DullRoundTests

There seems to be no way to have a static link that always points to the latest apk, this approach is the best I can think of at the moment without having to add stuff server side.

Thinking about this more, solving it server side would probably be more elegant (and not rely on the user having Javascript enabled). I'm not familiar with probe-android's build process but maybe there's a way to add a build hook that always generates the link to the latest apk as a data template in Hugo?

thepigeonoftime avatar Dec 18 '19 17:12 thepigeonoftime