Does Android keep the .apk files? if so where?


After android installs an application from the Marketplace, does it keep the .apk file?

Is there a standard location where Android would keep such files?

3/24/2010 1:26:11 PM

Accepted Answer

Preinstalled applications are in /system/app folder. User installed applications are in /data/app. I guess you can't access unless you have a rooted phone. I don't have a rooted phone here but try this code out:

public class Testing extends Activity {
    private static final String TAG = "TEST";
    public void onCreate(Bundle savedInstanceState) {
        File appsDir = new File("/data/app");

        String[] files = appsDir.list();

        for (int i = 0 ; i < files.length ; i++ ) {
            Log.d(TAG, "File: "+files[i]);


It does lists the apks in my rooted htc magic and in the emu.

2/13/2018 7:40:48 PM

You can use package manager (pm) over adb shell to list packages:

adb shell pm list packages | sort

and to display where the .apk file is:

adb shell pm path com.king.candycrushsaga

And adb pull to download the apk.

adb pull data/app/com.king.candycrushsaga-1/base.apk

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow