Nintendo Switch games running natively on Android dual-screen handhelds, with a live companion on the second screen.
Note
Peanuts Native is in development. The current release is on the releases page. It is not affiliated with Nintendo.
Peanuts Native turns a dump of a Switch 1 game you own into an Android app on your phone. It is not an emulator. The game's own ARM64 code is rewritten to run directly on the phone's CPU, its graphics are replayed on Vulkan, and its shaders are translated on the device. Everything happens on the phone: you pick the game file, tap Build, and play.
On a dual-screen handheld such as the AYN Thor, the game plays on the top screen and the bottom screen shows a companion for that game: a map, your party, items or quests, read live from the running game and touchable. Companions use the same package format as Eden Duo, so every Eden Duo companion works here too.
Peanuts Native 0.1.7 includes 59 games. The Companion column shows whether a game appears in the Eden Duo Companions catalog, and the Contributor column the community members who brought a game to Peanuts Native. Updates are shown as version numbers or numeric update IDs.
Every game new in 0.1.7 reached gameplay on an AYN Thor with Turnip. Trails in the Sky 1st Chapter, Yoshi's Crafted World, Star Ocean The Second Story R and Hogwarts Legacy were checked for this release, among them Rail-Yard Run in Yoshi's Crafted World at 60 fps and the London intro in Hogwarts Legacy. Tetris Effect: Connected, Digimon Story Time Stranger and New Pokémon Snap were checked by their contributors on their own AYN Thor.
- A dual-screen Android handheld. Peanuts Native is developed and tested on the AYN Thor. On a single-screen phone the game still runs, without the companion.
- Android 13 or later, a Snapdragon GPU with Vulkan 1.3, and 12 GB of RAM or more. A Turnip Vulkan driver is recommended; the app can download one.
- Free storage for the game and its build. Plan for the size of the game plus a few GB.
- Your own
prod.keys, your own firmware dump (a folder or a.zip) and your own game dump (NSP, XCI, either compressed as NSZ or XCZ, or a dump folder), with its update.
Peanuts Native only runs games you dumped from your own console, with keys from that console. It contains no Nintendo code, firmware or keys, never downloads any, and does not link to places that offer them. Nobody from this project will ever ask you for money, keys or game files.
- Install the APK and allow All files access when asked.
- On the first screen, add your Keys (
prod.keys), pick your Game folder, and add your Firmware. Both keys and firmware are needed before the first build. A build folder is optional (Settings, Library, Build folder): pick one, on the phone or the microSD card, to keep every build there, organized by title ID. - Open a game from the library and tap Build. The app imports the game, rewrites its code, translates its shaders and installs its companion. Most games take 5 to 40 minutes on the Thor.
- Tap the game to play. The companion starts on the bottom screen.
Hold a game's cover to open its own page: picture and speed settings, mods, the companion, saves and storage. After an app update, rebuilding every game is strongly recommended: hold the cover, open Storage, tap Build again, then Rebuild.
- Console mode: Docked or Handheld, for all games in Settings and per game on its page. It can also be changed while the game runs, from the in-game panel.
- Resolution scale (first version): 0.5x to 2x of the size the game draws at. Not every effect follows it.
- Mods (first version): hold the cover, Game tab, Mods. Install a mod from a folder or a zip. It is on from the game's next start, and each mod has a switch and a delete button. A mod that changes the game's code gets a build with mods, which starts by itself (it waits while another build runs). Until that build is ready, the game starts without that mod. After a failed build, tap Build with mods to try again.
- Saves: back up, restore, import and Delete save data on the game's Saves tab.
A game can also be built on a computer and pushed to the device: see BUILDER.md. The builder is tested on macOS and Linux. Windows is written but not tested yet. On Linux it also builds four games whose shaders are Oodle-compressed or in Unreal archives; for the Oodle ones it compiles a separate open-source decoder (ooz, GPL-3.0-or-later), which is used on the computer only and is not part of the app.
Open Settings, then Companions, to see every companion and every release of it. You can install, update, remove or roll back to an earlier release, and each download is checked against its published checksum before it is used. A game without a companion leaves the bottom screen free for Android. Companion screens give haptic feedback when you tap them.
The companions themselves are published in eden-duo-companions, with screenshots and what each one shows.
Is this piracy? No. It runs only a dump of a game you own, made from your own console, and ships no game code, firmware or keys.
My game update is different from the table. Will it work? The game's page tells you. Some games support more than one update; others need the exact one listed. For an unsupported update the app asks before building, and the result may not start.
Can I share my built game or its shaders? No. Both are made from your own game's files. Share nothing derived from a game, and point other players to their own dump instead.
Does the companion slow the game down? Very little. The games above hold their frame rate with the companion running.
More questions and troubleshooting: FAQ.md.
See CONTRIBUTING.md for adding a game, fixing a bug and testing on a device. Run
sh peanuts/scripts/install-hooks.sh once after cloning.
Peanuts Native is a fork of Banana Native by moceure, which does the real work of running Switch games natively on Android and is built on nxnative by seedds (MIT). Some fixes are adapted from nx2android (MIT). The Miis are drawn with the colour tables and face layout of vee (MIT) and their textures decoded with bcdec (MIT).
The companion runtime and package format come from Eden Duo.
Contributors:
- intermission88: the builder for PC, Mac and Linux (
peanuts/docs/BUILDER.md, pull request #13), the profiles of Kirby's Return to Dream Land Deluxe, Kirby and the Forgotten Land, Super Mario 3D World + Bowser's Fury, Tetris Effect: Connected and Digimon Story Time Stranger (pull requests #34, #84, #83, #330 and #269), the guide for adding a game (peanuts/docs/NEW-GAME.md, pull request #34), total play time and the stats page on the bottom screen (pull requests #282 and #289), names in STORY OF SEASONS: Grand Bazaar, EA SPORTS FC 27's second controller and the NVN sampler builder's getters (pull requests #354, #284 and #268), the PC tools on Windows (pull request #328), and fixes to the on-device packer, the release notes popup and the Unreal shader step (pull requests #37, #35 and #71). - davdxpx: the issue and discussion forms rebuilt from the ground up, with a game catalog that also keeps the Supported games table up to date (pull request #175), building from .nsz and .xcz files, the launcher and companion on the second screen, Swap screens, the GPU driver page, Share build log, game icons that outlive their NSP, companion release notes, mod folders left out of the library and Import pack (pull requests #249 and #260), Settings in ten sections with one search (pull requests #315 and #312), users with pictures, Miis and Who's playing? (pull request #321), the Mali PanVK pointer (pull request #296), Tomodachi Life's clock and boot crash fixes (pull requests #336 and #345), and many smaller fixes across the app.
- elliott-groves: development builds that install beside the Peanuts Native app (pull request #60).
- tapionallanaire: building the APK on Windows (pull request #54), the Hogwarts Legacy, Trails in the Sky 1st Chapter, Trails in the Sky 2nd Chapter and Double Dragon Revive profiles (pull requests #95, #221, #164 and #197), the shader readers for Level-5 archives (pull requests #230 and #243), the Unreal 4.27 allocator's page alignment (pull request #236), and the Advance Wars 1+2: Re-Boot Camp memory pool and FINAL FANTASY TACTICS update 1.2.0 (pull requests #231 and #228).
- dnyan007: the DRAGON BALL: Sparking! ZERO profile, its allocator start-up fix and 60 fps, and the sync of GPU-written terrain into block-compressed textures (pull requests #168, #167, #290 and #302).
- skyhong2002: STEINS;GATE RE:BOOT 1.0.4, standalone NUP updates in the library, and Prepare surviving a missed job status read (pull requests #192, #185 and #181).
- ssv0225: the New Pokémon Snap profile with its DRPF archive reader for the shader split and the NVN memory pool builder's getters, and the shader tools running on Linux (pull requests #307, #308, #309 and #310).
- 999sian: Yoshi's Crafted World on Android, with samplers chosen by the view's format, streamed mip levels, bounded draw ranges and buffer-texture classes (pull request #140).
- ts-miller: the encoder opcodes for occlusion queries (pull request #263).
- ArchOwlen: the first issue and discussion forms (pull request #5).
The project as a whole is licensed GPL-3.0-or-later. Frame generation (ported from Eden and lsfg-vk) and other
components carry their own licenses; see android/NOTICE.md and dm/third_party/README.md.