Page 1 of 1

Android find what application is using a port

Posted: Tue Jan 27, 2026 6:12 pm
by zemerdon
ADB from desktop to phone

** enable wifi debugging on phone

pair to phone

Code: Select all

adb pair HOST[:PORT] [PAIRING CODE]
connect to phone

Code: Select all

adb connect HOST[:PORT]
check protocol activity

Code: Select all

adb shell cat /proc/net/udp
adb shell cat /proc/net/tdp
find package with uid

Code: Select all

adb shell pm list packages --uid [uid]

convert decimal to hex
https://www.rapidtables.com/convert/num ... tml?x=2002