dana-at-cp / backdoor-apk

backdoor-apk is a shell script that simplifies the process of adding a backdoor to any Android APK file. Users of this shell script should have working knowledge of Linux, Bash, Metasploit, Apktool, the Android SDK, smali, etc. This shell script is provided as-is without warranty of any kind and is intended for educational purposes only.
Apache License 2.0
2.21k stars 702 forks source link

The smali file to hook location logic fails when launcher line is within an activity-alias element #12

Closed dana-at-cp closed 8 years ago

dana-at-cp commented 8 years ago

The smali file to hook location logic fails when launcher line is within an "activity-alias" element. An example of such a manifest file is contained in Amazon_App.apk.

`

    </activity-alias>`

In such cases, the "android:targetActivity" attribute value must be used instead of the "android:name" attribute value.

Read more about the "activity" and "activity-alias" elements here:

https://developer.android.com/guide/topics/manifest/activity-alias-element.html

dana-at-cp commented 8 years ago

Fix for this issue has been merged on to the master branch