Can I get APK file on phone of the installed applications
I am trying to devel开发者_开发百科op 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.
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
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;
}
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
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.
精彩评论