Adb command to Print the path to the .apk of the data and system PACKAGE

First we need to identify whether the package we are looking for to identify apk name has been installed or not. For example, we are looking for a package “” which is a Linkedin android application.

 $ adb shell cmd package list package | grep linkedin 

If this command returned like “” it means the application has been installed and command returned with the package name. If the application is not installed above command will return empty.

Now, using the above package name, we can identify the path as,

 $ pm path                                    

Since this is an application installed from playstore, it shown the path in /data/app, now lets identify the location of any system application.

 $ cmd package list package | grep launcher                                       <
 $ pm path

This shown the path of the launcher on Nokia 7+ mobile.

Android Android Commands Android Java Applications Application Libraries Bash / Shell Scripts Bluetooth driver Build Frameworks Commands and Packages Core Kernel C Programs Development Environment Setup Documents / Books Errors & Failures File Systems Framebuffer / Display Driver git Go Language Programs Hardware Platforms Home JAVA Programs Kernel & Device Drivers Kernel Booting and Porting Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL NDK / Middleware / HAL Network Driver OS Concepts PHP Procfs Filesystem Programming Languages RaspberryPi Scripting and Automation Search Engine Optimisation ( SEO ) Socurce Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Userspace Utilities Web design and development Wordpress Yocto / Bitbake / Openembedded

Leave a Reply