Skip to main content
Tsum Tsum Script
Starter tool

Start the service in one click.

GAP needs a helper service on the phone or emulator. Android only lets a computer start it, and it stops when the device restarts. The starter tool opens a page in your browser: pick your device and press Start service. The same page installs the app, exports your logs and round stats as one zip, clears them off the device, and runs Tsum Tsum Stats beside it. Rooted devices start the service themselves. No computer? Start it from the phone instead.

Windows gets the .zip, macOS and Linux the .tar.gz. Both are under 100 KB of plain-text scripts. Every version is on the releases page.

Best on

An emulator at 540 × 960 on Android 12.

That is the setup the script is optimized for: every screen it reads was measured there. Set your emulator to a 540 × 960 portrait resolution (240 DPI) running Android 12. Phones and other sizes can run it, but that is where it plays most reliably.

Set it up, step by step

About five minutes the first time. After that, it is one double-click (or one command) each time the device restarts.

Before you start

  • A computer running Windows 10 or 11, macOS, or Linux, with an internet connection for the first run.
  • Your emulator started (MuMu, LDPlayer, Nox and MEmu are found by themselves), or your phone plugged in by USB with USB debugging on: Settings › About phone, tap Build number seven times, then Settings › Developer options › USB debugging.
  • Nothing is installed on your computer: the tool lives in its own folder, and deleting that folder removes it.
Your computer:

Download

Get TsumTsum-Starter.zip with the Windows button above. It lands in your Downloads folder. If the browser says the file is uncommon or may be harmful, see Antivirus and download warnings below.

