AnsweredAssumed Answered

Android Text message

Question asked by Deepanraj Anbarasan on Sep 12, 2016
Latest reply on Sep 13, 2016 by Deepanraj Anbarasan

Hi,

 

I have compiled Android 5.0 lollipop for imx6 and we are using a 3rd party ril library for connecting to gprs.It seemed to work fine But when we try to delete sms which in the sim card it crashes and comes out.when we give logcat we get the following log

 

Writing exception to parcel
E/DatabaseUtils( 1009): java.lang.SecurityException: Updating message on Icc: uid 1001 does not have android.permission.RECEIVE_SMS.
E/DatabaseUtils( 1009): at android.app.ContextImpl.enforce(ContextImpl.java:1893)
E/DatabaseUtils( 1009): at android.app.ContextImpl.enforceCallingPermission(ContextImpl.java:1913)
E/DatabaseUtils( 1009): at android.content.ContextWrapper.enforceCallingPermission(ContextWrapper.java:587)
E/DatabaseUtils( 1009): at android.content.ContextWrapper.enforceCallingPermission(ContextWrapper.java:587)
E/DatabaseUtils( 1009): at com.android.internal.telephony.IccSmsInterfaceManager.enforceReceiveAndSend(IccSmsInterfaceManager.java:176)
E/DatabaseUtils( 1009): at com.android.internal.telephony.IccSmsInterfaceManager.updateMessageOnIccEf(IccSmsInterfaceManager.java:199)
E/DatabaseUtils( 1009): at com.android.internal.telephony.UiccSmsController.updateMessageOnIccEfForSubscriber(UiccSmsController.java:64)
E/DatabaseUtils( 1009): at com.android.internal.telephony.UiccSmsController.updateMessageOnIccEf(UiccSmsController.java:55)
E/DatabaseUtils( 1009): at android.telephony.SmsManager.deleteMessageFromIcc(SmsManager.java:575)
E/DatabaseUtils( 1009): at com.android.providers.telephony.SmsProvider.deleteMessageFromIcc(SmsProvider.java:623)
E/DatabaseUtils( 1009): at com.android.providers.telephony.SmsProvider.delete(SmsProvider.java:602)
E/DatabaseUtils( 1009): at android.content.ContentProvider$Transport.delete(ContentProvider.java:309)
E/DatabaseUtils( 1009): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:206)
E/DatabaseUtils( 1009): at android.os.Binder.execTransact(Binder.java:446)
D/AndroidRuntime( 1702): Shutting down VM
E/AndroidRuntime( 1702): FATAL EXCEPTION: main
E/AndroidRuntime( 1702): Process: com.android.mms, PID: 1702
E/AndroidRuntime( 1702): java.lang.SecurityException: Updating message on Icc: uid 1001 does not have android.permission.RECEIVE_SMS.
E/AndroidRuntime( 1702): at android.os.Parcel.readException(Parcel.java:1540)
E/AndroidRuntime( 1702): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:185)
E/AndroidRuntime( 1702): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:137)
E/AndroidRuntime( 1702): at android.content.ContentProviderProxy.delete(ContentProviderNative.java:543)
E/AndroidRuntime( 1702): at android.content.ContentResolver.delete(ContentResolver.java:1299)
E/AndroidRuntime( 1702): at android.database.sqlite.SqliteWrapper.delete(SqliteWrapper.java:90)
E/AndroidRuntime( 1702): at com.android.mms.ui.ManageSimMessages.deleteFromSim(ManageSimMessages.java:289)
E/AndroidRuntime( 1702): at com.android.mms.ui.ManageSimMessages.deleteAllFromSim(ManageSimMessages.java:300)
E/AndroidRuntime( 1702): at com.android.mms.ui.ManageSimMessages.access$600(ManageSimMessages.java:59)
E/AndroidRuntime( 1702): at com.android.mms.ui.ManageSimMessages$4.onClick(ManageSimMessages.java:326)
E/AndroidRuntime( 1702): at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:160)
E/AndroidRuntime( 1702): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 1702): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 1702): at android.app.ActivityThread.main(ActivityThread.java:5221)
E/AndroidRuntime( 1702): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 1702): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 1702): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
E/AndroidRuntime( 1702): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

 

Thank you,

Deepanraj.A

Outcomes