Open gnu-like opened 6 years ago
Will take a look once I get some me time to look. Quick glance the sed line for this is:
sed -i "s#MainActivity#$apkName#" /tmp/payload/res/values/strings.xml
You could use debugging option the look at the strings.xml file manually to see the result.
strings.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">LegitAndroidApp</string>
</resources>`
after installing the name must be outFile="AndroidService.apk" because
fullPath=$outFile
APK=$(basename $fullPath)
When you install the app, what name are you seeing for the installed package? Will take a glance this weekend to see if I can find what changed. Also, did you name it LegitAndroidApp?
In previous after installing payload the name of it was 'Androidservice' but now is 'MainActivity' how can I produce payload with name equal 'Androidservice'