Aidl code for package manager in Android

I was trying to figure out how the Android application was installed to view AOSP.

PackageManagerService.javamatters for the corresponding permissions when analyzing the file platform.xml.

PackageInstallerActivityanalyzes and checks all existing packages, and then calls InstallAppProgress.

I was able to trace the ways in which the package is parsed and checked, and the method PackagerManager.installPackage()is called from InstallAppProgress.initView()to install the package. I know this makes a native call to the JNI library. The corresponding .aidlfile IPackageManager.aidl.

What I want to know, where can I find the implementation of the Stub (or Native code if any) related to this help mentioned above?

I am new to helpl, so I can not fully understand its nuances. Can someone kindly point me in the right direction?

+3
source share
1 answer

So, AIDL files exist to determine how the service and the client talk to each other. They are important for system services because they need to handle multithreading, and there are many different applications that can talk to her. In this way, IPackageManager.aidl allows customers to contact PackageManager.

I took a look at InstallAppProgress.initView () and I do not see a specific call to my own code. There is a call for PackageManager:

pm.installPackageWithVerificationAndEncryption(mPackageURI, observer, installFlags,
                installerPackageName, verificationParams, null);

, , , InstallAppProgress PackageManager , , , ContextImpl.getPackageManager(), , ApplicationPackageManager, PackageManager.

ApplicationPackageManager PackageManagerService, , helpl IPackageManager. , . PackageManagerService, IIRC, , .

, aidl , Android: Android

+2

All Articles