Skip to content

Commit

Permalink
Added support for Mahdi ROM (XP3)
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Aug 19, 2014
1 parent 26f662b commit 66f7fb2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Version 2.99.x and version 3.x will be available with a [pro license](http://www

**Next release**

* Added support for [Mahdi ROM](https://plus.google.com/u/0/communities/116540622179206449806)
* Updated in application documentation
* Updated French translation
* Updated traditional Chinese translation
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,7 @@ Nevertheless, the most sensitive data, like contacts and your location, can safe
* [Liquid Smooth](http://liquidsmooth.net/)
* [Paranoid Android](http://paranoidandroid.co/)
* [Android Revolution HD](http://forum.xda-developers.com/showthread.php?t=1925402)
* [Mahdi ROM](https://plus.google.com/u/0/communities/116540622179206449806)
* Compatibility mode = all other Android versions/variants

*About* will show if XPrivacy 3 is running in compatibility mode, which means XPrivacy 3 is behaving as XPrivay 2.
Expand Down
4 changes: 2 additions & 2 deletions res/values/once.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<resources xmlns:tools="http://schemas.android.com/tools">

<string-array name="once">
<string-array name="once" tools:ignore="MissingTranslation">
<item>15s</item>
<item>30s</item>
<item>1m</item>
Expand Down
6 changes: 5 additions & 1 deletion src/biz/bokhorst/xprivacy/Hook.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public static boolean isAOSP(int sdk) {
if (Build.DISPLAY == null || Build.HOST == null)
return false;
return (isAOSP() || isCyanogenMod() || isOmni() || isMIUI() || isSlim() || isParanoidAndroid()
|| isCarbon() || isDirtyUnicorns() || isLiquidSmooth() || isAndroidRevolutionHD());
|| isCarbon() || isDirtyUnicorns() || isLiquidSmooth() || isAndroidRevolutionHD() || isMahdi());
} else
return false;
}
Expand Down Expand Up @@ -198,6 +198,10 @@ public static boolean isAndroidRevolutionHD() {
return Build.DISPLAY.startsWith("Android Revolution HD");
}

public static boolean isMahdi() {
return Build.HOST.startsWith("mahdi");
}

public Version getFrom() {
return mFrom;
}
Expand Down

0 comments on commit 66f7fb2

Please sign in to comment.