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 ~