savage0 / androguard

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

get_main_activity() #158

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
> What steps will reproduce the problem?
1. use androguard to analyse an app that defines its launcher only in an 
activity alias (e.g. the Facebook app)
2. call get_main_activity() on an apk instance from androguard.core.bytecodes

> What is the expected output?
name of the main activity

> What do you see instead?
None

> What version of the product are you using? On what operating system?
androguard 1.9 on Ubuntu 12.04.4 x86_64

> Please provide any additional information below.

Here's how to fix it:
$ diff apk.py.old apk.py
422c422
<             for item in self.xml[i].getElementsByTagName("activity") :

---
>             for item in 
self.xml[i].getElementsByTagName("activity")+self.xml[i].getElementsByTagName("a
ctivity-alias") :

Original issue reported on code.google.com by tareksa...@gmail.com on 15 May 2014 at 3:46

GoogleCodeExporter commented 8 years ago
oh nice there's not edit function — sent w/o checking the title, would love 
to edit it, guess that won't happen

Original comment by tareksa...@gmail.com on 15 May 2014 at 3:49