Retrieve FlashInvaders uid

This guide explains how to retrieve the uid for the FlashInvaders app on both Android and iPhone.

⚠️ Important: This method no longer works with recent versions of the FlashInvaders app, as the uid is no longer visible in the logs or network traffic. You will need to use an older version of the app. Older APK (Android) and IPA (iPhone) files can be found on various sites on the internet.

For Android

  1. Enable Developer Mode:
    • Go to Settings > About Phone.
    • Tap the Build Number seven times.
    • Return to Settings and find Developer Options.
    • Toggle Allow USB Debugging.
  2. Install adb (Android Debug Bridge) on your computer.
    Follow this guide to install ADB on Windows, macOS, or Linux
  3. Connect your Android phone to your computer via USB.
  4. Confirm adb is working by running:
    adb devices
    Ensure your device is listed.
  5. Execute the following command to filter the logs (based on your operating system):
    • On macOS:
      adb logcat | grep "space-invaders"
    • On Windows:
      adb logcat | findstr com.ltu.flashInvader
      or
      adb logcat | findstr api.space-invaders.com
  6. Open the FlashInvaders app on your phone and perform an action (e.g., log in to your account).
  7. Look for a line containing your uid in the logs.

For iPhone

  1. Ensure your iPhone and computer are on the same WiFi network.
  2. Install mitmproxy on your computer. Follow these steps based on your operating system:
    • On macOS, use Homebrew: brew install mitmproxy
    • On Windows or Linux, use pip: pip install mitmproxy
  3. Start mitmproxy by running:
    mitmweb
  4. Configure your iPhone to use your computer as a proxy:
    • Go to Settings > Wi-Fi.
    • Tap the i icon next to your connected network.
    • Scroll down to HTTP Proxy, select Manual, and enter your computer's IP address and port 8080.
  5. Open the FlashInvaders app on your iPhone and make a request (e.g., access your account).
  6. Check the mitmproxy logs for a line containing your uid.

Note: Using mitmproxy may require installing a certificate on your iPhone. Visit http://mitm.it in Safari and follow the instructions to install the certificate, enabling trust under Settings > General > About > Certificate Trust Settings.