Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support downloading and installing apps from fdroid #64

Merged
merged 20 commits into from
Oct 16, 2023

Conversation

axtloss
Copy link
Member

@axtloss axtloss commented Oct 10, 2023

Allows users to install apps from fdroid directly instead of having to download apks manually.

closes #45

Allows users to use the android install command to install local apks in the waydroid container
The index files from repositories will now be synced if:
- the already synced index is outdated (currently set to 1 week)
- the repo has not yet been synced

vso will also use the directory /etc/vso/fdroid.repos.d to know what repositories to use
Allows users to install packages from fdroid repos
currently selects the first match instead of letting the user pick which one to install in the case of multiple matches
Allows users to remove packages with vso android remove
currently automatically selects the first match, a prompt to select from multiple matches will come soon
adds a sync command that lets users force sync every repository configured
Adds a --local/-l flag to vso android install which allows users to specify a direct path to an apk and install it
Adds the relevant descriptions to locale/en.yml
vso asks the user if they want to proceed with the installation if a match has been found
install and remove will now prompt the user to select a package when multiple packages are found
Users are now able to update their applications using vso android update.
This also added a database of installed applications, which vso android remove now uses to fetch package information instead of relying on waydroid to list applications
Removes the function used to list applications from waydroid, since that has been replaced with the database
Makes vso android launch functional.
The app to be launched has to be the reverse domain name (e.g. org.fdroid.fdroid) as name->rdns resolution can be unreliable and cause issues
Changes the way PickOption functions to not print the entire list if a user gives wrong input
@axtloss
Copy link
Member Author

axtloss commented Oct 12, 2023

This should now be finished.
Every necessary feature (that I can think of) has been implemented.

One thing that we may want to discuss is the time period for syncing the repo Indexes, currently this is set to one week, meaning vso will automatically update the index if it is over a week old, we may want to make this period longer or shorter.

@axtloss axtloss marked this pull request as ready for review October 12, 2023 14:31
Allows users to run vso android info to get information about an application
Adds a function to clean the cache, can be used with vso android clean
@axtloss axtloss changed the title Draft: support downloading and installing apps from fdroid Support downloading and installing apps from fdroid Oct 14, 2023
@mirkobrombin mirkobrombin self-assigned this Oct 16, 2023
@mirkobrombin
Copy link
Member

IMO 1 week is good.

@axtloss axtloss merged commit 5c3141c into main Oct 16, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Waydroid support
2 participants