guardianproject / lildebi

UNMAINTAINED please adopt! we can no longer maintain this
https://guardianproject.info/code
GNU General Public License v3.0
229 stars 55 forks source link

Let user customize Android mountponts to duplicate in chroot #71

Open Alexander-- opened 11 years ago

Alexander-- commented 11 years ago

Or, at very least, give an option to disable those completely. Current system is incomplete (no those .asec etc. mounts), but exactly because of this it is relatively sane (duplicating entries for every app on SD card easily makes output of mount unreadable mess. Still, there are at least 2 issues:

Fast fix: add checkbox in settings to disable cloning mountpoints from host system.

The best fix: add special screen to add/remove mountpoints to be created. Use list of currently existing mountpoints (from mount output, /proc/mounts or some other API) for candidates. See AdAway editor of hosts file sources for some UI inspiration.

eighthave commented 11 years ago

Since these mountpoints are only created at setup, you can remove them from your chroot, and then they will no longer be mounted. So the configuration that you desire is fully possible using the standard command line tools.

My aim is to make the whole process as transparent as possible, with as few configuration options as possible. Lil' Debi should create a chroot that feels as if your phone is running Debian in parallel with Android. That said, if someone wanted to make an "advanced options" screen that also included the screen that does what you describe, I could be convinced to accept it.