Reputation: 1469
how can i get apk file path from my java application? I have apk file in android device and i want to find the path for same apk using java application.Is it possible to get using ADB command?
thank you.
Upvotes: 1
Views: 567
Reputation: 3818
Try the following from the adb shell
$ adb shell pm list packages -f
Upvotes: 0
Reputation: 679
By default android has an app called dev tools. Launch the dev tools . so It is as follows..
Dev Tools --> Package Browser --> Click on the app
Thats all u will get path of apk
or Install apk on the emulator.And Android Emulator has an app called dev tools.
and do in the same manner as mentioned above ..
Upvotes: 1