Who provides the implementation (s) of the PackageManager class?

I am studying the source code for a class PackageManager, and it is abstract, as well as all methods. Do manufacturers expect to write a real implementation for it, or am I missing something?

+5
source share
4 answers

PackageManageris abstract, and a concrete implementation must be provided to invoke instance methods. An implementation of this class can be found as a private private package class ApplicationContext, which itself is available in ContextImpl. (For source code see here ). Please note that this PackageManager implementation is final and therefore cannot be overridden.

MockPackageManager, .

+7

PackageManager - PackageManagerService, /base/services/java/com/android/server/

GrepCode.

+9

All Articles