Allow carrier provisioning to turn toggle radio power.
Wink Saville [Mon, 10 Jun 2013 17:10:41 +0000 (10:10 -0700)]
Previously CarrierProvisioning toggle airplane mode, but now that's
available only by the system.

Bug: 9356811
Change-Id: I5167f8614c07bafb688983a360a008f76403b2b8

src/com/android/phone/PhoneInterfaceManager.java

index 3d7b92b..6600ae5 100644 (file)
@@ -554,6 +554,11 @@ public class PhoneInterfaceManager extends ITelephony.Stub {
         }
         return true;
     }
+    public boolean setRadioPower(boolean turnOn) {
+        enforceModifyPermission();
+        mPhone.setRadioPower(turnOn);
+        return true;
+    }
 
     public boolean enableDataConnectivity() {
         enforceModifyPermission();