List the apps you've installed
ADB Shell PM List Package
C:\USERS\CJTDEV003>ADB Shell PM List packagepackage:com.samsung.android.provider.filterproviderpackage: Com.sec.android.app.DataCreatepackage:com.android.cts.priv.ctsshimpackage:com.gd.mobicore.papackage: Com.sec.android.widgetapp.samsungappspackage:com.qualcomm.qti.auth.sampleextauthservicepackage: Com.samsung.android.app.galaxyfinderpackage:com.sec.location.nsflp2package: Com.samsung.android.themestorepackage:com.sec.android.app.chromecustomizationspackage: Com.thinksky.itoolspackage:com.android.providers.telephonypackage:com.sec.android.app.parser
Installed apps, you can use the following command to view, this comes out of a lot of information, need to filter out
ADB shell Dumpsys Package [PackageName]
View Versioncode, Versionname (Windows with findstr filtering, Linux with grep filtering)
ADB shell Dumpsys Package [PackageName] | findstr versioncodeadb Shell dumpsys package [PackageName] | findstr ver Sionname
c:\users\cjtdev003> adb shell Dumpsys Package com.tencent.mm | findstr versioncode versioncode=1240 minsdk=17 targetsdk=23c:\users\cjtdev003> adb shell Dumpsys Package com.tencent.mm | findstr versionname versionname=6.6.2c:\users\cjtdev003> adb shell Dumpsys Package com.tencent.mm | findstr Version versioncode=1240 minsdk=17 targetsdk=23 versionname=6.6.2
Use the ADB command to start viewing Versioncode, Versionname for installed Android apps