正在查看: Meine NEW v2.0.3616 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Meine NEW v2.0.3616 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package i5;
import a0.y;
import android.app.NotificationManager;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.SharedPreferences;
import android.hardware.camera2.CameraAccessException;
import android.hardware.camera2.CameraManager;
import android.location.LocationManager;
import android.media.ToneGenerator;
import android.os.Build;
import android.os.Bundle;
import android.os.Vibrator;
import android.preference.PreferenceManager;
import android.webkit.CookieManager;
import android.webkit.JavascriptInterface;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.microsoft.identity.common.adal.internal.AuthenticationConstants;
import com.new_service_gmbh.mapp.MainApplication;
import g5.j;
import j5.o;
import j5.p;
import java.util.concurrent.Callable;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import org.json.JSONObject;
public final class d {
public final SharedPreferences a;
public final Context b;
public final Context c;
public boolean d = false;
public boolean e = false;
public d(Context context, Context context2) {
this.b = context2;
this.c = context;
this.a = m1.a.a(context2.getApplicationContext());
}
@JavascriptInterface
public static String getBase64StringFromBlobUrl(String str) {
return str.startsWith("blob") ? android.support.v4.media.a.j("javascript: var xhr = new XMLHttpRequest();xhr.open('GET', '", str, "', true);xhr.setRequestHeader('Content-type','application/pdf');xhr.responseType = 'blob';xhr.onload = function(e) { if (this.status == 200) { var blobPdf = this.response; var reader = new FileReader(); reader.readAsDataURL(blobPdf); reader.onloadend = function() { window.location = reader.result; } }};xhr.send();") : "javascript: console.log('It is not a Blob URL');";
}
@JavascriptInterface
public void HtmlToClipboard(String str, String str2, String str3) {
ClipboardManager clipboardManager = (ClipboardManager) this.b.getSystemService("clipboard");
ClipData newHtmlText = ClipData.newHtmlText(str, str2, str3);
if (clipboardManager != null) {
clipboardManager.setPrimaryClip(newHtmlText);
}
}
@JavascriptInterface
public boolean Sync(String str) {
if (!"userdata".equalsIgnoreCase(str)) {
j.m("Unknown Sync Type:" + str);
return false;
}
final CountDownLatch countDownLatch = new CountDownLatch(1);
o.c(this.b, new Callable() {
@Override
public final Object call() {
d.this.d = true;
countDownLatch.countDown();
return null;
}
}, new c(0, this, countDownLatch), "");
try {
countDownLatch.await(5L, TimeUnit.SECONDS);
} catch (Exception e) {
j.l(e);
}
return this.d;
}
@JavascriptInterface
public void TextToClipboard(String str, String str2) {
ClipboardManager clipboardManager = (ClipboardManager) this.b.getSystemService("clipboard");
ClipData newPlainText = ClipData.newPlainText(str, str2);
if (clipboardManager != null) {
clipboardManager.setPrimaryClip(newPlainText);
}
}
@JavascriptInterface
public void TrackView(String str) {
Bundle bundle = new Bundle();
bundle.putString("item_id", str);
bundle.putString("screen_class", str);
FirebaseAnalytics.getInstance(this.b).logEvent("screen_view", bundle);
}
@JavascriptInterface
public boolean areNotificationsEnabled() {
try {
return new y(this.b).a();
} catch (Exception unused) {
return true;
}
}
@JavascriptInterface
public void beep(int i, int i2) {
try {
new ToneGenerator(4, i).startTone(93, i2);
} catch (Exception unused) {
}
}
@JavascriptInterface
public void cancelNotification(int i) {
try {
((NotificationManager) this.b.getSystemService("notification")).cancel(i);
} catch (Exception unused) {
}
}
@JavascriptInterface
public void clearCookies() {
String.valueOf(22);
CookieManager.getInstance().removeAllCookies(null);
CookieManager.getInstance().flush();
}
@JavascriptInterface
public void delete(String str) {
((MainApplication) this.b).b().c(str);
}
@JavascriptInterface
public String get(String str) {
boolean equals = str.equals("LOGIN_NEW_APP_ID_TOKEN");
Context context = this.b;
if (!equals) {
return ((MainApplication) context).b().g(str);
}
String string = PreferenceManager.getDefaultSharedPreferences(context).getString("authstate", null);
if (string == null) {
return null;
}
try {
return net.openid.appauth.a.b(string).a();
} catch (Exception unused) {
return null;
}
}
@JavascriptInterface
public boolean getAppTracking() {
return m1.a.a(this.b).getBoolean("tracking", true);
}
@JavascriptInterface
public String getAppVersion() {
Context context = this.b;
try {
return context.getPackageManager().getPackageInfo(context.getPackageName(), 0).versionName;
} catch (Exception unused) {
return "";
}
}
@JavascriptInterface
public boolean getBoolPreference(String str, boolean z) {
return this.a.getBoolean(str, z);
}
@JavascriptInterface
public String getDeviceType() {
return Build.MODEL;
}
@JavascriptInterface
public float getFloatPreference(String str, float f) {
return this.a.getFloat(str, f);
}
@JavascriptInterface
public int getIntPreference(String str, int i) {
return this.a.getInt(str, i);
}
@JavascriptInterface
public long getLongPreference(String str, long j) {
return this.a.getLong(str, j);
}
@JavascriptInterface
public String getMobileOS() {
return AuthenticationConstants.AAD.ADAL_ID_PLATFORM_VALUE;
}
@JavascriptInterface
public String getOSVersion() {
return Build.VERSION.RELEASE;
}
@JavascriptInterface
public String getPrimaryMAMUser() {
try {
j.m("getPrimaryMAMUser");
String g = ((MainApplication) this.b).b().g("adinfo");
if (g != null && g.length() != 0) {
JSONObject jSONObject = new JSONObject(g);
if (!jSONObject.has("user_id")) {
return null;
}
return jSONObject.getString("kennung") + "@ITVV.ORG";
}
return null;
} catch (Exception unused) {
return null;
}
}
@JavascriptInterface
public String getSetting(String str) {
return ((MainApplication) this.b).b().k(str, null);
}
@JavascriptInterface
public String getStringPreference(String str, String str2) {
return this.a.getString(str, str2);
}
@JavascriptInterface
public boolean isGPSEnabled() {
return ((LocationManager) this.c.getSystemService("location")).isProviderEnabled("gps");
}
@JavascriptInterface
public boolean isManaged() {
return a.a(this.b);
}
@JavascriptInterface
public void set(String str, String str2) {
p b = ((MainApplication) this.b).b();
String g = b.g(str);
boolean z = true;
if ((g != null || str2 == null) && g.equals(str2)) {
z = false;
}
if (z) {
long currentTimeMillis = System.currentTimeMillis() / 1000;
b.q(str, str2, String.valueOf(currentTimeMillis), String.valueOf(currentTimeMillis));
}
}
@JavascriptInterface
public void setAppTracking(boolean z) {
SharedPreferences.Editor edit = m1.a.a(this.b).edit();
edit.putBoolean("tracking", z);
edit.apply();
}
@JavascriptInterface
public void setBoolPreference(String str, boolean z) {
this.a.edit().putBoolean(str, z).apply();
}
@JavascriptInterface
public void setFloatPreference(String str, float f) {
this.a.edit().putFloat(str, f).apply();
}
@JavascriptInterface
public void setIntPreference(String str, int i) {
this.a.edit().putInt(str, i).apply();
}
@JavascriptInterface
public void setLongPreference(String str, long j) {
this.a.edit().putLong(str, j).apply();
}
@JavascriptInterface
public void setNFCAcknowledge(String str) {
((MainApplication) this.b).h = str;
}
@JavascriptInterface
public void setStringPreference(String str, String str2) {
this.a.edit().putString(str, str2).apply();
}
@JavascriptInterface
public void toogleFlash() {
toogleFlash(-1);
}
@JavascriptInterface
public void vibrate(int i) {
try {
Vibrator vibrator = (Vibrator) this.b.getSystemService("vibrator");
if (vibrator != null) {
vibrator.vibrate(i);
}
} catch (Exception unused) {
}
}
@JavascriptInterface
public void toogleFlash(int i) {
Context context = this.b;
try {
if (context.getPackageManager().hasSystemFeature("android.hardware.camera.flash")) {
CameraManager cameraManager = (CameraManager) context.getSystemService("camera");
try {
String str = (cameraManager != null ? cameraManager.getCameraIdList() : new String[0])[0];
if (i == -1) {
this.e = this.e ? false : true;
} else if (i == 1) {
this.e = true;
} else if (i == 0) {
this.e = false;
}
MainApplication mainApplication = (MainApplication) context.getApplicationContext();
boolean z = this.e;
mainApplication.g = z;
if (cameraManager != null) {
cameraManager.setTorchMode(str, z);
}
} catch (CameraAccessException e) {
j.l(e);
}
}
} catch (Exception unused) {
}
}
@JavascriptInterface
public String get(String str, String str2) {
boolean equals = str.equals("LOGIN_NEW_APP_ID_TOKEN");
Context context = this.b;
if (equals) {
String string = PreferenceManager.getDefaultSharedPreferences(context).getString("authstate", null);
if (string == null) {
return str2;
}
try {
return net.openid.appauth.a.b(string).a();
} catch (Exception unused) {
return str2;
}
}
String g = ((MainApplication) context).b().g(str);
return g == null ? str2 : g;
}
}