You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@native_method
def get_object_field(self, mu, env, obj_idx, field_id):
obj = self.get_reference(obj_idx)
if not isinstance(obj, jobject):
raise ValueError('Expected a jobject.')
field = obj.value.find_field_by_id(field_id)
# field = obj.value.__class__.find_field_by_id(field_id) 《《《
if field is None:
# TODO: Proper Java error?
raise RuntimeError("Could not find field %d in object %s by id." % (field_id, obj.value.jvm_name))
logger.debug("JNIEnv->GetObjectField(%s, %s <%s>) was called" % (obj.value.jvm_name,
field.name,
field.signature))
return getattr(obj.value, field.name)
2021-12-15 17:29:09,826 DEBUG androidemu.java.jni_env | JNIEnv->FindClass(android/app/ActivityThread$AppBindData) was called
2021-12-15 17:29:13,362 DEBUG androidemu.java.jni_env | JNIEnv->GetFieldId(3 [android/app/ActivityThread$AppBindData], info, Landroid/app/LoadedApk;) was called
我正在试图添加一些新的功能来解决这个问题,但没有什么太好的想法。
希望得到一些意见或帮助。
感谢!
The text was updated successfully, but these errors were encountered:
`
file: jni_env.py
function: get_object_field
`
2. 我在模拟调试某个so文件时,他对内部类的相关属性进行了操作,AEmu目前似乎不支持这个功能(也可能是我没弄对?)
下面是出现的Debug信息
2021-12-15 17:29:09,826 DEBUG androidemu.java.jni_env | JNIEnv->FindClass(android/app/ActivityThread$AppBindData) was called
2021-12-15 17:29:13,362 DEBUG androidemu.java.jni_env | JNIEnv->GetFieldId(3 [android/app/ActivityThread$AppBindData], info, Landroid/app/LoadedApk;) was called
我正在试图添加一些新的功能来解决这个问题,但没有什么太好的想法。
希望得到一些意见或帮助。
感谢!
The text was updated successfully, but these errors were encountered: