I've been trying to figure out how an android app is installed by browsing AOSP.
The PackageManagerService.java
has the gids for the corresponding permissions by parsing the platform.xml
file.
PackageInstallerActivity
parses and checks for any existing packages and then invokes the InstallAppProgress
.
I was able to follow the paths where the package is parsed and validated and PackagerManager.installPackage()
method is invoked from InstallAppProgress.initView()
to install the package. I know this makes a native call to the JNI library. The corresponding .aidl
file is IPackageManager.aidl
.
What I want to know is where can I find the implementation of the Stub (or Native code if any) related to this aidl mentioned above?
I'm new to aidl so that is the reason I'm not able to understand its nuances completely. Could somebody kindly point me to the right direction?