Waiting a nethunter kernel - OnePlus 8 Pro Questions & Answers

I believe someone will build a nethunter kernel for 8 and 8 pro.
Actually I found one on github and I tried to build a kernel to flash , I can't boot my phone. MY system is H2OS 10.5.12, oos and h2os can use same kernel. Oh, if anyone try to make a kernel, dont for android 11, the system has so many limits and bad experients.

Wanted to ask the same. I want to buy a new phone that works with Kali nethunter and I can't decide to buy the OnePlus 7 or the 8. Since there is an official rom for the OnePlus 7, and for the 8 there is only a kernel on GitHub that no one is able to make it work. I'm afraid to buy the OnePlus 7 and when I buy it then they make a nethunter rom for OnePlus 8 :laugh:

Figured i would chime in on this as i was able to get it up and running on my OP8P
i downgraded to 10.5.12 by flashing via fastboot from here...
Guide: Restore OnePlus 8/8 Pro Back to Stock OxygenOS Software
Guide to restore OnePlus 8/8 Pro back to the stock OxygenOS software after rooting, installing custom ROMs, etc by flashing the factory image (fastboot ROM).
www.thecustomdroid.com
Then go through the setup and root the device with magisk
once it was back to a "stock" rooted android 10 OS i installed the generic arm kalifs image via TWRP
booted back up and installed the nethunter store app apk, then nethunter apk.
NetHunter | Kali NetHunter App Store - Android App Repository for Penetraton Testing and Forensics
© 2010-2019 Kali Linux, F-Droid, and Contributors
store.nethunter.com
go to nethunter store first and install the nethunter terminal. once installed go back to the store and check for updates.
after the check open nethunter and it should do some more updates and you should be able to start the chroot
I have hid (rucky) and monitor mode working for internal wireless
BUT!
i did the OTA update to android 11 and rucky disappeared and sudo apt-get update no longer worked
but i found this post here
Temporary failure resolving 'http.kali.org' · Issue #913 · offensive-security/kali-nethunter
Device: OnePlus+ OS version Lollipop Output of cat /proc/version in adb shell or NetHunter Terminal: [email protected]:~# cat /proc/version Linux version 3.4.67-cyanogenmod-g399b32b ([email protected]) (gcc versio...
github.com
and that fixed the apt-get update.
rucky is still non operational unfortunately

markmn123 said:
Figured i would chime in on this as i was able to get it up and running on my OP8P
i downgraded to 10.5.12 by flashing via fastboot from here...
Guide: Restore OnePlus 8/8 Pro Back to Stock OxygenOS Software
Guide to restore OnePlus 8/8 Pro back to the stock OxygenOS software after rooting, installing custom ROMs, etc by flashing the factory image (fastboot ROM).
www.thecustomdroid.com
Then go through the setup and root the device with magisk
once it was back to a "stock" rooted android 10 OS i installed the generic arm kalifs image via TWRP
booted back up and installed the nethunter store app apk, then nethunter apk.
NetHunter | Kali NetHunter App Store - Android App Repository for Penetraton Testing and Forensics
© 2010-2019 Kali Linux, F-Droid, and Contributors
store.nethunter.com
go to nethunter store first and install the nethunter terminal. once installed go back to the store and check for updates.
after the check open nethunter and it should do some more updates and you should be able to start the chroot
I have hid (rucky) and monitor mode working for internal wireless
BUT!
i did the OTA update to android 11 and rucky disappeared and sudo apt-get update no longer worked
but i found this post here
Temporary failure resolving 'http.kali.org' · Issue #913 · offensive-security/kali-nethunter
Device: OnePlus+ OS version Lollipop Output of cat /proc/version in adb shell or NetHunter Terminal: [email protected]:~# cat /proc/version Linux version 3.4.67-cyanogenmod-g399b32b ([email protected]) (gcc versio...
github.com
and that fixed the apt-get update.
rucky is still non operational unfortunately
Click to expand...
Click to collapse
Thank you for documenting your experience. I attempted to install the generic Kali kalifs but the HID interface was not detected. I assume due to lack of kernel
Are there any developments in kernels for oneplus 8 pro? The following link provides a kernel builder but it is unsuccessful:
GitHub - kimocoder/nethunter_kernel_oneplus8: NetHunter kernel for OnePlus 8 / 8 Pro
NetHunter kernel for OnePlus 8 / 8 Pro. Contribute to kimocoder/nethunter_kernel_oneplus8 development by creating an account on GitHub.
github.com

Go to the nethunter app in your phone
then click USB arsenal in the hamburger menu
Click the USB function drop down and select HID
Click ADB dropdown and select disable
Finally click the "set usb function" button down below
If it works you will get a "USB function set successfully" notification
now open rucky and type away

markmn123 said:
Figured i would chime in on this as i was able to get it up and running on my OP8P
i downgraded to 10.5.12 by flashing via fastboot from here...
Guide: Restore OnePlus 8/8 Pro Back to Stock OxygenOS Software
Guide to restore OnePlus 8/8 Pro back to the stock OxygenOS software after rooting, installing custom ROMs, etc by flashing the factory image (fastboot ROM).
www.thecustomdroid.com
Then go through the setup and root the device with magisk
once it was back to a "stock" rooted android 10 OS i installed the generic arm kalifs image via TWRP
booted back up and installed the nethunter store app apk, then nethunter apk.
NetHunter | Kali NetHunter App Store - Android App Repository for Penetraton Testing and Forensics
© 2010-2019 Kali Linux, F-Droid, and Contributors
store.nethunter.com
go to nethunter store first and install the nethunter terminal. once installed go back to the store and check for updates.
after the check open nethunter and it should do some more updates and you should be able to start the chroot
I have hid (rucky) and monitor mode working for internal wireless
BUT!
i did the OTA update to android 11 and rucky disappeared and sudo apt-get update no longer worked
but i found this post here
Temporary failure resolving 'http.kali.org' · Issue #913 · offensive-security/kali-nethunter
Device: OnePlus+ OS version Lollipop Output of cat /proc/version in adb shell or NetHunter Terminal: [email protected]:~# cat /proc/version Linux version 3.4.67-cyanogenmod-g399b32b ([email protected]) (gcc versio...
github.com
and that fixed the apt-get update.
rucky is still non operational unfortunately
Click to expand...
Click to collapse
going back to the top, have you tried to run your internal WIFI card on monitor mode and perform packets injection at the same time, did you get any results back as your wifi card supports injection mode..? do u have a custom kernel works for Nethunter embedded by enabling external Wifi cards, monitor mode support, packet injection tested).?
let me pls know if u go successfully thru this before, and what is ur best android OS you always prefer to use with Nethunter..?

Invincible-Man said:
going back to the top, have you tried to run your internal WIFI card on monitor mode and perform packets injection at the same time, did you get any results back as your wifi card supports injection mode..? do u have a custom kernel works for Nethunter embedded by enabling external Wifi cards, monitor mode support, packet injection tested).?
let me pls know if u go successfully thru this before, and what is ur best android OS you always prefer to use with
Click to expand...
Click to collapse
So i have monitor mode working. I have set it up as a custom command using the following
echo "4" > /sys/module/wlan/parameters/con_mode
the above is all that needs to be typed. i also have exec mode to run in background
now to stop monitor mode you need another custom command
ip link set wlan0 down && echo "0" > /sys/module/wlan/parameters/con_mode
wifi operations will return to normal however packet injection does not work. then again i have only tested on wifite. I have not tried aireplay-ng
also im reading that installing nexmon from the nethunter store may add injection but i am weary of flashing wifi firmware since i dont know how to back up the existing in case it does not work

markmn123 said:
So i have monitor mode working. I have set it up as a custom command using the following
echo "4" > /sys/module/wlan/parameters/con_mode
the above is all that needs to be typed. i also have exec mode to run in background
now to stop monitor mode you need another custom command
ip link set wlan0 down && echo "0" > /sys/module/wlan/parameters/con_mode
wifi operations will return to normal however packet injection does not work. then again i have only tested on wifite. I have not tried aireplay-ng
also im reading that installing nexmon from the nethunter store may add injection but i am weary of flashing wifi firmware since i dont know how to back up the existing in case it does not work
Click to expand...
Click to collapse
Thing like that needs some patches over the kernel build, unfortunately none of them available now to match with kernel vers 4.19, so the biggest wanted part still missing "injection packets" even the monitor mode is working by default or not.
However I did one for my OP8pro and I only was able to enable some external usb wireless which is I have"rt2800, mt7601uu" at least I can do airmon-ng and activate monitor mode to do wifi attacks successfully, but still probably we need something to be specially build for this marvelous device!!

How did you get the drivers for the rt2800 on there? ive been looking for a way to get rtl8812 & rtl8814 on mine but dont know how

markmn123 said:
How did you get the drivers for the rt2800 on there? ive been looking for a way to get rtl8812 & rtl8814 on mine but dont know how
Click to expand...
Click to collapse
They're all there by default, no big deal only you need to enable them one by one from menuconfig settings, then you ready to go with compiling kernel after!