Extract it

  1. Open File Explorer and go to Downloads.
  2. Right-click TsumTsum-Starter.zip and choose Extract All…, then Extract. (With 7-Zip or WinRAR, choose "Extract to TsumTsum-Starter\".)
  3. Open the new TsumTsum-Starter folder. If it holds another folder of the same name, open that one too, until you see Start-Windows, README and a bin folder.

Do not double-click into the zip and run Start-Windows from there. Windows then runs it on its own, without the files beside it, and the window closes straight away.

Keep the folder somewhere you will find again, such as Documents: you run it again every time the device restarts, and it updates itself, so you never need to download it again.

Run Start-Windows

  1. Double-click Start-Windows. Windows may show it as Start-Windows.cmd, with the type "Windows Command Script".
  2. If a blue Windows protected your PC box appears, click More info, then Run anyway. It is a short text file, so you can open it in Notepad and read it first.
  3. A black console window opens. The first time, it asks to download the page's program, tsum-stats (about 25 MB). Press Enter to say yes.
  4. Your browser opens the starter page at http://127.0.0.1:8090/starter/. The first time, the page offers to download Google's adb (8 to 16 MB): accept it.

Leave the console window open while you use the page. To stop, press Stop at the top of the page; the window closes by itself.

Start the service

  1. The page lists every device adb can see. A phone shows as unauthorized until you tap Allow on the "Allow USB debugging?" prompt on its screen; then press Refresh.
  2. Click your device. It stays chosen next time.
  3. Press Start service. After a few seconds it says the service is running.

Install the app and the script

  1. No GAP app yet? Press Install the latest APK. It picks the build for your device's processor.
  2. GAP opens on the device and offers to add the Tsum Tsum library to its Sources: tap Add.
  3. In GAP, add the Tsum Tsum script from the Library, and press Play.

Every time after

The service stops whenever the device restarts. Start the emulator, run Start-Windows again, and press Start service; your device is already chosen. Reinstalling the app does not stop it. A rooted emulator or phone starts the service from inside the app, so it needs none of this.

For a desktop shortcut, right-click Start-Windows and choose Show more options › Send to › Desktop (create shortcut).

The tool updates itself: the page's Updates section checks every few hours, and Update the starter keeps your adb, app downloads and chosen device.

If something goes wrong

Click a problem to open it. The starter's README covers every message it prints.

Most common

Antivirus and download warnings

The starter is a handful of open-source scripts that download two programs and talk to your device over adb. Antivirus software sometimes flags that pattern, and the downloaded tsum-stats program is new and unsigned, so reputation checks have not seen it before. Every download is checked against a recorded checksum, and you can read all of the source. Do not turn your antivirus off; allow just this folder.

The browser blocks the download
  • Chrome: open the downloads list (the arrow at the top right), and on the file choose Keep, and confirm if Chrome asks again.
  • Edge: open Downloads, hover the file, click … then Keep, then Show more and Keep anyway.
  • Firefox: in the downloads panel, right-click the file and choose Allow download.
"Windows protected your PC" (SmartScreen)

Click More info, then Run anyway. It asks once for each new version of the file.

Windows Security (Defender) removed or blocked a file
  1. Open Windows Security from the Start menu, then Virus & threat protection.
  2. Click Protection history, open the entry for the TsumTsum-Starter file, and choose Actions › Restore (or Allow on device).
  3. So it does not happen again: back in Virus & threat protection, Manage settings › Exclusions › Add or remove exclusions › Add an exclusion › Folder, and pick your TsumTsum-Starter folder. Only that folder.
  4. Run Start-Windows again. If a file is still missing, extract the zip again over the same folder; the tsum-stats program and adb are fetched again by themselves.
Avast, AVG, Norton, McAfee, Bitdefender, Kaspersky or another antivirus

The same two steps, under that program's own names: find the file in its Quarantine (Avast and AVG call it the Virus Chest) and restore it, then add the TsumTsum-Starter folder to its Exceptions or Exclusions. Then run the starter again.

Starting it

Windows: the window flashes and closes, or nothing happens
  • Most often the zip was not extracted. Close it, right-click the zip, Extract All…, and run Start-Windows from the extracted folder.
  • Each run is logged to starter-log.txt in the TsumTsum-Starter folder (the run before it to starter-log.prev.txt). Share that file in the Discord when asking for help.
  • To see the message: in the TsumTsum-Starter folder, click the address bar, type cmd and press Enter. In the window that opens, type Start-Windows.cmd and press Enter. The window stays open, so you can copy the error into the Discord.
  • A work computer that locks PowerShell down may not run it at all. The README's "Doing it by hand" section has the two adb commands it boils down to.
macOS: double-clicking Start-Linux.sh opens a text editor

Expected: macOS opens .sh files in an editor. Run it from Terminal, as in step 4 above.

macOS or Linux: "No such file or directory"

Terminal is not in the folder you extracted. Type cd (with a space), drag the TsumTsum-Starter folder from Finder or your file manager onto the window, press Return, then run ./Start-Linux.sh again.

macOS or Linux: "Permission denied"

The extraction tool dropped the scripts' run permission. In the TsumTsum-Starter folder, run this once:

chmod +x Start-Linux.sh bin/posix/*.sh
macOS: I extracted the .zip and nothing works

macOS has blocked the files. Use the .tar.gz instead, or unblock the folder once:

xattr -dr com.apple.quarantine ~/Downloads/TsumTsum-Starter

Change the path if the folder is somewhere else.

The browser page does not open

Open http://127.0.0.1:8090/starter/ yourself while the window is open. If the window shows an error instead, run with --menu (on Windows, -Menu) for a menu in the terminal that does the same service and app tasks.

"Could not download it", or "did not match its checksum"

The first run needs the internet: adb comes from dl.google.com and tsum-stats from GitHub. A firewall, VPN or school network can block either; try another network. A checksum mismatch means the file changed in transit: try again. Without internet at all, the README explains how to place adb by hand or point GAP_ADB at an adb you have.

"already running ... without the starter"

Tsum Tsum Stats is already open on its own. Stop it (Ctrl+C in its window) and run the starter again, which brings the Stats site with it.

Finding the device

No device is listed
  • Start the emulator first, and wait for its home screen. Then press Refresh.
  • A phone needs USB debugging on (step 1) and a USB cable that carries data, not only charge.
  • Still missing, or shown as offline? Press Restart adb, next to Refresh.
  • An emulator on an unusual port, or a fifth instance: set GAP_EXTRA_PORTS to its port before starting. MuMu shows the port under Settings › Other.
The phone shows "unauthorized"

Look at the phone's screen and tap Allow on the USB debugging prompt, then press Refresh. No prompt? Unplug the cable and plug it back in.

The service was running, now it is not

The device restarted: Android stops the service on every restart. Run the starter and press Start service again.

"wrong ABI" or "The installed APK carries ... only"

The app was built for another processor. Press Install the latest APK: it fetches the build for the processor shown in the device list.

Still stuck? Press Export logs & stats on the page and share the zip in the Discord. If the page will not open, copy the text in the terminal window instead.