How casualsnek/waydroid_script works
Project type and purpose
• This is a command-line tool (“Waydroid Extras Script”) written in Python. It automates the installation of Google Apps (GApps), Magisk, ARM translation libraries, DRM components, and various “hacks” into a WayDroid container on a Linux host.
• It is not a client-server or web application; rather it is an extensible CLI utility that orchestrates downloads, filesystem operations, container manipulation and native-binary invocations to augment WayDroid environments.
File structure
• Top level:
• main.py – entry point; parses commands/flags.
• bin/ – prebuilt native binaries (resetprop for each CPU architecture).
• stuff/ – individual feature-module implementations (gapps.py, magisk.py, nodataperm.py, etc.).
• tools/ – low-level helpers (container management, image download/extraction, logging).
• assets/ – documentation images only.
• requirements.txt & default.nix – dependency definitions.
• Pattern: layered, plugin-style architecture:
• CLI layer (main.py + argparse).
• Feature layer (stuff/*) – each feature plugs into main.py.
• Utility layer (tools/*) – encapsulates OS/WayDroid/container operations.
• Native binaries under bin/ for privileged actions.
• No database or web services; interactions are with:
• Host OS (shell commands, filesystem, lzip).
• WayDroid container runtime.
• Remote download sources (OpenGApps, Magisk releases, etc.).
Readme insights
• Describes interactive and non-interactive modes.
• Lists commands: install, uninstall, hack, certified.
• Mentions external prerequisites: lzip, WayDroid, sudo.