The package android-permissions integrates the Android permissions into a Debian chroot running on Android. Android permissions are implemented in Android's Linux kernel using UIDs and GIDs. Therefore, this package should only ever run on a Debian chroot running with an Android kernel. It adds all of the hard-coded users and groups to Debian. It should also modify things like GID_MAX or LAST_GID in /etc/login.defs and /etc/adduser.conf to reflect the hard-coded Android UIDs and GIDs.
One idea for a solution was to make a debootstrap variant, but I'm not sure that cdebootstrap supports that. The idea is rather than having the package do these changes directly, it provides a script that does the changes to a specified root directory. Then this script is run as part of the variant. Another idea is to create /etc/login.defs.d and /etc/adduser.conf.d so that packages can add definitions there. I'm not sure yet whether either approach is good.
signature.asc
Description: OpenPGP digital signature