Unable to rebuild apk with apktool

See original GitHub issue

It is outputting this when i try to inject the payload into an APK with msfvenom Using APK template: ActionDashDigitalWellbeingScreenTimehelper_v7.7.2_apkpure.com.apk [-] No platform was selected, choosing Msf::Module::Platform::Android from the payload [-] No arch selected, selecting arch: dalvik from the payload [] Creating signing key and keystore… [] Decompiling original APK… [] Decompiling payload APK… [] Locating hook point… [] Adding payload as package com.actiondash.playstore.cxcnm [] Loading /tmp/d20210303-6075-190p4ew/original/smali/actiondash/MainApplication.smali and injecting payload… [] Poisoning the manifest with meterpreter permissions… [] Adding <uses-permission android:name="android.permission.WRITE_CONTACTS"/> [] Adding <uses-permission android:name="android.permission.WRITE_SETTINGS"/> [] Adding <uses-permission android:name="android.permission.READ_SMS"/> [] Adding <uses-permission android:name="android.permission.RECEIVE_SMS"/> [] Adding <uses-permission android:name="android.permission.READ_CALL_LOG"/> [] Adding <uses-permission android:name="android.permission.RECORD_AUDIO"/> [] Adding <uses-permission android:name="android.permission.SET_WALLPAPER"/> [] Adding <uses-permission android:name="android.permission.CAMERA"/> [] Adding <uses-permission android:name="android.permission.CALL_PHONE"/> [] Adding <uses-permission android:name="android.permission.READ_CONTACTS"/> [] Adding <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> [] Adding <uses-permission android:name="android.permission.SEND_SMS"/> [] Adding <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/> [] Adding <uses-permission android:name="android.permission.RECORD_AUDIO"/> [] Adding <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> [] Adding <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> [] Adding <uses-permission android:name="android.permission.WRITE_CALL_LOG"/> [*] Rebuilding apk with meterpreter injection as /tmp/d20210303-6075-190p4ew/output.apk [-] I: Using Apktool 2.5.0 I: Checking whether sources has changed… I: Smaling smali folder into classes.dex… I: Checking whether sources has changed… I: Smaling smali_classes2 folder into classes2.dex… I: Checking whether resources has changed… I: Building resources… brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_97267601480371094521473822606529167372.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 30, --version-code, 7070467, --version-name, 7.7.2, --no-version-vectors, -F, /tmp/APKTOOL18047277316233514628.tmp, -e, /tmp/APKTOOL12509264393081056188.tmp, -0, arsc, -I, /root/.local/share/apktool/framework/1.apk, -S, /tmp/d20210303-6075-190p4ew/original/res, -M, /tmp/d20210303-6075-190p4ew/original/AndroidManifest.xml] W: invalid resource directory name: /tmp/d20210303-6075-190p4ew/original/res navigation Error: Unable to rebuild apk with apktool Please help`

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
iBotPeachescommented, May 17, 2021

can’t aapt2 be default on future versions?

It will in time.

0reactions
AndnixSHcommented, May 17, 2021

Alright!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to rebuild apk with apktool kali linux - Stack Overflow
I got unable to rebuild apk with apktool error when using msfvenom . The problem was that the apk file resists the injection, ......
Read more >
Error: Unable to rebuild apk with apktool (1) #10381 - GitHub
Try Using APK Easy Tool to bind your payload to existing apk.
Read more >
Resolved " Error Unable to rebuilt apk with apktool " - Dideo
Resolved " Error Unable to rebuilt apk with apktool " || Kali Linux Error · Published by: FREENTECH HACKER · Published at: 9...
Read more >
apktool fails to rebuild APK after upgrade to Kali Linux 2018.4
Package: apktool Version: v2.3.4-dirty Severity: important Apologies if this report is not in the correct format; I attempted to use `reportbug` ...
Read more >
iBotPeaches/Apktool - Gitter
Error: Unable to rebuild apk with apktool. every time i inject a meterpreter it gives this error, i'm looking for answers and i...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found