From 7340856bf8e35b7a9c43b3e3267125b0821e359f Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Sun, 5 May 2019 21:41:29 +0200 Subject: Updated code for the new Dex pool object. --- python/dexdump.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python/dexdump.py b/python/dexdump.py index 0abd676..d382957 100644 --- a/python/dexdump.py +++ b/python/dexdump.py @@ -184,7 +184,7 @@ def dump_dex_pool(fmt): counter = 0 - for s in fmt.pool_strings: + for s in fmt.pool.strings: print(_build_format_string(1, '{1}').format('#%u' % counter, s)) counter += 1 @@ -194,7 +194,7 @@ def dump_dex_pool(fmt): counter = 0 - for t in fmt.pool_types: + for t in fmt.pool.types: print(_build_format_string(1, '{1}').format('#%u' % counter, t)) counter += 1 @@ -204,7 +204,7 @@ def dump_dex_pool(fmt): counter = 0 - for p in fmt.pool_prototypes: + for p in fmt.pool.prototypes: print(_build_format_string(1, '{1}').format('#%u' % counter, p)) counter += 1 @@ -214,7 +214,7 @@ def dump_dex_pool(fmt): counter = 0 - for f in fmt.pool_fields: + for f in fmt.pool.fields: print(_build_format_string(1, '{1}').format('#%u' % counter, f)) counter += 1 @@ -224,7 +224,7 @@ def dump_dex_pool(fmt): counter = 0 - for m in fmt.pool_methods: + for m in fmt.pool.methods: print(_build_format_string(1, '{1}').format('#%u' % counter, m.routine)) counter += 1 @@ -234,7 +234,7 @@ def dump_dex_pool(fmt): counter = 0 - for c in fmt.classes: + for c in fmt.pool.classes: print(_build_format_string(1, '{1}').format('#%u' % counter, c.type)) counter += 1 -- cgit v0.11.2-87-g4458