🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mobile.android
Article #517

Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android

#517
From: Maria Sophia
Date: Tue, 03 Nov 2026 05:49
31 lines
3033 bytes
This is an example of using adb all day, every day, with Android.

A moment ago, I needed logs to debug share sheets, where I never had to 
touch the phone, since adb does everything over Wi-Fi remotely.


Newsgroups: comp.mobile.android
Subject: PSA: Using darshanparajuli logcat reader to debug Android apps
Date: Tue, 3 Nov 2026 01:46:44 -0400
Message-ID: <11cbsg3$2h98$1@nnrp.usenet.blueworldhosting.com>

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.
Technical Details
Message-ID: <11cbsl9$2il8$1@nnrp.usenet.blueworldhosting.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED.public-nat-02.vpngate.v4.open.ad.jp!not-for-mail
References: <11a96gn$b36$1@nnrp.usenet.blueworldhosting.com> <11c530g$d07$1@nnrp.usenet.blueworldhosting.com> <11c5997$1vqi$1@nnrp.usenet.blueworldhosting.com> <story-20261031190142@ram.dialup.fu-berlin.de> <nkopa2Fp0eeU1@mid.individual.net> <11c7h28$2m4e$1@nnrp.usenet.blueworldhosting.com> <11caisl$1ubk$1@nnrp.usenet.blueworldhosting.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED.public-nat-02.vpngate.v4.open.ad.jp!not-for-mail
From: Maria Sophia <mariasophia@comprehension.com>
Newsgroups: comp.mobile.android
Subject: Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android
Date: Tue, 3 Nov 2026 01:49:29 -0400
Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID: <11cbsl9$2il8$1@nnrp.usenet.blueworldhosting.com>
References: <11a96gn$b36$1@nnrp.usenet.blueworldhosting.com> <11c530g$d07$1@nnrp.usenet.blueworldhosting.com> <11c5997$1vqi$1@nnrp.usenet.blueworldhosting.com> <story-20261031190142@ram.dialup.fu-berlin.de> <nkopa2Fp0eeU1@mid.individual.net> <11c7h28$2m4e$1@nnrp.usenet.blueworldhosting.com> <11caisl$1ubk$1@nnrp.usenet.blueworldhosting.com>
Reply-To: pusvul@getTjewytR4so+mqe2.invalid
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 3 Nov 2026 05:49:29 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com; posting-account="l//KxG3Ge2LojWvwJg0Igv8F0ChK8RUC9RtOxMPUo3U"; posting-host="IfCZz72xNNlHXBkfV9B6WJEa9xVhaehMJfhAC6fCwnM";
	logging-data="84648"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Mojibake 1p3
Cancel-Lock: sha1:mrwaIfGNrGuB8zobVDyy6qN0INs= sha256:9nH3+VxBwVLSSxOe5wL7pmgekUPzy43mfkypufoiaa8=
	sha1:LpgTxZ/IJYum9uTyK+WFghHjAss= sha256:Ufer5MxwW9Jyi6eg2hJ9UF7J7E2XYY42sWfSK4kSl4U=
Content-Language: en-GB