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

APK Package Management #1715

Merged
26 commits merged into from
Aug 21, 2020
Merged

Conversation

imprakharshukla
Copy link

@imprakharshukla imprakharshukla commented Aug 15, 2020

This PR contains the implementation of APK management including downloading, installing, uninstalling and listing out the installed packages, according to the latest and recommended methods.

@ghost ghost changed the base branch from android-package-apks to android-10 August 16, 2020 19:33
@ghost ghost force-pushed the android-package-apks branch from 7fbebe2 to f71f6de Compare August 16, 2020 19:49
@ghost ghost changed the base branch from android-10 to android-package-apks August 16, 2020 19:51
@ghost ghost changed the base branch from android-package-apks to android-10 August 16, 2020 19:52
Leonid Pliushch added 2 commits August 16, 2020 23:55
I don't have write access to termux.net, so will use own server currently.
@ghost ghost force-pushed the android-package-apks branch from a1183cf to 6aad178 Compare August 16, 2020 20:55
@ghost ghost changed the base branch from android-10 to android-package-apks August 16, 2020 21:51
@ghost
Copy link

ghost commented Aug 16, 2020

I have applied some fixes, so now PR works for installing and uninstalling packages. However it has a one serious issue: you can't install more than one package per session. To install 2 or more packages in sequence, I have to force-close application after each installed apk with pkg add. Otherwise, apk installation dialog simply does not appear.

@ghost ghost changed the base branch from android-package-apks to android-10 August 16, 2020 23:07
* Updated the installation process to use PackageInstaller.
* Updated uninstalling with broadcasts to notify users.
* Removed all the third party libraries.
* Updated the installation process to use PackageInstaller.
* Updated uninstalling with broadcasts to notify users.
* Removed all the third party libraries.
@imprakharshukla
Copy link
Author

The mirror at https://staging.termux-mirror.ml/android-10/ might cause issues with download. It has been quite slow in my testing.

@imprakharshukla imprakharshukla changed the title Added ApkUtils.kt for APK package Management APK Package Management Aug 21, 2020
@ghost ghost mentioned this pull request Aug 21, 2020
4 tasks
@ghost ghost merged commit f6c3b6f into termux:android-10 Aug 21, 2020
Copy link

@ThoonsanEain ThoonsanEain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

time for me it would like

This pull request was closed.
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.

3 participants