siberider / androguard

Automatically exported from code.google.com/p/androguard
Apache License 2.0
0 stars 0 forks source link

After Renaming Classes, show_Permissions does not work #119

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I have a sample with Class Names that contains korean chars.
2. Now i rename all Class names by 
for i,cla in enumerate(d.classes.class_def):
    cla.set_name('Lcom/something/%d' %i)
3. show_Permissions(dx) or d.get_permissions([]) does not print anything

What is the expected output? What do you see instead?
It should print out the Permissions, before renaming it does.

What version of the product are you using? On what operating system?
changeset:   460:1e64755cd512
Linux ubuntu 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 
2013 x86_64 x86_64 x86_64 GNU/Linux
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"

Original issue reported on code.google.com by 5hp...@gmail.com on 4 Jun 2013 at 9:50

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Additional Info:
it seems that the methods are now not anymore in the d object.
when i want to access for example the 3rd Class:
AttributeError: 'DalvikVMFormat' object has no attribute 
'CLASS_Lcom_something_3'

but there are all listed in the d.classes.class_def list

Original comment by 5hp...@gmail.com on 4 Jun 2013 at 10:07

GoogleCodeExporter commented 9 years ago
another info:
i entered the classname wrong, but also 
for i,cla in enumerate(d.classes.class_def):
    cla.set_name('L%s;' %i)

does not work.
i can now access all classes over the d object but still show_Permissions(dx) 
does not work.

Original comment by 5hp...@gmail.com on 4 Jun 2013 at 10:47