Here's my NetHunter kernel for OnePlus 8 Pro OOS v.10 based on blu_spark kernel. You can compile it by yourself or just flash prepared archive from Releases.
GitHub - flypatriot/blu-spark_kernel_oneplus_sm8250: blu_spark NetHunter kernel for OnePlus 8/Pro
blu_spark NetHunter kernel for OnePlus 8/Pro. Contribute to flypatriot/blu-spark_kernel_oneplus_sm8250 development by creating an account on GitHub.
github.com
It is highly recommended to flash SystemRW_Script to have an ability to write to system_root.
After flashing the kernel you need to:
1. Copy 4.19.81-NetHunter folder from kernel archive (in modules/system_root/lib/modules) to android's /lib/modules.
2. Install NetHunter app and NetHunter Terminal from NetHunter Store.
3. Launch applications and give all needed permissions.
4. Install and start chroot.
5. Launch Android SU Terminal and enter commands:
mount -o remount,rw /
cp -sfr /data/data/com.offsec.nethunter/files/scripts/* /bin/
6. Copy folders from configs.zip to android's sdcard/nh_files.
7. Copy firmware files from firmware.zip to android's /etc/firmware/ and /vendor/firmware/
Hope you'll enjoy it.

flypatriot said:
Here's my NetHunter kernel for OnePlus 8 Pro OOS v.10 based on blu_spark kernel. You can compile it by yourself or just flash prepared archive from Releases.
https://github.com/flypatriot/blu-spark_kernel_oneplus_sm8250.
It is highly recommended to flash SystemRW_Script to have an ability to write to system_root.
After flashing the kernel you need to:
1. Copy 4.19.81-NetHunter folder from kernel archive (in modules/system_root/lib/modules) to android's /lib/modules.
2. Install NetHunter app and NetHunter Terminal from NetHunter Store.
3. Launch applications and give all needed permissions.
4. Install and start chroot.
5. Launch Android SU Terminal and enter commands:
mount -o remount,rw /
cp -sfr /data/data/com.offsec.nethunter/files/scripts/* /bin/
6. Copy folders from configs.zip to android's sdcard/nh_files.
7. Copy firmware files from firmware.zip to android's /etc/firmware/ and /vendor/firmware/
Hope you'll enjoy it.
Click to expand...
Click to collapse
it's better to include what features was added/enabled on this kernel..?

flypatriot said:
Here's my NetHunter kernel for OnePlus 8 Pro OOS v.10 based on blu_spark kernel. You can compile it by yourself or just flash prepared archive from Releases.
https://github.com/flypatriot/blu-spark_kernel_oneplus_sm8250.
It is highly recommended to flash SystemRW_Script to have an ability to write to system_root.
After flashing the kernel you need to:
1. Copy 4.19.81-NetHunter folder from kernel archive (in modules/system_root/lib/modules) to android's /lib/modules.
2. Install NetHunter app and NetHunter Terminal from NetHunter Store.
3. Launch applications and give all needed permissions.
4. Install and start chroot.
5. Launch Android SU Terminal and enter commands:
mount -o remount,rw /
cp -sfr /data/data/com.offsec.nethunter/files/scripts/* /bin/
6. Copy folders from configs.zip to android's sdcard/nh_files.
7. Copy firmware files from firmware.zip to android's /etc/firmware/ and /vendor/firmware/
Hope you'll enjoy it.
Click to expand...
Click to collapse
*EDIT*
Jumped ahead of myself before I found your repo. Excellent work! Cant wait to see what this thing is really capable of. Would love to mess around wit hbluetooth when it starts working
What features do you have working on the kernel?
The only thing i need to get working is Bluetooth (RFCOMM) and support for rtl8812au, rtl8188eus which work on this phone according to @kimocoder
I also have monitor mode on the internal wifi SoC but no injection. Is that possible?

flypatriot said:
Here's my NetHunter kernel for OnePlus 8 Pro OOS v.10 based on blu_spark kernel. You can compile it by yourself or just flash prepared archive from Releases.
https://github.com/flypatriot/blu-spark_kernel_oneplus_sm8250.
It is highly recommended to flash SystemRW_Script to have an ability to write to system_root.
After flashing the kernel you need to:
1. Copy 4.19.81-NetHunter folder from kernel archive (in modules/system_root/lib/modules) to android's /lib/modules.
2. Install NetHunter app and NetHunter Terminal from NetHunter Store.
3. Launch applications and give all needed permissions.
4. Install and start chroot.
5. Launch Android SU Terminal and enter commands:
mount -o remount,rw /
cp -sfr /data/data/com.offsec.nethunter/files/scripts/* /bin/
6. Copy folders from configs.zip to android's sdcard/nh_files.
7. Copy firmware files from firmware.zip to android's /etc/firmware/ and /vendor/firmware/
Hope you'll enjoy it.
Click to expand...
Click to collapse
Also source link isn't available
markmn123 said:
What features do you have working on the kernel?
The only thing i need to get working is Bluetooth (RFCOMM) and support for rtl8812au, rtl8188eus which work on this phone according to @kimocoder
I also have monitor mode on the internal wifi SoC but no injection. Is that possible?
Click to expand...
Click to collapse
Negative injection mode could not be presented on wlan0 since it's required some patches and I don't believe they're available for 4.19.81 kernel versions, however mon is already enabled by default and other features you add are enough to go ahead with nethunter.. Good job.. BTW the link for source you shared isn't available can you repost it again or you can drop the flashable.zip kernel itself let me test it on my phone first

Invincible-Man said:
it's better to include what features was added/enabled on this kernel..?
Click to expand...
Click to collapse
All features are listed in repo Readme.md

Invincible-Man said:
Also source link isn't available
Negative injection mode could not be presented on wlan0 since it's required some patches and I don't believe they're available for 4.19.81 kernel versions, however mon is already enabled by default and other features you add are enough to go ahead with nethunter.. Good job.. BTW the link for source you shared isn't available can you repost it again or you can drop the flashable.zip kernel itself let me test it on my phone first
Click to expand...
Click to collapse
Sorry for source links. It's really unavailable.
Plese try this one
GitHub - flypatriot/blu-spark_kernel_oneplus_sm8250: blu_spark NetHunter kernel for OnePlus 8/Pro
blu_spark NetHunter kernel for OnePlus 8/Pro. Contribute to flypatriot/blu-spark_kernel_oneplus_sm8250 development by creating an account on GitHub.
github.com
And you're quite right about internal wifi injection mode.

markmn123 said:
*EDIT*
Jumped ahead of myself before I found your repo. Excellent work! Cant wait to see what this thing is really capable of. Would love to mess around wit hbluetooth when it starts working
What features do you have working on the kernel?
The only thing i need to get working is Bluetooth (RFCOMM) and support for rtl8812au, rtl8188eus which work on this phone according to @kimocoder
I also have monitor mode on the internal wifi SoC but no injection. Is that possible?
Click to expand...
Click to collapse
Most of features were presented by @kimocoder. But unfortunately kernel from his repo didn't work for me. So I spent time to compile a new one.

flypatriot said:
Sorry for source links. It's really unavailable.
Plese try this one
GitHub - flypatriot/blu-spark_kernel_oneplus_sm8250: blu_spark NetHunter kernel for OnePlus 8/Pro
blu_spark NetHunter kernel for OnePlus 8/Pro. Contribute to flypatriot/blu-spark_kernel_oneplus_sm8250 development by creating an account on GitHub.
github.com
And you're quite right about internal wifi
Click to expand...
Click to collapse
flypatriot said:
btw I've done build my own nehunter kernel since last year almost based on elementalx kernel since this one has alot of good stuff in it ex. battery safer, gpu and cpu optimizations tho.. Can you also send me a flashable img or zip file to try this one as well..?
Click to expand...
Click to collapse

Check this one.
And can you share your kernel version just for testing.

flypatriot said:
Check this one.
And can you share your kernel version just for testing.
Click to expand...
Click to collapse
Currently im on OS10 kernel version 4.19.81

Invincible-Man said:
Currently im on OS10 kernel version 4.19.81
Click to expand...
Click to collapse
Mine is the same cause we don't have a normal working twrp for OOS 11.

Related

Monitor mode module for Nexus S CM9.1

Hi there,
based on the work of bcmon.blogspot.com i compiled a working kernel + monitor mode module for the Nexus S running CyanogenMod 9.1
The Zipfile contains a kernel + monitor mode module + monitor mode firmware + aircrack-ng suite
Instructions:
Download & install CM9.1
Download & install zipfile via cwm recovery
To start monitor mode open a Terminal and type:
Code:
bcmon_start
The monitor interface is called eth0
Now you can run besside-ng airodump etc.
To stop monitor mode
Code:
bcmon_stop
Zip Download:
webschreinerei.com/nexuss/monitor-cm9-crespo.zip
rehost file?
[QQUOTE=solarwasser;50297254]Hi there,
based on the work of bcmon.blogspot.com i compiled a working kernel + monitor mode module for the Nexus S running CyanogenMod 9.1
The Zipfile contains a kernel + monitor mode module + monitor mode firmware + aircrack-ng suite
Instructions:
Download & install CM9.1
Download & install zipfile via cwm recovery
To start monitor mode open a Terminal and type:
Code:
bcmon_start
The monitor interface is called eth0
Now you can run besside-ng airodump etc.
To stop monitor mode
Code:
bcmon_stop
Zip Download:
webschreinerei.com/nexuss/monitor-cm9-crespo.zip[/QUOTE]
could you repost the file thanks. And did you have to change any of the source code for cm9 support? Any code you could also share? Thanks
Monkofthefunk said:
[QQUOTE=solarwasser;50297254]Hi there,
based on the work of bcmon.blogspot.com i compiled a working kernel + monitor mode module for the Nexus S running CyanogenMod 9.1
The Zipfile contains a kernel + monitor mode module + monitor mode firmware + aircrack-ng suite
Instructions:
Download & install CM9.1
Download & install zipfile via cwm recovery
To start monitor mode open a Terminal and type:
Code:
bcmon_start
The monitor interface is called eth0
Now you can run besside-ng airodump etc.
To stop monitor mode
Code:
bcmon_stop
Zip Download:
webschreinerei.com/nexuss/monitor-cm9-crespo.zip
Click to expand...
Click to collapse
could you repost the file thanks. And did you have to change any of the source code for cm9 support? Any code you could also share? Thanks[/QUOTE]
Right now i don't have a nexus s to to nor a real linux box to compile it again.
But here is the github ->
As far as i remember i compiled the kernel twice to with different source for the chipset one time clean source the other time with the source from the bemoan team
Anyway the cm 9.1 rom works with the bcmon app out of the box but i got much more handshakes using the module.
Sorry i just realized that Iam not allowed to post Links. For the github source search for sushiomsky/android_kernel_samsung_crespo at github
Bump...
Does anyone still have this zip anywhere? Since bcmon seems to fail on CM10.1+ and newer versions of Busybox even on BCM4329/4330.
Or anyone have a fresh compile from the repo? THanks
If you install a linux with SSH on Your Nexus S and give me a shell for a couple of hours i could compile it again. And take care that it doesn't get lost again...
PaulieP said:
Bump...
Does anyone still have this zip anywhere? Since bcmon seems to fail on CM10.1+ and newer versions of Busybox even on BCM4329/4330.
Or anyone have a fresh compile from the repo? THanks
Click to expand...
Click to collapse
Sounds great. Should have another Nexus S in my hands by Tuesday or so. will update.
Sorry I had forgotten about this thread.. I have the Nexus S, is there any particular distro of Linux I should install?
solarwasser said:
If you install a linux with SSH on Your Nexus S and give me a shell for a couple of hours i could compile it again. And take care that it doesn't get lost again...
Click to expand...
Click to collapse
PaulieP said:
Sorry I had forgotten about this thread.. I have the Nexus S, is there any particular distro of Linux I should install?
Click to expand...
Click to collapse
Hi,
perhaps I can guide you to compile the module if not we do it via ssh. First install cm 9.1 Gapps and debian or kali linux via Linux deploy
than do an "apt-get -y install build-essential" now clone the git repo with "git clone -b ics --single-branch https://github.com/sushiomsky/android_kernel_samsung_crespo/"
and now I am a little unsure but try to run a simple "make crespo_defconfig" followed by a "make" from within the source dir. copy the dhd4329.ko or similar (can't remember the exact name and folder) to your scared or somewhere else. now rename the /drivers/net/wireles/bcmon4329 to bcm4329 and do the make again now you have the monitor mode module. flash the boot image and load either the original (first) module or the monitor mode module with insmod.
Good luck
Cheers
Sol

[GUIDE]Kali Nethunter 3.0 on Android 6.0.x ROMs - [kenzo]

OUTDATED
Rishabh1x said:
In this guide i will cover how to setup a successful install of kali nethunter 3.0 on Redmi Note 3(mine is 32gb) using the ported nethunter zip and the hammerhead image(nexus 5). This may or may NOT work on any other ROM because I havent tested it. I am running exodus ROM with stock kernel. Please make sure you know what you are doing before you proceed because i dont have time to answer questions like 'what is chroot and root for?'​
Requirements:
1. Unlocked bootloader
2. TWRP
3. ROOT
4. Some free space in /data partition(alot actually if you install ALL the tools)
5. Basic understanding about how linux works
Things you need to grab:
1. kali nethunter zip and modules zip for our device
2. hammerhead image zip
Steps:
1. BACKUP current ROM(system, data, boot->MOST IMP)
2. After you have a backup flash the nethunter.zip(72.8m) and once its done flash modules.zip(2.1mb)
3. Now you have to restore your boot partition from the backup you took earlier. > Goto restore and tick only Boot and restore it.
4. Reboot your phone now. You should see some new apps in your app drawer if all was successful. Also you will see the nethunter bootanim(awesome).
5. Now download kmod manager and enable the modules that can be enabled and ignore the rest.
6. Now extract the hammerhead zip file anywhere. Inside that you will have a /data/local folder. There is a file named kalifs-full.tar.xz. Copy it to /sdcard.
7. Now open Nethunter app from app drawer. From left panel goto - kali chroot manager. Click install chroot > use sdcard > Full chroot.
8. Now you will see a progress bar stating decompressing ~5-10 mins. Wait till it finishes. Then you will see a metapackages thing with options to tick. Ignore by pressing back button.
9. The console(green text) should print somewhere this line - "everything went fine" to tell you no errors were encountered.
10. Now chroot is ready, this means kali is installed and running inside android. To test it, do this - Open es explorer and goto /data/local/nhsystem/kali-armhf, there u should see some directories like bin/boot/ etc.
This means the filesystem is installed. Now you can open the nethunter terminal app and choose 'kali'. If it says [email protected] in red color, it means everything went fine and you are logged in as root.
Post install notes:
1. Hammerhead zip is pretty old. You will have to change the repo to kali-rolling to get the latest stable packages.
2. I have noticed very slow speed while downloading the packages, you can either add mirrors close to your location to avoid this or you can install aria and apt-fast(requires aria) packages.
3. Wifi injection and monitoring is not supported by the internal wifi card of our device, so you will have to refer to the port thread that has a compatible wifi card listed(amazon link) which supports packet injection.
Downloads:
1. nethunter zip and modules for RN3 -> Grab from original port thread
2. Hammerhead image zip -> Hammerhead image zip
Thanks to:
Baka Guy aka Cereal Killer - for port
Offensive Security - for Nethunter
Note- Any sensible questions, feel free to ask. Sorry if I missed something, if any confusion or mistakes found in steps pls inform me.
Click to expand...
Click to collapse
Hello, this is only for 6.0 roms? like which ? RR official?
Did you read the thread?
This is for MM roms however I have not tested on cm based ROM so you can give it a try by doing as per the steps and report back if it works.
Rishabh1x said:
Did you read the thread?
This is for MM roms however I have not tested on cm based ROM so you can give it a try by doing as per the steps and report back if it works.
Click to expand...
Click to collapse
do u have test to install it on cm rom? which cm
He said exodus... I will be testing it today on rr with radon 2.5.1
Sent from my Redmi Note 3 using Tapatalk
I have tried it and it works on Mokee. It boots and many of the functions do seem to work. How ever I'm still testing it and will review later again after some more testing.
Audacity4545 said:
I have tried it and it works on Mokee. It boots and many of the functions do seem to work. How ever I'm still testing it and will review later again after some more testing.
Click to expand...
Click to collapse
Ok thanks for informing...can you check if fruitywifi is working for you or not?
Btw Radon is compatible and should not cause any problem...I will update the guide later.
Rishabh1x said:
Ok thanks for informing...can you check if fruitywifi is working for you or not?
Btw Radon is compatible and should not cause any problem...I will update the guide later.
Click to expand...
Click to collapse
I have tried radon once at Radonv2.1 on mokee but it seemed to mess with the adaptable storage which I really need. So I dont use custom kernal on mokee. I will check fruitywifi possibly tomorrow or day after that when I get the time. Ill report my results when I'm done. Also you should show how to change repos. Many people dont know.
How to change repos- first the current repos are too old. they are for sana i.e. kali 2.0. now latest version is kali 2016 i.e. Kali rolling.
Guide to changing repos and increasing download speed for update.
*OP pls add this in main post if you want.
To change your repos go to (using es explorer) device/data/local/nhsystem/kali-armhf/etc/apt/sources.list
edit it using a text editor. Delete whatever is in it. then add these lines
deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free
Then save it.What you just did was delete old sana repos and change them with updated rolling repos. Then go to nethunter terminal using kali shell. then run
apt-get update
then
apt-get upgrade
then
apt-get dist-upgrade
if you are getting slow speed then change http in sources to repo. i.e.
deb http://repo.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://repo.kali.org/kali kali-rolling main contrib non-free
this will most likely get you better download speeda and lot easier than using aria.
This currently only contains nethunter packages, to get all packages
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install kali-linux-full -y
This installs all kali packages shown at http://tools.kali.org/tools-listing. It will require alteast 800 mb data. If you install all packages you will get mysql screen setup. So if you try to installl all check up a guide before doing it. I wont explain it all here. For any noobs this doesnt contain a GUI. Dont expect one. You will need to know atleast basic linux to use it. If you want to try I ask you to try Kali on pc as it contains Gui and easier for beginners.
Audacity4545 said:
I have tried radon once at Radonv2.1 on mokee but it seemed to mess with the adaptable storage which I really need. So I dont use custom kernal on mokee. I will check fruitywifi possibly tomorrow or day after that when I get the time. Ill report my results when I'm done. Also you should show how to change repos. Many people dont know.
How to change repos- first the current repos are too old. they are for sana i.e. kali 2.0. now latest version is kali 2016 i.e. Kali rolling.
Guide to changing repos and increasing download speed for update.
*OP pls add this in main post if you want.
To change your repos go to (using es explorer) device/data/local/nhsystem/kali-armhf/etc/apt/sources.list
edit it using a text editor. Delete whatever is in it. then add these lines
deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free
Then save it.What you just did was delete old sana repos and change them with updated rolling repos. Then go to nethunter terminal using kali shell. then run
apt-get update
then
apt-get upgrade
then
apt-get dist-upgrade
if you are getting slow speed then change http in sources to repo. i.e.
deb http://repo.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://repo.kali.org/kali kali-rolling main contrib non-free
this will most likely get you better download speeda and lot easier than using aria.
This currently only contains nethunter packages, to get all packages
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install kali-linux-full -y
This installs all kali packages shown at http://tools.kali.org/tools-listing. It will require alteast 800 mb data. If you install all packages you will get mysql screen setup. So if you try to installl all check up a guide before doing it. I wont explain it all here. For any noobs this doesnt contain a GUI. Dont expect one. You will need to know atleast basic linux to use it. If you want to try I ask you to try Kali on pc as it contains Gui and easier for beginners.
Click to expand...
Click to collapse
I will add the steps in the main thread to change the repos to rolling...although I found that changing from http to repo does not give any difference in speed. You should find a mirror close to your location to get better speed. I find nl mirrors to be far better than repo.
Also the vnc connections work without any tweaks so its not really a cui based installation bcz you can connect through vnc and use the gui too. Btw kali-full package requires 1gb download and more than 2gb space for install.
And you should avoid running dist-upgrade. It can cause problems with install and break the chroot environment.
i am on miui 8 stable global i installed and followed the guide above.. but then i opening the nethunter terminal and chose kali then the app closing auto.. why?how to fix this
feikacab said:
i am on miui 8 stable global i installed and followed the guide above.. but then i opening the nethunter terminal and chose kali then the app closing auto.. why?how to fix this
Click to expand...
Click to collapse
try clearing the app data and cache. if it still does not work do this:
1. Install terminal emulator or try nethunter terminal as root
2. open and type following command
-> su -c bootkali
Then provide feedback if it was successful or not.
Rishabh1x said:
try clearing the app data and cache. if it still does not work do this:
1. Install terminal emulator or try nethunter terminal as root
2. open and type following command
-> su -c bootkali
Then provide feedback if it was successful or not.
Click to expand...
Click to collapse
Missing a requiring folder. Something isn't right. Thatd telling me when I writing the above command and on nethunter emulator, same think on terminal emulator. And try to clear the cache and data both of apps.s sorry if I asking again, on which rom are u using nethunter? Which kernel? CAF KERNEL? On the first topic u dont say clearly which file we supposed to install. I didn't found any files on the link which named nethunter.zip and have 72 mb
feikacab said:
Missing a requiring folder. Something isn't right. Thatd telling me when I writing the above command and on nethunter emulator, same think on terminal emulator. And try to clear the cache and data both of apps.s sorry if I asking again, on which rom are u using nethunter? Which kernel? CAF KERNEL? On the first topic u dont say clearly which file we supposed to install. I didn't found any files on the link which named nethunter.zip and have 72 mb
Click to expand...
Click to collapse
Open the nethunter app and from left menu click Chroot manager and tell me what you see there.
Rishabh1x said:
Open the nethunter app and from left menu click Chroot manager and tell me what you see there.
Click to expand...
Click to collapse
i am now on exodus rom 6.0.1 last version.. i cant understand the intstructions from the first topic.. which file is nethunter.zip 72mb? i couldnt find it..U must update the first post and rename the zip folders because i cant understand which is zip folder named nethunter and have 72mb size... help me someone
feikacab said:
i am now on exodus rom 6.0.1 last version.. i cant understand the intstructions from the first topic.. which file is nethunter.zip 72mb? i couldnt find it..
Click to expand...
Click to collapse
http://en.miui.com/thread-301258-1-1.html
you will find 2 zips here the 72mb and one 2mb
Rishabh1x said:
http://en.miui.com/thread-301258-1-1.html
you will find 2 zips here the 72mb and one 2mb
Click to expand...
Click to collapse
yes but the zip file which have size 74 mb named update-nethunter-kenzo.. anyway i remove and install again the chroot, and now the console is fine, opening again perfect, but the problem is, when i type wifite my card doesnt shows up.. why? i bought it before 2 days ago.. and the otg cable too. my card is tl-wn722n
feikacab said:
yes but the zip file which have size 74 mb named update-nethunter-kenzo.. anyway i remove and install again the chroot, and now the console is fine, opening again perfect, but the problem is, when i type wifite my card doesnt shows up.. why? i bought it before 2 days ago.. and the otg cable too. my card is tl-wn722n
Click to expand...
Click to collapse
is the card itself working with otg? if there is an led light on card check if its blinking....and run lsusb command too
Rishabh1x said:
is the card itself working with otg? if there is an led light on card check if its blinking....and run lsusb command too
Click to expand...
Click to collapse
what do u mean by itself working with otg?
feikacab said:
what do u mean by itself working with otg?
Click to expand...
Click to collapse
I have heard that it requires a y cable to work because card doesn't draws enough power....so I said to check the led light or any other indication to know if card is powered properly
Rishabh1x said:
I have heard that it requires a y cable to work because card doesn't draws enough power....so I said to check the led light or any other indication to know if card is powered properly
Click to expand...
Click to collapse
dude the card working perfect and the cable too. the problem is, how do u know that nethunter isnt fake? upload screenshot from your phone while hacking wifi with wifite.

OnePlus 5 Kali Nethunter

Hello boys & girls!
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.
More info:
offensive-security.com/kali-linux-nethunter-download
Porting info:
github.com/offensive-security/kali-nethunter/wiki/Porting-Nethunter
Sorry due the spam restrictions i cant post the links.
If you got some tips or advice on how to do it let me know! :good:
Greetings,
Stefjoe
Let me see...
EDIT: Ok. I can't help sorry
_MartyMan_ said:
Let me see...
EDIT: Ok. I can't help sorry
Click to expand...
Click to collapse
Damn.... too bad
Any luck with this? Having a hard time myself.
I've looked at it myself and it seems complicated to me because I've never done that before but maybe anyone here is able to do it...
stefjoe said:
Damn.... too bad
Click to expand...
Click to collapse
Any progress?
The only problem to port nethunter to the OP5 is to add HID and CDROM support to the kernel but in order to do so, those patches have to be ported to kernel version 4.4+ ...
Otherwise packet injection over usb works fine on OOS.
I'm trying to compile a kernel with packet injection for RR.
Tell me if you want the kernel ... I've modded Adin's kernel (OOS) and Lightning kernel (LOS).
You will then have to install the nethunter chroot zip and you're good to go.
Arka1n said:
The only problem to port nethunter to the OP5 is to add HID and CDROM support to the kernel but in order to do so, those patches have to be ported to kernel version 4.4+ ...
Otherwise packet injection over usb works fine on OOS.
I'm trying to compile a kernel with packet injection for RR.
Click to expand...
Click to collapse
I think you can find the patch for HID and CDROM support here:
https://forum.xda-developers.com/showthread.php?t=2196707
https://github.com/CyanogenMod/andr...mmit/46bd47757a9f34c1d95dd2620414893212fb0526
FYI I don't know anything about patching kernels so i might be wrong
Well this leads to the hid patch :
github.com/pelya/android-keyboard-gadget/blob/master/kernel-3.4.patch
And this to something about the CDROM patch for the OP3 :
github.com/binkybear/androiddevs_kernel_oneplus_msm8996/commit/fc6f4b6b5f70509fbc5d583e8315f88119acb3c2
Not yet allowed to post links...
Anyway i need some help from other devs to port those to 4.4 :silly:...
Arka1n,
Hey,
I saw the post regarding putting nethuntr on the 1+ 5.
Are you willing to give me the needed kernel too plz?
Thanks
Jazzzzz
Arka1n said:
Tell me if you want the kernel ... I've modded Adin's kernel (OOS) and Lightning kernel (LOS).
You will then have to install the nethunter chroot zip and you're good to go.
Click to expand...
Click to collapse
Most definitely would like it! Message me
Arka1n said:
Tell me if you want the kernel ... I've modded Adin's kernel (OOS) and Lightning kernel (LOS).
You will then have to install the nethunter chroot zip and you're good to go.
Click to expand...
Click to collapse
I definitely would like it too !!!
Crappy upload rate so it may take some time...
[WOOT]
Here : https://forum.xda-developers.com/oneplus-5/development/burgerhunter-t3638810 :victory:
OnePlus5
I just got mine and want to do the same. I currently have nethunter on the original oneplus one and it works great. I am hoping it's the same process. Has anyone done it on any of the oneplus phones before? I ask because it took me at least 3 weeks every day after work playing with it. I bricked it maybe 3 times and OnePlus team remotely fixed it and finally I got it working. It wasn't easy.
If somebody has, please share your experience. I will try to pull up all of the links I used and videos I watched before I finally got nethunter to boot.
I want to do this to the oneplus 5 so I can use it for nethunter then wipe the onplus one and use it as my phone. Any help/advice is greatly appreciated. I will come back and post the info I used for the oneplus one and anything I find for the oneplus 5.
cheers
Nethunter for OnePlus 5
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 : I 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 you went 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
Then, linking :
Code:
ln -s /data/data/com.offsec.nethunter/files/scripts/bootkali /system/bin/bootkali
Code:
ln -s /data/data/com.offsec.nethunter/files/scripts/bootkali_bash /system/bin/bootkali_bash
Code:
ln -s /data/data/com.offsec.nethunter/files/scripts/bootkali_login /system/bin/bootkali_login
You can remount /system to read-only if you wish to.
7. Next, install BusyBox to /system/bin
Usually, it is installed to /su/xbin.
But we need to install to /system/bin too.
This step is necessary.
8. Now, the Kali shell works fine.
Try running
Code:
#bootkali
in AndroidSU shell and you should be in the Kali shell
You can also open Nhterminal app and select Kali.
9. You may install the other apks now.
Enjoy ~ !!
Unable to start monitor mode error showing pls rply
Whats the problem
---------- Post added at 02:39 AM ---------- Previous post was at 02:16 AM ----------
I m using oneplus 5 naughat 7.1 rom and kali nethunter installed.
But problem in monitor mode
Error:Newly created monitor mode interface wlan0mon is *NOT* in monitor mode.
Removing non-monitor wlan0mon interface...
WARNING: unable to start monitor mode, please run "airmon-ng check kill"
I m trying this command 'airmon-ng check kill' but same problem

Kali Nethunter for OnePlus 6t (request)

Developers please build A Nethunter rom with custom kernel
+1
OnePlus 6 first, we have been waiting longer
BrianNovius said:
OnePlus 6 first, we have been waiting longer
Click to expand...
Click to collapse
They both would interchange with each other I believe, so yes by all means make a OnePlus 6 first
Is this sub forum from the request ???
Kali nethunter
Any chance someone knows how to get Kali nethunter up and running on oneplus 6t
have a look at - https://www.kali.org/docs/nethunter/nethunter-rootless/
i got it working on OxygenOS
Oneplus 6t nethunter
Anyone have installed fully working tedting kali nethunter On oneplus 6t???
Newrooter22 said:
Any chance someone knows how to get Kali nethunter up and running on oneplus 6t
Click to expand...
Click to collapse
Did you manage ro get everything up and running. not only is it possible but basically fully functional
Burot said:
Anyone have installed fully working tedting kali nethunter On oneplus 6t???
Click to expand...
Click to collapse
most definitely yes...
im even taking the time to answer each thread such as this one, under the https://forum.xda-developers.com/oneplus-6t/help section! Thats how tested, installed, and functioning nethunter is on the 6t!
Did you guys see the hard work someone put in to make this request fulfilled?? its out there for you's
Oneplus 6 and 6t are officially supported devices, you can use the nethunter installerto make your own kernel/installer zip for it. All credit goes to DJY-Johanlike, Kimocoder, and the nethunter team for making all of this happen.
Here's a kernel installer I just made with a minimal chroot built in. https://www.mediafire.com/file/80wqc5iotod4ayq/nethunter-oos6-minimal.zip/file
Jfoster1234 said:
Oneplus 6 and 6t are officially supported devices, you can use the nethunter installerto make your own kernel/installer zip for it. All credit goes to DJY-Johanlike, Kimocoder, and the nethunter team for making all of this happen.
Here's a kernel installer I just made with a minimal chroot built in. https://www.mediafire.com/file/80wqc5iotod4ayq/nethunter-oos6-minimal.zip/file
Click to expand...
Click to collapse
Thanks for sharing. If possible, may you please share one with full chroot. Not everyone knows how to build and if you don't mind sharing the steps to build as well, that would be great for the community.
I'll upload full chroot later. Here's directions, copy pasted from https://gitlab.com/kalilinux/nethun...ter-project/-/tree/master/nethunter-installer
To accomplish all of this your going to want to start by cloning into the repo
"git clone https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-project.git"
And here's the installer with a full chroot included
https://www.mediafire.com/file/dkj2..._190515-oneplus6-oos-ten-kalifs-full.zip/file
Kali NetHunter Installer
The NetHunter Installer is basically just a zip file generated by build.py from the folder layout contained here.
Follow the instructions below to create the installer zip.
All you have to do is flash it through TWRP for a complete Kali NetHunter environment and chroot on your device.
The boot image patching script is based on LazyFlasher's kernel-flasher branch.
Instructions
Preparing the environment
Before building, you will need to initialize the devices repository.
As NetHunter devices have an immense binary history, you will probably want to use a shallow clone. (--depth 1)
To do this, run the command:
./bootstrap.sh
Build command examples
Example building for the Nexus 5 (hammerhead):
"python build.py -d hammerhead --marshmallow"
Building the kernel only (useful for testing if kernel works):
"python build.py -d hammerhead --marshmallow -k"
Building without the kernel (useful for just updating apps):
"python build.py -d hammerhead --marshmallow -nk
Building with adding a full chroot (add kalifs-full.tar.xz to rootfs/[arch]/kalifs-full.tar.xz):
"python build.py -d hammerhead --marshmallow --rootfs full"
Create a release version:
"python build.py -d hammerhead --marshmallow --rootfs full --release v3.0"
Force download all third party apps:
"python build.py --forcedown"
Building the uninstaller:
"python build.py --uninstaller"
Show help:
"python build.py - - help"
---------- Post added at 12:48 AM ---------- Previous post was at 12:43 AM ----------
So for the oneplus 6/6t, after you run the bootstrap.sh command, you'd run this for a basic kernel installer:
python build.py -d oneplus6-oos --ten
Also, people have found the installer works better if you disable AVB and force encrypt with Magisk before flashing the installer
which version of oos is everyone flashing this on?
crashnova said:
which version of oos is everyone flashing this on?
Click to expand...
Click to collapse
OOS 10.3.4 iirc. I have actually flashed it on crDroid and it was immaculate......I've also made a test kernel for RR Q that seemed to work great at first but shortly after ran into issue that just simply was a no go IMO. That RR Q just don't have the features that others normally have and it a bit thwarting, either way I'm currently redoing that and hopefully will have a installer up and going before long....I got a pretty free week this coming week.
xenomorph318 said:
OOS 10.3.4 iirc. I have actually flashed it on crDroid and it was immaculate......I've also made a test kernel for RR Q that seemed to work great at first but shortly after ran into issue that just simply was a no go IMO. That RR Q just don't have the features that others normally have and it a bit thwarting, either way I'm currently redoing that and hopefully will have a installer up and going before long....I got a pretty free week this coming week.
Click to expand...
Click to collapse
I'm using crDroid now. I used the command python3 build.py oneplus6-oos --ten and I got an error. It said
Hash mismatch! Error: There was a problem downloading the file "update/data/app/NetHunterTerminal.apk" and the terminal .apk does in fact download manually. Not sure if anyone else had this problem.
I'd be interested in how you got Nethunter running on crDroid if you don't mind giving details. Thanks!
You could always just build a kernel only zip, put a -k at the end of the build command.
"python build.py -d oneplus6-oos --ten -k"
I'll try that later. Thanks for the advice. I used the full chroot file you shared in this thread and I'm now running NetHunter!
Is there a checklist of working/non-working features for this device?
I know the Kali official site has a testing checklist. I'm going to run through that later. But it would be nice to see what others have tried already.
[Edit] I added the firmware download from Magisk and my external adapters both showed up. (Search "adapters" in Magisk under "downloads.")
I used a USB C to Standard USB plug and it worked. My other cables didn't for some reason.
TIP. There's a shorcut in the custom scripts section that will put you in monitor mode by just pressing run if you're too lazy to type out the command in the terminal.
I tried the Wardriving feature in Nethunter, but no networks popped up.
I'll keep trying and post the results.
Thus far the kernel supports all of my external wifi adapters without any modification necessary. Those adapters are :
88xxau, rt2800, and ath9k_htc. Also supports a Broadcom bluetooth dongle without any modifications

Debian Buster WSL2 Kernel / ROM Builder [replaces VM]

Okay I don't have enough time to update this whole description, no one volunteered to host the VM so now I only have a Debian Buster WSL2 (Windows 10 latest) build environment. You can make kernels and ROMs from it. It has a built in XFCE4 and all the features listed below. It will build kernels for you from source and place them in AnyKernel3 zip files ready for flashing in the ~/ directory. Build scripts are provided for Op8T 5G custom and GPUOC RadioActive Kernels from my GitHub (modded for performance + battery). You can use this guide and get full audio and a GUI and all you need to build.
Try out this build for Debian Buster for WSL2:
First you need to ensure you are on a recent build of Windows, go to windows Updates in settings and download the latest.
Next open a Powershell Command Prompt in Admin mode. Type:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart
Restart your PC, then get back into an Admin Powershell prompt and type:
wsl --set-default-version 2
Next you can download this tar.gz distribution, it's quite big (6GB zipped -> 14GB unzipped). Apparently you can import a tar.gz directly, so I changed it from a .zip file to .gz: https://mega.nz/file/DkARXIjD#hGu8TjxaA__YrRsfqfWJw9-2ViyyntyK5U8JdClor6A
Easily move WSL distributions between Windows 10 machines with import and export!
wsl --import <DistributionName> <InstallLocation> <Full path to .tar/.tar.gz FileName>
After import, you should type: login: user password: user (also the sudo password) change the Global Git settings to your own email and username.
Open the command line.
Set your username: git config --global user.name "FIRST_NAME LAST_NAME"
Set your email address: git config --global user.email "[email protected]"
Then if you want to set up SSH between your WSL2 instance and NoMachine, download NoMachine here for your host PC: https://www.nomachine.com/download/download&id=8 then follow the steps to generate an SSH key, which will be located at ~/.ssh.
ssh-keygen -m PEM -t rsa -b 4096
Use the directory default ~/.ssh/
Then copy this file: ~/.ssh/id_rsa.pub to ~/.nx/config/authorized.crt
In the NoMachine GUI, you should select Configuration, Use a key based authentication key which you provide, then provide the path to the private key \\wsl$\debian\home\user\.ssh\id_rsa and check the box Import the key to the connection file.
To get to the XFCE4 GUI, you should type login: user password: user, then run /.nomachine.sh
It will post the IPV6 address you need to enter into the configuration into NoMachine on Windows 10. It changes every time you open it (WSL2 problem).
Now you should be able to connect to the GUI and use all the dev tools built in. Or you can just use the command line if you're more comfortable there. You'll probably need to do some more Googling to get everything setup the way you like. There are 2 examples in this file for an Op8T RadioActive modded kernel from my GitHub repos with a ./Build-Clang12.sh script you can use to see how to build a kernel. It it fully automatic. It will generate the zip specified in that file in the ~/ directory which can be flashed to a device via EX Kernel Manager or FK Kernel Manager. Best of luck!
Great job mate. I hope this is the kick off and boost up kernel development on the MI9 ??
Now THAT is what XDA is all about.
I'd like to get in to this type of development but simply don't have the personal time right now.
Hope this helps boost community support a bit.
This must've taken some time. Hats off to you sir.
kickassdave said:
Now THAT is what XDA is all about.
I'd like to get in to this type of development but simply don't have the personal time right now.
Hope this helps boost community support a bit.
This must've taken some time. Hats off to you sir.
Click to expand...
Click to collapse
Thanks Dave - this is the absolute easiest way to build a kernel. Yes it took forever to get working, a lot had to do with bad Xiaomi source code and Android 9 package requirements for building kernels. You can simply download, install, click Goto Build, click on QClang8_Build, copy/paste it's text from Geany into the open terminal, sit back and wait for the build to finish. Then once it completes, you click on Built Kernels and you have your image ready. A few more steps obviously outlined in the post to transfer to the host machine (cp Image-dtb /media/sf_VMxfer) and pack via Android Image Kitchen, copy to the device, and flash via TWRP. Most features require Magisk patching as well to enable altering in a kernel manager. The mentioned repo (mrslezak) has Fsync toggle, 830GPU overclock, and F2FS file system support (Mauro TWRP has just enabled it, so I'm using it now). I should note as well that this kernel has only been tested on MIUI and Xiaomi.eu builds thus far (anything based on Xiaomi MIUI should work - MIUI Global Dev, China Dev, Xiaomi.eu, MiGlobe, RevolutionOS, etc. as long as it is Android Pie).
I'm waiting on others to jump on board!!!! Hopefully it happens
Excellent guide, will work for almost all pie devices!
Great work OP :highfive:
Regards,
acervenky
Hi, @mslezak @acervenky Can you help me to build kernel for Stock Miui 10 for K20/Mi9t . I followed your guide setup all requirement i just changed the device code name from cepheus to davinci everything went well kernel complied and also created the boot.img with AIK but after flash it is through back me to recovery.
Can you Please help me with this.
@acervenky fixed that by applying the patch in the Desktop Mi9_Build_Tools/Required_Patches_to_Compile_Xiaomi_Source/cosmin_kernel-module.c copy that to /kernel/module.c, he can chime in here. Or check out his repo he has one on Github that compiles already QUAX kernel I believe with a bunch of stuff added already over stock.
Good job. Compiled a kernel for mi9t pro (raphael) with your detailed guide.
Can you help with "make modules" command?
I need to make xt_HL.ko module, but it not compiling ((
Not needed anymore, made it successfully.
Can you compile q kernels with this?
asgardpark said:
Can you compile q kernels with this?
Click to expand...
Click to collapse
Yes! Just don't replace .dtsi and module.c files for now.
Regards,
acervenky
New Q build VM coming soon. GCC10 x64 and Arter97 GCC9 x32 toolchain.
Just a notice here I have a VM almost ready to upload that can build Mi9 source. It's a ton of patches to stock code but I'll setup a repo with them already applied.
Can i use anykernel to make a flashable zip? Or do i have to use a diffrent approach?
https://mega.nz/#!voJEGIRC!r4FcV6zUlVbFExcidhL9JmgVZlu3IscYH-S5XlnTUJI Android Q VM - expands to 40gb on your hard drive so you don't run out of space. Builds a GCC10 patched version of Xiaomi Cepheus and Raphael kernels from my repo, forked from Xiaomi and commits outlining every step needed to get it to build. https://github.com/mrslezak/Cepheus-Raphael-Q-GCC10
Yes AnyKernel3 is the easiest
asgardpark said:
Can i use anykernel to make a flashable zip? Or do i have to use a diffrent approach?
Click to expand...
Click to collapse
Sure AnyKernel3 is easy, take someone's kernel zip, insert your Image-gz.dtb or Image-dtb into the root of the zip, delete the other kernel, and you should be able to flash it.
got some compile errors today when i tried your wm
/home/user/toolchains/aarch64-linux-elf/bin/aarch64-linux-elf-ar: kernel/resource.o: No such file or directory
I'd first try a: make clean; and: make mrproper;....
But here's more info:
Double click the GoTo Build icon, a terminal will open in the source directory. Then in the terminal: cp /home/user/Desktop/Build GCC10 Cepheus.sh .; chmod +x "Build GCC10 Cepheus.sh"; ./"Build GCC10 Cepheus.sh"; Once done the kernel will be in /home/user/Cepheus-Raphael-Q-GCC10/out/arch/arm64/boot/Image.gz-dtb. /out9TP/ for Raphael, just substitute the build script you need.
If it then still won't build, you'll have to grab the repo again. Type: git pull
Or the safest is a complete re-download: cd ..; rm -rf Cepheus-Raphael-Q-GCC10; git clone --depth=1 https://github.com/mrslezak/Cepheus-Raphael-Q-GCC10.git and repeat the prior copying of the build script to the source directory.
I tested this last night and it worked. If I tried to just drag the script into a terminal window it failed. There could be some dirty files in there not sure how that happened, but deleting and cloning again definitely works. I built both Cepheus and Raphael kernels last night in the VM off a fresh clone of the repo. I'd update I but it literally takes 6hrs + since the files are huge and take forever to compress and upload to Mega. And I have to delete so much off my VM and SSD just to do it. This way you learn something too
I first drag n dropped the file when i got the error, then i remembered when i compiled kernels for my raspberry pi's it also failed if i draged n dropped my build script so i did it the proper way and it worked
Thanks for your WM it's working great
mslezak said:
https://mega.nz/#!voJEGIRC!r4FcV6zUlVbFExcidhL9JmgVZlu3IscYH-S5XlnTUJI Android Q VM - expands to 40gb on your hard drive so you don't run out of space. Builds a GCC10 patched version of Xiaomi Cepheus and Raphael kernels from my repo, forked from Xiaomi and commits outlining every step needed to get it to build. https://github.com/mrslezak/Cepheus-Raphael-Q-GCC10
Click to expand...
Click to collapse
Could you upload the VM to Google Driver? Thank you!
q659503934 said:
Could you upload the VM to Google Driver? Thank you!
Click to expand...
Click to collapse
Yeah if you buy me Google drive space I'd be more than happy to upload to Google Drive. I'm out of space man. If you run Windows 10 Preview WSL2 I have a 3.2GB build that kills everything else out there.
mslezak said:
Yeah if you buy me Google drive space I'd be more than happy to upload to Google Drive. I'm out of space man. If you run Windows 10 Preview WSL2 I have a 3.2GB build that kills everything else out there.
Click to expand...
Click to collapse
Do you have WSL2 tar file that can build Kernel?

Categories

Resources