I am trying to understand the Android PackageManager
(functionality and uses) and the new improvements in Ice Cream Sandwich for PackageManager
over previous versions.
I have seen the following links and some old threads but still would appreciate if someone can provide me with more references or an explanation as very little is available on the internet.
PackageManager Android docs
Wikipedia - Package Manager
I wanted to broaden my understanding about PackageManager
in android.
How it works with APK's (Set of checks and steps that it follows for installation, updating and deletion).
Android Play market acts as a repository for data. The interaction of PackageManager
with market for downloading and updating.
Is the installation process for 3rd party apps different to Play market apps, when using PackageManager
?
There is very little documentation available on android developer site for PackageManager
and hence your help is really appreciated.
Thanks :)
Package Manager is a highly powerful application to manage apps, both system and user, installed on an android device.
A package is basically the directory (folder) in which the source code resides. Normally, this is a directory structure that uniquely distinguishes the android application; such as com. example. app.
The package name of an Android app uniquely identifies your app on the device, in Google Play Store, and in supported third-party Android stores.
For normal apps, there are stored in internal memory in /data/app. Some of the encrypted apps, the files are stored in /data/app-private. For apps stored in the external memory, files are stored in /mnt/sdcard/Android/data.
This is way to general. Generally, PackageManager
provides methods for querying and manipulating installed packages and related permissions, etc. Some methods are only allowed to the system
user. Changes to API in ICS are here.
Those are questions about the actual implementation, and Stack Overflow may not be the best place for those. In general, you should read the Android source to get the full picture. Briefly:
/data/system/packages.xml
. PackageManager
parses and modifies this when installing or removing packages. If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With