Wireless Debugging Setup
Overview
On some devices, Android does not let RAOfflineProxy open the emulator settings folders under Android/data. The system folder picker greys out Use this folder or shows To protect your privacy, choose another folder.
Use Wireless debugging solves this without a computer and without extra apps. RAOfflineProxy connects to Android's built-in Wireless debugging on the same device and uses it to edit the emulator settings files.
If the normal emulator patching works on your device, you do not need this page.
Requirements
- Android 11 or newer
- Developer options turned on (Settings > About phone > tap Build number 7 times; the exact place depends on your device)
- A Wi-Fi connection while patching. Android only allows Wireless debugging on Wi-Fi. The network does not need internet.
- Notifications allowed for RAOfflineProxy. You type the pairing code into its notification.
- Your RetroAchievements login in the app. In this mode RAOfflineProxy cannot read the login from the emulator, so it asks for your username and password once. Only the resulting token is stored.
Turn it on
- Open Settings in RAOfflineProxy and turn on Use Wireless debugging.
- Log in with your RetroAchievements username and password when the app asks.
- Fully close RetroArch, Dolphin and PPSSPP.
- Press Start proxy.
The first time, the app shows short instructions and a notification:
- Open Developer options > Wireless debugging and turn it on.
- Tap Pair device with pairing code.
- Pull down the RAOfflineProxy notification, tap Enter pairing code and type the 6-digit code.
RAOfflineProxy then patches the emulators and starts the proxy by itself. Pairing is needed only once. Later, the app connects without a code as long as Wireless debugging is on.
When it is done, you can turn off Wireless debugging again.
How it works
- Start proxy patches only the emulators that are not patched yet. After the first time, starting the proxy does not need Wireless debugging at all.
- The patch stays when you stop the proxy. This way, you do not need Wireless debugging every time you play.
- If you change the proxy port, the next Start proxy patches the emulators again.
- Turning the switch off removes the patch from all emulators. Stop the proxy first and have Wireless debugging on.
WARNING
While the patch is in place, the emulators send RetroAchievements traffic to RAOfflineProxy. If the proxy is not running, achievements will not work. Start the proxy before you play, or turn the switch off to go back to normal.
Emulators
Wireless debugging is used for emulators that store their settings in a file:
| Emulator | File | What changes |
|---|---|---|
| RetroArch | retroarch.cfg | Custom achievement server set to the proxy, hardcore mode off |
| Dolphin | Config/RetroAchievements.ini | HostUrl set to the proxy, hardcore mode off, saved login added. Game settings files that turn hardcore on are changed too, and restored later. |
| PPSSPP | PSP/SYSTEM/ppsspp.ini | AchievementsHost set to the proxy, hardcore mode off |
Before the first change, the app saves a copy of each file next to it, for example retroarch.raofflineproxy.cfg. When you turn the switch off, the original hardcore setting comes back.
Emulators that accept the proxy address directly (a host-override broadcast, see Emulator Patching) do not need Wireless debugging. This also applies to Dolphin and PPSSPP builds that support it. For those, RAOfflineProxy sets the address each time you start the proxy, as usual.
PPSSPP storage folder
If you changed the PPSSPP storage folder, for example to a folder on your SD card, RAOfflineProxy searches internal storage and SD cards for PSP/SYSTEM/ppsspp.ini. This takes a few seconds and happens only once. The app remembers the folder.
If the app finds no file or more than one, it asks you to choose the PPSSPP folder. Choose the folder that contains the PSP folder.
If you have never started PPSSPP, there is no settings file yet. Start PPSSPP once, close it, then start the proxy again with Wireless debugging on.
Safety
RAOfflineProxy only runs a small, fixed set of file commands over Wireless debugging: check if the emulator is running, read the settings file, save a backup, write the new file and check it. It cannot run other commands, and it only writes to the settings files listed above.
The connection is used only while patching. You can turn Wireless debugging off right after.
Troubleshooting
"Wireless debugging seems to be off" The app is waiting for Wireless debugging. Turn it on in Developer options. Make sure you are on Wi-Fi.
"Pairing failed" Keep the pairing dialog in Developer options open while you type the code. If it closed, tap Pair device with pairing code again and type the new code.
"RetroArch is running" (or Dolphin, PPSSPP) The app never changes a file while the emulator is open, because the emulator could overwrite it. Close the emulator fully (swipe it away in recent apps), then try again.
"PPSSPP skipped: its settings file was not found" See PPSSPP storage folder. The proxy still starts for the other emulators.
"Stop the proxy first" Turning the switch off removes the patch. This only works while the proxy is stopped.
The emulator still uses old settings Fully close the emulator, then open it again after RAOfflineProxy is done.
