Five earlier attempts at catching this hang keyed on something STOPPING -- frames, then lock traffic -- and every one missed it, because nothing stops. Measured on the hung device: PPU[0x1000000] burning 4.36s of CPU across 4s of wall clock, more than a full core, while rsx::thread spun on NV406E_SEMAPHORE_ACQUIRE. Tales of Xillia 2 white-screens when its Bandai logo is skipped, and the guest's main thread is not blocked at all -- it sits in a tight guest-side wait loop, making no syscalls, taking no locks and writing no log lines. A frame-based detector saw frames still flipping, a lock-based one saw a peak of 10 locks/sec to fall from, and neither was wrong about what it measured. They were measuring the wrong thing. So look for the opposite of a stall: a thread that is RUNNING -- no cpu_flag::wait, meaning not parked in a syscall -- whose cia has not left a 1 KiB window for 30 seconds. A spin loop is a few instructions branching to themselves; ordinary execution walks cia across the binary many times a second. Threads waiting in a syscall are skipped, so an idle game cannot trip it. Dumps twice, 15s apart, so the second shows whether cia moved at all between them, and reports its own state every 10s: threads tracked, longest spin, dumps taken.
ARMSX3
Uses the latest RPCS3 upstream code (the recent ARM64 improvements included).
Building
arm64-v8a and armv8.2 is supported. You need the Android SDK with NDK r27 or newer, CMake 3.30 or newer, and a JDK 17. Android Studio ships all of these.
Clone with submodules, then fetch the two third party checkouts that are not submodules:
git clone --recursive https://github.com/ARMSX2/ARMSX3.git
cd ARMSX3
git clone https://github.com/SnowflakePowered/librashader 3rdparty/librashader
git clone https://github.com/bylaws/libadrenotools android/armsx3-ui/app/src/main/cpp/libadrenotools
Build the core. This is the long part and produces an unstripped library of around 1.3 GB:
export ANDROID_HOME=$HOME/Library/Android/sdk
cmake -B build-android -G Ninja \
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_HOME/ndk/<version>/build/cmake/android.toolchain.cmake \
-DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-31 \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build build-android --target rpcsx-android -j8
Strip it and put it where the app expects it:
llvm-strip --strip-unneeded build-android/android/libarmsx3-core.so
cp build-android/android/libarmsx3-core.so \
android/armsx3-ui/app/src/main/jniLibs/arm64-v8a/
Then build the app:
cd android/armsx3-ui
export JAVA_HOME="/Applications/Android Studio.app/Contents/jbr/Contents/Home"
./gradlew :app:assembleRelease
The apk lands in app/build/outputs/apk/release/.
Note that the core library has to be rebuilt and copied again whenever anything under rpcs3/ or android/src/ changes. Gradle does not build it for you.
The Discord Social SDK is proprietary and is not redistributed here. Get it from Discord's developer portal and drop it in app/libs/ and app/src/main/cpp/discord_sdk/ if you want that feature. The build skips it otherwise.
Running it needs PS3 firmware, which is not included. License
GPL-2.0-only, the same as RPCS3. See LICENSE. Some files may be licensed differently, check the file headers.
Based on RPCS3, https://github.com/RPCS3/rpcs3