Skip to content
This repository has been archived by the owner on May 21, 2022. It is now read-only.

Debugging

Austin H edited this page Sep 17, 2019 · 1 revision

First Things First

  1. Enable Developer Mode (examples below)
  • Google Pixel: Settings > System > About phone > Build number
  • Samsung Galaxy S8 and later: Settings > About phone > Software information > Build number
  • LG G6 and later: Settings > About phone > Software info > Build number
  • HTC U11 and later: Settings > About > Software information > More > Build number
  • OnePlus 5T and later: Settings > About phone > Build number
  1. Press "Build number" usually 10 times fast.

Getting Started

  1. Open this link and download the correct tools for your Windows, Mac or Linux machine.
  2. Unzip the downloaded folder.
  3. Search the unzip folder for the folder that contains the adb compiled program utility adb.exe or adb
  4. Find the debuggable version of Simple Last.fm Scrobbler you would like to use in releases
  5. Install the .apk file on your Android device

For people with more than one phone connected

.\adb devices -l

View your devices and notice the transport ID, usually a single digit integer (unless you have 10+ devices connected) Example transport_id:1 transport_id:2 Remember this you will need to add the flag later.

Logging data

  1. Create the log.txt

For users who have one device connected.

.\adb logcat -d com.adam.aslfms:V > log.txt

For users who have multiple devices connected.

.\adb -t INSERT_TRANSPORT_ID logcat -d com.adam.aslfms:V > log.txt

.\adb -t 2 logcat -d com.adam.aslfms:V -t 2 > log.txt
  1. Find the folder you created the log.txt (should be inside the .\adb folder)

Sharing logs

If you are new and you are sharing debugging information please copy or upload the log.txt file directly to GitHub or somewhere online we can read it.

https://hastebin.com is great place to paste the log.txt file and share the link where you need to. You could also create an issue or add to an existing issue using the SLS GitHub Issues List