mPhone = phone;
if (Build.IS_DEBUGGABLE) {
IntentFilter filter = new IntentFilter();
filter.addAction(mPhone.getActionDetached());
log("register for intent action=" + mPhone.getActionDetached());
filter.addAction(mPhone.getActionAttached());
log("register for intent action=" + mPhone.getActionAttached());
if (mPhone.getPhoneType() == PhoneConstants.PHONE_TYPE_IMS) {
log("register for intent action=" + ACTION_TEST_CONFERENCE_EVENT_PACKAGE);
filter.addAction(ACTION_TEST_CONFERENCE_EVENT_PACKAGE);
}
phone.getContext().registerReceiver(mIntentReceiver, filter, null, mPhone.getHandler());
}