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

Commit

Permalink
Added parameter key to SystemProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Jun 29, 2014
1 parent ab63089 commit c27c2b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Changelog
* Added restriction for heart rate sensor (Android "L") ([issue](/../../issues/1757))
* Added restriction *SIP.isSipWifiOnly*
* Added parameter destination address to *sendDataMessage*, *sendMultipartTextMessage* and *sendTextMessage* (SMS)
* Added parameter key to *%imei*, *%hostname*, *%serialno*, *%macaddr* and *%cid*

[Open issues](https://github.com/M66B/XPrivacy/issues?state=open)

Expand Down
4 changes: 2 additions & 2 deletions src/biz/bokhorst/xprivacy/XSystemProperties.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ protected void after(XParam param) throws Throwable {
if (key != null)
if (mPropertyName.startsWith("%") ? key.contains(mPropertyName.substring(1)) : key.equals(mPropertyName))
if (mMethod == Methods.get) {
if (param.getResult() != null && isRestricted(param, mPropertyName))
if (param.getResult() != null && isRestrictedExtra(param, mPropertyName, key))
param.setResult(PrivacyManager.getDefacedProp(Binder.getCallingUid(), mPropertyName));

} else if (param.args.length > 1) {
if (isRestricted(param, mPropertyName))
if (isRestrictedExtra(param, mPropertyName, key))
param.setResult(param.args[1]);

} else
Expand Down

0 comments on commit c27c2b2

Please sign in to comment.