Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,105 @@
package com.mbridge.msdk.shake;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.GradientDrawable;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.RotateAnimation;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.RequiresApi;
import androidx.core.view.ViewCompat;
import com.mbridge.msdk.foundation.controller.c;
import com.mbridge.msdk.foundation.tools.ak;
/* loaded from: classes4.dex */
public class MBShakeView extends LinearLayout {
private Animation a;
private ImageView b;
public MBShakeView(Context context) {
super(context);
}
public MBShakeView(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
}
public MBShakeView(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
}
@RequiresApi(api = 21)
public MBShakeView(Context context, AttributeSet attributeSet, int i, int i2) {
super(context, attributeSet, i, i2);
}
public void initView(String str) {
initView(str, false);
}
public void initView(String str, boolean z) {
setOrientation(1);
setGravity(1);
View imageView = new ImageView(getContext());
imageView.setLayoutParams(new LinearLayout.LayoutParams(ak.a(getContext(), z ? 60.0f : 80.0f), ak.a(getContext(), z ? 60.0f : 80.0f)));
int parseColor = Color.parseColor("#80000000");
GradientDrawable gradientDrawable = new GradientDrawable();
gradientDrawable.setColor(parseColor);
gradientDrawable.setCornerRadius(200);
imageView.setBackground(gradientDrawable);
this.b = new ImageView(getContext());
FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(ak.a(getContext(), z ? 20.0f : 40.0f), ak.a(getContext(), z ? 20.0f : 40.0f));
layoutParams.gravity = 17;
this.b.setLayoutParams(layoutParams);
this.b.setImageResource(getResources().getIdentifier("mbridge_cm_btn_shake", "drawable", c.m().g()));
FrameLayout frameLayout = new FrameLayout(getContext());
frameLayout.setLayoutParams(new LinearLayout.LayoutParams(-2, -2));
frameLayout.addView(imageView);
frameLayout.addView(this.b);
TextView textView = new TextView(getContext());
LinearLayout.LayoutParams layoutParams2 = new LinearLayout.LayoutParams(-2, -2);
layoutParams2.topMargin = ak.a(getContext(), 10.0f);
textView.setLayoutParams(layoutParams2);
textView.setGravity(17);
if (getContext().getResources().getConfiguration().locale.getLanguage().contains("zh")) {
textView.setText("摇动手机 或 点击图标");
} else {
textView.setText("Shake your phone");
}
textView.setTextSize(z ? 16.0f : 20.0f);
textView.setTextColor(-1);
textView.setShadowLayer(8.0f, 3.0f, 3.0f, ViewCompat.MEASURED_STATE_MASK);
if (TextUtils.isEmpty(str)) {
str = getContext().getResources().getConfiguration().locale.getLanguage().contains("zh") ? "浏览第三方应用" : "Redirect to third party application";
}
TextView textView2 = new TextView(getContext());
LinearLayout.LayoutParams layoutParams3 = new LinearLayout.LayoutParams(-2, -2);
layoutParams3.topMargin = ak.a(getContext(), 5.0f);
textView2.setLayoutParams(layoutParams3);
textView2.setGravity(17);
textView2.setText(str);
textView2.setTextSize(z ? 12.0f : 16.0f);
textView2.setTextColor(-1);
textView2.setShadowLayer(8.0f, 3.0f, 3.0f, ViewCompat.MEASURED_STATE_MASK);
addView(frameLayout);
addView(textView);
addView(textView2);
}
@Override // android.view.ViewGroup, android.view.View
public void onAttachedToWindow() {
super.onAttachedToWindow();
RotateAnimation rotateAnimation = new RotateAnimation(-10.0f, 10.0f, 1, 0.5f, 1, 0.5f);
this.a = rotateAnimation;
rotateAnimation.setDuration(100L);
this.a.setRepeatMode(2);
this.a.setRepeatCount(-1);
this.b.startAnimation(this.a);
}
}

View File

@@ -0,0 +1,71 @@
package com.mbridge.msdk.shake;
import android.content.Context;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.text.TextUtils;
import com.mbridge.msdk.foundation.controller.c;
import com.mbridge.msdk.foundation.download.core.DownloadCommon;
import com.mbridge.msdk.foundation.same.report.d.d;
import com.mbridge.msdk.foundation.tools.af;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public final class a {
private SensorManager a;
/* renamed from: com.mbridge.msdk.shake.a$a, reason: collision with other inner class name */
public static class C0233a {
static a a = new a();
}
private a() {
}
public static a a() {
return C0233a.a;
}
public final void b(SensorEventListener sensorEventListener) {
SensorManager sensorManager = this.a;
if (sensorManager != null) {
try {
sensorManager.unregisterListener(sensorEventListener);
} catch (Exception e) {
e.printStackTrace();
}
}
}
public final void a(SensorEventListener sensorEventListener) {
Context c = c.m().c();
if (c != null) {
try {
if (this.a == null) {
this.a = (SensorManager) c.getSystemService("sensor");
}
this.a.registerListener(sensorEventListener, this.a.getDefaultSensor(1), 2);
} catch (Exception e) {
e.printStackTrace();
String message = e.getMessage();
try {
if (TextUtils.isEmpty(message)) {
return;
}
JSONObject jSONObject = new JSONObject();
jSONObject.put("key", "2000106");
if (!TextUtils.isEmpty(com.mbridge.msdk.foundation.same.a.V)) {
jSONObject.put(DownloadCommon.DOWNLOAD_REPORT_FIND_FILE_RESULT_VALUE_B, com.mbridge.msdk.foundation.same.a.V);
}
if (!TextUtils.isEmpty(com.mbridge.msdk.foundation.same.a.g)) {
jSONObject.put("c", com.mbridge.msdk.foundation.same.a.g);
}
jSONObject.put("reason", message);
d.a().a(jSONObject);
} catch (Throwable th) {
af.b("NativeShakeManager", th.getMessage());
}
}
}
}
}

View File

@@ -0,0 +1,96 @@
package com.mbridge.msdk.shake;
import android.hardware.Sensor;
import android.hardware.SensorEventListener;
/* loaded from: classes4.dex */
public abstract class b implements SensorEventListener {
private int a;
private int b;
public long d = 0;
public float e = 0.0f;
public float f = 0.0f;
public float g = 0.0f;
public abstract void a();
@Override // android.hardware.SensorEventListener
public void onAccuracyChanged(Sensor sensor, int i) {
}
public b(int i, int i2) {
this.a = i;
this.b = i2;
}
/* JADX WARN: Code restructure failed: missing block: B:18:0x0046, code lost:
if (java.lang.Math.abs(r9 - r2) > r8.a) goto L14;
*/
@Override // android.hardware.SensorEventListener
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void onSensorChanged(android.hardware.SensorEvent r9) {
/*
r8 = this;
float[] r9 = r9.values
r0 = 0
r0 = r9[r0]
float r0 = -r0
r1 = 1
r1 = r9[r1]
float r1 = -r1
r2 = 2
r9 = r9[r2]
float r9 = -r9
float r2 = r8.e
r3 = 0
int r4 = (r2 > r3 ? 1 : (r2 == r3 ? 0 : -1))
if (r4 == 0) goto L22
float r2 = r0 - r2
float r2 = java.lang.Math.abs(r2)
int r4 = r8.a
float r4 = (float) r4
int r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))
if (r2 > 0) goto L48
L22:
float r2 = r8.f
int r4 = (r2 > r3 ? 1 : (r2 == r3 ? 0 : -1))
if (r4 == 0) goto L35
float r2 = r1 - r2
float r2 = java.lang.Math.abs(r2)
int r4 = r8.a
float r4 = (float) r4
int r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))
if (r2 > 0) goto L48
L35:
float r2 = r8.g
int r3 = (r2 > r3 ? 1 : (r2 == r3 ? 0 : -1))
if (r3 == 0) goto L5c
float r2 = r9 - r2
float r2 = java.lang.Math.abs(r2)
int r3 = r8.a
float r3 = (float) r3
int r2 = (r2 > r3 ? 1 : (r2 == r3 ? 0 : -1))
if (r2 <= 0) goto L5c
L48:
long r2 = java.lang.System.currentTimeMillis()
long r4 = r8.d
long r4 = r2 - r4
int r6 = r8.b
long r6 = (long) r6
int r4 = (r4 > r6 ? 1 : (r4 == r6 ? 0 : -1))
if (r4 <= 0) goto L5c
r8.d = r2
r8.a()
L5c:
r8.e = r0
r8.f = r1
r8.g = r9
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.shake.b.onSensorChanged(android.hardware.SensorEvent):void");
}
}