🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mobile.android
Article #504

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

#504
From: Maria Sophia
Date: Sat, 31 Oct 2026 17:41
63 lines
4405 bytes
Below is another use for adb that came up when we were trying to understand why Firefox shows up for some people in share/open menus, but not for me.

Andy Burns wrote:
>> My Firefox only registers handlers for web schemes (http/https) and
>> specific text types (text/plain, application/xhtml+xml), alongside a
>> generic share receiver (ACTION_SEND).
>>> [snip detail]
>> 
>> Notice the absence of any local document types like application/pdf
>> or local file schemes under ACTION_VIEW.
> Presumably your Firefox is *not* installed from the Play Store?
> Mine is, so I assume a different build, or different manifest ...

Hi Andy/Carlos,

Maybe that's it. Certainly things are DIFFERENT in Android 14: 
 <https://developer.android.com/about/versions/14/features#sharesheet-improvements>
 <https://9to5google.com/2023/07/13/android-14-beta-tweaks-share-sheet/>
 <https://www.esper.io/blog/android-14-share-sheet-improvements>

But then that makes this whole concept even more capricious than it was.

If each of us has the same apps installed, and yet each of us get different
"ShareTo/OpenWith" options, and, I've proved, every time I run them, I can
get a *different* set of selections, this is about as capricious as can be.

I don't remember where I get any of my apps, but certainly some come from
Github, while others come from F-Droid, and others from the Google Play
Store repository (via the Aurora Google Play Store replacement app).

Let's look:
 C:\> adb shell dumpsys package org.mozilla.firefox | grep -E "installerPackageName|userId|versionName"
        userId=10160
        versionName=117.1.0
        userId=10160

As you had surmised, installerPackageName=com.android.vending doesn't 
show up. Actually, no installer shows up at all. Hmmm... that's odd.

It's the same for the WhatsApp (which I got from the WA server).
 C:\> adb shell dumpsys package com.whatsapp | grep -E "versionName|installerPackageName|userId"
        userId=10714
        versionName=2.26.42.70

Let's check *something* that we *know* will be installed by the GPS.
 C:\> adb shell dumpsys package com.android.vending | grep -i "installerPackageName"
        installerPackageName=com.android.vending

But I don't "think" that's the smoking gun because when Firefox and
WhatsApp return null or omit that line on my phone, it only confirms they
were not registered via the Play Store's installer database on this setup. 

However, as established earlier by the package manifests, even if Firefox
were installed straight from the Play Store, its source manifest
structurally omits local PDF ACTION_VIEW filters anyway.

If someone else would run the adb commands to prove that, it would help.
Or, if someone could show screenshots like I did, showing FF there.
	.
REFERENCES:
 https://www.androidcentral.com/apps-software/android-14-review
 https://developer.android.com/develop/ui/compose/sharing/send
 https://9to5google.com/2023/03/29/android-14-share-sheet/
Technical Details
Message-ID: <11c5997$1vqi$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>

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: Sat, 31 Oct 2026 13:41:59 -0400
Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID: <11c5997$1vqi$1@nnrp.usenet.blueworldhosting.com>
References: <11a96gn$b36$1@nnrp.usenet.blueworldhosting.com> <11c530g$d07$1@nnrp.usenet.blueworldhosting.com>
Reply-To: pusvul@getTjewytR4so+mqe2.invalid
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 31 Oct 2026 17:41:59 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com; posting-account="l//KxG3Ge2LojWvwJg0Igv8F0ChK8RUC9RtOxMPUo3U"; posting-host="IfCZz72xNNlHXBkfV9B6WJEa9xVhaehMJfhAC6fCwnM";
	logging-data="65362"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Mojibake 1p3
Cancel-Lock: sha1:YbbLXkGH8WIAcRd3pPtnYGOx8vo= sha256:BHPVjNkElmeByt8IJGOoKX8DZ9vms5GSTCD4dbLM4mo=
	sha1:x4wxdtbo1pNanLJ8Mtyf9F4guy8= sha256:pYoxHtkhxFTntxLl/95lyTDKb4x2O2tgfG2eiXgG7Jw=
Content-Language: en-GB