NetherSX2
NetherSX2 needs one Sony PlayStation 2 BIOS file, any region.
- Download
ps2-0230a-20080220.bin. - Put it in the
biosfolder inside the app's own data folder.
Any file name works. The app reads what the file holds.
About this profile
Technical notes
PlayStation 2 emulator for Android, package xyz.aethersx2.android, activity
xyz.aethersx2.android.EmulationActivity. The project is a patcher rather than
a source tree: it rewrites the AetherSX2 application package, replaces its
data assets and signs the result with its own key. Two lines are published,
one on the AetherSX2 v1.5-4248 package and one on v1.5-3668, and both name
themselves NetherSX2 and keep the same package id. Every statement below was
read from the shipped arm64 library lib/arm64-v8a/libemucore.so, which is
stripped, and confirmed against the unpatched AetherSX2 packages the project
distributes for its own build step.
ref: decomp/Extract.bat:1, old/scripts/patch-apk.sh:24-33,
nethersx2 v2.2n-4248 AndroidManifest.xml
The patch touches three instructions in the 4248 library. Two turn the
compare-and-branch that follows a certificate comparison into a plain branch,
which is what lets the package be resigned. The third replaces the test that
gates BIOS acceptance. Everything reached by the file loading paths is
byte for byte the AetherSX2 build, so the file set below is that build's,
read from the 4248 library rather than carried over from another release.
The 2.2n library differs from the 2.1 one only in its version strings. The
repository has since added a fourth instruction at 0x81b264, which lets the
RetroAchievements hash of a disc go out past a zero-length check and touches
no file. The 2.2n package does not carry it.
ref: decomp/Hackify.bat:24-28, decomp/Hackify.bat:29-30,
nethersx2 v2.2n-4248 libemucore.so 0x838560,
nethersx2 v2.2n-4248 libemucore.so 0x83b324
A BIOS image is required and boot stops without one, the application saying
it needs a PS2 BIOS in the bios folder of the data directory. The data
directory is getExternalFilesDir(null) with getDataDir() behind it, and the
folder names under it come from the Folders section, Bios defaulting to bios.
A script in the repository moves that root to /storage/emulated/0/NetherSX2
once all-files access is granted, and patches out the library check that
requires the package name in the path. The published packages do not carry it.
ref: nethersx2 v2.2n-4248 libemucore.so 0xf70a9,
nethersx2 v2.2n-4248 libemucore.so 0x7ea914-0x7eaa8c,
xyz/aethersx2/android/NativeLibrary.smali initializeOnce,
patches/, patches/
Detection is by content. The scan lists the BIOS folder with a * mask, keeps
files between 4194304 and 8388608 bytes, and accepts an image whose romdir
carries a RESET entry followed by a readable ROMVER. The fifth ROMVER
character gives the zone, A for USA, C for China, E for Europe, H for Asia,
J for Japan, P for Free, T for T10K and X for Test, any other character
standing for itself, and an EXTINFO entry is read along the way. Stock 4248
also required
the sixth character to differ from D, which turned away development images.
The patch forces that result to true, and the 3668 line never carried the
test. An image named in the configuration is combined with the BIOS folder and
opened at that path when it exists, without the size filter and without the
romdir test. No name and no hash is matched anywhere. The image is read into
the 4 MB ROM region and truncated to it, and one shorter than 2465792 bytes
turns off the OSDSys parameter HLE.
ref: aethersx2/,
aethersx2/,
aethersx2/,
aethersx2/,
nethersx2 v2.2n-4248 libemucore.so 0x828d80-0x828f10,
nethersx2 v2.2n-4248 libemucore.so 0x829020-0x8292c0,
nethersx2 v2.2n-4248 libemucore.so 0x829244-0x829248
Companions derive from the selected image. rom1 and rom2 are appended to the
full name first, then substituted for the existing extension, so an image at
ps2-0230a-20080220.bin is followed by ps2-0230a-20080220.bin.rom1 then
ps2-0230a-20080220.rom1. The nvm and the mec are read at the substituted
extension only, and both are written with defaults when they are absent or
too short. No erom is loaded on this code line.
ref: aethersx2/,
aethersx2/,
aethersx2/,
nethersx2 v2.2n-4248 libemucore.so 0x8288b0-0x828b90
The network adapter opens eeprom.dat and flash.dat by bare name, so they
resolve against the process working directory, which the application never
sets. A compiled-in image stands in for the first and a card filled with 0xFF
for the second. DEV9hdd.raw is the default name of the empty disk image its
settings page writes. The 2.2n settings pages add the network adapter,
DEV9/Eth/EthEnable off by default. An IRX named in the configuration is read
into the ROM region at 0x3C0000 at boot. The field is empty by default and
names no file of its own.
ref: aethersx2/,
aethersx2/,
aethersx2/,
nethersx2 v2.2n-4248 libemucore.so 0x7c5bec-0x7c5ca0,
nethersx2 v2.2n-4248 libemucore.so 0x828bc0-0x828ca0,
nethersx2 v2.2n-4248 res/xml/system_preferences.xml
Resources are read out of the package itself. The library has no asset manager of its own and calls back into readPackageFile, readPackageFileToString and playSoundAsync, each taking an asset-relative name, so the game database, the patch archives, the interface fonts, the shader sources every backend compiles at startup and the achievement sounds are versioned with the build and never looked for on disk. The game list draws its region flags and rating stars from the same assets. The project ships its own game database, patch archives and help pages, and adds two files the 4248 package does not carry, placeholder.png, which the library names outright, and the Polish flag the game list can ask for. Java line numbers in the file refs are jadx 1.5.1 output of classes.dex. ref: nethersx2 v2.2n-4248 libemucore.so 0x8348d0, nethersx2 v2.2n-4248 libemucore.so 0x834bb0, xyz/aethersx2/android/NativeLibrary.smali readPackageFile, xyz/aethersx2/android/NativeLibrary.smali playSoundAsync
8 files: 1 required, 7 optional. 4 have an HLE fallback. 33 more files come with the app.
In this collection: 6 in repo, 1 missing and 1 unsourceable.
Required
Section titled “Required”| File | Status |
|---|---|
ps2-0230a-20080220.bin) |
in repo |
Optional
Section titled “Optional”| File | Status |
|---|---|
ps2-0230a-20080220.rom1DVD player ROM
Source
|
in repo |
ps2-0230a-20080220.rom2Chinese ROM extension
Source
|
in repo |
ps2-0230a-20080220.nvmConsole NVRAM
Validation and source
|
in repo HLE fallback |
ps2-0230a-20080220.mecMechacon version
Validation and source
|
in repo HLE fallback |
eeprom.datDEV9 EEPROM
Source
|
in repo HLE fallback |
flash.datDEV9 SmartMedia flash image
Source
|
missing HLE fallback |
<module>.irxIOP module injected at boot
Source
|
unsourceable |
Comes with the app
Section titled “Comes with the app”| File | Hash |
|---|---|
GameIndex.yamlGame database
Hashes and source
|
MD5 26ab10d8de93 |
cheats_ws.zipWidescreen patch archive
Hashes and source
|
MD5 cc19970629fe |
cheats_ni.zipNo-interlacing patch archive
Hashes and source
|
MD5 fb2a43dcea09 |
Roboto-Regular.ttfInterface font
Hashes and source
|
MD5 86da78cb5957 |
RobotoMono-Medium.ttfFixed-width interface font
Hashes and source
|
MD5 8ad82b1dc550 |
fa-solid-900.ttfFont Awesome icon font
Hashes and source
|
MD5 dffd9504fcb1 |
ffx_a.hFidelityFX common header
Hashes and source
|
MD5 2c539b603dcb |
ffx_cas.hFidelityFX CAS header
Hashes and source
|
MD5 f8a3d7f48ae1 |
fxaa.fxFXAA shader source
Hashes and source
|
MD5 5cdeb2963c1b |
common_header.glslOpenGL shader preamble
Hashes and source
|
MD5 1dcf4ca0cc95 |
convert.glslOpenGL format conversion shader
Hashes and source
|
MD5 c3db4fcdd142 |
present.glslOpenGL presentation shader
Hashes and source
|
MD5 afbb9a89f17e |
merge.glslOpenGL frame merge shader
Hashes and source
|
MD5 2c4d70f62928 |
interlace.glslOpenGL deinterlacing shader
Hashes and source
|
MD5 0e537dd838a7 |
shadeboost.glslOpenGL brightness and contrast shader
Hashes and source
|
MD5 3d1e2be521a6 |
cas.glslOpenGL sharpening shader
Hashes and source
|
MD5 f8a684763e24 |
tfx_vgs.glslOpenGL texture function vertex and geometry shader
Hashes and source
|
MD5 a97e9616f298 |
tfx_fs.glslOpenGL texture function fragment shader
Hashes and source
|
MD5 24e39ca8f97a |
tfx.glslVulkan texture function shader
Hashes and source
|
MD5 f80e78f88892 |
convert.glslVulkan format conversion shader
Hashes and source
|
MD5 7146002ee907 |
present.glslVulkan presentation shader
Hashes and source
|
MD5 72626d625bb9 |
merge.glslVulkan frame merge shader
Hashes and source
|
MD5 b776383d2160 |
interlace.glslVulkan deinterlacing shader
Hashes and source
|
MD5 bf3caa253287 |
shadeboost.glslVulkan brightness and contrast shader
Hashes and source
|
MD5 366b45b6c4e9 |
cas.glslVulkan sharpening shader
Hashes and source
|
MD5 56f3cf4de895 |
unlock.wavAchievement unlock sound
Hashes and source
|
MD5 4d035ee86f83 |
lbsubmit.wavLeaderboard submission sound
Hashes and source
|
MD5 fa6a7030a9f2 |
message.wavAchievement notification sound
Hashes and source
|
MD5 d66b0bccd743 |
placeholder.pngFallback interface texture
Hashes and source
|
MD5 8f846541ccbf |
<region>.pngGame list region flag
Source
|
- |
star-<rating>.pngGame list compatibility rating icon
Source
|
- |
faq.htmlHelp page
Hashes and source
|
MD5 c2a64e0bcc40 |
3rdparty.htmlThird party notices page
Hashes and source
|
MD5 fb4ff036f3e4 |
Next steps
Section titled “Next steps”- Get the files, for the setup in use
- Every system, and the files each one needs
- When a game does not start