Security Exception while implementing global search for Messaging
<p>I am trying to enable global search for messaging application (i.e., messages can be searched from home screen search box).  I have followed all the steps given in </p>

<p><a href="http://developer.android.com/reference/android/app/SearchManager.html" rel="nofollow">http://developer.android.com/reference/android/app/SearchManager.html</a></p>

<p>I am getting the following exception</p>

<p>04-16 12:49:26.917: ERROR/DatabaseUtils(102): java.lang.SecurityException: Permission Denial: reading com.android.providers.telephony.MmsSmsProvider uri content://mms-sms/search_suggest_query/m?limit=58 from pid=106, uid=10000 requires android.permission.READ_SMS</p>

<p>I have set permission in MmsSmsProvider.java file for read, write sms and global search, but still I get this error.</p>

<p>Can anyone help.</p>

<p>Regards,
Sunil.</p>
