Code with Finding: |
/*
* Decompiled with CFR 0_128.
*
* Could not load the following classes:
* android.content.Context
* android.util.Log
* com.zkmm.appoffer.AdwoKey
* com.zkmm.appoffer.q
* com.zkmm.appoffer.z
* org.json.JSONArray
* org.json.JSONException
* org.json.JSONObject
*/
package com.zkmm.appoffer;
import android.content.Context;
import android.util.Log;
import com.zkmm.appoffer.AdwoKey;
import com.zkmm.appoffer.q;
import com.zkmm.appoffer.z;
import java.io.File;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class A {
protected static AdwoKey a = null;
public static long a(byte[] arrby) {
int n = 8;
long l = 0L;
int n2 = 0;
while (n2 < n) {
l <<= n;
int n3 = arrby[n2] & 255;
long l2 = n3;
l |= l2;
++n2;
}
return l;
}
/*
* Enabled force condition propagation
* Lifted jumps to return sites
*/
protected static String a(Context context, int n) {
String string;
String string2;
Object object;
String string3;
block33 : {
string3 = null;
if (context == null) {
do {
return string3;
break;
} while (true);
}
string = q.T;
if (string == null) {
q.T = string = q.g((Context)context, (String)"userID");
}
if ((string = q.S) == null || (string = q.Q) == null || (string = q.O) == null) {
A.a(context, null);
}
super();
string2 = q.T;
int n2 = 16;
long l = Long.parseLong(string2, n2);
Object object2 = a;
if (object2 == null) {
object2 = AdwoKey.a((Context)context);
a = object2;
}
string2 = a.a(l);
object = z.a((Context)context);
n2 = object.b();
object2 = "public_id";
String string4 = q.S;
string.put((String)object2, (Object)string4);
object2 = "imei";
string4 = q.Q;
string.put((String)object2, (Object)string4);
object2 = "idfa";
string4 = q.O;
string.put((String)object2, (Object)string4);
object2 = "openid";
string4 = q.R;
string.put((String)object2, (Object)string4);
object2 = "sdk_version";
int n3 = 32;
string.put((String)object2, n3);
object2 = "userID0";
string4 = q.T;
string.put((String)object2, (Object)string4);
object2 = "userID1";
string.put((String)object2, (Object)string2);
string2 = "current_point";
object2 = a;
long l2 = n2;
object = object2.a(l2);
string.put(string2, object);
super();
object = new Object();
if (n == 0) break block33;
object2 = "points";
string4 = a;
long l3 = n;
string4 = string4.a(l3);
object.put((String)object2, (Object)string4);
object2 = "timestamp";
string4 = a;
l3 = System.currentTimeMillis();
string4 = string4.a(l3);
object.put((String)object2, (Object)string4);
string2.put(object);
}
object = "consumption_detail";
try {
string.put((String)object, (Object)string2);
}
catch (JSONException jSONException) {
jSONException.printStackTrace();
return string3;
}
catch (Exception exception) {
exception.printStackTrace();
return string3;
}
return string.toString();
}
/*
* Exception decompiling
*/
protected static String a(Context var0, String var1_1) {
// This method has failed to decompile. When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file.
// org.benf.cfr.reader.util.ConfusedCFRException: Started 2 blocks at once
// org.benf.cfr.reader.bytecode.analysis.opgraph.Op04StructuredStatement.getStartingBlocks(Op04StructuredStatement.java:395)
// org.benf.cfr.reader.bytecode.analysis.opgraph.Op04StructuredStatement.buildNestedBlocks(Op04StructuredStatement.java:473)
// org.benf.cfr.reader.bytecode.analysis.opgraph.Op03SimpleStatement.createInitialStructuredBlock(Op03SimpleStatement.java:2880)
// org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisInner(CodeAnalyser.java:816)
// org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisOrWrapFail(CodeAnalyser.java:196)
// org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysis(CodeAnalyser.java:141)
// org.benf.cfr.reader.entities.attributes.AttributeCode.analyse(AttributeCode.java:95)
// org.benf.cfr.reader.entities.Method.analyse(Method.java:370)
// org.benf.cfr.reader.entities.ClassFile.analyseMid(ClassFile.java:852)
// org.benf.cfr.reader.entities.ClassFile.analyseTop(ClassFile.java:753)
// org.benf.cfr.reader.Main.doClass(Main.java:46)
// org.benf.cfr.reader.Main.main(Main.java:190)
// ReviewPreparator.unZipIt(ReviewPreparator.java:54)
// PrepareAndSendToReview$.$anonfun$prepareAndSendToReview$4(PrepareAndSendToReview.scala:37)
// scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:234)
// scala.collection.immutable.HashSet$HashSet1.foreach(HashSet.scala:320)
// scala.collection.immutable.HashSet$HashTrieSet.foreach(HashSet.scala:976)
// scala.collection.immutable.HashSet$HashTrieSet.foreach(HashSet.scala:976)
// scala.collection.immutable.HashSet$HashTrieSet.foreach(HashSet.scala:976)
// scala.collection.TraversableLike.map(TraversableLike.scala:234)
// scala.collection.TraversableLike.map$(TraversableLike.scala:227)
// scala.collection.AbstractSet.scala$collection$SetLike$$super$map(Set.scala:47)
// scala.collection.SetLike.map(SetLike.scala:101)
// scala.collection.SetLike.map$(SetLike.scala:101)
// scala.collection.AbstractSet.map(Set.scala:47)
// PrepareAndSendToReview$.prepareAndSendToReview(PrepareAndSendToReview.scala:35)
// PrepareAndSendToReview$.main(PrepareAndSendToReview.scala:12)
// PrepareAndSendToReview.main(PrepareAndSendToReview.scala)
throw new IllegalStateException("Decompilation failed");
}
/*
* Enabled force condition propagation
* Lifted jumps to return sites
*/
public static boolean a() {
String string = "/system/bin/su";
Object object = new Object(string);
boolean bl = object.exists();
if (!bl) return false;
object = "Zkmm Appoffer";
string = "The device is rooted.";
Log.i((String)object, (String)string);
return true;
}
}
|