光速虚拟机 v3.8.2版本的 MD5 值为:e0eecbee2ded4bfb58a5ca72845ca90b
以下内容为反编译后的 VPhoneGaGaNetworkReportConfig.java 源代码,内容仅作参考
package com.vphonegaga.titan.network.configs;
import android.util.Base64;
import android.util.Log;
import com.applovin.exoplayer2.common.base.Ascii;
import com.common.network.interceptor.InterceptorListener;
import com.common.utils.EncryptUtil;
import com.vphonegaga.titan.MyApp;
import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.Map;
import okhttp3.Headers;
public class VPhoneGaGaNetworkReportConfig extends VPhoneGaGaNetworkBaseConfig {
public static final String DEBUG_REPORT_SUB_PATH = "vpgaga_datareport/DataReport/VPGagaCommonReport.php";
public static final String RELEASE_REPORT_SUB_PATH = "vpgaga_datareport/DataReport/VPGagaCommonReport.php";
private static final int REQUEST_TYPE_REPORT_INFO = 1;
private static final int REQUEST_TYPE_UPLOAD_LOGS = 3;
private static final int REQUEST_TYPE_UPLOAD_USER_FEEDBACK = 2;
private static final String TAG = "Titan.NetworkConfig-Report";
@Override
public boolean enableCipherTextTransmission() {
return true;
}
@Override
public String getBaseUrl() {
return MyApp.isDebugMode() ? "http://test.report.gsxnj.cn/" : "https://report.gsxnj.cn/";
}
@Override
public int getConnectTimeOut() {
return 10000;
}
@Override
public InterceptorListener getInterceptorListener() {
return new InterceptorListener() {
@Override
public boolean needEncrypt(int i) {
return i != 3;
}
@Override
public String onBodyEncrypt(int i, Headers headers, String str) {
Log.d(VPhoneGaGaNetworkReportConfig.TAG, "requestType: " + i);
if (i == 3) {
return str;
}
EncryptUtil.AbstractBlockEncryption build = new EncryptUtil.BlockEncryptionBuilder("DES").setWorkMode("ECB").setPaddingMode("PKCS5Padding").build();
try {
if (MyApp.isDebugMode()) {
Log.d(VPhoneGaGaNetworkReportConfig.TAG, "data: " + str);
}
byte[] bArr = {11, 93, Ascii.CR, 104, -36, 59, 110, -15};
str = Base64.encodeToString(build.encrypt(str.getBytes(StandardCharsets.UTF_8), bArr), 2);
if (MyApp.isDebugMode()) {
Log.d(VPhoneGaGaNetworkReportConfig.TAG, "encrypt data: " + str);
String str2 = new String(build.decrypt(Base64.decode(str.getBytes(), 2), bArr));
Log.d(VPhoneGaGaNetworkReportConfig.TAG, "decrypt data: " + str2);
}
} catch (Exception e) {
e.printStackTrace();
}
return str;
}
};
}
@Override
public Map<String, Integer> getRequestType() {
HashMap hashMap = new HashMap(1);
if (MyApp.isDebugMode()) {
hashMap.put("/vpgaga_datareport/DataReport/VPGagaCommonReport.php", 1);
} else {
hashMap.put("/vpgaga_datareport/DataReport/VPGagaCommonReport.php", 1);
}
hashMap.put("/index.php", 2);
hashMap.put("/vpgaga_datareport/Crash/UploadLog.php", 3);
return hashMap;
}
}