2
votes

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.

3

3 Answers

5
votes

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;  
}
1
votes

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

0
votes

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.