[General Topics] GalaxyA325G:
This morning I downloaded the Microsoft PortQry command where I place what I did below to help save time for others who can read this instead of doing it to get an idea of what it is & how it installs.

1. Googling, I found the canonical location of the Microsoft command.

PortQry Command Line Port Scanner Version 2.0​

<https://www.microsoft.com/en-us/download/details.aspx?id=17148>​

2. I downloaded it (where I'm not sure if this URL is static or dynamic):

<https://download.microsoft.com/download/0/d/9/0d9d81cf-4ef2-4aa5-8cea-95a935ee09c9/PortQryV2.exe>​

Date: 20220802​

Name: PortQryV2.exe​

Size: 151112 bytes (147 KiB)​

SHA256: 6471C5190A99E3D1F337FCFEF1FC410E8D487B66E093F924700E186CBD398DC0​

Doubleclicking on the file above asks to unzip it.

It wants to go by default into c:\PortQryV2​

Instead I put it where it belongs at c:\app\network\portqry​

(Note that I decide where things belong... not a billion different developers who don't have a common vision.)​

Resulting in:

Date: 20220802​

Name: PortQry.exe​

Size: 143360 bytes (140 KiB)​

SHA256: FB6CEBADD49D202C8C7B5CDD641BD16AAC8258429E8FACE365A94BD32E253B00​

Then I downloaded the port query user interface.

PortQryUI - User Interface for the PortQry Command Line Port Scanner​

<https://www.microsoft.com/en-us/download/details.aspx?id=24009>​

<https://download.microsoft.com/download/3/f/4/3f4c6a54-65f0-4164-bdec-a3411ba24d3a/PortQryUI.exe>​

Resulting in:

Date: 20220802​

Name: PortQryUI.exe​

Size: 217160 bytes (212 KiB)​

SHA256: D462DD1AD77B37E9E681F9A779550B3918AF4925EC6F3D0014E6880B69B98126​

Doubleclicking on the file above asks to unzip it.

It wants to go by default into C:\PortQryUI​

Instead I put it where it belongs at C:\app\network\portqry​

(Note that I decide where things belong... not a billion different developers who don't have a common vision.)​

Date: 20220802​

Name: portqueryui.exe​

Size: 70656 bytes (69 KiB)​

SHA256: DCD38075F8D594763A498FE884A85394DB66BB604A0A1E6E6AC823923ADD910D​

I doubleclick portqueryui.exe and a GUI comes up & I type the IP address of the phone (sans port) and then the MS Port Query GUI runs a scan of the phone's IP address, which, let's face it, takes a very long time to complete (at least with the defaults it does).

BTW, I've noticed the ports used by adb seem to always be in the same range of 3#### and 4#### so maybe we can save some time by scanning only those ports as explained here.

How To: Mastering PortQry.exe​

<https://techgenix.com/portqry-howto/>​

​

Specifically:​

C:\> portqry -n 192.168.0.2 -r 30000:40000​

​

And, well, um, er... it takes FOREVER and reports a lot of "NOT LISTENING" lines which are useless to us for our purpose... so I see (belatedly) now why you needed the "find string" syntax to find just the ports that adb is using!​

​

If we knew more about adb, maybe we could query more specifically the type of ports adb uses (e.g., mdns services)?​

As I explained over here a while ago, most of us do a bunch of things that provide us Wi-Fi privacy that we have to keep in mind, where what I do is somewhat similar to what you do, as shown below.

My home SSID/passphrase do not contain identifying words

So as to keep out of WPA2/PSK butterfly/rainbow hash tables

While at the same time they are as unique as I can make them

And I change them every once in a while for obvious reasons

Where the SSID has "_nomap" (it used to also have "_optout_")

But that doesn't stop WiGle/NetStumbler/Kismet/etc. uploads

And that doesn't stop passwerby from uploading to Google/Mozilla servers either!

Even as these well-behaved servers "say" they scrub this information

So that Google/Mozilla get it - but they don't publish it

Because you can be tracked if anyone knows your phone SSID

Simply by querying the public servers with any other known SSID

So I also turn off the broadcast of that SSID on my home router

Which means the cell phone has to remember the SSID

But the phone would "shout out" that SSID with AutoConnect

So I turn "AutoConnect=off" on the cell phone

So now, when I go down my driveway, it doesn't shout it out

In addition, I used to randomize the MAC by each SSID

Which meant that random BSSID was "reserved" on my router

And that the IP address was set to "static" on the phone

New in Android 12 Developer options, I can now randomize the phone's Wi-Fi MAC address on each and every connection

While still reserving the IP address on the home router

And, like you, every phone I get, the first thing I do is enable USB debugging (so I can recover from a smashed screen), yet, with Android 12, there's never a need for a USB cable anymore as everything it did is now rendered obsolete nowadays...

a. Many phones charge wirelessly nowadays​

b. My phone is mirrored (sound/screen/keyboard/clipboard) over Wi-Fi to my PC (sndcpy,scrcpy,visor)​

c. My unrooted phone is mounted as a drive letter onto Windows (Z: for the internal sdcard and Y: for the external sdcard)​

​

And, of course, there are a few things which are forbidden on my phone:

a. There will never be a mothership tracking account (not Google, not Samsung, not my Bank, nothing)​

b. There will never be a way to pay for anything or to get money from anywhere​

c. There will never be a log in to a mothership account (except, perhaps, email, when necessary)​

And, most radios are turned off by default, and only turned on when necessary and then turned off again...

a. Uploads of other people's Wi-Fi to Google servers are always permanently turned off

b. The GPS radio is off by default & location accuracy is always off

c. The NFC radio is turned off by default

d. The Bluetooth radio is turned off by default

e. Developer options Wireless debugging is on by default (but it turns off when the AP is no longer connected when I leave my driveway)

The only radios left on, by default are:

a. The cellular radio

b. The cellular data radio

And I have a few cellular and cellular data aps monitoring when I'm out of cellular calling/data range (but this isn't a privacy thing per se).