Merge "Change SMS security check to enforceCallingPermission()." into jb-dev
This commit is contained in:
@@ -112,7 +112,7 @@ public abstract class IccSmsInterfaceManager extends ISms.Stub {
|
||||
*/
|
||||
public void sendText(String destAddr, String scAddr,
|
||||
String text, PendingIntent sentIntent, PendingIntent deliveryIntent) {
|
||||
mPhone.getContext().enforceCallingOrSelfPermission(
|
||||
mPhone.getContext().enforceCallingPermission(
|
||||
"android.permission.SEND_SMS",
|
||||
"Sending SMS message");
|
||||
if (Log.isLoggable("SMS", Log.VERBOSE)) {
|
||||
|
||||
Reference in New Issue
Block a user