Skip to content

API level 26 - android.js #45

@FrankSpierings

Description

@FrankSpierings

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)
		}
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions