If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Nethunter for OnePlus 5

I want to port the Kali Nethunter rom to the OnePlus 5.
Because it is my first time i need some people who can port it together with me.

Offensive Security has a nice tutorial on their website but its getting complicated when i come to the modify kernel part.
I really need some help with that.

If you got some tips or advice on how to do it let me know!

Greetings,
Stefjoe

I found a way to "port" but not the entire kernel.

I managed to create chroot and can run Kali shell after one failed trail.IMPORTANT : It went into bootloop(only boots into twrp) once while trying to remount /system as rw. But then I figured out SElinux must be disabled. You know what to do if it goes into a bootloop, but just take a backup (nandroid backup didn't work for me)
And I also lost all of my data after I flashed stock recovery.

Everything seems to be working fine. But there is a problem with the Nethunter 3.0. The

Code:

apt-get

does not work.
However, I pinged google.com and I get replies.
So, we need to install metapackages manually. At least for now.

What I did :
1. Download OnePlus One nethunter 3.0 ROM
2. Locate the apks (<nethunter_extracted>/data/app)
3. Install in this order :
• Nhterminal
• VNC
• Nethunter app
4. Open the Nethunter app and install the chroot
( I selected full chroot, however, you may choose minimal chroot too instead )

5. From any root explorer, we need to copy the files that are under /data/data/com.offsec.nethunter/files/scripts/*
to
/system/bin
(If you don't find the .../files/scripts, open Nethunter app and try again)

6. After copying the files to /system/bin,
There are three important files :
•bootkali
•bootkali_bash
•bootkali_login
We need to symlink these ↑

Important : we need to make the /system writable first.
Run from AndroidSU shell:

Code:

#setenforce 0

Code:

#mount -o rw,remount /system

*[Edit]*
Before linking, you may need to delete the existing bootkali, bootkali_bash and bootkali_login from /system/bin/ first.

I used the stock Oxygen 4.5.8
But we need a stable kernel with all the USB drivers, HID, etc.
I've heard that it's complicated.
It would be very helpful if someone could port the Nethunter to base Oxygen 4.5.x ROM.