# Local APK Installer Web App

This app serves a browser UI at `http://localhost:5180` and uses ADB on the same Windows PC. It listens only on `127.0.0.1`, so other computers cannot access it.

It also acts as the secure local companion for `https://droidpirate.com/installapk`. Only that origin (and `www.droidpirate.com`) is allowed to call its API from a hosted webpage. APK data travels directly from the browser to localhost and then to the authorized phone; it is not uploaded to the website's servers.

## Run

1. Add Google's `adb.exe`, `AdbWinApi.dll`, and `AdbWinUsbApi.dll` to the `platform-tools` folder.
2. Enable Developer Options and USB debugging on the Android phone.
3. Connect and unlock the phone, then accept the USB debugging authorization prompt.
4. Run `Local APK Installer.exe`. Your browser opens automatically.
5. Select the phone and APK, then click **Install APK**.

Close the console window to stop the local server. APK uploads are stored only in a temporary local file and removed after installation.
