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 file built by buildozer is large in comparision to other apks #2473

Closed
ayuzzh opened this issue Jul 23, 2021 · 3 comments
Closed

Apk file built by buildozer is large in comparision to other apks #2473

ayuzzh opened this issue Jul 23, 2021 · 3 comments

Comments

@ayuzzh
Copy link

ayuzzh commented Jul 23, 2021

(Note: I am week in English so if any mistakes are found just ignore them.)

I have built some Android apps using Kivy Framework and I observed that the apk files are very large in size as compared to the apks built using Android Studio.
I know that Python is Interpreter language and requires Python Virtual machine to execute on any device.

For this problem I think I have found a solution i.e.,

  1. An app store would be created and all the apps written in Kivy Framework could be released in this App store. This app store creates a folder in "/sdcard" as "/sdcard/.kivy" and in that folder all the standard libraries and python interpreter will be compiled and stored . As all libraries and python is already present. there is no need pack apks with Python libraries.
  2. If the app is installed in a device where the kivy app store not installed. Then the app should download the libraries and place them in the folder "/sdcard/.kivy" so that other Kivy apps could use the same.
@tshirtman
Copy link
Member

I understand why you would want that, but i don't think it's a realistic idea.
Making kivy app non standards and installed in a different way would limit the ability of users to install them
Sharing the python interpreter and libraries between applications would mean they all need to use the same version of all the libraries, as an app updating the libraries would potentially break other apps. This would contrain apps to old version of libraries forever.
Being less integrated in the system, kivy apps would be easily broken by system updates when android decide to restrict access to sdcard for security reasons, i'm not even sure you can load a library from the sdcard currently, as this would be a bad practice for security reasons.

@ayuzzh
Copy link
Author

ayuzzh commented Jul 24, 2021

I have not thought that there would be these much limitations.
Thanks for your such a early reply.

Do you have any other idea to reduce the size of my app...

@tshirtman tshirtman transferred this issue from kivy/kivy Jul 24, 2021
@misl6
Copy link
Member

misl6 commented Apr 6, 2022

Duplicated of #202

@misl6 misl6 closed this as completed Apr 6, 2022
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

No branches or pull requests

3 participants