Tuesday, March 22, 2011

Reading Emails in Android.

Today I was trying to hack into Android EMail client. When i tried to pull out something from the content://com.android.email.provider/account Uri, i am always throwing an exception like this,

java.lang.SecurityException: Permission Denial: reading com.android.email.provider.EmailProvider uri content://com.android.email.provider/account requires com.android.email.permission.ACCESS_PROVIDER

so decided to decomplie the Android EmailGoogle.apk file :D which contains the classes for com.android.email namespace

AndroidManifest.xml definition looks like this,

It looks like content provider can only be accessed by either the system, or by applications signed with the same key. So my dreams were shattered.

Android 1, Me 0 :|

1 comment:

  1. Any update as other are doing the same who are creating custom Email app.