am deb745d6: Fix AppOps exception for SMS quick reply feature.
* commit 'deb745d6ce5e2315acbd0b1028041ca08cc6fc5d':
Fix AppOps exception for SMS quick reply feature.
diff --git a/src/com/android/providers/telephony/SmsProvider.java b/src/com/android/providers/telephony/SmsProvider.java
index d547d59..c36a0d2 100644
--- a/src/com/android/providers/telephony/SmsProvider.java
+++ b/src/com/android/providers/telephony/SmsProvider.java
@@ -347,6 +347,15 @@
@Override
public Uri insert(Uri url, ContentValues initialValues) {
+ long token = Binder.clearCallingIdentity();
+ try {
+ return insertInner(url, initialValues);
+ } finally {
+ Binder.restoreCallingIdentity(token);
+ }
+ }
+
+ private Uri insertInner(Uri url, ContentValues initialValues) {
ContentValues values;
long rowID;
int type = Sms.MESSAGE_TYPE_ALL;