简体   繁体   中英

How/when is PhoneApp instantiated in android

I've read in a few places that PhoneApp (com.android.phone.PhoneApp.java), is a "persistent process" which is "started early in the boot sequence." Can anybody explain exactly how and when this happens? Thanks.

Answering my own question.... The following entry in the AndroidManifest.xml file instructs the ActivityManager to start the specified activity.

<!--  Broadcast Receiver that will process BOOT Complete and launch OTA 
  --> 
- <receiver android:name="OtaStartupReceiver" android:exported="false">
- <intent-filter android:priority="100">
  <action android:name="android.intent.action.BOOT_COMPLETED" /> 
  </intent-filter>
  </receiver>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM