Article View: comp.mobile.android
Article #289Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android
From: Maria Sophia
Date: Wed, 21 Oct 2026 17:53
Date: Wed, 21 Oct 2026 17:53
30 lines
2538 bytes
2538 bytes
Maria Sophia wrote:
> So that all benefit, this thread is opened to allow others to post random
> useful adb examples, where the goal is a usable list of useful examples.
Just now, I used this neat adb trick to operate the phone from the PC.
It's easy to unlock a phone from the PC, but locking it requires buttons.
But wait... there's adb to the rescue!
There's only 1 day left of my WhatsApp experiment on updating the app
Newsgroups: comp.mobile.android
Subject: A quick look at the WhatsApp Meta Services Framework server-side
7 day update
Date: Sat, 17 Oct 2026 12:43:55 -0400
Message-ID: <11b08kc$20fv$1@nnrp.usenet.blueworldhosting.com>
And I needed to take a screenshot of the date and time, but the phone was
tucked away somewhere (since I mirror onto my Windows monitor at home).
I needed a way to bring the phone to the lock screen w/o touching it.
adb shell input keyevent 26
That sent a power button event,turning the screen off & locking the phone.
Then, this awoke the phone, which gave me the clock lock screen I needed.
adb shell input keyevent 224
Voila!
With adb I was able to both lock & unlock the phone for the screenshots.
Technical Details
Message-ID:
<11bau61$jic$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-13.vpngate.v4.open.ad.jp!not-for-mailReferences:
<11a96gn$b36$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-13.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: Wed, 21 Oct 2026 13:53:06 -0400 Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com) Message-ID: <11bau61$jic$1@nnrp.usenet.blueworldhosting.com> References: <11a96gn$b36$1@nnrp.usenet.blueworldhosting.com> Reply-To: pusvul@getTjewytR4so+mqe2.invalid Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 21 Oct 2026 17:53:06 -0000 (UTC) Injection-Info: nnrp.usenet.blueworldhosting.com; posting-account="l//KxG3Ge2LojWvwJg0Igv8F0ChK8RUC9RtOxMPUo3U"; posting-host="th7EnTmaYbtJfECRly3w6PBVyFuCT/fi/bituBlj6lY"; logging-data="20044"; mail-complaints-to="usenet@blueworldhosting.com" User-Agent: Mojibake 1p3 Cancel-Lock: sha1:PvCKXOudFQ/DJKDw/b0BgP6RbYQ= sha256:yyISEhV+wT/NIn/l+KXZhHxBVGXhu1sbtNh1h7hG2b4= sha1:3jnXzZUE5X6OHNAAsypG8/g9+xA= sha256:v/pfsGoA+Qnl/BExw91y6ZOxOSG+B65bIS6EP2ShbWU= Content-Language: en-GB