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

Commit

Permalink
Fixed restriction *AdvertisingId
Browse files Browse the repository at this point in the history
Fixes #2166
  • Loading branch information
M66B committed Apr 17, 2015
1 parent 8b68f33 commit 5665608
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Changelog

* Fixed all problems reported through the debug info
* Fixed restrictions *getToken* and *getTokenWithNotification* ([issue](/../../issues/2169))
* Fixed restriction *AdvertisingId* ([issue](/../../issues/2166))
* Updated Norwegian translation

[Open issues](https://github.com/M66B/XPrivacy/issues?state=open)
Expand Down
10 changes: 5 additions & 5 deletions src/biz/bokhorst/xprivacy/XAdvertisingIdClientInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ public static List<XHook> getInstances() {

@Override
protected void before(XParam param) throws Throwable {
// Do nothing
}

@Override
protected void after(XParam param) throws Throwable {
if (mMethod == Methods.getId) {
String adid = (String) param.getResult();
if (adid != null)
Expand All @@ -46,9 +51,4 @@ protected void before(XParam param) throws Throwable {
} else
Util.log(this, Log.WARN, "Unknown method=" + param.method.getName());
}

@Override
protected void after(XParam param) throws Throwable {
// Do nothing
}
}

0 comments on commit 5665608

Please sign in to comment.