• PSA: Using darshanparajuli logcat reader to debug Android apps

    From Maria Sophia@mariasophia@comprehension.com to comp.mobile.android on Tue Nov 3 01:46:44 2026
    From Newsgroup: comp.mobile.android

    1. Download latest release from GitHub
    curl -sL https://github.com/darshanparajuli/LogcatReader/releases/latest/download/app-release.apk -o logcat_reader.apk

    2. Install the logcat reader APK
    adb install logcat_reader.apk

    3. Grant READ_LOGS permission via adb (Bypasses manual prompt)
    adb shell pm grant com.dp.logcatapp android.permission.READ_LOGS

    4. Optional: If using Shizuku instead of ADB permission grant
    adb shell shizuku request ... (or authorize inside the Shizuku app UI)

    5. When an event happens you wish to capture, save the log to text.
    Android:Logcat > 3dots > Save > (save on device) > /sdcard/Download/logcat_2026-11-02_21-33-43.txt

    6. Dynamically find the newest logcat export in Downloads and pull it automatically
    FOR /F "tokens=*" %%i IN ('adb shell "ls -t /sdcard/Download/logcat_*.txt | head -n 1"') DO SET LATEST_LOG=%%i
    adb pull "%LATEST_LOG%" .
    --
    Just one person on Usenet paying it forward so all benefit daily.
    --- Synchronet 3.22a-Linux NewsLink 1.2