fdroidserver.install module¶
- fdroidserver.install.devices()¶
Get the list of device serials for use with adb commands.
- fdroidserver.install.download_apk(appid='org.fdroid.fdroid', privacy_mode=False)¶
Download an APK from F-Droid via the first mirror that works.
- fdroidserver.install.download_fdroid_apk(privacy_mode=False)¶
Directly download the current F-Droid APK and verify it.
This downloads the “download button” link, which is the version that is best tested for new installs.
- fdroidserver.install.download_fdroid_apk_from_github(privacy_mode=False)¶
Download F-Droid.apk from F-Droid’s GitHub Releases.
- fdroidserver.install.download_fdroid_apk_from_ipns(privacy_mode=False)¶
Download the F-Droid APK from an IPNS repo.
- fdroidserver.install.download_fdroid_apk_from_maven(privacy_mode=False)¶
Download F-Droid.apk from Maven Central and official mirrors.
- fdroidserver.install.install_apk(f)¶
- fdroidserver.install.install_apks_to_devices(apks)¶
Install the list of APKs to all Android devices reported by adb devices.
- fdroidserver.install.install_fdroid_apk(privacy_mode=False)¶
Download and install F-Droid.apk using all tricks we can muster.
By default, this first tries to fetch the official install APK which is offered when someone clicks the “download” button on https://f-droid.org/. Then it will try all the mirrors and methods until it gets something successful, or runs out of options.
There is privacy_mode which tries to download from mirrors first, so that this downloads from a mirror that has many different kinds of files available, thereby breaking the clear link to F-Droid.
- Returns:
- None for success or the error message.
- fdroidserver.install.main()¶
- fdroidserver.install.prompt_user(yes, msg)¶
Prompt user for yes/no, supporting Enter and Esc as accepted answers.
- fdroidserver.install.read_char()¶
Read input from the terminal prompt one char at a time.
- fdroidserver.install.strtobool(val)¶
Convert a localized string representation of truth to True or False.