To Obtain the Version of the Application Installed by the adb Command

Asked 2 years ago, Updated 2 years ago, 113 views

For example, if an application with the package com.myapp is installed on an Android device, can I get the version number of this application (versionCode or versionName) with the adb command?

android adb

2022-09-30 17:56

2 Answers

How about the following?

 adi shell dumpsys package com.myapp


2022-09-30 17:56

 adb shell dumpsys package packages


displays information for each package. You can check it by referring to versionCode/versionname.


2022-09-30 17:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.