Open rookiexjl opened 3 years ago
这是 正常的这段 JNIEnv->CallObjectMethod(android.content.pm.PackageManager@17f7cd29, getPackageInfo("xxxxxxxxx", 0x40) => android.content.pm.PackageInfo@346d61be) was called from RX@0x40001bad[libnative-lib.so]0x1bad [0x40000000][libnative-lib.so][0x01bb7] [0x40000000][libnative-lib.so][0x03b63] _x3x_y2y1 + 0x22
有样本吗?
case "android/content/pm/PackageManager->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;": {
StringObject packageName = varArg.getObjectArg(0);//varArg.getObjectArg(0); ##这里开始为null
int flags = varArg.getIntArg(1);
if (log.isDebugEnabled()) {
log.debug("getPackageInfo packageName=" +packageName.getValue()+ ", flags=0x" + Integer.toHexString(flags));
}
return new PackageInfo(vm, packageName.value, flags);
}
用仓库master最新版可以正常执行
感谢
[13:51:37 129] WARN [com.github.unidbg.linux.ARM32SyscallHandler] (ARM32SyscallHandler:469) - handleInterrupt intno=2, NR=-1073744456, svcNumber=0x11e, PC=unidbg@0xfffe0274, LR=RX@0x40001bad[libnative-lib.so]0x1bad, syscall=null java.lang.NullPointerException at com.github.unidbg.linux.android.dvm.AbstractJni.callObjectMethod(AbstractJni.java:783) at com.github.unidbg.linux.android.dvm.AbstractJni.callObjectMethod(AbstractJni.java:747)