Skip to content

Instantly share code, notes, and snippets.

@liamengland1
Created July 3, 2020 23:40
Show Gist options
  • Save liamengland1/0281b1128eff11adbb440048c0078dee to your computer and use it in GitHub Desktop.
Save liamengland1/0281b1128eff11adbb440048c0078dee to your computer and use it in GitHub Desktop.
com.ss.sys.ces.a from tiktok apk
package com.ss.sys.ces;
import android.content.Context;
import com.ss.sys.ces.a.b;
import com.ss.sys.ces.a.d;
import com.ss.sys.ces.a.e;
import com.ss.sys.ces.a.f;
import com.ss.sys.ces.a.g;
import java.util.Map.Entry;
import org.json.JSONObject;
public final class a {
public static byte[] sMetaData;
static {}
private static final void Bill() {}
public final strictfp void Francies() {}
public static final void Louis() {}
public static final void Zeoy() {}
public static native byte[] decode(int arg0, byte[] arg1) {}
public static native byte[] encode(byte[] arg0) {}
public static native byte[] leviathan(int arg0, int arg1, byte[] arg2) {}
public static native Object meta(int arg0, Context arg1, Object arg2) {}
public static Object njss(int arg6, Object arg7) {
String v2;
Context v1_1;
try {
v1_1 = c.a().c;
if (arg6 == 0x7B) {
return f.a(v1_1);
}
if (arg6 == 0x79) {
return d.a(v1_1);
}
if (arg6 == 0x7A) {
return d.a();
}
if (arg6 == 0x7E) {
return d.b(v1_1);
}
if (arg6 == 0x7F) {
return com.ss.a.b.c.a("");
}
if (arg6 == 0x80) {
return com.ss.a.b.c.a(null);
}
if (arg6 == 120) {
return com.ss.sys.ces.a.c.a();
}
} catch (Throwable v1) {
return null;
}
if (arg6 == 0x7C) {
return "[]";
}
if (arg6 == 130) {
try {
return g.a(v1_1);
label_41:
if (arg6 == 0x7D) {
return com.ss.a.b.c.a(null);
}
if (arg6 == 0xE2) {
return com.ss.a.b.c.a(null);
}
if (arg6 == 0x81) {
return e.a(v1_1);
}
if (arg6 == 0x83) {
return com.ss.sys.b.a.a().b();
}
if (arg6 == 0x84) {
c.a().reportNow(((String) arg7));
return null;
}
if (arg6 == 0x86) {
return com.ss.sys.ces.b.c.a(v1_1).b();
}
if (arg6 == 140) {
return com.ss.sys.ces.b.a.a(v1_1).b();
}
if (arg6 == 0x8B) {
return com.ss.sys.ces.a.a.e(v1_1);
}
goto label_81;
} catch (Throwable v1) {
return null;
}
}
goto label_41;
return v1_2;
label_81:
if (arg6 == 0x85) {
try {
JSONObject v4 = new JSONObject();
for (Object v1_4: c.a().n.entrySet()) {
Map.Entry v1_5 = (Map.Entry) v1_4;
if (v1_5.getValue() == null) {
v4.put(((String) v1_5.getKey()), "");
continue;
}
v4.put(((String) v1_5.getKey()), v1_5.getValue());
}
v2 = v4.toString();
} catch (Throwable v1_3) {
v2 = null;
}
if (v2 == null) {
return "{}";
}
try {
return v2.trim();
} catch (Throwable v1_6) {}
return v2;
}
if (arg6 == 0x87) {
try {
return com.ss.sys.ces.f.a();
label_127:
if (arg6 == 0x88) {
return v1_1.getPackageManager().getPackageInfo(v1_1.getPackageName(), 0x40).signatures[0].toByteArray();
}
if (arg6 == 0xEA) {
a.sMetaData = (byte[]) arg7;
return null;
}
if (arg6 == 0xEB) {
b.a(v1_1);
return null;
}
} catch (Throwable v1) {}
return null;
}
goto label_127;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment