Results 1 to 17 of 17

Thread: How to safely install Nethunter 2.0 on any supported device

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    2015-Sep
    Posts
    8

    How to safely install Nethunter 2.0 on any supported device

    So I just spent the last two days trying to get Nethunter installed on my new Nexus 7 (2013) with Android 5.0. I spent a very long time trawling the web and reading guides that are now completely out of date, so i figured I would make this guide as a contribution to the community i'm joining and hopefully save you/future people time trying to get set up. I have only tested this on a Nexus 7 with Android 5.0 but it should work on any supported device.

    The guide is split up into 3 main parts: The first is how to root your device using a PC, the second is how to install nethunter safely with minimum risk to your device going wrong during the flashing and the third section is how to get your device back to a working state if you have tried following the offical guide and its softbricked because of the toolkit. This part is in a second post further down the page due to post word limits.

    The reason this is called a 'safe' guide is that it flashes kali on a copied image, so you will always have your original as a backup.

    Disclaimer: I take no responsibility if you mess up your device, follow these instructions at your own risk.

    So here it is:

    How to root your device:

    Pre-requisites:
    - Back up anything you want to save, this will wipe your device
    - 7Zip or any other unzipper
    - Android SDK Tools Only (https://developer.android.com/sdk/index.html)
    - Install the SDK, when it finishes installing check the Tools option and install the tools. Make a note of the install location at the top of the box.

    Now were going to add the newly installed tools to the system path so it can find them. Right click on 'My Computer' > Properties > Advanced > Enviroment Variables. In 'System Variables find 'Path' and edit it.

    Add a ';' to the end of what is already in there, then copy in the path to the platform-tools folder of the SDK you just installed. For example mine was:

    C:\Users\MyUserName\AppData\Local\Android\android-sdk\platform-tools

    Now we can use the tools anywhere.

    Next before we can root the device we have to turn on USB debugging. Go into 'Settings > About' and tap on the 'Build Number' 7 times so that you unlock developer mode. Now go back into settings and you will have a new option called 'Developer Options'. Scroll down and tap on 'USB debugging' so that it is either checked or toggeled on.

    Next connect the device to the computer you have installed the SDK Tools on. Go to Start and type in 'cmd' to open a command prompt. Type in('>' denotes a cmd prompt):

    > adb reboot-bootloader

    Your device will switch off and go into bootloader mode. Now we unlock the device by typeing:

    > fastboot oem unlock

    Use the volume buttons to change between options and the power button to confirm. Press yes to unlock. Bootloader will restart. Then use the buttons to start/restart the device and boot it normally.

    On your computer download the latest TWRP recovery image(2.8.5.0 at the time of writing) and rename it to 'recovery-twrp.img'. Open a command prompt on the folder where this file is located by shift-rightclicking on the folder and choosing 'open command prompt here'. Now with your device still plugged in run:

    > fastboot flash recovery recovery-twrp.img

    Next go to autoroot.chainfire.eu(https://autoroot.chainfire.eu/) and download the appropriate rooter for your device. There will probally be multiple options for your device, for nexus devices go to googles factory image page(https://developers.google.com/androi...s/images?hl=en) and find your device, its 'name' will have a corresponding option on the autoroot chainfire page.

    Now extract the autoroot zip file into a folder and open a command prompt inside the folder. Type:

    > adb reboot-bootloader

    Once your device has booted back up into bootloader type:

    > root-windows.bat

    There are also options for Linux and Mac so it is possible to follow this tutorial on those operating systems as well, but some of the steps would be slightly different(like installing the tools and setting Path variables).

    Wait for the command to finish running, your device should now be rooted. Reboot the device and download an app off the play store called 'root checker basic'. Open it up and tap on 'Verify Root'. Grant the app permission to run and it will tell you that Root acess is properly installed on your device.

    Congratulations, the first step is complete!

    How to install Kali-Nethunter:

    Pre-requisites:
    (All of the following will already be done if you followed part 1)
    - Rooted Device
    - TWRP Recovery is installed/flashed
    - Bootloader is unlocked

    Open up the play store and search for MultiROM manager. Install and then open it. Check all of the boxes and tap 'Install'. Wait for it to complete. If your device restarts let the auto-boot complete and boot back into the internal Android rom.

    Next download Kali-Linux Nethunter on to your computer(https://www.offensive-security.com/k...nter-download/). Don't unzip it as it needs to be zipped to install.

    Drag the zipped file to your desktop. With your device plugged in open a command prompt and type the following command, but replace the Username with your username and nethunter.zip with the name of your kali linux nethunter downloaded zip file:

    > adb push C:/Users/UserName/Desktop/nethunter.zip /data/local/tmp/nethunter.zip

    The reason you need to put it in /data/local/tmp/AAABBCC is because on some devices other parts of the file system are read only.

    Wait for the command prompt to finish running (it may take a few minuites). Now type:

    > adb reboot-bootloader

    Use the volume buttons to select Recovery/Recovery Mode and press the power button. Inside the MultiROM TWRP menu select 'Advanced > MultiROM > Swap ROMs'. Choose the action 'Copy primary ROM to secondaries'. This will create an exact copy of your Android installation, swipe across the button of the screen where it says 'Swipe to swap ROMs' to confirm.

    Now wait as your ROM is copied. If your device reboots once it is done, follow the previous steps to get back into MultiROM TWRP Recovery mode. Otherwise press back untill you are on the Multirom home screen. Press 'Advanced > MultiROM > List ROMs' and tap on the ROM in the menu.

    On the new screen tap on 'Flash ZIP' and navigate through the file system to '/data/local/tmp/' select the kali nethunter file that you put onto your device earlier and it will begin to flash/install. This may take a long time: ~20 minuites.

    Once it is completed go back to the TWRP home screen and tap 'Reboot > System'.

    Now as it loads up click on cancel so that it doesn't autoboot into your Android ROM. Here on the menu you will see two options, your internal Android ROM and your new Nethunter ROM. Select the Nethunter ROM to load it up.

    Congratulations, you now have Kali-Linux Nethunter installed on your device! It will also already be rooted as it was installed on top of a copy of your rooted Android ROM. You also have a sepperate Android ROM as a backup or if you don't want to use nethunter.
    You can delete the Nethunter ZIP on your device to get some space back by typeing:

    > adb shell
    > cd /data/local/tmp/
    > ls
    > rm -r kalinethunterfilename.zip

    On a 16GB device you will now only have around 4GB of free space. If you want to delete your original Android ROM and only have Nethunter, open up a command prompt and type in:

    > adb reboot-bootloader

    Select recovery and go to 'Advanced > MultiROM > Swap ROMs'. Now choose the 'Swap primary (Internal) ROM with secondary'. This will make Nethunter your primary ROM. Once it is completed, which may take a while, go back and reboot the system/device and once again choose your Nethunter ROM.

    Once the device has loaded. Open up the MultiROM Manager app and in the menu go to 'Manage ROMs'. Now that your old Android ROM isnt the primary any longer you can choose to delete/erase/trash it from the menu.

    Congratulations, you now have 6GB more free space and a working Kali-Linux Nethunter ROM installed.
    Last edited by Greenwolf; 2015-09-17 at 13:10.

Similar Threads

  1. Supported device?
    By aaronouthier in forum Installing NetHunter
    Replies: 4
    Last Post: 2022-08-09, 12:39
  2. Replies: 0
    Last Post: 2020-12-24, 21:39
  3. nethunter install unsuported device any2kernal nexus 5
    By bobbymcfarleen in forum Installing NetHunter
    Replies: 3
    Last Post: 2016-04-21, 04:10
  4. Replies: 0
    Last Post: 2015-05-31, 09:40

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •