- Flash a kernel that support lxc & docker.
- Install lxc & docker in termux app.
- Set your lxc container config
lxc.start.auto = 1. lxc-autostart&dockerdwill start automatically.
Modify scripts in the /data/adb/service.d to customize the behavior of the service.
- Modify
PASSWORDin /data/adb/service.d/locksettings-verify.sh to automatically decrypt /data partitions; - Modify
SETUP_DOCKER EXEC_DOCKERDin /data/adb/service.d/start-container.sh to customize the behavior of the docker service; - Modify
NO_START_STOPin /data/adb/service.d/auto-start-stop.sh to auto start/stop android system; - Copy & modify other scripts in /data/adb/service.d (copy from ./service.d by yourself) to customize the behavior of those service.