Google Installer v1.0版本的 MD5 值为:cded706947e19d011b30ce3df4f280af
以下内容为反编译后的 s.java 源代码,内容仅作参考
package uAgent.commonsdk.statistics.idtracking;
import android.content.Context;
import android.content.SharedPreferences;
import android.text.TextUtils;
import com.android.leech.base.bugly.download.BuglyStrategy;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLEncoder;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLSession;
import org.apache.http.conn.ssl.BrowserCompatHostnameVerifier;
import uAgent.commonsdk.statistics.internal.PreferenceWrapper;
public class s extends a {
private static final String a = "uuid";
private static final String e = "yosuid";
private static final String f = "23346339";
private Context b;
private String c;
private String d;
public s(Context context) {
super(a);
this.b = null;
this.c = null;
this.d = null;
this.b = context;
this.c = null;
this.d = null;
}
public static String a(String str, String str2) {
try {
return (String) Class.forName("android.os.SystemProperties").getMethod("get", String.class, String.class).invoke(null, str, str2);
} catch (Exception unused) {
return str2;
}
}
private String b(String str) {
InputStream inputStream;
DataOutputStream dataOutputStream;
HttpsURLConnection httpsURLConnection;
HttpsURLConnection httpsURLConnection2;
this.d = a("ro.yunos.openuuid", "");
if (TextUtils.isEmpty(this.d)) {
this.c = a("ro.aliyun.clouduuid", "");
if (TextUtils.isEmpty(this.c)) {
this.c = a("ro.sys.aliyun.clouduuid", "");
}
if (!TextUtils.isEmpty(this.c)) {
BufferedReader bufferedReader = null;
r7 = null;
BufferedReader bufferedReader2 = null;
bufferedReader = null;
bufferedReader = null;
r7 = null;
bufferedReader = null;
DataOutputStream dataOutputStream2 = null;
try {
httpsURLConnection2 = (HttpsURLConnection) new URL("https://cmnsguider.yunos.com:443/genDeviceToken").openConnection();
try {
httpsURLConnection2.setConnectTimeout(BuglyStrategy.a.MAX_USERDATA_VALUE_LENGTH);
httpsURLConnection2.setReadTimeout(BuglyStrategy.a.MAX_USERDATA_VALUE_LENGTH);
httpsURLConnection2.setRequestMethod("POST");
httpsURLConnection2.setDoInput(true);
httpsURLConnection2.setDoOutput(true);
httpsURLConnection2.setUseCaches(false);
httpsURLConnection2.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
httpsURLConnection2.setHostnameVerifier(new HostnameVerifier() {
@Override
public boolean verify(String str2, SSLSession sSLSession) {
return new BrowserCompatHostnameVerifier().verify("cmnsguider.yunos.com", sSLSession);
}
});
String str2 = "appKey=" + URLEncoder.encode("23338940", "UTF-8") + "&uuid=" + URLEncoder.encode("FC1FE84794417B1BEF276234F6FB4E63", "UTF-8");
dataOutputStream = new DataOutputStream(httpsURLConnection2.getOutputStream());
try {
try {
dataOutputStream.writeBytes(str2);
dataOutputStream.flush();
if (httpsURLConnection2.getResponseCode() == 200) {
try {
inputStream = httpsURLConnection2.getInputStream();
try {
BufferedReader bufferedReader3 = new BufferedReader(new InputStreamReader(inputStream));
try {
StringBuffer stringBuffer = new StringBuffer();
while (true) {
String readLine = bufferedReader3.readLine();
if (readLine == null) {
break;
}
stringBuffer.append(readLine);
}
this.d = stringBuffer.toString();
} catch (Exception unused) {
} catch (Throwable th) {
th = th;
bufferedReader = bufferedReader3;
httpsURLConnection = httpsURLConnection2;
if (dataOutputStream != null) {
try {
dataOutputStream.close();
} catch (Exception unused2) {
}
}
if (bufferedReader != null) {
try {
bufferedReader.close();
} catch (Exception unused3) {
}
}
if (inputStream != null) {
try {
inputStream.close();
} catch (Exception unused4) {
}
}
if (httpsURLConnection != null) {
httpsURLConnection.disconnect();
}
throw th;
}
bufferedReader2 = bufferedReader3;
} catch (Exception unused5) {
} catch (Throwable th2) {
httpsURLConnection = httpsURLConnection2;
th = th2;
}
} catch (Exception unused6) {
}
dataOutputStream.close();
if (bufferedReader2 != null) {
try {
bufferedReader2.close();
} catch (Exception unused7) {
}
}
if (inputStream != null) {
try {
inputStream.close();
} catch (Exception unused8) {
}
}
}
inputStream = null;
dataOutputStream.close();
if (bufferedReader2 != null) {
}
if (inputStream != null) {
}
} catch (Throwable th3) {
httpsURLConnection = httpsURLConnection2;
th = th3;
inputStream = null;
}
} catch (Exception unused9) {
dataOutputStream2 = dataOutputStream;
if (dataOutputStream2 != null) {
try {
dataOutputStream2.close();
} catch (Exception unused10) {
}
}
}
} catch (Exception unused11) {
} catch (Throwable th4) {
dataOutputStream = null;
httpsURLConnection = httpsURLConnection2;
th = th4;
inputStream = null;
}
} catch (Exception unused12) {
httpsURLConnection2 = null;
} catch (Throwable th5) {
th = th5;
inputStream = null;
dataOutputStream = null;
httpsURLConnection = null;
}
}
return this.d;
}
return this.d;
}
@Override
public String f() {
SharedPreferences sharedPreferences;
SharedPreferences.Editor edit;
try {
if (TextUtils.isEmpty(a("ro.yunos.version", "")) || this.b == null || (sharedPreferences = PreferenceWrapper.getDefault(this.b)) == null) {
return null;
}
String string = sharedPreferences.getString(e, "");
if (TextUtils.isEmpty(string)) {
this.d = b(f);
if (!TextUtils.isEmpty(this.d) && this.b != null && sharedPreferences != null && (edit = sharedPreferences.edit()) != null) {
edit.putString(e, this.d).commit();
}
return this.d;
}
return string;
} catch (Exception unused) {
return null;
}
}
}