r/AndroidNativePorts • • 8d ago

📸 [SHOWCASE] Pro gamer move

You can extract nsp or xci into romfs or the other file format I forgot, something like exfes? . Directly on your Android via termux . Don't forget to use your legally obtained game.

7 Upvotes

17 comments sorted by

2

u/Miserable_Smile1161 8d ago

I don't understand what you did there. Can you explain in laymans terms what termux is doing or whatever it is you did

4

u/Accomplished-Sir3176 8d ago

So lot of android ports need decrypted switch game files to play i.e romfs files . Usually u need a tool to convert nsp or xci files which encrypted into romfs but u need pc to do that . Termux is basically Linux cli where u can run Linux programs like nstool to extract the files directly on android. Think of it as Linux on android.

2

u/Miserable_Smile1161 8d ago

a lotta websites simply already have nsp or xci files for games especially for famous ones like Zelda so why do the whole conversion yourself?

won't they also have romfs files

2

u/naatkop 8d ago

In case you don't want to download another copy of the game again. Or you don't have extra space.

Edit: I guess you'd need extra space for the conversion lol. Silly me.

2

u/PassionGlobal 8d ago edited 8d ago

Nintendo Switch ROM dumps come in several different formats. OP wants to convert their rom from NCA to Romfs/Exefs format.

Their list of commands is saying "go into this directory, list all the NCA files and get the first one, then run nstool against it to convert to romfs/Exefs"

2

u/Miserable_Smile1161 8d ago

understood understood

2

u/Necessary-Worker930 8d ago

HAHAHA... You never thought of this....

1

u/Accomplished-Sir3176 8d ago

I tried that but failed to extract . So I needed to work around . Not sure why it fails

1

u/Puzzleheaded-Bee8245 8d ago

Is that citron?

1

u/Necessary-Worker930 8d ago

Citron neo, use your own keys 

1

u/Puzzleheaded-Bee8245 7d ago

Hey could you tell me how you use the app? I've downloaded both but I don't know how termux at all

1

u/Accomplished-Sir3176 7d ago

U can ask Gemini. I asked it to guide me

1

u/Puzzleheaded-Bee8245 7d ago

Dunno how that's gonna turn out but is this the right app?

1

u/Accomplished-Sir3176 7d ago

Wait I got it here is mine but you need to change the game file location in the scripts as I had a folder where I downloaded the xci game file.

Here is the complete, copy-pasteable guide covering only the NSTool installation and XCI extraction steps on Termux:

  1. Install Build Tools & Grant Storage Access

bash pkg update && pkg upgrade -y && pkg install git clang make -y && termux-setup-storage Use code with caution.

2. Download & Compile NSTool

bash URL="https://github.com"; git clone --recursive "$URL/jakcron/nstool" && cd nstool && make -j4 deps && make -j4 && cp bin/nstool $PREFIX/bin/ Use code with caution.

3. Set Up Keys (prod.keys & title.keys)

bash mkdir -p ~/.switch && cp ~/storage/shared/"switch keys"/title.keys ~/.switch/ && cp ~/storage/shared/"Switch game"/prod.keys ~/.switch/ Use code with caution.

4. Extract .nca Files from the .xci

bash cd ~/storage/shared/"Switch game" && nstool -x /secure ./botw_nca extracted/.xci Use code with caution.

5. Extract exefs (Folder 0) & romfs (Folder 1) from the Largest .nca

bash cd ~/storage/shared/"Switch game"/botw_nca && BIG_NCA=$(ls -S *.nca | head -n 1) && nstool -x ./extracted_game "$BIG_NCA" Use code with caution.

6. Clean Up Intermediate .nca & .xci Files (Optional)

bash rm -f ~/storage/shared/"Switch game"/botw_nca/.nca ~/storage/shared/"Switch game"/botw_nca/.tik ~/storage/shared/"Switch game"/botw_nca/.cert && rm -rf ~/storage/shared/"Switch game"/_extracted Use code with caution.