Use the ADB command to start viewing Versioncode, Versionname for installed Android apps

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.