ChatOn v1.35.366360版本的 MD5 值为:cde28447b38d5467efa95e48e7076155
以下内容为反编译后的 o.java 源代码,内容仅作参考
package bc;
import android.app.Application;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.util.Base64;
import java.io.ByteArrayOutputStream;
import org.json.JSONException;
import org.json.JSONObject;
public final class o implements Runnable {
public final int f1950d;
public final s f1951e;
public o(s sVar, int i10) {
this.f1950d = i10;
this.f1951e = sVar;
}
@Override
public final void run() {
String concat;
int i10 = this.f1950d;
s sVar = this.f1951e;
switch (i10) {
case 0:
sVar.b();
return;
default:
sVar.getClass();
JSONObject jSONObject = new JSONObject();
Application application = (Application) sVar.f1979d;
try {
jSONObject.put("app_name", application.getPackageManager().getApplicationLabel(application.getApplicationInfo()).toString());
Drawable applicationIcon = application.getPackageManager().getApplicationIcon(application.getApplicationInfo());
if (applicationIcon == null) {
concat = null;
} else {
Bitmap createBitmap = Bitmap.createBitmap(applicationIcon.getIntrinsicWidth(), applicationIcon.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(createBitmap);
applicationIcon.setBounds(0, 0, canvas.getWidth(), canvas.getHeight());
applicationIcon.draw(canvas);
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
createBitmap.compress(Bitmap.CompressFormat.PNG, 100, byteArrayOutputStream);
concat = "data:image/png;base64,".concat(String.valueOf(Base64.encodeToString(byteArrayOutputStream.toByteArray(), 2)));
}
jSONObject.put("app_icon", concat);
jSONObject.put("stored_infos_map", ((com.google.android.gms.internal.consent_sdk.a) sVar.f1986z).a());
} catch (JSONException unused) {
}
((h) sVar.f1985y).f1924g.a("UMP_configureFormWithAppAssets", jSONObject.toString());
return;
}
}
}