Where does Android app package gets installed on p

2019-03-17 09:20发布

I have installed an Android app on my phone which I have created myself on java. The App got successfully installed on the device but I am not able to locate the package where it has installed.

How to find the path of the installed application?

6条回答
仙女界的扛把子
2楼-- · 2019-03-17 09:54

System apps installed /system/app/ or /system/priv-app. Other apps can be installed in /data/app or /data/preload/.

Connect to your android mobile with USB and run the following commands. You will see all the installed packages.

$ adb shell 

$ pm list packages -f
查看更多
干净又极端
3楼-- · 2019-03-17 09:56
/data/data/"your app package name " 

but you wont able to read that unless you have a rooted device

查看更多
叛逆
4楼-- · 2019-03-17 09:58

The package it-self is located under /data/app/com.company.appname-xxx.apk.

/data/app/com.company.appname is only a directory created to store files like native libs, cache, ecc...

You can retrieve the package installation path with the Context.getPackageCodePath() function call.

查看更多
做自己的国王
5楼-- · 2019-03-17 10:06

->List all the packages by :

adb shell su 0 pm list packages -f

->Search for your package name by holding keys "ctrl+alt+f".

->Once found, look for the location associated with it.

查看更多
叼着烟拽天下
6楼-- · 2019-03-17 10:09

An application when installed on a device or on an emulator will install at:

/data/data/APP_PACKAGE_NAME

The APK itself is placed in the /data/app/ folder.

These paths, however, are in the System Partition and to access them, you will need to have root. This is for a device. On the emulator, you can see it in your logcat (DDMS) in the File Explorer tab

By the way, it only shows the package name that is defined in your Manifest.XML under the package="APP_PACKAGE_NAME" attribute. Any other packages you may have created in your project in Eclipse do not show up here.

查看更多
混吃等死
7楼-- · 2019-03-17 10:10

You will find the application folder at:

/data/data/"your package name"

you can access this folder using the DDMS for your Emulator. you can't access this location on a real device unless you have a rooted device.

查看更多
登录 后发表回答