{"action":"created","issue":{"url":"https://api.github.com/repos/frida/frida-gum/issues/250","repository_url":"https://api.github.com/repos/frida/frida-gum","labels_url":"https://api.github.com/repos/frida/frida-gum/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/frida/frida-gum/issues/250/comments","events_url":"https://api.github.com/repos/frida/frida-gum/issues/250/events","html_url":"https://github.com/frida/frida-gum/issues/250","id":282387353,"number":250,"title":"Missing module & address info in some Module.enumerateImportsSync results on Android 7.1.1","user":{"login":"doegox","id":60773,"avatar_url":"https://avatars2.githubusercontent.com/u/60773?v=4","gravatar_id":"","url":"https://api.github.com/users/doegox","html_url":"https://github.com/doegox","followers_url":"https://api.github.com/users/doegox/followers","following_url":"https://api.github.com/users/doegox/following{/other_user}","gists_url":"https://api.github.com/users/doegox/gists{/gist_id}","starred_url":"https://api.github.com/users/doegox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doegox/subscriptions","organizations_url":"https://api.github.com/users/doegox/orgs","repos_url":"https://api.github.com/users/doegox/repos","events_url":"https://api.github.com/users/doegox/events{/privacy}","received_events_url":"https://api.github.com/users/doegox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-15T10:43:03Z","updated_at":"2017-12-15T13:08:50Z","closed_at":null,"author_association":"NONE","body":"Hi\r\n\r\nWhen enumerating the imports of libjavacrypto.so:\r\n\r\nOn Android 6:\r\n\r\n```\r\nProcess.enumerateModulesSync:\r\n... {'name': 'libjavacrypto.so', 'base': 0xeb59d000, 'size': 102400, 'path': '/system/lib/libjavacrypto.so'}\r\n\r\nModule.enumerateImportsSync('libjavacrypto.so'):\r\n... {'type': 'function', 'name': '__errno', 'module': '/system/lib/libc.so', 'address': '0xf71e5315'}\r\n... {'type': 'function', 'name': 'ASN1_BIT_STRING_get_bit', 'module': '/system/lib/libcrypto.so', 'address': '0xf6bedeed'}\r\n```\r\n\r\nOn Android 7.1.1:\r\n\r\n```\r\nProcess.enumerateModulesSync:\r\n... {'name': 'libjavacrypto.so', 'base': 0xd5e0a000, 'size': 114688, 'path': '/system/lib/libjavacrypto.so'}\r\n\r\nModule.enumerateImportsSync('libjavacrypto.so'):\r\n... {'type': 'function', 'name': '__errno', 'module': '/system/lib/libc.so', 'address': '0xe8467559'}\r\n... {'type': 'function', 'name': 'ASN1_BIT_STRING_get_bit'}\r\n```\r\n\r\nAs you can see, the ASN1_BIT_STRING_get_bit (which is imported from libcrypto.so) is listed but not resolved on Android 7.1.1, while it's working fine on Android 6, 5, and 4.4.\r\nIs there a good reason or is it a bug? I'm not really sure...\r\n"},"comment":{"url":"https://api.github.com/repos/frida/frida-gum/issues/comments/352001760","html_url":"https://github.com/frida/frida-gum/issues/250#issuecomment-352001760","issue_url":"https://api.github.com/repos/frida/frida-gum/issues/250","id":352001760,"user":{"login":"doegox","id":60773,"avatar_url":"https://avatars2.githubusercontent.com/u/60773?v=4","gravatar_id":"","url":"https://api.github.com/users/doegox","html_url":"https://github.com/doegox","followers_url":"https://api.github.com/users/doegox/followers","following_url":"https://api.github.com/users/doegox/following{/other_user}","gists_url":"https://api.github.com/users/doegox/gists{/gist_id}","starred_url":"https://api.github.com/users/doegox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doegox/subscriptions","organizations_url":"https://api.github.com/users/doegox/orgs","repos_url":"https://api.github.com/users/doegox/repos","events_url":"https://api.github.com/users/doegox/events{/privacy}","received_events_url":"https://api.github.com/users/doegox/received_events","type":"User","site_admin":false},"created_at":"2017-12-15T13:08:50Z","updated_at":"2017-12-15T13:08:50Z","author_association":"NONE","body":"Actually this happens only when attaching.\r\nWhen spawning, all is fine.\r\n\r\nAndroid 6:\r\n\r\nSpawning new process com.example.foo\r\n```\r\n{'type': 'function', 'name': 'ASN1_BIT_STRING_get_bit', 'module': '/system/lib/libcrypto.so', 'address': '0xf6bedeed'}\r\n```\r\n\r\nAttaching to existing process com.example.foo\r\n```\r\n{'type': 'function', 'name': 'ASN1_BIT_STRING_get_bit', 'module': '/system/lib/libcrypto.so', 'address': '0xf6bedeed'}\r\n```\r\n\r\n\r\nAndroid 7.1.1:\r\n\r\nSpawning new process com.example.foo\r\n```\r\n{'type': 'function', 'name': 'ASN1_BIT_STRING_get_bit', 'module': '/system/lib/libcrypto.so', 'address': '0xea49a1ad'}\r\n```\r\n\r\nAttaching to existing process com.example.foo\r\n```\r\n{'type': 'function', 'name': 'ASN1_BIT_STRING_get_bit'}\r\n```\r\n\r\n"}}
{"actor":{"display_login":"doegox"}}