0

How to we find apk name corresponding to application installed on device. Assume that i have to all the root folders

Eg : If there is some xxxx.apk and application name is Email. Is there any way to know from device logs or device files that xxxx.apk is the apk name for Email application.?

Thanks, Megha

Megha
  • 21
  • 1
  • 3

3 Answers3

0

Have a look at this class, the function getInstalledApplications()

http://developer.android.com/reference/android/content/pm/PackageManager.html#getInstalledApplications%28int%29

Sagar Waghmare
  • 4,702
  • 1
  • 19
  • 20
0

It's just a filename; there's absolutely no correlation to the actual application or package name. I could get the APK for Facebook and rename it to GooglePlus.apk and it will still install Facebook.

Kevin Coppock
  • 133,643
  • 45
  • 263
  • 274
0

You can find that in /data/system/packages.xml in your android device, search for the "codePath" attribute.

Fengtao Ding
  • 706
  • 8
  • 17