Use stub
This commit is contained in:
parent
33f2e15737
commit
65da77315a
|
|
@ -5,6 +5,7 @@ import java.text.SimpleDateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
|
import android.app.ActivityThread;
|
||||||
import android.app.AndroidAppHelper;
|
import android.app.AndroidAppHelper;
|
||||||
import android.os.Process;
|
import android.os.Process;
|
||||||
|
|
||||||
|
|
@ -21,11 +22,9 @@ public class Logger {
|
||||||
sb.append('-');
|
sb.append('-');
|
||||||
sb.append(Process.myTid());
|
sb.append(Process.myTid());
|
||||||
sb.append('/');
|
sb.append('/');
|
||||||
try {
|
String processName = ActivityThread.currentProcessName();
|
||||||
sb.append((String) Class.forName("android.app.ActivityThread").getDeclaredMethod("currentProcessName").invoke(null));
|
if (processName == null) sb.append("?");
|
||||||
} catch (ClassNotFoundException | NoSuchMethodException | InvocationTargetException | IllegalAccessException ignored) {
|
else sb.append(processName);
|
||||||
sb.append("?");
|
|
||||||
}
|
|
||||||
sb.append(' ');
|
sb.append(' ');
|
||||||
sb.append("LSPosedBridge: ");
|
sb.append("LSPosedBridge: ");
|
||||||
sb.append(str);
|
sb.append(str);
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,11 @@ public final class ActivityThread {
|
||||||
public final LoadedApk getPackageInfoNoCheck(ApplicationInfo ai, CompatibilityInfo compatInfo) {
|
public final LoadedApk getPackageInfoNoCheck(ApplicationInfo ai, CompatibilityInfo compatInfo) {
|
||||||
throw new UnsupportedOperationException("STUB");
|
throw new UnsupportedOperationException("STUB");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static String currentProcessName() {
|
||||||
|
throw new UnsupportedOperationException("STUB");
|
||||||
|
}
|
||||||
|
|
||||||
public ContextImpl getSystemContext() {
|
public ContextImpl getSystemContext() {
|
||||||
throw new UnsupportedOperationException("STUB");
|
throw new UnsupportedOperationException("STUB");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue