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.Locale;
|
||||
|
||||
import android.app.ActivityThread;
|
||||
import android.app.AndroidAppHelper;
|
||||
import android.os.Process;
|
||||
|
||||
|
|
@ -21,11 +22,9 @@ public class Logger {
|
|||
sb.append('-');
|
||||
sb.append(Process.myTid());
|
||||
sb.append('/');
|
||||
try {
|
||||
sb.append((String) Class.forName("android.app.ActivityThread").getDeclaredMethod("currentProcessName").invoke(null));
|
||||
} catch (ClassNotFoundException | NoSuchMethodException | InvocationTargetException | IllegalAccessException ignored) {
|
||||
sb.append("?");
|
||||
}
|
||||
String processName = ActivityThread.currentProcessName();
|
||||
if (processName == null) sb.append("?");
|
||||
else sb.append(processName);
|
||||
sb.append(' ');
|
||||
sb.append("LSPosedBridge: ");
|
||||
sb.append(str);
|
||||
|
|
|
|||
|
|
@ -19,6 +19,11 @@ public final class ActivityThread {
|
|||
public final LoadedApk getPackageInfoNoCheck(ApplicationInfo ai, CompatibilityInfo compatInfo) {
|
||||
throw new UnsupportedOperationException("STUB");
|
||||
}
|
||||
|
||||
public static String currentProcessName() {
|
||||
throw new UnsupportedOperationException("STUB");
|
||||
}
|
||||
|
||||
public ContextImpl getSystemContext() {
|
||||
throw new UnsupportedOperationException("STUB");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue