Hacker
Professional
- Messages
- 1,041
- Reaction score
- 857
- Points
- 113
So many people had problems with APKTool so let us do the full installation to get started with it. I installed here the full apk utilities you should have such as android studio (SDK), Apktool, Java packages and much more.
Preparing:
Installing some packages:
Installing 2nd part of packages:
Installing FFDec
Installing Java Decompiler
And as second the officeparser:
Setup BFQ Scheduler
Enabling PostGreSQL Service
? Installing Some Other Applications
Installing Android Studio (738MB)
Setup Metasploit Database
Make Systemlink (OPTIONAL)
(execute with : android-studio)
If you still can't execute apktool, please try this oneliner:
Yep this is one command.
Code:
sudo apt update; sudo apt upgrade -y; sudo apt dist-upgrade; sudo apt autoremove -y; sudo apt autoclean
Code:
sudo apt install libc6 libncurses5 libncurses5-dev libstdc++6 lib32z1 lib32z1-dev libbz2-1.0 smali libsmali-java -y
Code:
sudo apt install apktool dex2jar anbox python3-pip clang-10 clang-9 libclang-9-dev libclang-10-dev radare2-cutter menulibre mesa-vulkan-drivers -y
Code:
cd /tmp
wget https://github.com/jindrapetrik/jpexs-decompiler/releases/download/version11.2.0/ffdec_11.2.0.deb
sudo dpkg -i ffdec_11.2.0.deb
sudo rm ffddec_11.2.0.deb
echo '/usr/lib/jvm/java-8-openjdk-amd64/bin/java -jar /usr/share/java/ffdec/ffdec.jar "$@"' > sudo /usr/bin/ffdec
sudo chmod +x /usr/bin/ffdec
Code:
cd /tmp
wget https://varaneckas.com/jad/jad158e.linux.static.zip
sudo unzip jad158e.linux.static.zip -d /usr/local/bin jad
And as second the officeparser:
Code:
git clone https://github.com/ckane/officeparser.git
cd officeparser && python3 setup.py install
cd ..
rm -rf officeparser
Code:
sudo bash # If Password Is Requested Type It :)
echo bfq >> /etc/modules
echo 'ACTION=="add|change", KERNEL=="sd*[!0-9]|sr*", ATTR{queue/scheduler}="bfq"' >> /etc/udev/rules.d/60-scheduler.rules
Enabling PostGreSQL Service
Code:
sudo systemctl enable postgresql.service
sudo systemctl start postgresql.service
? Installing Some Other Applications
Code:
wget https://dl.google.com/dl/android/studio/ide-zips/3.5.3.0/android-studio-ide-191.6010548-linux.tar.gz
sudo tar xzf android-studio-ide-191.6010548-linux.tar.gz -C
$HOME
cd $HOME/android-studio/bin
./studio.sh
Setup Metasploit Database
Code:
sudo msfdb init
Make Systemlink (OPTIONAL)
Code:
sudo ln -s /home/$USER/android-studio/bin/studio.sh /usr/local/bin/android-studio
If you still can't execute apktool, please try this oneliner:
Code:
wget -O wrapper.sh https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool; wget https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.4.1.jar; mv -v apktool_2.4.1.jar apktool.jar; sudo mv -v wrapper.sh apktool; sudo mv apktool* /usr/bin/; sudo chmod +x /usr/bin/apktool*; apktool -h 2>/dev/null
Yep this is one command.
