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

Commit

Permalink
Added hashed Android ID to update check for throttling purposes
Browse files Browse the repository at this point in the history
Refs #1867
  • Loading branch information
M66B committed Aug 16, 2014
1 parent 7a43c60 commit 59e59b2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/biz/bokhorst/xprivacy/ActivityShare.java
Original file line number Diff line number Diff line change
Expand Up @@ -1856,6 +1856,7 @@ protected void onPreExecute() {
}

@Override
@SuppressLint("DefaultLocale")
protected Object doInBackground(Object... args) {
try {
// Notify
Expand All @@ -1868,10 +1869,15 @@ protected Object doInBackground(Object... args) {
String[] license = Util.getProLicenseUnchecked();
int userId = Util.getUserId(Process.myUid());
boolean test = PrivacyManager.getSettingBool(userId, PrivacyManager.cSettingTestVersions, false);
String android_id = Secure.getString(mContext.getContentResolver(), Secure.ANDROID_ID);

JSONObject jRoot = new JSONObject();
jRoot.put("test_versions", test);
jRoot.put("protocol_version", cProtocolVersion);
jRoot.put("android_id", Util.md5(android_id).toLowerCase());
jRoot.put("android_sdk", Build.VERSION.SDK_INT);
jRoot.put("xprivacy_version", Util.getSelfVersionCode(mContext));
jRoot.put("xprivacy_version_name", Util.getSelfVersionName(mContext));
jRoot.put("test_versions", test);
jRoot.put("email", license[1]);
jRoot.put("signature", license[2]);

Expand Down

0 comments on commit 59e59b2

Please sign in to comment.