Pms start process and pms Start Process

Source: Internet
Author: User

Pms start process and pms Start Process

1. Start PackageManagerService. main in SystemServer

2. newPackageManagerService () and add it to ServiceManager

3. newinstaller (establish a socket connection between installer and installd, and finally implement install, remove, dexopt, and other functions at the underlying layer)

4. Get information in the xml file through systemConfig

5. Create PackageHandler Message logoff (installation/uninstall request)

6. readPLW () (read data/system/packages. xml)

7.

Check whether the customized library in/system/etc/permissions/platform. xml and jar files under/system/framework need dex extraction for optimization.

If optimization is required, the installer. dexopt is called to extract dex to/data/dalvik-cache.

8. Call scanDirLI to scan the directories where the apk is stored.

9. Install the system application-use scanPackageLI to parse the AndroidManifest. xml file one by one, create the configuration structure of each apk, and add the apk configuration information to the global list for management.

10. Call writeLPr () to write the apk information from the global list to packages. xml and packages. list.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.