diff --git a/README.md b/README.md index 751f22f..b4a95b0 100644 --- a/README.md +++ b/README.md @@ -145,15 +145,18 @@ Open that link in any phone's browser on the same LAN and install it, or scan `docs/download-qr.png`. The source lives at http://192.168.123.18:3001/umbragit/AndPictures -### Serving the APK over the LAN +**If the browser says the site can't be reached** (Chrome's +`ERR_LOCAL_NETWORK_PERMISSION_MISSING`): Android 16 and newer block apps from +reaching LAN addresses unless the app holds the *local network* / "Nearby devices" +permission. Tap **Allow** when the browser asks to "find, connect to, and determine +the relative position of nearby devices" (if it was denied earlier, re-enable it +under *Settings -> Apps -> Chrome -> Permissions -> Nearby devices*), then open the +link again. Chrome also warns "File might be harmful" for a direct APK download - +choose **Download anyway**. -```bash -cd app/build/outputs/apk/release -python3 -m http.server 8080 -# on the phone's browser: http://:8080/app-release.apk -``` +### Installing -Download it in the phone's browser, open it, and allow installs for the browser. +Download the APK in the phone's browser, open it, and allow installs for the browser. Note: switching a device from the **debug** build to the **release** build requires uninstalling the debug app first (they are signed with different keys), which also