Make SipBroadcastReceiver listen to SIP_SERVICE_UP

event instead of BOOT_COMPLETED.

http://b/issue?id=3062010

Change-Id: I527ce3386b3f053f256f7a5fb6120f78747b9057
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index bd31877..c6de660 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -417,7 +417,7 @@
                 <action android:name="com.android.phone.SIP_INCOMING_CALL" />
                 <action android:name="com.android.phone.SIP_ADD_PHONE" />
                 <action android:name="com.android.phone.SIP_REMOVE_PHONE" />
-                <action android:name="android.intent.action.BOOT_COMPLETED"/>
+                <action android:name="android.net.sip.SIP_SERVICE_UP" />
             </intent-filter>
         </receiver>
 
diff --git a/src/com/android/phone/SipBroadcastReceiver.java b/src/com/android/phone/SipBroadcastReceiver.java
index 3568522..1fb3f65 100644
--- a/src/com/android/phone/SipBroadcastReceiver.java
+++ b/src/com/android/phone/SipBroadcastReceiver.java
@@ -68,7 +68,7 @@
             removeSipPhone(localSipUri);
             Log.d(TAG, "removed phone: " + localSipUri + " #phones="
                     + CallManager.getInstance().getAllPhones().size());
-        } else if (action.equals(Intent.ACTION_BOOT_COMPLETED)) {
+        } else if (action.equals(SipManager.ACTION_SIP_SERVICE_UP)) {
             Log.v(TAG, "start auto registration");
             registerAllProfiles();
         } else {