When was the phoneapp created?

Source: Internet
Author: User

As the second-to-second application in the Android system, phoneapp constructs a critical RIL for the entire system during its creation. java entities, after being constructed by this rilj, will connect to the underlying rild connect and connect the socket for communication between them, so that the phone call and SMS functions can be used;

Where did phoneapp be created with the help of a colleague)

First, you must note that some attributes of phoneapp are defined in the androidmanifest. xml file of phone:

 
<ApplicationAndroid: Name= "Phoneapp"
Android: Persistent= "True"
Android: Label= "@ String/dialericonlabel"
Android: icon= "@ Drawable/ic_launcher_phone">

Note the black and bold parts;

 

InIn activitymanagerservice. Java
At the end of the systemready function is as follows:Code:

 List apps = appglobals. getpackagemanager (). 
getpersistentapplications (stock_pm_flags );
If (apps! = null ) {
int N = apps. size ();
int I;
for (I = 0; I applicationinfo
= (applicationinfo) apps. get (I);
If (info! = null &
! Info. packagename. Equals ("android") {
addapplocked (Info);
}< BR >}

Bold FunctionsGetpersistentapplicationsYou can get the phoneapp info and use the addapplocked function to start the phoneapp ~

 

This is where the phoneapp was first launched ~


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.