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

Show space available on /system #50

Open
mfonville opened this issue Dec 16, 2016 · 4 comments
Open

Show space available on /system #50

mfonville opened this issue Dec 16, 2016 · 4 comments
Milestone

Comments

@mfonville
Copy link
Member

Not every user knows how large their /system partition is.

We could indicate the current space used and available on /system just like Android itself can show about disk-usage.

UI:

  • a multi-colored bar that indicates 3 types: used by ROM + used by GApps + free
  • maybe (tooltip) text with human readable size info

Backend:

  • fetch partition size, used space and free space of /system/
  • check existence of /system/etc/g.prop if it exists and indicates with prop-values that Open GApps installed, check for /system/addon.d/70-gapps.sh and collect the filepaths listed in list_files.
  • calculate the total filesize of these GApps-related files
  • total used space minus these GApps filesize => used by ROM size
@mfonville mfonville added this to the 1.2 milestone Dec 16, 2016
@NatoBoram
Copy link

NatoBoram commented Dec 20, 2016

By detecting the available storage, the .APK can automatically select the largest possible package variant to install and mark it as detected if no other OpenGApps are already installed.

@mfonville
Copy link
Member Author

@NatoBoram unfortunately we cannot predict from the app (yet) how large the install would be; because we don't know which dpi-variants will be installed each for each app, or whether the user uses a gapps-config file.

@NatoBoram
Copy link

It is possible to get the DPI using DisplayMetrics, and it is safe to assume that the user will not use a gapps-config file if it doesn't know the size of its own /system partition. I think you can do it :)

@Revan335
Copy link

This was a interesting Information.
Any actually Status?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants