arnp
arnp

Reputation: 3208

Can I get APK file on phone of the installed applications

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.

Upvotes: 2

Views: 10365

Answers (3)

Reno
Reno

Reputation: 33792

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

Upvotes: 5

Piyush Patel
Piyush Patel

Reputation: 1825

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.

Upvotes: 0

Pete Houston
Pete Houston

Reputation: 15079

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

Upvotes: 1

Related Questions