Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Not all ROMs have an E-mail provider (debug info)
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Oct 11, 2014
1 parent c8988ce commit d59b0fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ See for more information about XPrivacy 3 [this FAQ](https://github.com/M66B/XPr

**Next release**

* Fixed all problems reported through the debug info
* Fixed warning *Native call method*
* Added title to original value in usage data
* Added support for [Omega ROM](http://omegadroid.co/omega-roms/)
Expand Down
13 changes: 10 additions & 3 deletions src/biz/bokhorst/xprivacy/XContentResolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ private enum Methods {
"com.android.providers.calendar.CalendarProvider2",
"com.android.providers.contacts.CallLogProvider",
"com.android.providers.contacts.ContactsProvider2",
"com.android.email.provider.EmailProvider",
"com.google.android.gm.provider.PublicContentProvider",
"com.google.android.gsf.gservices.GservicesProvider",
"com.android.providers.telephony.MmsProvider",
Expand All @@ -134,12 +133,20 @@ public static List<XHook> getPackageInstances(String packageName, ClassLoader lo
try {
Class.forName("com.android.browser.provider.BrowserProvider2", false, loader);
return getInstances("com.android.browser.provider.BrowserProvider2");
} catch (ClassNotFoundException ex) {
} catch (ClassNotFoundException ignored2) {
Util.log(null, Log.ERROR, "Browser provider not found, package=" + packageName);
return new ArrayList<XHook>();
}
}
else {
else if (packageName.startsWith("com.android.email.provider")) {
try {
Class.forName("com.android.email.provider.EmailProvider", false, loader);
return getInstances("com.android.email.provider.EmailProvider");
} catch (ClassNotFoundException ignored) {
Util.log(null, Log.WARN, "E-mail provider not found, package=" + packageName);
return new ArrayList<XHook>();
}
} else {
List<XHook> listHook = new ArrayList<XHook>();
for (String className : cProviderClassName)
if (className.startsWith(packageName))
Expand Down

0 comments on commit d59b0fb

Please sign in to comment.