[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112796":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":12,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":15,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":12,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":9,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":14,"starSnapshotCount":14,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},112796,"Swap2-Native","mamcjr\u002FSwap2-Native","mamcjr","Switch 2 games running natively on Android phones (fork of Banana Native)",null,"C",88,4,8,0,17,34,53.71,"MIT License",false,"main",true,[],"2026-11-22 03:20:23","2026-11-23 19:43:08","# Swap2-Native\n\nPlay your own copies of Nintendo Switch 2 games natively on Android phones.\n\nIt is not an emulator: the game's own ARM64 code runs directly on the phone's CPU (rewritten only where Android's kernel requires it), a host answers the Switch 2's system calls and services, the game's NVN2 graphics commands are replayed on Vulkan, and its shaders are translated to SPIR-V, offline on a computer or on the phone itself. The app is `com.swap2native`; one APK runs every game.\n\nForked from Banana Native v0.1.1 by moceure, itself built on nxnative by seedds (MIT).\n\n> [!CAUTION]\n> Only download the app from this repository's [Releases](https:\u002F\u002Fgithub.com\u002Fmamcjr\u002FSwap2-Native\u002Freleases). Copies elsewhere are not made here.\n\n> [!IMPORTANT]\n> Experimental. Most of this code was written with AI coding assistants and tested by hand on two phones. Expect bugs, heat and slowdowns.\n\n## Games\n\nThe Legend of Zelda: Ocarina of Time is the focus of this fork. Status on the phone, from each game's note:\n\n| Game | Title ID | Version | Status on Android |\n|---|---|---|---|\n| [The Legend of Zelda: Ocarina of Time](dm\u002Fgames\u002F0400486024DEC000\u002FREADME.md) | `0400486024DEC000` | update v131072 | **In bring-up, gets into gameplay.** Opening and title movies at 60 fps; Link's house at about 30 fps (up to about 38 fps with FSR 1 in place of the game's upscaler network). Open: some UI text missing, an occasional process exit, the phone throttling |\n| [Donkey Kong Bananza](dm\u002Fgames\u002F040074A01BF12000\u002FREADME.md) | `040074A01BF12000` | update v458752 | **Plays**: about 30 fps on the POCO F7 Ultra with Turnip |\n| [Mario Kart World](dm\u002Fgames\u002F0400C3F00006E000\u002FREADME.md) | `0400C3F00006E000` | 1.8.0 | **In bring-up, not playable**: the game starts, then runs out of memory before its first frame |\n| [Pokémon Pokopia](dm\u002Fgames\u002F0400A3A01EE4C000\u002FREADME.md) | `0400A3A01EE4C000` | update v655360 (Ver. 2.0.1) | **Experimental**: the opening and the first walking scene, then it stops before the character comes out of a Poké Ball (open) |\n\nA dump of another game build is refused by the build check, with a message that says which build the app needs. The [games table](dm\u002Fgames\u002FREADME.md#games) lists every profile in this tree, most of them nxnative's Switch 1 games for Apple platforms.\n\n## Tested phones\n\n| Phone | Chip | Tested with |\n|---|---|---|\n| POCO F7 Ultra | Snapdragon 8 Elite (Adreno 830) | Qualcomm system driver, or Turnip (Turnip Gen8 from the app's driver download) |\n| RedMagic 11 Air | Snapdragon 8 Elite (Adreno 830) | used to prepare Zelda: Ocarina of Time (2026-11-07); driver not recorded |\n\nOther phones are untested. Settings › **Readiness check** says what a phone lacks before a game starts (for example a driver without placed memory maps, which some Qualcomm drivers lack: Settings › GPU driver installs a Turnip).\n\n## What you need\n\n- Android 13 or newer on a 64-bit phone with a Snapdragon (Adreno) GPU and 12-16 GB of RAM.\n- Your own game, dumped from your own console: a dump folder (`base\u002F`, `updates\u002F\u003Cversion>\u002F`, `dlc\u002F\u003Ctitle ID>\u002F\u003Cn>\u002F`) or a `.nup` file ([android\u002FNUP.md](android\u002FNUP.md)). No keys or firmware are needed or used.\n- Free space for the preparation: the dump is read in place; a game's pack and shader library take hundreds of MB to a few GB, and Prepare needs a few GB more while it runs.\n\n## Install\n\n1. Download the APK from [Releases](https:\u002F\u002Fgithub.com\u002Fmamcjr\u002FSwap2-Native\u002Freleases) and install it.\n2. Open **Swap2-Native** and allow **All files access** (the app reads your games from shared storage).\n3. Optional: Settings › **GPU driver** to pick the system driver or install a Turnip, and Settings › **Readiness check**.\n\n## Prepare a game\n\nNew to the app? **Getting started** explains file selection and preparation. Open it from the empty library, Add game, or Settings → About. For a `.nup`, select the file itself; do not extract it. If Recent or Downloads cannot locate it, browse through Internal storage to its local folder. The app explains import failures and offers another selection without changing your dump.\n\nEach game is prepared once: its code is rewritten for Android and its shaders are translated for Vulkan. The app does this on the phone ([android\u002FLIBRARY.md](android\u002FLIBRARY.md)):\n\n1. Copy your dump (folder or `.nup`) into `\u002Fsdcard\u002FSwitch2\u002FGames` on the phone.\n2. In the app, choose that folder as your library. The app recognizes the games by title ID, uses the built-in profile for each and fetches its cover.\n3. Tap **Play** on a game. The first time, it prepares the game first: code rewrite, shader split and translation. It runs in the background with a notification and can be paused; keep the phone charging and the app exempt from battery optimization. Nothing is uploaded. Zelda's 42,000 shaders take the longest.\n4. When it is done, **Play** starts the game.\n\nA phone that should not translate shaders can import them instead: the game's ⋯ › **Import shaders…** takes a zip made by **Export shaders…** on another phone, and Prepare then only rewrites the code ([android\u002FSHADERS.md](android\u002FSHADERS.md#shader-zips)).\n\n### The Switch2 folder\n\n| Folder | What |\n|---|---|\n| `Switch2\u002FGames\u002F` | your games: dump folders and `.nup` files |\n| `Switch2\u002FWork\u002F\u003Ctitle ID>\u002F` | a game's work folder: Prepare's working files, and a pack made on a computer (`android-pack`) |\n| `Switch2\u002FMods\u002F\u003Ctitle ID>\u002F` | the game's exefs mods (IPS, IPS32, `.pchtxt`) |\n| `Switch2\u002FShaders\u002F` | shader zips from Export shaders… |\n| `Switch2\u002Fprofiles\u002F\u003Ctitle ID>\u002F` | a profile for a game the APK does not carry |\n\nPrepared packs and saves stay in the app's own storage (`Android\u002Fdata\u002Fcom.swap2native\u002Ffiles\u002Fpacks` and `saves`); a game's ⋯ menu backs saves up to `Switch2\u002Fsave-backups\u002F\u003Ctitle ID>\u002F` and exports or imports them. Details: [android\u002FREADME.md, The Switch2 folder](android\u002FREADME.md#the-switch2-folder).\n\nA pack can also be made on a computer with `scripts\u002Fpack_android.py` and copied to `Switch2\u002FWork\u002F\u003Ctitle ID>\u002Fandroid-pack` ([android\u002FREADME.md, Pack a game](android\u002FREADME.md#pack-a-game)).\n\n## Features\n\n- Game settings per game: resolution (phone 1080p, 720p or the game's own), frame rate cap, GPU driver, extra environment lines.\n- **Upscaling:** AMD FidelityFX FSR 1 for the final picture, and for agl's games (Zelda, Mario Kart World, Donkey Kong Bananza) FSR 1 in place of the game's upscaler network, which is faster on Adreno. Zelda can also draw its 3D scene at 720p.\n- **Frame generation (LSFG):** Lossless Scaling's frame generation, with your own `Lossless.dll` (not included).\n- On-screen controls with a layout editor, gamepads, exefs mods, save backups, pause on return, and a performance overlay.\n\n## Known issues\n\n- The phone gets hot, and the frame rate drops when it throttles.\n- Some Android skins freeze the app in the background, which stops a preparation: exempt it from battery optimization or keep it in front.\n- A new app version can need a game's shaders made again; the app says so and offers Prepare.\n- Per-game issues are in each game's note (linked in [Games](#games)).\n\n## Building\n\nSee [android\u002FREADME.md, Build the APK](android\u002FREADME.md#build-the-apk). Release keys are never in this repository.\n\n## Support the project\n\nSwap2-Native is a free, independent project. If you enjoy it and would like to support its development, you can\nsponsor me on GitHub, Ko-fi, Buy Me a Coffee or via **Pix**. Your support helps me dedicate time to fixing bugs, improving performance and compatibility, and\nworking on future releases. Sponsorship is entirely optional: it does not unlock features or guarantee specific fixes.\nBug reports, device tests, and contributions are also greatly appreciated.\n\nCurrent goal: buy a **POCO X7 Pro ($455)**, a test device equipped with a MediaTek Dimensity SoC and Mali GPU to improve testing and optimize performance across all our ports (BOTWRecompAndroid, TOTKDroid, LASRecompAndroid, and Swap2-Native). The badge below shows total donations received across all platforms; I update it by hand.\n\n[![POCO X7 Pro goal](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdynamic\u002Fjson?url=https%3A%2F%2Fraw.githubusercontent.com%2Fmamcjr%2FBOTWRecompAndroid%2Fmain%2F.github%2Fdonation-goal.json&query=%24.raised&prefix=%24&color=2EA043&logo=xiaomi&logoColor=white&label=POCO%20X7%20Pro%20goal&suffix=%20%2F%20%24455)](https:\u002F\u002Fgithub.com\u002Fmamcjr\u002FBOTWRecompAndroid\u002Fblob\u002Fmain\u002F.github\u002Fdonation-goal.json)\n\n[![Sponsor on GitHub](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FSponsor-on%20GitHub-EA4AAA?logo=githubsponsors&logoColor=white)](https:\u002F\u002Fgithub.com\u002Fsponsors\u002Fmamcjr)\n[![Ko-fi](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FKo--fi-mamcjr-FF5E5B?logo=kofi&logoColor=white)](https:\u002F\u002Fko-fi.com\u002Fmamcjr)\n[![Buy Me a Coffee](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FBuy%20Me%20a%20Coffee-mamcjr-FFDD00?logo=buymeacoffee&logoColor=black)](https:\u002F\u002Fbuymeacoffee.com\u002Fmamcjr)\n[![Pix](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPix-Random%20Key-32BCAD?logo=pix&logoColor=white)](#support-the-project)\n\n> **Pix (Brazil only — random key):** `6c326b56-6caf-4c3a-bcf7-1fa8ad2abd16`\n\n## Credits and licence\n\n- **[Banana Native](https:\u002F\u002Fgithub.com\u002Fmoceure\u002FBananaNative)** by moceure: the direct upstream. Swap2-Native is a fork of its v0.1.1 (commit `d154da1`): the Android host and launcher.\n- **[nxnative](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative)** by seedds (MIT), and everything it credits [below](docs\u002Fnxnative.md#acknowledgements).\n- Mario Kart World findings from [kartnative](https:\u002F\u002Fgithub.com\u002Fpahorema\u002Fkartnative) (pahorema) and [switch2mac](https:\u002F\u002Fgithub.com\u002Fazmasm\u002Fswitch2mac) (azmasm); task and mesh shader lowering from [Eglantine](https:\u002F\u002Fgithub.com\u002Fdjihads80\u002Feglantine) via switch2mac; frame generation ported from [Eden](https:\u002F\u002Fgit.eden-emu.dev\u002Feden-emu\u002Feden) and [lsfg-vk](https:\u002F\u002Fgithub.com\u002FPancakeTAS\u002Flsfg-vk); Zelda: Ocarina of Time findings from [Lichii](https:\u002F\u002Fgithub.com\u002Fzortos293\u002FLichii) (ideas only).\n- **AMD FidelityFX FSR 1** (MIT), [dm\u002Fthird_party\u002Ffidelityfx-fsr1](dm\u002Fthird_party\u002Ffidelityfx-fsr1\u002FREADME.md).\n- Other third-party code and its licences: [dm\u002Fthird_party](dm\u002Fthird_party\u002FREADME.md).\n\nThe Android app is **GPL-3.0-or-later** as a whole ([android\u002FNOTICE.md](android\u002FNOTICE.md)); each release is built from its tagged commit. nxnative's own files keep their MIT licence ([LICENSE](LICENSE)).\n\nNintendo Switch, The Legend of Zelda, Mario Kart, Donkey Kong and Pokémon are trademarks of their owners; this project is not affiliated with or endorsed by Nintendo. It contains no game code, keys or assets: you need your own legally dumped games.\n\nProblems: open an [issue](https:\u002F\u002Fgithub.com\u002Fmamcjr\u002FSwap2-Native\u002Fissues\u002Fnew\u002Fchoose) with the form. Questions and phone reports: [Discussions](https:\u002F\u002Fgithub.com\u002Fmamcjr\u002FSwap2-Native\u002Fdiscussions).\n\n## Upstream\n\nSwap2-Native keeps nxnative's Apple-platform code and tools (iPhone, iPad and Mac builds, Switch 1 games). Their documentation, nxnative's own README, is in [docs\u002Fnxnative.md](docs\u002Fnxnative.md).\n","Swap2-Native 是一款在 Android 手机上原生运行 Nintendo Switch 2 游戏的兼容层工具，非传统模拟器。它通过重写系统调用接口、将 Switch 2 的 NVN2 图形指令实时转译为 Vulkan 并将着色器离线\u002F在线编译为 SPIR-V，实现游戏 ARM64 二进制代码的直接执行。项目基于 nxnative 和 Banana Native，当前聚焦《塞尔达传说：时之笛》等少数游戏的 Bring-up 验证，需 Android 13+、骁龙 Adreno GPU 及 12–16GB 内存。适用于具备高性能移动硬件的开发者与技术爱好者进行 Switch 2 游戏兼容性实验与底层图形栈研究。",2,"2026-11-24 04:44:11","CREATED_QUERY"]