diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index b9f5437..fd4b3bf 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -19,7 +19,7 @@ - `browser/` is the Python edition (FastAPI); `standalone/` is the Rust edition (axum, native window). Backend behaviour must stay the same in both: port every API or engine change to the other edition, with tests. - `assets/icon/source.jpg` is the original icon artwork. Never edit it; `assets/icon/make_icons.py` regenerates every icon file from it. - `docs/screenshots/capture.js` makes the README screenshots with the default look (Graphite theme, dark OpenFreeMap map). -- `website/` is the showcase site (Vite + React, on Vercel at https://idevbench.vercel.app from `main`, https://iphone-spoofer-dev.vercel.app from `dev`; root directory `website`). It renders TERMS.md, PRIVACY.md, LICENSE, THIRD_PARTY_NOTICES.md and CHANGELOG.md as its pages and reads release versions live, so keep those files as the source of truth; the app links to those pages. The video at the top of the site is made by `website/scripts/showreel/` (record the real app frame by frame, then `edit.cjs` cuts it; see `website/README.md`). `website/src/sim/engine.js` is a compact port of the speed engine for its demo: when the cornering or acceleration constants change in the app, update it too and run `cd website && npm test`. Pushes that only touch `website/` don't publish test builds. +- `website/` is the showcase site (Vite + React, on Vercel at https://idevbench.vercel.app from `main`, https://idevbench-dev.vercel.app from `dev`; root directory `website`). It renders TERMS.md, PRIVACY.md, LICENSE, THIRD_PARTY_NOTICES.md and CHANGELOG.md as its pages and reads release versions live, so keep those files as the source of truth; the app links to those pages. The video at the top of the site is made by `website/scripts/showreel/` (record the real app frame by frame, then `edit.cjs` cuts it; see `website/README.md`). `website/src/sim/engine.js` is a compact port of the speed engine for its demo: when the cornering or acceleration constants change in the app, update it too and run `cd website && npm test`. Pushes that only touch `website/` don't publish test builds. ## Checks before pushing @@ -33,4 +33,4 @@ The Rust GUI code also needs to compile for Windows (`cargo check --target x86_6 ## Audience and licence - The README, CHANGELOG, release notes, Terms, Privacy Policy and in-app text are for everyday users: plain language, no build details or internal branch names. Developer material goes in CONTRIBUTING.md. -- Everything except `browser/` is under the Location Spoofer License (`LICENSE`, all rights reserved). `browser/` is GPL-3.0-or-later with section 7 attribution terms (`browser/NOTICE`) because it bundles GPL libraries. Don't add open-source licence headers or change these licences. +- Everything except `browser/` is under the MIT License (`LICENSE`). `browser/` is GPL-3.0-or-later with section 7 attribution terms (`browser/NOTICE`) because it bundles GPL libraries. The standalone app must not become GPL: it ships FDK AAC, whose licence is GPL-incompatible. Don't change these licences without the owner asking. diff --git a/.github/release-notes/browser.md b/.github/release-notes/browser.md index 05c797b..d993b5e 100644 --- a/.github/release-notes/browser.md +++ b/.github/release-notes/browser.md @@ -2,15 +2,15 @@ ### Install 1. Install [**Apple Devices**](https://apps.microsoft.com/detail/9np83lwlpz9k) from the Microsoft Store (free, made by Apple; iTunes also works). -2. Download **`LocationSpooferBrowser.exe`** below and save it in a folder you own. +2. Download **`iDevBenchBrowser.exe`** below (`LocationSpooferBrowser.exe` is the same file under its old name, for copies installed before the rename) and save it in a folder you own. 3. Run it. A console window opens (closing it quits the app) and the app opens in your web browser. If Windows shows "Windows protected your PC", choose **More info → Run anyway**. Already installed? The app updates itself; press **Restart now** when it offers. ### What's new -See the [changelog](https://github.com/YK3D/iPhone-location-spoofer/blob/{BRANCH}/CHANGELOG.md). +See the [changelog](https://github.com/YK3D/iDevBench/blob/{BRANCH}/CHANGELOG.md). ### Verify the download SHA-256: `{SHA}` -By using the app you agree to the [Terms of Use](https://github.com/YK3D/iPhone-location-spoofer/blob/main/TERMS.md). [Privacy Policy](https://github.com/YK3D/iPhone-location-spoofer/blob/main/PRIVACY.md) · GPL-3.0-or-later with attribution terms ([NOTICE](https://github.com/YK3D/iPhone-location-spoofer/blob/main/browser/NOTICE)) · © YK3D · Not affiliated with Apple or Google. +By using the app you agree to the [Terms of Use](https://github.com/YK3D/iDevBench/blob/main/TERMS.md). [Privacy Policy](https://github.com/YK3D/iDevBench/blob/main/PRIVACY.md) · GPL-3.0-or-later with attribution terms ([NOTICE](https://github.com/YK3D/iDevBench/blob/main/browser/NOTICE)) · © YK3D · Not affiliated with Apple or Google. diff --git a/.github/release-notes/standalone.md b/.github/release-notes/standalone.md index 2948ca8..f8f1546 100644 --- a/.github/release-notes/standalone.md +++ b/.github/release-notes/standalone.md @@ -2,7 +2,7 @@ ### Install 1. Install [**Apple Devices**](https://apps.microsoft.com/detail/9np83lwlpz9k) from the Microsoft Store (free, made by Apple; iTunes also works). -2. Download **`LocationSpooferStandalone.exe`** below and save it in a folder you own (for example Desktop or Documents). +2. Download **`iDevBench.exe`** below (`LocationSpooferStandalone.exe` is the same file under its old name, for copies installed before the rename) and save it in a folder you own (for example Desktop or Documents). 3. Run it. If Windows shows "Windows protected your PC", choose **More info → Run anyway** (the app is not code-signed yet). 4. Follow the setup guide that opens on first run. @@ -11,9 +11,9 @@ Already installed? The app updates itself; press **Restart now** when it offers. Requires Windows 10/11 (64-bit) with the Microsoft Edge WebView2 Runtime (built into Windows 11). ### What's new -See the [changelog](https://github.com/YK3D/iPhone-location-spoofer/blob/{BRANCH}/CHANGELOG.md). +See the [changelog](https://github.com/YK3D/iDevBench/blob/{BRANCH}/CHANGELOG.md). ### Verify the download SHA-256: `{SHA}` -By using the app you agree to the [Terms of Use](https://github.com/YK3D/iPhone-location-spoofer/blob/main/TERMS.md). [Privacy Policy](https://github.com/YK3D/iPhone-location-spoofer/blob/main/PRIVACY.md) · [Location Spoofer License](https://github.com/YK3D/iPhone-location-spoofer/blob/main/LICENSE) · © YK3D · Not affiliated with Apple or Google. +By using the app you agree to the [Terms of Use](https://github.com/YK3D/iDevBench/blob/main/TERMS.md). [Privacy Policy](https://github.com/YK3D/iDevBench/blob/main/PRIVACY.md) · [Location Spoofer License](https://github.com/YK3D/iDevBench/blob/main/LICENSE) · © YK3D · Not affiliated with Apple or Google. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 42e6ad2..92bdafa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -81,9 +81,12 @@ jobs: shell: pwsh run: | New-Item -ItemType Directory -Force dist | Out-Null - Copy-Item standalone\target\release\location-spoofer.exe dist\LocationSpooferStandalone.exe - $h = (Get-FileHash dist\LocationSpooferStandalone.exe -Algorithm SHA256).Hash.ToLower() - [IO.File]::WriteAllText("dist\LocationSpooferStandalone.exe.sha256", "$h LocationSpooferStandalone.exe") + # shortcut: the old name is a copy for copies installed before the rename (they update by that name); drop it a few releases on. + foreach ($n in "iDevBench.exe", "LocationSpooferStandalone.exe") { + Copy-Item standalone\target\release\location-spoofer.exe dist\$n + $h = (Get-FileHash dist\$n -Algorithm SHA256).Hash.ToLower() + [IO.File]::WriteAllText("dist\$n.sha256", "$h $n") + } - uses: actions/upload-artifact@v4 with: name: standalone @@ -106,16 +109,19 @@ jobs: run: python browser/packaging/build_exe.py --version $env:BROWSER_VERSION - name: Self-test run: | - browser\dist\LocationSpooferBrowser.exe --version - browser\dist\LocationSpooferBrowser.exe --self-test + browser\dist\iDevBenchBrowser.exe --version + browser\dist\iDevBenchBrowser.exe --self-test if ($LASTEXITCODE -ne 0) { exit 1 } - name: Package shell: pwsh run: | New-Item -ItemType Directory -Force dist | Out-Null - Copy-Item browser\dist\LocationSpooferBrowser.exe dist\LocationSpooferBrowser.exe - $h = (Get-FileHash dist\LocationSpooferBrowser.exe -Algorithm SHA256).Hash.ToLower() - [IO.File]::WriteAllText("dist\LocationSpooferBrowser.exe.sha256", "$h LocationSpooferBrowser.exe") + # shortcut: the old name is a copy for copies installed before the rename (they update by that name); drop it a few releases on. + foreach ($n in "iDevBenchBrowser.exe", "LocationSpooferBrowser.exe") { + Copy-Item browser\dist\iDevBenchBrowser.exe dist\$n + $h = (Get-FileHash dist\$n -Algorithm SHA256).Hash.ToLower() + [IO.File]::WriteAllText("dist\$n.sha256", "$h $n") + } - uses: actions/upload-artifact@v4 with: name: browser @@ -147,11 +153,11 @@ jobs: sed -e "s|{VERSION}|$2|g" -e "s|{SHA}|$3|g" -e "s|{BRANCH}|$BRANCH|g" -e "s|{CHANNEL_NOTE}|$NOTE|g" ".github/release-notes/$1.md" } # Browser edition first, so the standalone release ends up as the repository's latest. - BR_SHA=$(cut -d' ' -f1 dist/browser/LocationSpooferBrowser.exe.sha256) + BR_SHA=$(cut -d' ' -f1 dist/browser/iDevBenchBrowser.exe.sha256) render browser "$BROWSER_VERSION$LABEL" "$BR_SHA" > notes-browser.md - gh release create "browser-v$BROWSER_VERSION$SUFFIX" dist/browser/LocationSpooferBrowser.exe dist/browser/LocationSpooferBrowser.exe.sha256 \ + gh release create "browser-v$BROWSER_VERSION$SUFFIX" dist/browser/iDevBenchBrowser.exe dist/browser/iDevBenchBrowser.exe.sha256 dist/browser/LocationSpooferBrowser.exe dist/browser/LocationSpooferBrowser.exe.sha256 \ --title "iDevBench Browser Edition $BROWSER_VERSION$LABEL" --notes-file notes-browser.md --target "$GITHUB_SHA" $FLAGS_BR - SA_SHA=$(cut -d' ' -f1 dist/standalone/LocationSpooferStandalone.exe.sha256) + SA_SHA=$(cut -d' ' -f1 dist/standalone/iDevBench.exe.sha256) render standalone "$STANDALONE_VERSION$LABEL" "$SA_SHA" > notes-standalone.md - gh release create "standalone-v$STANDALONE_VERSION$SUFFIX" dist/standalone/LocationSpooferStandalone.exe dist/standalone/LocationSpooferStandalone.exe.sha256 \ + gh release create "standalone-v$STANDALONE_VERSION$SUFFIX" dist/standalone/iDevBench.exe dist/standalone/iDevBench.exe.sha256 dist/standalone/LocationSpooferStandalone.exe dist/standalone/LocationSpooferStandalone.exe.sha256 \ --title "iDevBench $STANDALONE_VERSION$LABEL" --notes-file notes-standalone.md --target "$GITHUB_SHA" $FLAGS_SA diff --git a/CHANGELOG.md b/CHANGELOG.md index 06eb972..ebeac31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ # Changelog Releases are published separately for the two editions: -[standalone app](https://github.com/YK3D/iPhone-location-spoofer/releases?q=standalone&expanded=true) (`standalone-v…`) and -[browser edition](https://github.com/YK3D/iPhone-location-spoofer/releases?q=browser&expanded=true) (`browser-v…`). +[standalone app](https://github.com/YK3D/iDevBench/releases?q=standalone&expanded=true) (`standalone-v…`) and +[browser edition](https://github.com/YK3D/iDevBench/releases?q=browser&expanded=true) (`browser-v…`). Test builds from the `dev` branch are marked as pre-releases. ## Unreleased (dev) @@ -12,6 +12,12 @@ Test builds from the `dev` branch are marked as pre-releases. - Wi-Fi connections: *Device tools › Connect over* (Automatic, USB cable only, Wi-Fi only) and *Allow Wi-Fi connection*, which turns on the phone's "Show this iPhone when on Wi-Fi" setting. The device list shows how each phone can be reached (USB, Wi-Fi, or both). In the browser version, a second iOS 17+ phone or an iOS 17+ phone over Wi-Fi needs the tunnel helper. Bluetooth isn't possible. ### New +- **Open source:** iDevBench is now under the MIT License (the browser edition stays GPL v3 or later). The repository is now [YK3D/iDevBench](https://github.com/YK3D/iDevBench). +- **New file names:** the downloads are now `iDevBench.exe` and `iDevBenchBrowser.exe`. Copies installed under the old names keep updating. +- The setup guide has a step for screen mirroring. +- Fixed: the default map stayed blank while OpenFreeMap serves its backup map. +- Fixed: when you started moving with the joystick, the position on the map could stay still for up to 2 seconds. +- Fixed: in the Mirroring section, a hidden side menu could not be shown again. The phone shown before the picture arrives is now in shades of grey, with its side buttons where an iPhone has them. - **Screen mirroring (iOS 27 and newer):** the iPhone's screen in its own *Mirroring* section (switch at the top of the side menu), over the USB cable. Click to tap, drag to swipe, scroll with the mouse wheel, Ctrl + wheel or a trackpad pinch to zoom, right-click for Home, and type from your keyboard (Ctrl works as ⌘). Buttons next to the screen press Home, Lock, Volume, Mute and Siri and do the app switcher, Control Centre, notifications and Back gestures. Over the screen the pointer is a small dot that dips when you click, and swipes leave a faint trail. The phone's name and iOS version are shown above it, and an iPhone home screen stands in until the picture arrives. The picture turns when the phone does (or with *Rotate*). The standalone app also plays the iPhone's sound. Save screenshots, or record the screen with its sound as a video, to Downloads or a folder chosen with *Browse* in *Settings › Mirroring*. *Stats* shows the stream's frame rate, data rate and delay, and the iPhone's CPU, memory, GPU, battery and temperature. A frozen picture restarts by itself after a few seconds, or at once with *Restart stream*. - **Local API:** other programs on your computer can set the location, watch the screen, tap, swipe and type through the app while it is open (websites can't). See [docs/API.md](docs/API.md). - **AI agents:** iDevBench is an MCP server, so Claude, Codex, Cursor and other AI apps can use the phone through it: see and control the screen, set the location, drive routes, play tracks and use the joystick. Setting it up is one prompt to paste into the agent (*Settings › AI agents*), or one button for Claude Desktop; there is also a Claude Code plugin. The agent gets a guide on how to use the phone, and only enters the passcode if you ask it to and give it the passcode. See [docs/API.md](docs/API.md#ai-agents-mcp). diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5737c41..e4df4e3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,10 +1,10 @@ # Contributing -Bug reports and ideas are welcome as [GitHub issues](https://github.com/YK3D/iPhone-location-spoofer/issues). You don't need to know how to code: describe what you did, what you expected and what happened, and include the app's version (*Settings › About*). +Bug reports and ideas are welcome as [GitHub issues](https://github.com/YK3D/iDevBench/issues). You don't need to know how to code: describe what you did, what you expected and what happened, and include the app's version (*Settings › About*). ## Licence of contributions -iDevBench (formerly Location Spoofer) is source-available, not open source (see [LICENSE](LICENSE)). By opening a pull request you confirm that you have the right to submit the change, and you grant YK3D the licence described in section 4 of [LICENSE](LICENSE), so the change can be included and relicensed with the app. You keep the copyright in your contribution and are credited in the history. +iDevBench is open source: the MIT License ([LICENSE](LICENSE)) for everything except `browser/`, which is GPL-3.0-or-later with attribution terms ([browser/LICENSE](browser/LICENSE), [browser/NOTICE](browser/NOTICE)). By opening a pull request you confirm that you have the right to submit the change and that it is licensed under the licence of the files it changes. You keep the copyright in your contribution and are credited in the history. ## Feature tests @@ -19,8 +19,8 @@ What this protects: the builds and the list of builds. The pull requests and the To try a feature test from source instead: ```bash -git clone https://github.com/YK3D/iPhone-location-spoofer.git -cd iPhone-location-spoofer +git clone https://github.com/YK3D/iDevBench.git +cd iDevBench git fetch origin pull//head:test && git checkout test # standalone app (needs Rust: https://rustup.rs) diff --git a/LICENSE b/LICENSE index c90aa46..309b76b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,125 +1,21 @@ -Location Spoofer License - -Copyright (c) 2026 YK3D. All rights reserved. - -This license applies to the Location Spoofer software in this repository: -the standalone app (standalone/), the shared interface (ui/), the icon and -artwork (assets/), the screenshots and documentation, and the release builds -made from them (together, "the Software"). It does NOT apply to: - - * the browser edition (browser/), which is licensed under the GNU General - Public License, version 3 or later, with additional terms: see - browser/LICENSE and browser/NOTICE; - * third-party components, which keep their own licenses: see - THIRD_PARTY_NOTICES.md. - -The Software is source-available, not open source. Being able to read the -source code does not give you permission to reuse it. - -1. WHAT YOU MAY DO - - Subject to the conditions of this license, you may, free of charge: - - a) download the official releases published on this repository's GitHub - Releases page, install them and use them on your own devices; - b) read the source code, and build and run it on your own devices for your - own personal use, including to try unreleased changes (for example the - feature-testing branch); - c) fork this repository on GitHub, as GitHub's Terms of Service allow, and - change your own copy, for the sole purpose of proposing those changes - back to this repository through pull requests; - d) link to this repository and its release pages. - -2. WHAT YOU MAY NOT DO WITHOUT PRIOR WRITTEN PERMISSION - - Unless the copyright holder has given you written permission first, you - may not: - - a) copy any part of the Software's source code, user interface, artwork or - documentation into another project, product, website or service; - b) distribute, publish, upload, mirror, sell, rent, lend or sublicense the - Software or any modified version of it, in source or compiled form, - except for a fork on GitHub as allowed in section 1(c); - c) publish or distribute a modified version, a translation, a port to - another programming language, or any other work based on the Software; - d) use the Software, or any part of it, in a commercial product or service, - or to offer location-simulation as a paid service; - e) remove, hide or change the copyright, license, credit or trademark - notices in the Software, or present the Software as your own work; - f) use the names "Location Spoofer" or "YK3D", or the app's icon, for - another product, or in a way that suggests that the copyright holder - endorses you or your work; - g) use the Software's source code, artwork or documentation as data to - train or fine-tune a machine-learning model. - - To ask for permission, open an issue at - https://github.com/YK3D/iPhone-location-spoofer/issues or contact YK3D - through https://github.com/YK3D. Permission is only valid in writing from - the copyright holder, and only for what it explicitly states. - -3. CREDIT - - Wherever you have permission to use, show, share or build on any part of - the Software, you must give clear credit, in a place where users of your - work will see it (for example the About screen, the README or the - description): - - Based on Location Spoofer by YK3D - https://github.com/YK3D/iPhone-location-spoofer - - and you must keep this license and every copyright notice with each copy. - Credit does not replace permission: section 2 applies in any case. - -4. CONTRIBUTIONS - - If you submit a contribution (for example a pull request, a patch, a - suggestion in code, or artwork) to this repository, you confirm that you - have the right to submit it, and you grant YK3D a perpetual, worldwide, - non-exclusive, royalty-free, irrevocable license to use, copy, modify, - distribute, sublicense and relicense it as part of the Software or - otherwise. You keep the copyright in your contribution and will be - credited in the repository's history. - -5. EARLIER VERSIONS - - Versions of the Software published before this license was adopted - (November 2026) were released under the MIT License. Copies of those - earlier versions that were obtained under the MIT License remain under it. - Every later version, and every change made after that date, is licensed - only under this license. - -6. TERMINATION - - Your rights under this license end automatically, without notice, if you - break any of its terms. You must then stop using the Software and delete - every copy you have made of it, except copies you obtained under a - separate written permission that is still in force. - -7. NO WARRANTY - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. - -8. LIMITATION OF LIABILITY - - TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL THE COPYRIGHT - HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - DEALINGS IN THE SOFTWARE. Nothing in this license limits liability that - cannot be limited by law. - -9. GENERAL - - All rights not expressly granted in this license are reserved by the - copyright holder. If a court finds part of this license unenforceable, - the rest of it remains in force. Using the Software is also subject to - the Terms of Use (TERMS.md). - - The shared interface (ui/) and the icon are also included, unmodified, in - the official browser edition. They are separate works that the browser - edition's program serves to your web browser; including them there does - not place them under the GNU General Public License. You may pass on an - unmodified official browser edition build as the GNU General Public - License allows, with these files in it. +MIT License + +Copyright (c) 2026 YK3D + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/PRIVACY.md b/PRIVACY.md index 9a3d7a0..27498d0 100644 --- a/PRIVACY.md +++ b/PRIVACY.md @@ -2,7 +2,7 @@ _Last updated: 25 November 2026_ -This policy covers both editions of iDevBench, formerly called Location Spoofer: the standalone app (`LocationSpooferStandalone.exe`) and the browser version (`LocationSpooferBrowser.exe` or run from source). Together they are called "the app". +This policy covers both editions of iDevBench, formerly called Location Spoofer: the standalone app (`iDevBench.exe`, formerly `LocationSpooferStandalone.exe`) and the browser version (`iDevBenchBrowser.exe`, formerly `LocationSpooferBrowser.exe`, or run from source). Together they are called "the app". ## The short version @@ -68,4 +68,4 @@ Changes to this policy are published in this repository with a new "Last updated ## Contact -Questions about privacy can be raised as an issue on the project's GitHub page: . +Questions about privacy can be raised as an issue on the project's GitHub page: . diff --git a/README.md b/README.md index bf43559..140c4fe 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,15 @@

iDevBench

-

A free Windows toolkit for working with your iPhone over USB, with no jailbreak and no Mac.
-Set the iPhone's GPS location: teleport anywhere, drive routes that follow real roads at realistic speeds (with bends, roundabouts and braking), replay GPX files, or walk around live with the keyboard. Mirror the iPhone's screen and sound on your PC, control it with the mouse and keyboard, and record it. Other programs can do the same through a local API. No accounts, no telemetry.

+

A free, open-source Windows workbench for your iPhone: fake its GPS location, mirror and control its screen, and let AI agents use it.
+Over USB, with no jailbreak and no Mac. No accounts, no telemetry.

iDevBench was previously called Location Spoofer. Updating keeps your settings, favourites and routes.

Website and live demo · - ⬇ Download iDevBench · - Browser edition · + ⬇ Download iDevBench · + Browser edition · Getting started · Features · Apple Devices (required) · @@ -21,11 +21,21 @@ Set the iPhone's GPS location: teleport anywhere, drive routes that follow real

The app building a car route across London: two checkpoints are placed, the build shows each step, then three alternative routes appear labelled with their extra time
Try a smaller version of the app in your browser at idevbench.vercel.app.

+## At a glance + +| 📍 **GPS location** | 📱 **Screen mirroring** (iOS 27+) | 🤖 **AI agents** | +|---|---|---| +| Teleport anywhere: click the map, search, or paste a Google Maps link | See the iPhone's screen live, with its sound | Claude, Codex, Cursor, Gemini, Copilot and others can use the phone for you | +| Drive routes on real roads at realistic speeds, with bends, roundabouts and braking | Click to tap, drag to swipe, scroll, Ctrl + wheel to pinch, type with your keyboard | One prompt to paste, or one button for Claude Desktop ([how](#ai-agents)) | +| Walk, cycle, sail or go straight; several route options to compare | Home, Lock, Volume, Siri, app switcher, Control Centre and Back buttons | They take screenshots, tap, type, set the location and drive routes | +| Replay GPX files, or move live with a joystick (W A S D) | Screenshots and recordings with sound; the picture turns with the phone | Built-in guide, and a passcode rule: only if you give it | +| Offline maps, dark and light themes, keyboard shortcuts | Live stats: frame rate, and the iPhone's CPU, memory, GPU and temperature | A local API for your own scripts ([docs](docs/API.md)) | + > **Use it responsibly.** Location simulation is meant for testing apps, demos and privacy. Many games, dating, banking, school, work and delivery apps forbid fake locations and may suspend your account. Apps can also detect simulation or use Wi-Fi, IP address and motion sensors, which this tool does not change. See the [Terms of Use](TERMS.md). ## Contents -[Which download](#which-download-should-i-use) · [Getting started](#getting-started) · [Features](#features) · [Screenshots](#screenshots) · [Updates](#updates-and-test-builds) · [Google Maps](#optional-google-maps) · [Privacy](#privacy) · [Licence](#licence) +[Which download](#which-download-should-i-use) · [Getting started](#getting-started) · [AI agents](#ai-agents) · [Features](#features) · [Screenshots](#screenshots) · [Updates](#updates-and-test-builds) · [Google Maps](#optional-google-maps) · [Privacy](#privacy) · [Licence](#licence) ## Which download should I use? @@ -33,19 +43,19 @@ Most people should use the **standalone app**. The browser edition exists for iP | | **Standalone app** (recommended) | Browser edition | |---|---|---| -| Download | [`LocationSpooferStandalone.exe`](https://github.com/YK3D/iPhone-location-spoofer/releases?q=standalone&expanded=true) | [`LocationSpooferBrowser.exe`](https://github.com/YK3D/iPhone-location-spoofer/releases?q=browser&expanded=true) | +| Download | [`iDevBench.exe`](https://github.com/YK3D/iDevBench/releases?q=standalone&expanded=true) | [`iDevBenchBrowser.exe`](https://github.com/YK3D/iDevBench/releases?q=browser&expanded=true) | | Window | Its own app window | Opens in your web browser, plus a console window | | Size and start-up | Under 20 MB, starts instantly | About 80 MB, 10–20 s to start | | iOS 17.4 and newer, iOS 16 and older | ✅ | ✅ | | iOS 17.0–17.3 | ❌ | ✅ (needs administrator permission once per session) | | Screen mirroring and control (iOS 27 and newer) | ✅ with sound | ✅, sound only on a Mac | -Both have the same look and features (apart from the differences above), and both update themselves. The download files keep their original names (`LocationSpooferStandalone.exe` and `LocationSpooferBrowser.exe`) so copies that are already installed keep updating. +Both have the same look and features (apart from the differences above), and both update themselves. Copies installed under the old names (`LocationSpooferStandalone.exe`, `LocationSpooferBrowser.exe`) keep updating too. ## Getting started 1. **Install Apple's iPhone software.** Get [**Apple Devices** from the Microsoft Store](https://apps.microsoft.com/detail/9np83lwlpz9k) (free, made by Apple; iTunes also works). It lets Windows talk to an iPhone. You don't need to keep its window open. -2. **Download** the [standalone app](https://github.com/YK3D/iPhone-location-spoofer/releases?q=standalone&expanded=true). Save `LocationSpooferStandalone.exe` in a folder you own, such as Desktop or Documents, so it can update itself. +2. **Download** the [standalone app](https://github.com/YK3D/iDevBench/releases?q=standalone&expanded=true). Save `iDevBench.exe` in a folder you own, such as Desktop or Documents, so it can update itself. 3. **Run it.** Windows may show "Windows protected your PC" because the app is not code-signed yet. Choose **More info → Run anyway**. 4. **Follow the setup guide** that opens on first run: 1. Plug in the iPhone, unlock it and tap **Trust**. @@ -53,6 +63,7 @@ Both have the same look and features (apart from the differences above), and bot 3. On the iPhone, turn on *Settings › Privacy & Security › Developer Mode* and restart it. 4. Press **Connect**. 5. **Pick a place and press Teleport here**, or build a route and press **Play**. Press **Stop spoofing** when you're done. +6. **Mirror the screen** (iOS 27 or newer): switch to **Mirroring** at the top of the side menu and press **Start mirroring** with the iPhone unlocked.
Requirements @@ -82,10 +93,44 @@ Both have the same look and features (apart from the differences above), and bot | Mirroring: the picture stays black | Unlock the iPhone. Some apps hide their content from screen mirroring, for example video streaming apps | | Mirroring: the picture freezes | It restarts by itself after a few seconds; press **Restart stream** next to the screen to do it at once | | Mirroring: the picture is sideways | Press **Rotate** next to the screen | -| Something else | [Open an issue](https://github.com/YK3D/iPhone-location-spoofer/issues/new) and describe what happened, with the app's version (*Settings › About*) | +| Something else | [Open an issue](https://github.com/YK3D/iDevBench/issues/new) and describe what happened, with the app's version (*Settings › About*) |
+## AI agents + +Let an AI agent use your iPhone: it can see the screen, tap and type, set the location and drive routes, while iDevBench is open. + +

Claude Code, connected to iDevBench, is asked to drive from the current location to the airport and check it on the screen: it finds Heathrow, starts a car route, opens Find My on the mirrored iPhone and sees it moving
+Claude drives the iPhone to Heathrow and checks it in Find My. Recorded with the app's simulated iPhone, so the phone screen is a stand-in; the app and the tool calls are real. The full tour, with sound, is on the website.

+ + + + + + + + +

Claude Code
Claude Desktop

OpenAI Codex

Cursor

Gemini CLI

GitHub Copilot
(VS Code)

Windsurf
+ +…and any other app that supports MCP servers. + +1. In iDevBench, open **Settings › AI agents** (or press **Connect an AI agent** in the Mirroring section). +2. Press **Copy prompt** and paste it into your agent once. The agent adds iDevBench to its own settings. +3. **Claude Desktop** can't do that from a chat: press **Add to Claude Desktop** instead, then quit Claude and open it again. + +Claude Code can also install it as a plugin: + +```bash +claude plugin marketplace add YK3D/iDevBench +``` + +```bash +claude plugin install idevbench@idevbench +``` + +The agent reads a built-in guide on how to use the phone safely. It only enters your passcode if you ask it to and give it the passcode. Screenshots go to the AI service the agent runs on. Details: [docs/API.md](docs/API.md#ai-agents-mcp). + ## Features
@@ -231,12 +276,8 @@ The app has no accounts, no analytics and no telemetry. Your favourites, routes ## Licence -iDevBench is free to download and use, but it is **not open source**: © 2026 YK3D, all rights reserved. +iDevBench is **open source**: © 2026 YK3D, under the [MIT License](LICENSE). -* You may use the app, read its code and suggest changes through pull requests. -* You may **not** copy its code, interface or icon into other projects, redistribute it, sell it or publish modified versions **without written permission**, and any permitted use must credit "Location Spoofer by YK3D". See [LICENSE](LICENSE). * The browser edition is licensed under the [GNU GPL v3 or later](browser/LICENSE) with an attribution requirement ([browser/NOTICE](browser/NOTICE)), because it includes GPL-licensed libraries. -* Third-party components keep their own licences: [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md). -* To ask for permission, [open an issue](https://github.com/YK3D/iPhone-location-spoofer/issues/new). Security problems: see [SECURITY.md](SECURITY.md). Want to help? See [CONTRIBUTING.md](CONTRIBUTING.md). - -iDevBench is an independent project and is not affiliated with, endorsed by or sponsored by Apple Inc. or Google LLC. iPhone is a trademark of Apple Inc.; Google Maps is a trademark of Google LLC. +* Third-party components keep their own licences: [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md). The AI app logos above come from [LobeHub Icons](https://github.com/lobehub/lobe-icons) and belong to their owners. +* Security problems: see [SECURITY.md](SECURITY.md). Want to help? See [CONTRIBUTING.md](CONTRIBUTING.md). diff --git a/TERMS.md b/TERMS.md index f3e992b..b0912f3 100644 --- a/TERMS.md +++ b/TERMS.md @@ -72,10 +72,12 @@ The app is an independent project. It is **not affiliated with, endorsed by or s ## 10. Ownership and licences -The app, its source code, interface, icon and documentation are owned by YK3D and protected by copyright. You may use the app for free, but you may not copy its code or artwork into other projects, redistribute it, sell it or publish modified versions without written permission, and any permitted use must credit YK3D in the way the licences describe. The exact rules are in the licences: +iDevBench is open source. Its code, interface, icon and documentation are © YK3D and you may use, copy, change and share them under the licences: -* the standalone app, the shared interface, the icon and the documentation: the Location Spoofer License ([LICENSE](LICENSE)), which keeps the app's former name; -* the browser version: the GNU GPL v3 or later with additional terms that require the same credit ([browser/LICENSE](browser/LICENSE), [browser/NOTICE](browser/NOTICE)), because it is distributed together with GPL-licensed libraries. +* the standalone app, the shared interface, the icon, the website and the documentation: the MIT License ([LICENSE](LICENSE)); +* the browser version: the GNU GPL v3 or later with additional terms that ask for credit ([browser/LICENSE](browser/LICENSE), [browser/NOTICE](browser/NOTICE)), because it is distributed together with GPL-licensed libraries. + +The licences don't let you present your own version as the official iDevBench or use the names "iDevBench" or "YK3D" or the icon as the name or logo of another product. Those licences govern copying, modifying and redistributing the code. These terms govern using the app. @@ -85,4 +87,4 @@ The app can update itself from this repository's GitHub releases. Releases are c ## 12. Contact -Report problems, or ask for permission to use the code, at . Report security issues as described in [SECURITY.md](SECURITY.md). +Report problems, or ask for permission to use the code, at . Report security issues as described in [SECURITY.md](SECURITY.md). diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md index 9d3d5ed..0cf673b 100644 --- a/THIRD_PARTY_NOTICES.md +++ b/THIRD_PARTY_NOTICES.md @@ -6,11 +6,13 @@ iDevBench (formerly Location Spoofer) is built on open-source software and publi | Part | Licence | |---|---| -| Standalone app (`standalone/`), shared interface (`ui/`), icon artwork (`assets/`), website (`website/`), documentation | Location Spoofer License, © YK3D, all rights reserved (source-available; reuse needs written permission and credit). See [LICENSE](LICENSE) | -| Browser version (`browser/`) and the `LocationSpooferBrowser.exe` build | GNU GPL v3 or later with additional attribution terms. See [browser/LICENSE](browser/LICENSE) and [browser/NOTICE](browser/NOTICE) | +| Standalone app (`standalone/`), shared interface (`ui/`), icon artwork (`assets/`), website (`website/`), Claude Code plugin (`plugins/`), documentation | MIT License, © YK3D. See [LICENSE](LICENSE) | +| Browser version (`browser/`) and the `iDevBenchBrowser.exe` build | GNU GPL v3 or later with additional attribution terms. See [browser/LICENSE](browser/LICENSE) and [browser/NOTICE](browser/NOTICE) | The licences below belong to the third-party components and are not changed by this project's licence. +The AI app logos in the README (`docs/logos/`) are from [LobeHub Icons](https://github.com/lobehub/lobe-icons) 1.106.0 (MIT); the light-on-dark copies only change the fill colour. The logos are trademarks of their owners and are shown only to say which apps work with iDevBench. + ## Included in both editions | Component | Use | Licence | @@ -20,19 +22,20 @@ The licences below belong to the third-party components and are not changed by t | [MapLibre GL Leaflet](https://github.com/maplibre/maplibre-gl-leaflet) 0.1.4 (`ui/vendor/maplibre`) | Shows the MapLibre map inside Leaflet | ISC, © MapLibre contributors. See `ui/vendor/maplibre/LICENSE-maplibre-gl-leaflet.txt` | | Marine network from [searoute](https://github.com/genthalili/searoute-py) (`standalone/data/marnet_searoute.geojson`; bundled with the `searoute` package in the browser version) | Sea-lane routing | Apache-2.0 (searoute). The network derives from Eurostat's [SeaRoute](https://github.com/eurostat/searoute) (EUPL-1.2) | -## Standalone app (`LocationSpooferStandalone.exe`) +## Standalone app (`iDevBench.exe`) | Component | Use | Licence | |---|---|---| | [idevice](https://github.com/jkcoxson/idevice), [jktcp](https://crates.io/crates/jktcp) | iPhone communication (usbmuxd, lockdown, CoreDevice tunnel, DVT, screen streaming and touch input) | MIT | | [Fraunhofer FDK AAC](https://github.com/mstorsjo/fdk-aac) through [fdk-aac-rs](https://github.com/haileys/fdk-aac-rs) | Plays the iPhone's sound while mirroring (AAC-ELD decoding) | FDK AAC licence, full text in [docs/licenses/fdk-aac.txt](docs/licenses/fdk-aac.txt) (the Rust bindings are MIT). Included unmodified; its complete source code is available free of charge from [crates.io](https://crates.io/crates/fdk-aac-sys/0.5.0) and [GitHub](https://github.com/mstorsjo/fdk-aac). The licence grants no patent rights | | [wry](https://github.com/tauri-apps/wry), [tao](https://github.com/tauri-apps/tao) | Native window and Microsoft WebView2 | Apache-2.0 OR MIT | +| [rfd](https://github.com/PolyMeilex/rfd) | The folder picker (Settings › Mirroring › Browse) | MIT | | [axum](https://github.com/tokio-rs/axum), [tokio](https://tokio.rs/), [reqwest](https://github.com/seanmonstar/reqwest), [rustls](https://github.com/rustls/rustls), [ring](https://github.com/briansmith/ring) | Local server, networking, TLS | MIT / Apache-2.0 / ISC-style (ring) | | [cssparser](https://github.com/servo/rust-cssparser), [selectors](https://github.com/servo/stylo), [dtoa-short](https://github.com/upsuper/dtoa-short), [option-ext](https://github.com/soc/option-ext) | Used by the window and settings-folder libraries | MPL-2.0. Included unmodified; their source code is available from [crates.io](https://crates.io/) at the versions listed in `standalone/Cargo.lock` | | [serde](https://serde.rs/), [roxmltree](https://github.com/RazrFalcon/roxmltree), [chrono](https://github.com/chronotope/chrono), [plist](https://github.com/ebarnard/rust-plist), [png](https://github.com/image-rs/image-png) and the other crates listed in `standalone/Cargo.lock` | Parsing, data formats | MIT and/or Apache-2.0 (each crate's own licence applies) | | Microsoft Edge WebView2 Runtime | Renders the interface; part of Windows, not redistributed | Microsoft software licence terms | -## Browser version (`LocationSpooferBrowser.exe`) +## Browser version (`iDevBenchBrowser.exe`) The exe bundles a Python runtime and these packages, with their dependencies, via PyInstaller: @@ -57,7 +60,9 @@ The showcase website bundles these components into the pages it serves. The vers | [GSAP](https://gsap.com/) with ScrollTrigger and SplitText, [@gsap/react](https://github.com/greensock/react) | Scroll animations | GSAP Standard "no charge" License, © GreenSock (Webflow). See [gsap.com/standard-license](https://gsap.com/standard-license) | | [Lenis](https://github.com/darkroomengineering/lenis) | Smooth scrolling | MIT, © darkroom.engineering | | [MapLibre GL JS](https://maplibre.org/) | The demo map | BSD-3-Clause, © MapLibre contributors, © Mapbox | -| [React Bits](https://reactbits.dev/) SplitText and DecryptedText (`website/src/components/reactbits`) | Headline and coordinate text effects | MIT + Commons Clause, © David Haz. See `website/src/components/reactbits/LICENSE.md` | +| [React Bits](https://reactbits.dev/) SplitText (`website/src/components/reactbits`) | Headline text effect | MIT + Commons Clause, © David Haz. See `website/src/components/reactbits/LICENSE.md` | +| "Laserpack" by Kevin MacLeod ft. DarkNES ([incompetech.com](https://incompetech.com)) | Music in the website's tour video | [Creative Commons Attribution 4.0](https://creativecommons.org/licenses/by/4.0/) | +| Voiceover made with [ElevenLabs](https://elevenlabs.io) (`website/scripts/showreel/vo`) | Narration in the website's tour video | ElevenLabs terms of use | | [IBM Plex Sans](https://github.com/IBM/plex) and [JetBrains Mono](https://github.com/JetBrains/JetBrainsMono) fonts, via Fontsource | Typography | SIL Open Font License 1.1 | The website's demo also uses OpenFreeMap and routing.openstreetmap.de (see below), and reads release versions from the GitHub API. diff --git a/browser/NOTICE b/browser/NOTICE index 8e655f7..d815c40 100644 --- a/browser/NOTICE +++ b/browser/NOTICE @@ -1,7 +1,7 @@ -Location Spoofer, browser edition +iDevBench (formerly Location Spoofer), browser edition Copyright (c) 2026 YK3D -The browser edition (this browser/ folder and the LocationSpooferBrowser.exe +The browser edition (this browser/ folder and the iDevBenchBrowser.exe builds made from it) is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any @@ -28,19 +28,19 @@ material, modified or not, must follow them. legal notices or credits to its users (for example an About screen, a README or a project description): - Based on Location Spoofer by YK3D - https://github.com/YK3D/iPhone-location-spoofer + Based on iDevBench by YK3D + https://github.com/YK3D/iDevBench 2. No misrepresentation (section 7(c)). Modified versions must be clearly - marked as changed and must not be presented as the original Location - Spoofer or as made or endorsed by YK3D. + marked as changed and must not be presented as the original iDevBench + (formerly Location Spoofer) or as made or endorsed by YK3D. 3. Names and logos (section 7(e)). This license grants no right to use the - names "Location Spoofer" or "YK3D", or the app's icon, as a name, logo or + names "iDevBench", "Location Spoofer" or "YK3D", or the app's icon, as a name, logo or trademark for another product. The icon and artwork (assets/) are not - covered by the GPL: see the LICENSE file at the root of the repository. + covered by the GPL: they are under the MIT License (the LICENSE file at the + root of the repository). The shared interface (ui/) and the icon that the browser edition serves and includes are not part of this GPL-licensed program: they are separate works -under the Location Spoofer License (the LICENSE file at the root of the -repository). +under the MIT License (the LICENSE file at the root of the repository). diff --git a/browser/packaging/build_exe.py b/browser/packaging/build_exe.py index 8668ea3..5aee6a0 100644 --- a/browser/packaging/build_exe.py +++ b/browser/packaging/build_exe.py @@ -2,7 +2,7 @@ Usage (CI runs this on windows-latest): python packaging/build_exe.py --version 1.1.42 -Output: dist/LocationSpooferBrowser.exe (dist/LocationSpooferBrowser on macOS/Linux) +Output: dist/iDevBenchBrowser.exe (dist/iDevBenchBrowser on macOS/Linux) """ from __future__ import annotations @@ -93,7 +93,7 @@ def main() -> int: sep = os.pathsep pyi_args = [ str(ROOT / "packaging" / "launcher.py"), - "--name", "LocationSpooferBrowser", + "--name", "iDevBenchBrowser", "--noconfirm", "--clean", "--console", # the console window is the app's "on" switch and shows its log diff --git a/browser/spoofer/__main__.py b/browser/spoofer/__main__.py index ee2b140..0c26a57 100644 --- a/browser/spoofer/__main__.py +++ b/browser/spoofer/__main__.py @@ -101,7 +101,7 @@ def main() -> None: if len(sys.argv) > 1 and sys.argv[1] == "pmd3-cli": sys.exit(_run_pmd3_cli(sys.argv[2:])) - ap = argparse.ArgumentParser(prog="LocationSpooferBrowser", description="iDevBench Browser Edition") + ap = argparse.ArgumentParser(prog="iDevBenchBrowser", description="iDevBench Browser Edition") ap.add_argument("--host", default="127.0.0.1", help="interface to listen on (default: this computer only)") ap.add_argument("--port", type=int, default=8765) ap.add_argument("--no-browser", action="store_true", help="do not open the browser automatically") diff --git a/browser/spoofer/feature_tests.py b/browser/spoofer/feature_tests.py index 91b7289..146a403 100644 --- a/browser/spoofer/feature_tests.py +++ b/browser/spoofer/feature_tests.py @@ -36,7 +36,7 @@ RELEASE_TAG = "feature-tests" MANIFEST = "ft-index.bin" -EXE_NAME = "LocationSpooferStandalone.exe" +EXE_NAME = "iDevBench.exe" MAGIC = b"LSFT1" HEADER = 5 + 4 + 16 + 12 MAX_ITERATIONS = 5_000_000 diff --git a/browser/spoofer/offline.py b/browser/spoofer/offline.py index 9eda766..e08e01b 100644 --- a/browser/spoofer/offline.py +++ b/browser/spoofer/offline.py @@ -35,7 +35,7 @@ GLYPH_RANGES = ("0-255", "256-511", "512-767", "768-1023", "1024-1279", "8192-8447", "8448-8703") RELIEF_PREFIX = "natural_earth/ne2sr/" TILE_PREFIX = "planet-tiles/" -USER_AGENT = f"iDevBench/{__version__} (+https://github.com/YK3D/iPhone-location-spoofer)" +USER_AGENT = f"iDevBench/{__version__} (+https://github.com/YK3D/iDevBench)" _ALLOWED = set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789._-/%@,") # 1x1 transparent PNG: answer for a relief tile that is neither cached nor reachable EMPTY_PNG = bytes.fromhex( @@ -107,6 +107,9 @@ def area_tile_count(b: Bounds, min_z: int, max_z: int) -> int: return tile_count(b, min_z, max_z) + relief +PLANETS = ("planet", "backup_planet") + + def cache_key(path: str) -> Optional[tuple[str, str]]: """(cache file, kind) for a request path; kind is "tile", "static" or "fresh". None for paths that are not part of the map or try to leave the cache folder.""" @@ -115,11 +118,13 @@ def cache_key(path: str) -> Optional[tuple[str, str]]: parts = path.split("/") if any(p in ("", ".", "..") for p in parts) or not set(path) <= _ALLOWED: return None - if parts[0] == "planet" and len(parts) == 5 and parts[4].endswith(".pbf"): + # OpenFreeMap's styles name "backup_planet" instead of "planet" while it rebuilds the map: the same + # tiles, so both share the cache + if parts[0] in PLANETS and len(parts) == 5 and parts[4].endswith(".pbf"): # planet//z/x/y.pbf: kept without the weekly version, so areas survive updates return f"{TILE_PREFIX}{parts[2]}/{parts[3]}/{parts[4]}", "tile" - if parts == ["planet"]: - return "planet.json", "fresh" + if len(parts) == 1 and parts[0] in PLANETS: + return f"{parts[0]}.json", "fresh" if parts[0] == "styles" and len(parts) == 2: return f"{path}.json", "fresh" if parts[0] == "natural_earth": diff --git a/browser/spoofer/updater.py b/browser/spoofer/updater.py index d35ed44..d42ff54 100644 --- a/browser/spoofer/updater.py +++ b/browser/spoofer/updater.py @@ -36,8 +36,9 @@ log = logging.getLogger(__name__) -REPO = os.environ.get("SPOOFER_UPDATE_REPO", "YK3D/iPhone-location-spoofer") -ASSET = "LocationSpooferBrowser.exe" +REPO = os.environ.get("SPOOFER_UPDATE_REPO", "YK3D/iDevBench") +ASSET = "iDevBenchBrowser.exe" +LEGACY_ASSET = "LocationSpooferBrowser.exe" # the name releases used before iDevBench; older releases have only this one TAG_PREFIX = "browser-v" CHECK_EVERY_S = 6 * 3600 ALLOWED_HOSTS = ("github.com", "objects.githubusercontent.com", "release-assets.githubusercontent.com") @@ -257,7 +258,8 @@ async def check(self, download: bool = True) -> dict: self.state = "available" return self.status() assets = {a.get("name"): a.get("browser_download_url") for a in rel.get("assets", [])} - exe_url, sum_url = assets.get(ASSET), assets.get(ASSET + ".sha256") + name = next((n for n in (ASSET, LEGACY_ASSET) if assets.get(n) and assets.get(n + ".sha256")), ASSET) + exe_url, sum_url = assets.get(name), assets.get(name + ".sha256") if not exe_url or not sum_url: raise RuntimeError(f"Release {tag} has no {ASSET} and checksum file") for u in (exe_url, sum_url): diff --git a/browser/tests/test_feature_tests.py b/browser/tests/test_feature_tests.py index f41d914..6ece488 100644 --- a/browser/tests/test_feature_tests.py +++ b/browser/tests/test_feature_tests.py @@ -42,7 +42,7 @@ def fake_github(password: str, served: list): def handler(req: httpx.Request) -> httpx.Response: name = req.url.path.rsplit("/", 1)[-1] - assert req.url.path.startswith("/YK3D/iPhone-location-spoofer/releases/download/feature-tests/") + assert req.url.path.startswith("/YK3D/iDevBench/releases/download/feature-tests/") served.append(name) return httpx.Response(200, content=files[name]) if name in files else httpx.Response(404) return httpx.MockTransport(handler) @@ -51,7 +51,7 @@ def handler(req: httpx.Request) -> httpx.Response: def test_unlock_list_open_and_lock(tmp_path): async def run(): served, launched = [], [] - ft = FeatureTests(tmp_path, "YK3D/iPhone-location-spoofer", launcher=lambda *a: launched.append(a), + ft = FeatureTests(tmp_path, "YK3D/iDevBench", launcher=lambda *a: launched.append(a), transport=fake_github("s3cret", served)) assert await ft.list() == {"locked": True} with pytest.raises(FeatureTestError, match="Unlock"): @@ -63,7 +63,7 @@ async def run(): assert got["locked"] is False and got["builds"][0]["pr"] == 14 and "asset" not in got["builds"][0] assert (tmp_path / "feature-tests" / "access.key").read_text() == "s3cret" # a new start remembers the password - ft = FeatureTests(tmp_path, "YK3D/iPhone-location-spoofer", launcher=lambda *a: launched.append(a), + ft = FeatureTests(tmp_path, "YK3D/iDevBench", launcher=lambda *a: launched.append(a), transport=fake_github("s3cret", served)) assert (await ft.list())["builds"][0]["title"] == "New engine" for _ in range(300): # the background download makes the build ready @@ -86,7 +86,7 @@ async def run(): def test_not_published_yet(tmp_path): async def run(): - ft = FeatureTests(tmp_path, "YK3D/iPhone-location-spoofer", launcher=lambda *a: None, + ft = FeatureTests(tmp_path, "YK3D/iDevBench", launcher=lambda *a: None, transport=httpx.MockTransport(lambda r: httpx.Response(404))) with pytest.raises(FeatureTestError) as e: await ft.unlock("x", remember=False) diff --git a/browser/tests/test_offline.py b/browser/tests/test_offline.py index 6af10be..fc017a7 100644 --- a/browser/tests/test_offline.py +++ b/browser/tests/test_offline.py @@ -31,6 +31,8 @@ def test_limits(): def test_cache_keys(): assert cache_key("planet/20261101_080013_pt/14/8186/5448.pbf") == ("planet-tiles/14/8186/5448.pbf", "tile") assert cache_key("planet") == ("planet.json", "fresh") + assert cache_key("backup_planet/20261122_124456_pt/14/8186/5448.pbf") == ("planet-tiles/14/8186/5448.pbf", "tile") + assert cache_key("backup_planet") == ("backup_planet.json", "fresh") assert cache_key("styles/dark") == ("styles/dark.json", "fresh") assert cache_key("fonts/Noto%20Sans%20Regular/0-255.pbf")[1] == "static" assert cache_key("sprites/ofm_f384/ofm@2x.png")[1] == "static" diff --git a/browser/tests/test_updater.py b/browser/tests/test_updater.py index f32c8f5..682b1e2 100644 --- a/browser/tests/test_updater.py +++ b/browser/tests/test_updater.py @@ -11,20 +11,20 @@ def fake_github(tag="browser-v1.1.50", digest=DIGEST, exe_host="release-assets.githubusercontent.com", body=NEW_EXE, - extra=()): + extra=(), name="iDevBenchBrowser.exe"): def rel(t, pre=False): return {"tag_name": t, "body": "notes", "prerelease": pre, "draft": False, "assets": [ - {"name": "LocationSpooferBrowser.exe", "browser_download_url": "https://github.com/o/r/releases/download/x/LocationSpooferBrowser.exe"}, - {"name": "LocationSpooferBrowser.exe.sha256", "browser_download_url": "https://github.com/o/r/releases/download/x/LocationSpooferBrowser.exe.sha256"}, + {"name": name, "browser_download_url": f"https://github.com/o/r/releases/download/x/{name}"}, + {"name": f"{name}.sha256", "browser_download_url": f"https://github.com/o/r/releases/download/x/{name}.sha256"}, ]} def handler(req: httpx.Request) -> httpx.Response: url = str(req.url) if "/releases?" in url or url.endswith("/releases"): return httpx.Response(200, json=[rel("standalone-v9.9.9"), rel(tag), *[rel(t, pre) for t, pre in extra]]) - if url.endswith("LocationSpooferBrowser.exe.sha256"): - return httpx.Response(200, text=f"{digest} LocationSpooferBrowser.exe") - if url.endswith("download/x/LocationSpooferBrowser.exe"): + if url.endswith(f"{name}.sha256"): + return httpx.Response(200, text=f"{digest} {name}") + if url.endswith(f"download/x/{name}"): return httpx.Response(302, headers={"Location": f"https://{exe_host}/blob/exe"}) if url.endswith("/blob/exe"): return httpx.Response(200, content=body) @@ -47,6 +47,11 @@ def test_is_newer(a, b, newer): assert up.is_newer(a, b) is newer +def test_releases_from_before_the_rename_still_update(tmp_path): + u = make(tmp_path, transport=fake_github(name="LocationSpooferBrowser.exe")) + assert asyncio.run(u.check())["state"] == "ready" + + def test_download_verify_and_swap(tmp_path, monkeypatch): u = make(tmp_path, transport=fake_github()) st = asyncio.run(u.check()) diff --git a/docs/API.md b/docs/API.md index 7b35119..11156ef 100644 --- a/docs/API.md +++ b/docs/API.md @@ -118,7 +118,7 @@ iDevBench is a [Model Context Protocol](https://modelcontextprotocol.io) server: **Claude Code plugin:** this repository is a plugin marketplace. ```bash -claude plugin marketplace add YK3D/iPhone-location-spoofer +claude plugin marketplace add YK3D/iDevBench ``` ```bash @@ -128,7 +128,7 @@ claude plugin install idevbench@idevbench **By hand:** apps that connect to a URL use `http://127.0.0.1:8766/mcp` (the browser edition: port 8765), for example `claude mcp add --transport http --scope user idevbench http://127.0.0.1:8766/mcp`. Apps that start a program use the app itself with `--mcp`, for example in Claude Desktop's `claude_desktop_config.json`: ```json -{ "mcpServers": { "idevbench": { "command": "C:\\path\\to\\LocationSpooferStandalone.exe", "args": ["--mcp"] } } } +{ "mcpServers": { "idevbench": { "command": "C:\\path\\to\\iDevBench.exe", "args": ["--mcp"] } } } ``` `--mcp` only passes messages to the app that is already open (either edition); it opens no window. diff --git a/docs/logos/claude.svg b/docs/logos/claude.svg new file mode 100644 index 0000000..62dc0db --- /dev/null +++ b/docs/logos/claude.svg @@ -0,0 +1 @@ +Claude \ No newline at end of file diff --git a/docs/logos/codex.svg b/docs/logos/codex.svg new file mode 100644 index 0000000..c77ccfd --- /dev/null +++ b/docs/logos/codex.svg @@ -0,0 +1 @@ +Codex \ No newline at end of file diff --git a/docs/logos/cursor-dark.svg b/docs/logos/cursor-dark.svg new file mode 100644 index 0000000..882a797 --- /dev/null +++ b/docs/logos/cursor-dark.svg @@ -0,0 +1 @@ +Cursor \ No newline at end of file diff --git a/docs/logos/cursor.svg b/docs/logos/cursor.svg new file mode 100644 index 0000000..48369d5 --- /dev/null +++ b/docs/logos/cursor.svg @@ -0,0 +1 @@ +Cursor \ No newline at end of file diff --git a/docs/logos/gemini.svg b/docs/logos/gemini.svg new file mode 100644 index 0000000..62681df --- /dev/null +++ b/docs/logos/gemini.svg @@ -0,0 +1 @@ +Gemini \ No newline at end of file diff --git a/docs/logos/githubcopilot-dark.svg b/docs/logos/githubcopilot-dark.svg new file mode 100644 index 0000000..aa56fe9 --- /dev/null +++ b/docs/logos/githubcopilot-dark.svg @@ -0,0 +1 @@ +GithubCopilot \ No newline at end of file diff --git a/docs/logos/githubcopilot.svg b/docs/logos/githubcopilot.svg new file mode 100644 index 0000000..f6c7cbc --- /dev/null +++ b/docs/logos/githubcopilot.svg @@ -0,0 +1 @@ +GithubCopilot \ No newline at end of file diff --git a/docs/logos/windsurf-dark.svg b/docs/logos/windsurf-dark.svg new file mode 100644 index 0000000..b710128 --- /dev/null +++ b/docs/logos/windsurf-dark.svg @@ -0,0 +1 @@ +Windsurf \ No newline at end of file diff --git a/docs/logos/windsurf.svg b/docs/logos/windsurf.svg new file mode 100644 index 0000000..ff58556 --- /dev/null +++ b/docs/logos/windsurf.svg @@ -0,0 +1 @@ +Windsurf \ No newline at end of file diff --git a/docs/screenshots/agent.webp b/docs/screenshots/agent.webp new file mode 100644 index 0000000..5dc21a3 Binary files /dev/null and b/docs/screenshots/agent.webp differ diff --git a/docs/screenshots/demo.webp b/docs/screenshots/demo.webp index 846cd65..ac3971f 100644 Binary files a/docs/screenshots/demo.webp and b/docs/screenshots/demo.webp differ diff --git a/plugins/idevbench/.claude-plugin/plugin.json b/plugins/idevbench/.claude-plugin/plugin.json index 54a2847..fbb1c77 100644 --- a/plugins/idevbench/.claude-plugin/plugin.json +++ b/plugins/idevbench/.claude-plugin/plugin.json @@ -6,7 +6,7 @@ "name": "YK3D" }, "homepage": "https://idevbench.vercel.app", - "repository": "https://github.com/YK3D/iPhone-location-spoofer", + "repository": "https://github.com/YK3D/iDevBench", "keywords": [ "iphone", "ios", @@ -16,8 +16,8 @@ "automation" ], "icon": ".claude-plugin/icon.png", - "documentationUrl": "https://github.com/YK3D/iPhone-location-spoofer/blob/main/docs/API.md#ai-agents-mcp", - "supportUrl": "https://github.com/YK3D/iPhone-location-spoofer/issues", + "documentationUrl": "https://github.com/YK3D/iDevBench/blob/main/docs/API.md#ai-agents-mcp", + "supportUrl": "https://github.com/YK3D/iDevBench/issues", "privacyPolicyUrl": "https://idevbench.vercel.app/privacy", "termsOfServiceUrl": "https://idevbench.vercel.app/terms" } diff --git a/standalone/Cargo.toml b/standalone/Cargo.toml index 0163ed2..e15d668 100644 --- a/standalone/Cargo.toml +++ b/standalone/Cargo.toml @@ -3,7 +3,7 @@ name = "location-spoofer" version = "0.1.0" edition = "2021" description = "iDevBench: standalone desktop app for working with an iPhone over USB" -license-file = "../LICENSE" +license = "MIT" authors = ["YK3D"] publish = false default-run = "location-spoofer" diff --git a/standalone/build.rs b/standalone/build.rs index c7bdce1..2395664 100644 --- a/standalone/build.rs +++ b/standalone/build.rs @@ -9,7 +9,7 @@ fn main() { res.set("ProductName", "iDevBench"); res.set("FileDescription", "iDevBench"); res.set("CompanyName", "YK3D"); - res.set("LegalCopyright", "Copyright (c) 2026 YK3D. All rights reserved. See LICENSE."); + res.set("LegalCopyright", "Copyright (c) 2026 YK3D. MIT License."); if let Err(e) = res.compile() { println!("cargo:warning=could not embed the Windows icon: {e}"); } diff --git a/standalone/src/feature_tests.rs b/standalone/src/feature_tests.rs index 12c375c..5cf4e50 100644 --- a/standalone/src/feature_tests.rs +++ b/standalone/src/feature_tests.rs @@ -21,7 +21,7 @@ use std::sync::{Arc, Mutex}; pub const RELEASE_TAG: &str = "feature-tests"; pub const MANIFEST: &str = "ft-index.bin"; -pub const EXE_NAME: &str = "LocationSpooferStandalone.exe"; +pub const EXE_NAME: &str = "iDevBench.exe"; const MAGIC: &[u8; 5] = b"LSFT1"; const HEADER: usize = 5 + 4 + 16 + 12; /// Files name their own PBKDF2 iteration count (CI uses 600,000); more than this is refused. @@ -339,14 +339,14 @@ mod tests { #[tokio::test] async fn locked_until_unlocked() { let dir = std::env::temp_dir().join(format!("spoofer-ft-{}", rand::random::())); - let ft = FeatureTests::new(&dir, "YK3D/iPhone-location-spoofer", Box::new(|_, _, _| Ok(()))); + let ft = FeatureTests::new(&dir, "YK3D/iDevBench", Box::new(|_, _, _| Ok(()))); assert_eq!(ft.list().await.unwrap()["locked"], true); assert!(ft.open_build(1).await.unwrap_err().contains("Unlock")); assert!(ft.unlock("", false).await.is_err()); // a remembered password is picked up at start, and forgotten by lock() std::fs::create_dir_all(dir.join("feature-tests")).unwrap(); std::fs::write(dir.join("feature-tests/access.key"), "secret\n").unwrap(); - let ft = FeatureTests::new(&dir, "YK3D/iPhone-location-spoofer", Box::new(|_, _, _| Ok(()))); + let ft = FeatureTests::new(&dir, "YK3D/iDevBench", Box::new(|_, _, _| Ok(()))); assert_eq!(ft.password().as_deref(), Some("secret")); ft.lock(); assert!(ft.password().is_none() && !dir.join("feature-tests/access.key").exists()); @@ -363,7 +363,7 @@ mod tests { let (files, hits) = (files.clone(), hits.clone()); async move { let name = uri.path().rsplit('/').next().unwrap_or("").to_string(); - assert!(uri.path().starts_with("/YK3D/iPhone-location-spoofer/releases/download/feature-tests/")); + assert!(uri.path().starts_with("/YK3D/iDevBench/releases/download/feature-tests/")); hits.lock().unwrap().push(name.clone()); match files.iter().find(|(n, _)| *n == name) { Some((_, d)) => d.clone().into_response(), @@ -386,7 +386,7 @@ mod tests { type Launches = Arc)>>>; let launched: Launches = Arc::new(Mutex::new(Vec::new())); let l2 = launched.clone(); - let mut ft = FeatureTests::new(&dir, "YK3D/iPhone-location-spoofer", Box::new(move |exe, args, _| { + let mut ft = FeatureTests::new(&dir, "YK3D/iDevBench", Box::new(move |exe, args, _| { l2.lock().unwrap().push((exe.to_path_buf(), args.to_vec())); Ok(()) })); diff --git a/standalone/src/main.rs b/standalone/src/main.rs index c2208ed..470a6dc 100644 --- a/standalone/src/main.rs +++ b/standalone/src/main.rs @@ -1,5 +1,5 @@ //! iDevBench (formerly Location Spoofer) — standalone desktop app. -//! Copyright (c) 2026 YK3D. All rights reserved. Licensed under the Location Spoofer License (LICENSE). +//! Copyright (c) 2026 YK3D. MIT License (LICENSE). //! //! A local HTTP server (axum) serves the UI and its JSON API on 127.0.0.1; a native window //! (WebView2 on Windows) shows it. With `--no-window` (or without the `gui` feature) the system diff --git a/standalone/src/offline.rs b/standalone/src/offline.rs index b56c7da..afc1e47 100644 --- a/standalone/src/offline.rs +++ b/standalone/src/offline.rs @@ -129,9 +129,10 @@ pub fn cache_key(path: &str) -> Option<(String, Kind)> { } let parts: Vec<&str> = path.split('/').collect(); match parts.as_slice() { - // planet//z/x/y.pbf: kept without the weekly version, so areas survive updates - ["planet", _ver, z, x, y] if y.ends_with(".pbf") => Some((format!("{TILE_PREFIX}{z}/{x}/{y}"), Kind::Tile)), - ["planet"] => Some(("planet.json".into(), Kind::Fresh)), + // planet//z/x/y.pbf: kept without the weekly version, so areas survive updates. + // OpenFreeMap's styles name "backup_planet" instead while it rebuilds the map: the same tiles. + ["planet" | "backup_planet", _ver, z, x, y] if y.ends_with(".pbf") => Some((format!("{TILE_PREFIX}{z}/{x}/{y}"), Kind::Tile)), + [p @ ("planet" | "backup_planet")] => Some((format!("{p}.json"), Kind::Fresh)), ["styles", _] => Some((format!("{path}.json"), Kind::Fresh)), ["natural_earth", ..] => Some((path.into(), Kind::Tile)), ["sprites", ..] | ["fonts", ..] => Some((path.into(), Kind::Static)), @@ -187,7 +188,7 @@ pub struct DownloadIn { impl Offline { pub fn new(data_dir: &Path) -> Arc { let http = reqwest::Client::builder() - .user_agent(format!("iDevBench/{} (+https://github.com/YK3D/iPhone-location-spoofer)", crate::updater::current_version())) + .user_agent(format!("iDevBench/{} (+https://github.com/YK3D/iDevBench)", crate::updater::current_version())) .timeout(std::time::Duration::from_secs(20)) .build() .expect("http client"); @@ -538,6 +539,8 @@ mod tests { fn cache_keys() { assert_eq!(cache_key("planet/20261101_080013_pt/14/8186/5448.pbf"), Some(("planet-tiles/14/8186/5448.pbf".into(), Kind::Tile))); assert_eq!(cache_key("planet"), Some(("planet.json".into(), Kind::Fresh))); + assert_eq!(cache_key("backup_planet/20261122_124456_pt/14/8186/5448.pbf"), Some(("planet-tiles/14/8186/5448.pbf".into(), Kind::Tile))); + assert_eq!(cache_key("backup_planet"), Some(("backup_planet.json".into(), Kind::Fresh))); assert_eq!(cache_key("styles/dark"), Some(("styles/dark.json".into(), Kind::Fresh))); assert_eq!(cache_key("fonts/Noto%20Sans%20Regular/0-255.pbf").unwrap().1, Kind::Static); assert_eq!(cache_key("sprites/ofm_f384/ofm@2x.png").unwrap().1, Kind::Static); diff --git a/standalone/src/updater.rs b/standalone/src/updater.rs index 9ff399c..88e9c08 100644 --- a/standalone/src/updater.rs +++ b/standalone/src/updater.rs @@ -10,11 +10,22 @@ use sha2::{Digest, Sha256}; use std::path::PathBuf; use std::sync::Mutex; -pub const REPO: &str = "YK3D/iPhone-location-spoofer"; +pub const REPO: &str = "YK3D/iDevBench"; pub const TAG_PREFIX: &str = "standalone-v"; -pub const ASSET: &str = "LocationSpooferStandalone.exe"; +pub const ASSET: &str = "iDevBench.exe"; +/// The name releases used before iDevBench; older releases have only this one. +const LEGACY_ASSET: &str = "LocationSpooferStandalone.exe"; const ALLOWED_HOSTS: [&str; 3] = ["github.com", "objects.githubusercontent.com", "release-assets.githubusercontent.com"]; +/// The exe and checksum URLs of a release: the current name, else the name from before the rename. +fn release_exe(rel: &Value) -> Option<(String, String)> { + let asset = |name: &str| { + rel["assets"].as_array().into_iter().flatten().find(|a| a["name"] == name).and_then(|a| a["browser_download_url"].as_str().map(String::from)) + }; + let pair = |name: &str| Some((asset(name)?, asset(&format!("{name}.sha256"))?)); + pair(ASSET).or_else(|| pair(LEGACY_ASSET)) +} + pub fn current_version() -> &'static str { option_env!("SPOOFER_VERSION").unwrap_or(env!("CARGO_PKG_VERSION")) } @@ -64,7 +75,7 @@ impl Updater { } fn sibling(&self, suffix: &str) -> PathBuf { - let stem = self.exe.file_stem().map(|s| s.to_string_lossy().to_string()).unwrap_or_else(|| "LocationSpooferStandalone".into()); + let stem = self.exe.file_stem().map(|s| s.to_string_lossy().to_string()).unwrap_or_else(|| "iDevBench".into()); self.exe.with_file_name(format!("{stem}{suffix}")) } fn staged(&self) -> PathBuf { @@ -178,10 +189,7 @@ impl Updater { self.set(|s| s.state = "ready".into()); return Ok(()); } - let asset = |name: &str| { - rel["assets"].as_array().into_iter().flatten().find(|a| a["name"] == name).and_then(|a| a["browser_download_url"].as_str().map(String::from)) - }; - let (exe_url, sum_url) = (asset(ASSET).ok_or("Release has no exe")?, asset(&format!("{ASSET}.sha256")).ok_or("Release has no checksum")?); + let (exe_url, sum_url) = release_exe(&rel).ok_or("Release has no exe and checksum file")?; for u in [&exe_url, &sum_url] { check_host(u)?; } @@ -278,6 +286,16 @@ fn check_host(u: &str) -> Result<(), String> { #[cfg(test)] mod tests { use super::*; + + #[test] + fn finds_the_exe_under_its_new_or_old_name() { + let rel = |names: &[&str]| json!({"assets": names.iter().map(|n| json!({"name": n, "browser_download_url": format!("https://github.com/x/{n}")})).collect::>()}); + let both = rel(&["LocationSpooferStandalone.exe", "LocationSpooferStandalone.exe.sha256", "iDevBench.exe", "iDevBench.exe.sha256"]); + assert_eq!(release_exe(&both).unwrap().0, "https://github.com/x/iDevBench.exe"); + let old = rel(&["LocationSpooferStandalone.exe", "LocationSpooferStandalone.exe.sha256"]); + assert_eq!(release_exe(&old).unwrap().1, "https://github.com/x/LocationSpooferStandalone.exe.sha256"); + assert!(release_exe(&rel(&["iDevBench.exe"])).is_none()); + } #[test] fn versions() { assert!(is_newer("standalone-v0.2.5", "0.1.9")); diff --git a/ui/app.js b/ui/app.js index 1ea2a0a..d44cb53 100644 --- a/ui/app.js +++ b/ui/app.js @@ -1,5 +1,5 @@ /* iDevBench — UI shared by the standalone and browser apps. Talks to the local server at /api. - Copyright (c) 2026 YK3D. All rights reserved. Licensed under the Location Spoofer License (LICENSE). */ + Copyright (c) 2026 YK3D. MIT License (LICENSE). */ "use strict"; // ------------------------------------------------------------------ helpers @@ -2613,6 +2613,7 @@ async function joySend(moving, bearing) { joyLast = key; try { await api("/api/joystick", { body: { moving, bearing, speed_kmh: speed } }); + if (moving) poll(); // otherwise the idle 2 s poll leaves the marker frozen for up to 2 s after a press $("joy-info").textContent = moving ? `Moving ${Math.round(bearing)}° at ${speed} km/h` : "Holding position"; } catch (e) { joyLast = ""; toast(e.message, true); } } @@ -2961,7 +2962,7 @@ async function refreshGoogleStatus() { const SITE = "https://idevbench.vercel.app"; // the website hosts the Terms, Privacy Policy and licences const TUTORIAL = [ { title: "Welcome", body: [ - "This app sets your iPhone's location from this computer over a USB cable: jump to any place, follow routes at realistic speeds, or replay GPX files.", + "This app works with your iPhone from this computer over a USB cable: set its location (jump to any place, follow routes at realistic speeds, replay GPX files), and with iOS 27 or newer, mirror and control its screen.", "Use it only where it is allowed, for example testing your own apps. Games and dating, school or work apps often ban fake locations and can suspend accounts.", ["By continuing you agree to the ", ["Terms of Use", `${SITE}/terms`], ". The ", ["Privacy Policy", `${SITE}/privacy`], " explains which online map services the app contacts. Nothing is collected by the app's authors."], "Want to look around first? Pick “Simulator (no iPhone)” as the connection and skip ahead." ], art: "welcome" }, @@ -2988,6 +2989,12 @@ const TUTORIAL = [ "Route: click checkpoints, choose roads, footpaths or sea lanes, set speeds, Build route, then Play. The line's colour shows the speed.", "Every section can be folded away, the side menu can be resized by dragging its edge, and Settings has themes and keyboard shortcuts (press H to see them).", "When you're done, press “Stop spoofing — back to real location”." ], art: "move" }, + { title: "6 · Mirror the screen", body: [ + "Switch to Mirroring at the top of the side menu and press Start mirroring (iOS 27 or newer, with Developer Mode on and the iPhone unlocked).", + "Click to tap, drag to swipe, scroll with the mouse wheel and Ctrl + wheel to zoom. Click the screen and type to use your keyboard; Esc gives it back.", + "The buttons next to the phone press Home, Lock, Volume and Siri, open the app switcher, Control Centre and notifications, and take screenshots and recordings.", + "Connect an AI agent lets Claude, Codex, Cursor and others use the phone for you." ], art: "mirror", + action: { label: "Open Mirroring", run: async () => setMode("screen") } }, ]; // Small animated illustrations for the tutorial steps (drawn with the theme's colours, see style.css). const PIN = (x, y) => ``; @@ -3015,6 +3022,10 @@ const TUT_ART = { ${PIN(253, 76)}`, + mirror: ` + + + `, move: `${ROADS} @@ -3340,8 +3351,8 @@ function renderMirrorDevice() { $("device-select").addEventListener("change", renderMirrorDevice); // The placeholder's home screen: a page of app icons and a dock. (() => { - const colours = ["#ff9f0a", "#30d158", "#0a84ff", "#ff375f", "#bf5af2", "#64d2ff", "#ffd60a", "#ff453a", "#5e5ce6", "#66d4cf", "#ac8e68", "#8e8e93"]; - const icon = (i) => { const e = document.createElement("i"); e.style.setProperty("--c", colours[(i * 7) % colours.length]); return e; }; + const colours = ["#4a4b51", "#5a5b61", "#3f4045", "#66676d", "#505157", "#45464b"]; // greys only: a placeholder, not a real screen + const icon = (i) => { const e = document.createElement("i"); e.style.setProperty("--c", colours[(i * 5) % colours.length]); return e; }; $("sk-grid").append(...Array.from({ length: 24 }, (_, i) => icon(i))); $("sk-dock").append(...Array.from({ length: 4 }, (_, i) => icon(i + 3))); })(); diff --git a/ui/index.html b/ui/index.html index 0edfd6b..72815d4 100644 --- a/ui/index.html +++ b/ui/index.html @@ -472,8 +472,8 @@

iDevBench

+
-