Skip to content

Installation fails and pathcing fails #2

@ll3N1GmAll

Description

@ll3N1GmAll

I created a payload, signed it manually with option 3, and then tried to install it. I get the following error when trying to install on Android 15:

App not installed as app isn't compatible with your phone.

After signing the payload, I attmepted to run the patch option number 4. This was the result of that option:

--- Patch APK for Visible UI ---
Enter path to Meterpreter APK (input): '/home/kali/Android-RAT/output/AndRAT-signed.apk'   
Enter path for patched APK (output): '/home/kali/Android-RAT/output/AndRAT-signed-patched.apk'
[+] Running: apktool d '/home/kali/Android-RAT/output/AndRAT-signed.apk' -o /tmp/tmpc9ospafu/dec -f
Input file ('/home/kali/Android-RAT/output/AndRAT-signed.apk') was not found or was not readable.

Traceback (most recent call last):
  File "/home/kali/Android-RAT/cli.py", line 52, in <module>
    main_menu()
    ~~~~~~~~~^^
  File "/home/kali/Android-RAT/cli.py", line 23, in main_menu
    patch_apk_for_visible_ui()
    ~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/home/kali/Android-RAT/cli.py", line 40, in patch_apk_for_visible_ui
    apk_patcher.patch_apk(input_apk, output_apk)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kali/Android-RAT/builder/apk_patcher.py", line 78, in patch_apk
    run([APKTOOL, "d", input_apk, "-o", os.path.join(tmpdir, "dec"), "-f"])
    ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kali/Android-RAT/builder/apk_patcher.py", line 19, in run
    raise Exception(f"Command failed: {' '.join(cmd)}")
Exception: Command failed: apktool d '/home/kali/Android-RAT/output/AndRAT-signed.apk' -o /tmp/tmpc9ospafu/dec -f

I'm not sure is both of these issues are related to the problem of not being able to install. Thanks for your assistance with this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions