Skip to content

Releases

RetroShark v0.1.1

Choose a tag to compare

@DarkLucario DarkLucario released this 04 Dec 18:01

RetroShark v0.1.1

What's New & Improved

  • Single-file non-rooted setup for AYN Thor / Odin (tools/retroshark-root-bridge.sh):
    Non-rooted devices with a built-in Run script as Root setting now only need a single script file (retroshark-root-bridge.sh). It automatically extracts retroshark-memory from the installed RetroShark APK and starts the root bridge.
  • Faster Root Bridge IPC:
    • list, maps, and regions now run directly inside the retroshark-memory bridge process instead of spawning a new child process on every request.
    • Upgraded bridge framing to 64 KiB single-syscall writes and 64 KiB buffered socket reads (BufferedInputStream).
  • UI, Controller & Performance Fixes:
    • Fixed Compact/Full keyboard layout switching in ValueKeyboard.
    • Applied the active theme in LauncherActivity, updated its theme summary label, and fixed startOverlay(displayId).
    • Fixed WorkspaceWindow portrait cutout/insets flags when switching displays, removed a dialog OnGlobalLayoutListener leak, and cached ControllerMap bindings instead of reading preferences on every key event.
    • Moved LauncherActivity SAF imports/exports and EmulatorTools code staging off the main UI thread.
    • Cached HelperInstaller and ARM32 speed-helper extractions by APK timestamp; pre-allocated Canvas/Paint/Path/TextPaint objects in UiToggleButton, UiIcons, ResultRowButton, and MemoryRowButton.
    • Made ProcessPicker grid columns responsive to screen width, stripped UTF-8 BOM in .cht profile parsing, and fixed LiveWorkspace dialog button sizing, freeze comparison for NaN/Infinity, and ControllerHotkey early-close cleanup.
  • Rust Engine & Scripting Fixes:
    • Added Drop (munmap) and EIO dmabuf window refresh in TargetMem (daemon mode now picks up newly mapped /dmabuf regions).
    • Coalesced contiguous patch writes and aligned daemon readback checks with one-shot patch.
    • Replaced per-wave thread spawning in first_stream_parallel with a single scoped worker pool, and optimized process_pagemap with partition_point and reusable scratch buffers.
    • Fixed gg.dumpMemory /proc/<pid>/maps pathname parsing when DUMP_SKIP_SYSTEM_LIBS is set.

Installation

Rooted Devices

  1. Install RetroShark.apk (adb install -r RetroShark.apk or open it on your device).
  2. Open RetroShark, grant root access in your root manager, and allow the overlay permission.

Non-Rooted Setup (AYN Thor / Odin — "Run script as Root")

If your device is not rooted but has a built-in Run script as Root option in Settings, you only need one script file (retroshark-root-bridge.sh):

  1. Install RetroShark.apk on your device.
  2. Copy retroshark-root-bridge.sh (from tools/retroshark-root-bridge.sh) to your device's Download folder (/sdcard/Download/retroshark-root-bridge.sh), or push it via ADB:
    adb push .\tools\retroshark-root-bridge.sh /sdcard/Download/
  3. On your handheld, open Settings → Thor settings (or Odin settings) → Run script as Root.
  4. Select /sdcard/Download/retroshark-root-bridge.sh.
  5. Wait for it to print RetroShark root bridge ready (app UID ...). Open RetroShark now., then open RetroShark and grant the overlay permission.
  6. The bridge stays running in the background across RetroShark launches until you reboot.