java.lang.UnsupportedOperationException: cn/xiaochuankeji/tieba/AppController->getPackageName()Ljava/lang/String; at com.github.unidbg.linux.android.dvm.AbstractJni.callObjectMethodV(AbstractJni.java:416) at com.izuiyou.NetWork.callObjectMethodV(NetWork.java:86) at com.github.unidbg.linux.android.dvm.AbstractJni.callObjectMethodV(AbstractJni.java:262)
java.lang.UnsupportedOperationException: java/lang/Integer-><init>(I)V at com.github.unidbg.linux.android.dvm.AbstractJni.newObjectV(AbstractJni.java:789) at com.demo5.MeiTuan.newObjectV(MeiTuan.java:557)
case "java/lang/Integer-><init>(I)V": { int i = vaList.getIntArg(0); return DvmInteger.valueOf(vm, i); }
例三
1 2 3
java.lang.UnsupportedOperationException: java/net/NetworkInterface->getHardwareAddress()[B at com.github.unidbg.linux.android.dvm.AbstractJni.callObjectMethod(AbstractJni.java:921) at com.demo14.SimpleSign.callObjectMethod(SimpleSign.java:177)
if (value instanceofbyte[]) { returnnewByteArray(vm, (byte[]) value); } if (value instanceofshort[]) { returnnewShortArray(vm, (short[]) value); } if (value instanceofint[]) { returnnewIntArray(vm, (int[]) value); } if (value instanceoffloat[]) { returnnewFloatArray(vm, (float[]) value); } if (value instanceofdouble[]) { returnnewDoubleArray(vm, (double[]) value); }
例四
1 2 3
java.lang.UnsupportedOperationException: android/os/Build->SUPPORTED_ABIS:[Ljava/lang/String; at com.github.unidbg.linux.android.dvm.AbstractJni.getStaticObjectField(AbstractJni.java:103) at com.demo5.MeiTuan.getStaticObjectField(MeiTuan.java:629)
java.lang.UnsupportedOperationException: android/hardware/SensorManager->getSensorList(I)Ljava/util/List; at com.github.unidbg.linux.android.dvm.AbstractJni.callObjectMethodV(AbstractJni.java:416) at com.demo2.Tiny.callObjectMethodV(Tiny.java:334)
这是一个 List,将它转成ArrayListObject。
1 2 3 4 5 6 7 8
case "android/hardware/SensorManager->getSensorList(I)Ljava/util/List;":{ int length = 10; List<DvmObject<?>> SensorList = new ArrayList<>(); for (int i = 0; i < length; i++) { SensorList.add(vm.resolveClass("android/hardware/Sensor").newObject(i)); } return new ArrayListObject(vm, SensorList); }
java.lang.UnsupportedOperationException: java/util/HashMap-><init>()V at com.github.unidbg.linux.android.dvm.AbstractJni.newObject(AbstractJni.java:741) at com.demo4.TBSecurity.newObject(TBSecurity.java:392)
java.lang.UnsupportedOperationException: java/util/zip/ZipFile->getInputStream(Ljava/util/zip/ZipEntry;)Ljava/io/InputStream; at com.github.unidbg.linux.android.dvm.AbstractJni.callObjectMethodV(AbstractJni.java:416) at com.demo7.TDJNI.callObjectMethodV(TDJNI.java:625)
java.lang.UnsupportedOperationException: java/util/Map->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; at com.github.unidbg.linux.android.dvm.AbstractJni.callObjectMethod(AbstractJni.java:922) at com.Bili.NativeLibrary.callObjectMethod(NativeLibrary.java:88)
java.lang.UnsupportedOperationException: android/telephony/FtTelephonyAdapter->getFtTelephony(Landroid/content/Context;)Landroid/telephony/FtTelephony; at com.github.unidbg.linux.android.dvm.AbstractJni.callStaticObjectMethodV(AbstractJni.java:503) at com.demo7.TDJNI.callStaticObjectMethodV(TDJNI.java:763)
java.lang.UnsupportedOperationException: java/lang/Class->forName(Ljava/lang/String;)Ljava/lang/Class; at com.github.unidbg.linux.android.dvm.AbstractJni.callStaticObjectMethodV(AbstractJni.java:503) at com.demo7.TDJNI.callStaticObjectMethodV(TDJNI.java:763)
java.lang.UnsupportedOperationException: android/content/IntentFilter-><init>(Ljava/lang/String;)V at com.github.unidbg.linux.android.dvm.AbstractJni.newObjectV(AbstractJni.java:791) at com.demo7.TDJNI.newObjectV(TDJNI.java:826)