sensepost / objection

📱 objection - runtime mobile exploration
GNU General Public License v3.0
7.55k stars 855 forks source link

Unable to find aapt. Install it with: apt install aapt (Kali Linux) before continuing (Windows 11) #593

Open Th3Samaritan opened 1 year ago

Th3Samaritan commented 1 year ago

tried this command on my windows 11 command prompt: objection patchapk --source injuredandroid_pulled.apk. then after some few minute it displayed: Unable to find aapt. Install it with: apt install aapt (Kali Linux) before continuing, so please how do i fix this am trying to patch an app for my emulator pixel 3a x86

fahad-source commented 1 year ago

tried this command on my windows 11 command prompt: objection patchapk --source injuredandroid_pulled.apk. then after some few minute it displayed: Unable to find aapt. Install it with: apt install aapt (Kali Linux) before continuing, so please how do i fix this am trying to patch an app for my emulator pixel 3a x86

go to C:\Users\Fahad\AppData\Local\Android\Sdk\build-tools\30.0.3 and you will find appt and appt2 add to path to environment variables and run objection again objection patchapk -s filename.apk or objection patchapk -s filename.apk --use-aapt2 if you don't have sdk folder kindly install it .

github

fahad-source commented 1 year ago

Hi fahad, Even after doing this. I am getting the same error.

bro install android studio and avd manager and ceate virtual android device after installation assign all paths in environment variable then try again command objection patchapk -s filename.apk -a armeabi-v7a --use-aapt2

if device is connected then just try objection patchapk -s filename.apk --use-aapt2

make sure your aapt path is given properly

IPMegladon commented 4 months ago

As mentioned, objection looks for the tools such as aapt using $PATH. Closing issue as stale.