Last active
September 24, 2020 13:58
-
-
Save soknifedev/5ec6b7fece9140f65614f3b74f9f9318 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package X; | |
import android.content.Context; | |
import android.graphics.Point; | |
import android.os.Build; | |
import android.telephony.TelephonyManager; | |
import android.util.DisplayMetrics; | |
import android.view.WindowManager; | |
import java.util.Locale; | |
/* renamed from: X.0LG reason: invalid class name */ | |
public final class AnonymousClass0LG { | |
public final Context A00; | |
public final C03780Kz A01; | |
public final String A02; | |
public final String A03; | |
private String A00(String str) { | |
String str2; | |
String str3; | |
if (str != null) { | |
int length = str.length(); | |
StringBuilder sb = new StringBuilder(length); | |
for (int i = 0; i < length; i++) { | |
char charAt = str.charAt(i); | |
if (charAt == '&') { | |
str3 = "&"; | |
} else if (charAt < ' ' || charAt > '~') { | |
sb.append("&#"); | |
sb.append(Integer.toString(charAt)); | |
str3 = ";"; | |
} else { | |
sb.append(charAt); | |
} | |
sb.append(str3); | |
} | |
str2 = sb.toString(); | |
} else { | |
str2 = AnonymousClass0JX.MISSING_INFO; | |
} | |
return str2.replace("/", "-").replace(";", "-"); | |
} | |
public final String A01() { | |
String str; | |
boolean z; | |
String str2; | |
Object[] objArr = new Object[10]; | |
objArr[0] = "FBAN"; | |
objArr[1] = this.A02; | |
objArr[2] = "FBAV"; | |
C03780Kz r2 = this.A01; | |
objArr[3] = r2.A01; | |
objArr[4] = "FBBV"; | |
objArr[5] = r2.A00; | |
objArr[6] = "FBDM"; | |
DisplayMetrics displayMetrics = this.A00.getResources().getDisplayMetrics(); | |
Point point = new Point(displayMetrics.widthPixels, displayMetrics.heightPixels); | |
WindowManager windowManager = (WindowManager) C03400Jh.A01.A02(this.A00, "window", WindowManager.class); | |
if (!(windowManager == null || windowManager.getDefaultDisplay() == null)) { | |
windowManager.getDefaultDisplay().getSize(point); | |
} | |
objArr[7] = A00("{density=" + displayMetrics.density + ",width=" + point.x + ",height=" + point.y + "}"); | |
objArr[8] = "FBLC"; | |
String str3 = this.A03; | |
if (str3 == null) { | |
str3 = Locale.getDefault().toString(); | |
} | |
objArr[9] = A00(str3); | |
String format = String.format((Locale) null, "%s/%s;%s/%s;%s/%s;%s/%s;%s/%s;", objArr); | |
Object[] objArr2 = new Object[14]; | |
objArr2[0] = "FBCR"; | |
TelephonyManager telephonyManager = (TelephonyManager) C03400Jh.A01.A02(this.A00, "phone", TelephonyManager.class); | |
if (telephonyManager != null) { | |
str = telephonyManager.getNetworkOperatorName(); | |
} else { | |
str = AnonymousClass0JX.MISSING_INFO; | |
} | |
objArr2[1] = A00(str); | |
objArr2[2] = "FBMF"; | |
objArr2[3] = A00(Build.MANUFACTURER); | |
objArr2[4] = "FBBD"; | |
objArr2[5] = A00(Build.BRAND); | |
objArr2[6] = "FBPN"; | |
objArr2[7] = this.A00.getPackageName(); | |
objArr2[8] = "FBDV"; | |
objArr2[9] = A00(Build.MODEL); | |
objArr2[10] = "FBSV"; | |
objArr2[11] = A00(Build.VERSION.RELEASE); | |
objArr2[12] = "FBLR"; | |
try { | |
z = this.A00.getPackageManager().hasSystemFeature("android.hardware.ram.low"); | |
} catch (Exception unused) { | |
z = false; | |
} | |
if (z) { | |
str2 = "1"; | |
} else { | |
str2 = "0"; | |
} | |
objArr2[13] = A00(str2); | |
return AnonymousClass00Y.A0Z("[", format, String.format((Locale) null, "%s/%s;%s/%s;%s/%s;%s/%s;%s/%s;%s/%s;%s/%s;", objArr2), String.format((Locale) null, "%s/%s;", new Object[]{"FBBK", "1"}), String.format((Locale) null, "%s/%s:%s;", new Object[]{"FBCA", A00(Build.CPU_ABI), A00(Build.CPU_ABI2)}), "]"); | |
} | |
public AnonymousClass0LG(Context context, C03780Kz r2, String str, String str2) { | |
this.A00 = context; | |
this.A01 = r2; | |
this.A02 = str; | |
this.A03 = str2; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment