I have seen few examples in the internet but couldn't find the right answer about my phone. In my phone how does a file manager app finds the base.apk of an installed app? and how can I find them using adb or terminal apps?

  • 2
    Any app can query the list of installed packages and their apk file paths (with some restrictions added in recent Android releases). Run: adb shell pm list package -f Nov 15, 2021 at 15:54
  • how do they start adb server in the first place .and they have to get the APK file. What's the adb command for that.im curious. Nov 15, 2021 at 20:56
  • 1
    Apps use Android APIs, not ADB. See getInstalledApplications and sourceDir. Nov 15, 2021 at 21:55
  • I have root and non rooted Device. In rooted phone (android 7) I just can look up the internal directories and that I did /data/app/. But the same folder didn't work on my non rooted phone (android 9). And can I get the source directory printed out using a terminal like termux? The APK files should be readable. Nov 15, 2021 at 23:44
  • there is at least one app in google play (Dev Tools) that will show you exact install path of apps
    – alecxs
    Nov 16, 2021 at 9:54


You must log in to answer this question.

Browse other questions tagged .