-
-
Notifications
You must be signed in to change notification settings - Fork 161
Closed
Description
Frida Java.available will respond with false on Android API level 26. It seems that android.js does not know where the method art::IndirectReferenceTable::Add is. It can be fixed by overwriting (line 51)
'_ZN3art22IndirectReferenceTable3AddEjPNS_6mirror6ObjectE': ['art::IndirectReferenceTable::Add', 'pointer', ['pointer', 'uint', 'pointer']],
with '_ZN3art22IndirectReferenceTable3AddENS_15IRTSegmentStateENS_6ObjPtrINS_6mirror6ObjectEEE': ['art::IndirectReferenceTable::Add', 'pointer', ['pointer', 'uint', 'pointer']],.
Since I don't understand the code in this file completely, I did not issue a pull request.
The way identified the new function name is below:
modules = Process.enumerateModulesSync()
for (i in modules) {
module = modules[i].name
// console.log(module)
symbols = Module.enumerateExportsSync(module)
for (j in symbols) {
symbol = symbols[j].name
// console.log('\t' + symbol)
if (symbol.match('Indirect.*Ref.*Add')) {
console.log(module)
console.log(symbol)
}
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels