From 59e59b2825a80847c1c9c33ecfe69ebe5fbbf609 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 16 Aug 2014 10:15:30 +0200 Subject: [PATCH] Added hashed Android ID to update check for throttling purposes Refs #1867 --- src/biz/bokhorst/xprivacy/ActivityShare.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/biz/bokhorst/xprivacy/ActivityShare.java b/src/biz/bokhorst/xprivacy/ActivityShare.java index dd7bb681e..1205aa22a 100644 --- a/src/biz/bokhorst/xprivacy/ActivityShare.java +++ b/src/biz/bokhorst/xprivacy/ActivityShare.java @@ -1856,6 +1856,7 @@ protected void onPreExecute() { } @Override + @SuppressLint("DefaultLocale") protected Object doInBackground(Object... args) { try { // Notify @@ -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]);