2

I am trying to develop a application for backing up the files. I need to extract the APK files of installed applications like the Astro manager does.

If anyone know how to extract please give me the solution.

JasonMArcher
  • 14,195
  • 22
  • 56
  • 52
arnp
  • 3,178
  • 6
  • 26
  • 43

3 Answers3

5

They are stored in /data/app/ but unless your phone is rooted you won't see anything there.

System apk's are stored at /system/app

How can't you not see this OP?

A better way of getting the exact apk path :

PackageManager  pm = getPackageManager();
List<PackageInfo> pkginfolist = pm.getInstalledPackages(PackageManager.GET_ACTIVITIES);
List<ApplicationInfo> appinfoList = pm.getInstalledApplications(0);
for (int x = 0; x < pkginfolist .size(); x++) {             
  PackageInfo pkginfo = pkginfolist.get(x);
  pkg_path[x] = appinfoList.get(x).publicSourceDir;  
}
Reno
  • 33,594
  • 11
  • 89
  • 102
  • 1
    I need the apk of the applications downloaded from market. Can i get the files in /system/app - folder – arnp Oct 03 '11 at 08:07
  • You will get user apks in `/data/app` – Reno Oct 03 '11 at 08:12
  • I don't get the apk of apps downloaded from market over there (Where you point). – arnp Oct 03 '11 at 09:08
  • You can't. If you sign your apk as a system level apk, your apk will be able to see the files. – Reno Oct 04 '11 at 05:09
  • You can get the installed apps' APK files without rooting the device http://stackoverflow.com/questions/11012976/get-apk-of-installed-app – Venugopal Dec 11 '15 at 06:50
1

You need to root your phone first. Then install Android SDK.
run adb or ddms->file explorer, look for your interested-in APK in /system/app

Pete Houston
  • 14,931
  • 6
  • 47
  • 60
0

The most simplest method would be take backup of application using ASTRO file manager,

Open Astro File Manager> Tool > Application Manager > Backup see hep docs here.

it will backup your selected apps's .apk backup ! drop comment if any problems.

Piyush Patel
  • 1,765
  • 1
  • 16
  • 29