Skip to content

Instantly share code, notes, and snippets.

@phantomtypist
Created May 8, 2021 05:51
Show Gist options
  • Save phantomtypist/484da821eb2fd4512969e732804e795c to your computer and use it in GitHub Desktop.
Save phantomtypist/484da821eb2fd4512969e732804e795c to your computer and use it in GitHub Desktop.
Kali Nethunter Install Notes - Nexus 7 (2013)

Kali Nethunter Install Notes - Nexus 7 (2013)

These are just notes ive made on my exact installation process here are some basic details

Basic Details

Device - Asus Nexus 7 (2013 WIFI)

Codename - Flo

Pre-Installed Android - 6.0.0 (Marshmallow)

Installing Os : Resurection OS 5.8.5 - Flo Final Security Patched Dec 17

Comes Rooted : Yes (With Magisk) REMOVING Magisk Uninstaller

Installing Root : SuperSu v2.82-201705271822

Installing Gapps : Gapps - Platform (ARM) Android (7.1.0) Variant (Pico)

Installing Nethunter : Kali-Rolling from 2017.3 - nethunter-floRR-nougat-kalifs-full-v0.5-rc

Installing Kernel : ElementalX - N7-6.15

Building Nethunter

Added the device to the devices config as follows

# Nexus 7 (2013) for ResurrectionOs/LineageOs
[floRR]
author = "JasonDemitri"
version = "0.5"
devicenames = flo
block = /dev/block/platform/msm_sdcc.1/by-name/boot

Having not yet made the kernel no entry was made for this at the time being Next installed the nethunter repo and built the installer using the following command

python build.py --device floRR --nougat --forcedown --nokernel --rootfs full --release v0.5-rc

This then produced nethunter-floRR-nougat-kalifs-full-v0.5-rc.zip

Device Preparation

  1. Download Nexus Factory Image from https://developers.google.com/android/images#razor
  2. Make sure you have adb and fastboot installed. Instructions for linux (http://blog.londondevelopmentstudio.com/2017/12/installing-adb-fastboot-linux-debian-based/) and for windows (http://blog.londondevelopmentstudio.com/2017/12/installing-adb-fastboot-windows/)
  3. Restore devices by unziping the folder putting the device into fastboot mode and then running the installer a. adb reboot bootloader b. fastboot devices (Should show your device) c. ./flash-all.bat or ./flash-all.sh
  4. Once the installer is complete activate the developer menu 'Activate USB debugging'

Install TWRP (Team Win Recovery Project)

  1. Download relevant version of TWRP from https://twrp.me/asus/asusnexus72013wifi.html
  2. Reboot the device into fastboot adb reboot bootloader
  3. Confirm in fastboot mode fastboot devices
  4. Flash recovery with twrp fastboot flash recovery twrp-xxxx.img (Replacing xxx with the actual file name)
  5. Reboot the device straight to the recovery. On boot android tries to rewrite the bootloader twrp will fix this if booted into before android once installed. Installation of Twrp will then hold.
  6. Reboot the device into android and make sure everything is woking properly before proceeding.

Install Resurection patching magisk after

  1. Boot the device into recovery mode (TWRP)
  2. Copy all of the following onto a FAT formated USB a. ResurectionOs b. Magisk Uninstaller c. SuperSu d. Gapps e. ElementalX Kernel
  3. Using the install button, Select storage - USB_OTG
  4. Install ResurectionOs (Wipe Delvik/Cache Reboot straight to recovery)
  5. Run Magisk Uninstaller (Wipe Delvik/Cache Reboot straight to recovery)
  6. Install Gaps
  7. Wipe Delvik/Cache
  8. REBOOT and complete the OS installation
  9. Install and login to any apps that wont run under ROOT i.e snapchat

Installing SuperSu

  1. After completing setup reboot to recovery
  2. Once again from the installer menu and the otg-storage flash the superSu zip file
  3. (Wipe Delvik/Cache) Reboot the device to OS. Bootcycle may restart a couple of times, this is normal do not interupt
  4. Once boot is complete open the superSu app and make sure everything is working ok and that the binaries are present

Installing ElementalX Kernel

  1. Reboot into the recovery
  2. From the install menu start the elementalX flasher. This is an aroma installer steps are the following a. Accept the agreement b. CPU Settings - Each Core freq (No), ElementalX CPU Optimization (Yes), thermal throttling (default) c. Max CPU freq (Stock) d. Auto undervolting (Stock) e. Max GPU freq (Stock), GPU governer (On Demand) f. i/o schedular (CFQ - Stock), Buffer Size (Stock) g. Sweep2Wake (On) h. All Gestures (On), Other Options (Short Sweep Only) i. Enable Sweep2Sleep, Clear Both disable buttons j. Enable fastcharge, USB/OTG k. Run the installer
  3. Once installed wipe the cache and delvik and reboot to Os to confirm install

Installing Nethunter

The following step had the TWRP method available but I prefer pushing my own nethunter builds via adb and sideloading

  1. Re Setup USB debugging and developer mode
  2. In console adb reboot recovery
  3. In TWRP select Advanced and then ADB Sideload
  4. Select Wipe Cache and Dalvik
  5. In the console adb sideload nethunter-floRR-nougat-kalifs-full-v0.5-rc.zip
  6. Wait untill installation is complete (Can take upto 25 mins)
  7. Reboot Enjoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment