In this article, we will look at how to install Kali Linux on android device (non-rooted). That opens a whole new world of possibilities that you can do with your smartphone. Instead of carrying your heavy laptop around, you can go with your phone and still perform penetration testing like you would with your Kali Desktop. Unfortunately, you might be limited to specific resources and capabilities. For example, performing a Reverse Engineering or Malware analysis with your phone won't be that smooth. However, tasks like social engineering can come in quite handy. With that in mind, let's dive in and get started.
You will see a message like "Allow Termux access photos, media and files on your device." Click Allow. When done, execute the command below to install some packages needed to install Kali Linux on android.
We also can open the shell-prompt of target android device by using shell command. After getting the terminal of the target of the victim's device we can control the device from our Kali Linux system.
Unpack the downloaded Tar file, android-studio-ide--linux.zip, into an appropriate location for your applications. To launch Android Studio, navigate to the android-studio/bin/ directory in a terminal and execute studio.sh. You may want to add android-studio/bin/ to your PATH environmental variable so that you can start Android Studio from any directory. Follow the links to install the SDK outside of the Android Studio directories.
Installations done with a tar file are mosttimes uninstalled with the rm command. You go to the directory where you went for this: "Unpack the downloaded Tar file, android-studio-ide--linux.zip, into an appropriate location for your applications" and rm the files and directories created here.
To uninstall a manually installed Android Studio .deb package search in /etc/apt/sources.list to check if there is a software source for a PPA for Android Studio, for example ppa:maarten-fonville/android-studio. If so, remove this PPA by running a command of the form sudo apt-add-repository --remove ppa:maarten-fonville/android-studio. The italicized text in the preceding command indicates that the name of the PPA can be changed if Android Studio was installed from a different PPA.
Adding on to Daniel and abu_bua's answer above, at least with android studio 2021 there are also config files that can be placed into /.config/Google/AndroidStudio2021.3, per the install txt file inside the tarball. It also mentions that some data cache may be stored in /.local/share/Google/AndroidStudio2021.3.
We now need the numbers at the end of the above line: 2970:2282. These specify the vendor (2970) and the device itself (2282). Having those details, we need a root shell on our Linux machine to edit (or create, if it doesn't yet exist) the /etc/udev/rules.d/51-android.rules file. In there, add a line for your device. Following example line shows how it looks for the Wileyfox Swift:
That rule entered in /etc/udev/rules.d/51-android.rules, we must tell udev to make use of it. Safest way (next to a reboot ;) is restarting the udev service. Depending on your Linux distro, this can be done either via service udev restart or /etc/init.d/udev restart.
Two differences: it's now SUBSYSTEM (no plural), and the group has changed from androiddev to plugdev (the former does not exist on recent systems, the latter does and usually is assigned at least to the first user).
Installing Kali on Android device is difficult and easy. Depends on your expertise and how much you can solve the problems you are facing. It's completely different from installing Kali on Desktop version. For, installing Kali there is a untold perquisite that you will need 9GB of free storage. You have to install it on main memory you can't install on external memory(SD card). kali Linux is light weight OS. You don't need high end hardware in the device to smoothly run it. But my suggestion a device with good chipset, 4GB RAM or more and Android Version 10 or above. Let's start the installation process.
First go to Play Store and install Termux. Open Termux and provide it storage permission:
Copy the application that you made (adri.apk) from the root folder to you android phone.
or send it to the victim using Uploading services like Dropbox or any sharing website you may like.
Let the Victim install the andri app(as he would think it is meant to upgrade some features on his phone)
However, the option of allowance for Installation of apps from Unknown Sources should be enabled (if not) from the security settings of the android phone to allow the Trojan to install.
And when the victim install your app >>>
Hello bro thanks for this tutorial but i need help please can u help me this was a great post now my problem is that now i know how to control my phone as per this post but the thing is now i want to know how to control my phone when it is using other network like my phone sim data .. Network so how should i do it please bro can u make a new tutorial explaining this perfectly i mean explaining how to control android when it is on other network please it is my request to u
Hi Bro,
I created exploit file on kali linux 2016.1
And then send it through sharing websites then I installed it on my android phone and I didn't get meterpreter ccommand . I can show u that problems by connecting to u r pC using team viewer.