[ROM][Official] Kali NetHunter for the Nokia 3.1 Android 9

yesimxev

Senior Member
May 8, 2017
68
28
18


I present to you: Kali NetHunter for the Nokia 3.1 Android 9

The first Nokia with Kali Nethunter! (in chronological order)

Kali NetHunter is an Android ROM overlay that turns an ordinary phone into the ultimate Mobile Penetration Testing Platform.
The overlay includes a custom kernel, a Kali Linux chroot, an accompanying Android application, which allows for easier interaction with various security tools and attacks, as well as a client to the Kali NetHunter App Store.
Beyond the penetration testing tools arsenal within Kali Linux and the Kali NetHunter App Store, NetHunter also supports several additional classes, such as HID Keyboard Attacks, BadUSB attacks, Evil AP MANA attacks, and much more. For more information about the moving parts that make up NetHunter, check out our NetHunter Components page.
NetHunter is an open-source project developed by Offensive Security and the community.


~ Prerequisites ~
- Android 9 Stock (V3.180)
- Universal Force Encryption Disabler - https://www.androidfilehost.com/?fid=8889791610682920239
- TWRP (no touch) unofficial - https://www.androidfilehost.com/?fid=8889791610682928997
- Magisk – https://forum.xda-developers.com/apps/magisk
- Unlocked bootloader by Hikari Calyx https://t.me/HikariCalyxFIH

~~ Downloads ~~
- NetHunter installer: https://www.androidfilehost.com/?fid=8889791610682928971
- NetHunter bootanimation and firmwares: https://www.androidfilehost.com/?fid=8889791610682929010

~~ How to Install ~~

Assuming you have unlocked bootloader, stock Pie (v3.180).

Please note due to the lack of device tree, my TWRP porting skills and time, we're using my TWRP with no touch. Several methods and solutions were tried by not only me without success.
I can only think of that the touch driver is being initialised from /vendor during boot.
Feel free to contribute if you make a working TWRP :)


You'll need an OTG cable and mouse to do one step of the following process. You'll also need a Linux or Windows PC with adb tools downloaded

- Do initial setup after unlocked bootloader - don't use wifi at setup, as you don't want OTA, they are not supported
- Plug your phone into your PC
- Turn on ADB debug in Developer Settings, then adb reboot bootloader - or do it with plug in USB when powered off and hold power + vol down
- Flash TWRP
Code:
fastboot flash boot_a boot_a_twrp.img
- Do "fastboot reboot" into TWRP (to do this, as soon as it vibrates, hold power+vol up, release power on AndriodOne logo, release vol on twrp logo)
- Use OTG mouse: Format data and reboot into TWRP
- Do adb push FBEDisabler and install it
Code:
   	adb push DisableForceEncryption_Treble.zip /sdcard/
   	twrp install zip /sdcard/DisableForceEncryption_Treble.zip
- Do initial setup, enable ADB
- Reboot to recovery,
Code:
adb reboot recovery
- Do adb push NH, Magisk, bootanimation, firmware zip and scripts (from unzipped nokia_nh.zip) to /sdcard/ and flash them.
Code:
adb push <DOWNLOADED_FILES_PATH>/* /sdcard/
   adb shell
   	twrp install zip /sdcard/nethunter-2020.3-es2-pie-kalifs-minimal.zip
   	twrp install zip /sdcard/Magisk-v20.1.zip
   	cd /sdcard/ 
   	sh bootanimation.sh
   	sh firmware.sh
  	reboot
- Start Kali NH App and do a final reboot
- To upgrade to full Kali fs, do
Code:
apt-get update && apt-get install kali-linux-nethunter -y

~~~ Notes & Updates ~~~


Credits: The Offensive Security Team and the NetHunter community

Android Version: 9.0

XDA: DevDB Information
Kali Nethunter, Kernel & ROM for the Nokia 3.1

Contributors
@yesimxev
For bootloader unlock and general Nokia support: @hikari_calyx

Source Code: https://gitlab.com/kalilinux/nethunter
Kernel Source: https://github.com/yesimxev/android_kernel_nokia_es2
 
Last edited:
Sep 9, 2020
1
0
0
Hi there,

Thank for very much for the release and the flashing instructions. I'm wondering though if you'll be releasing the TWRP sources. Perhaps your work will help others make a release with touch support.

Cheers
 
Last edited:

yesimxev

Senior Member
May 8, 2017
68
28
18
Hi there,

Thank for very much for the release and the flashing instructions. I'm wondering though if you'll be releasing the TWRP sources. Perhaps your work will help others make a release with touch support.

Cheers
Sorry for the late reply, I wanted to give a better code for you but I mainly used this in the above TWRP hybrid :laugh:
Built with twrpbuilder device tree generator with omni 7 source. I'm aware that 8 or 9 should have been used but it didn't build successfully for me.
https://github.com/yesimxev/android_device_nokia_ES2_sprout/

twrp.fstab is with with system_a vendor_a etc now, because it was always using _b even if I was booting into _a, but I left it like that because slotselect should really work