The Capacitor 243,123 documentation states the rule plainly: Capacitor "considers each platform project a source asset instead of a build time asset." npx cap add android writes android/ once; from then on it is your code, like src/, and the CLI rewrites only a short, fixed list of files inside it.
The examples continue the Vite-built BookNest from CLI and Workflow (Capacitor 8.5.2, JDK 21) in a Git 1,932 repository whose first commit is the output of cap add android.