Merge "RadioInfo: fix OMADM buttons" into oc-mr1-dev
diff --git a/src/com/android/settings/RadioInfo.java b/src/com/android/settings/RadioInfo.java
index e0ddbcc..776e3b2 100644
--- a/src/com/android/settings/RadioInfo.java
+++ b/src/com/android/settings/RadioInfo.java
@@ -1371,25 +1371,21 @@
OnClickListener mCarrierProvisioningButtonHandler = new OnClickListener() {
public void onClick(View v) {
- final Intent intent = new Intent();
- final ComponentName serviceComponent = new ComponentName("com.android.omadm.service",
- "DMIntentReceiver");
+ final Intent intent = new Intent("com.android.settings.CARRIER_PROVISIONING");
+ final ComponentName serviceComponent = ComponentName.unflattenFromString(
+ "com.android.omadm.service/.DMIntentReceiver");
intent.setComponent(serviceComponent);
- intent.setAction("com.android.settings.CARRIER_PROVISIONING");
- getApplicationContext().sendBroadcast(
- intent, android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE);
+ sendBroadcast(intent);
}
};
OnClickListener mTriggerCarrierProvisioningButtonHandler = new OnClickListener() {
public void onClick(View v) {
- final Intent intent = new Intent();
- final ComponentName serviceComponent = new ComponentName("com.android.omadm.service",
- "DMIntentReceiver");
+ final Intent intent = new Intent("com.android.settings.TRIGGER_CARRIER_PROVISIONING");
+ final ComponentName serviceComponent = ComponentName.unflattenFromString(
+ "com.android.omadm.service/.DMIntentReceiver");
intent.setComponent(serviceComponent);
- intent.setAction("com.android.settings.TRIGGER_CARRIER_PROVISIONING");
- getApplicationContext().sendBroadcast(
- intent, android.Manifest.permission.MODIFY_PHONE_STATE);
+ sendBroadcast(intent);
}
};