Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0a031df authored by Thomas Stuart's avatar Thomas Stuart Committed by Android (Google) Code Review
Browse files

Merge "update the BIND_TELECOM_CONNECTION_SERVICE error msg" into udc-dev

parents cb20ad6e 45ff273e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -878,8 +878,12 @@ public class PhoneAccountRegistrar {
            Log.w(this,
                    "Phone account %s does not have BIND_TELECOM_CONNECTION_SERVICE permission.",
                    account.getAccountHandle());
            throw new SecurityException("PhoneAccount connection service requires "
                    + "BIND_TELECOM_CONNECTION_SERVICE permission.");
            throw new SecurityException("Registering a PhoneAccount requires either: "
                    + "(1) The Service definition requires that the ConnectionService is guarded"
                    + " with the BIND_TELECOM_CONNECTION_SERVICE, which can be defined using the"
                    + " android:permission tag as part of the Service definition. "
                    + "(2) The PhoneAccount capability called"
                    + " CAPABILITY_SUPPORTS_TRANSACTIONAL_OPERATIONS.");
        }
        enforceCharacterLimit(account);
        enforceIconSizeLimit(account);