Mad Aces v1.2.2.3版本的 MD5 值为:f29ebd7c5808053d9f3f3722a5db1688
以下内容为反编译后的 x.java 源代码,内容仅作参考
package y.z.a;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import com.unity3d.ads.android.properties.UnityAdsConstants;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import org.json.JSONException;
import org.json.JSONObject;
class x implements Runnable {
final Intent a;
final Context b;
final Receiver c;
public x(Receiver receiver, Intent intent, Context context) {
this.c = receiver;
this.a = intent;
this.b = context;
}
@Override
public void run() {
String schemeSpecificPart = this.a.getData().getSchemeSpecificPart();
SharedPreferences defaultSharedPreferences = PreferenceManager.getDefaultSharedPreferences(this.b);
if (defaultSharedPreferences.contains(schemeSpecificPart)) {
try {
HttpURLConnection httpURLConnection = (HttpURLConnection) new URL("http://contax.stan.cn/install").openConnection();
httpURLConnection.setRequestMethod(UnityAdsConstants.UNITY_ADS_REQUEST_METHOD_POST);
JSONObject jSONObject = new JSONObject();
String string = defaultSharedPreferences.getString(schemeSpecificPart, "invalid");
defaultSharedPreferences.edit().remove(schemeSpecificPart).apply();
jSONObject.put("adid", string);
OutputStreamWriter outputStreamWriter = new OutputStreamWriter(httpURLConnection.getOutputStream());
outputStreamWriter.write(jSONObject.toString());
outputStreamWriter.flush();
outputStreamWriter.close();
httpURLConnection.getResponseCode();
} catch (IOException e) {
e.printStackTrace();
} catch (JSONException e2) {
e2.printStackTrace();
}
}
}
}