yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Android Development] LOGICAL8989:
@JaK3sT Ive been struggling with this same problem for a couple weeks, your the first person who ive seen with the same issue.

Can I ask you a couple things before I give it a shot?

At what point did you copy the files over, after flashing the vendor.squashfs?

Or did you do it after you copy fstab to /system_root/, and format data?

The format data would erase it right, and the last thing did you do it from TWRP or after you boot up the phone and do the setup?

Any explanation would be gold to me at this point! and thank you again for solving this one for me haha!!!
[Nexus 6P Android Development] JaK3sT:
@LOGICAL8989 I've copied the libs and nexutil after the vendor.squashfs, fstab, format data and subsequent Android setup.

I just went back into TWRP and copied the files to their respective places, before flashing the NH image.

Also to be noted, in TWRP the locations are the same as in the initial instructions, but you need to navigate first into "/system_root".

For example : /system/lib64/ is /system_root/system/lib64/ in TWRP.

Hope it helps
[Nexus 6P Android Development] LOGICAL8989:
@JaK3sT so

adb shell "twrp mount /system_root && twrp remountrw /system_root && cp /sdcard/libnexmonkali.so /system_root/system/lib64/kalilibnexmon.so && cp /sdcard/libnexmon.so /system_root/system/lib64/ && cp /sdcard/nexutil /system_root/system/xbin/ && chmod a+x /system_root/system/xbin/nexutil

that look about right? i wanna triple check my homework here.
[Nexus 6P Android Development] JaK3sT:
Yes looks right, but to be honest i personally haven't used the commands when copying😅. I literally used TWRP's file manager and copied them manually.
[Nexus 6P Android Development] LOGICAL8989:
wow you just made my life alot easier haha
[Nexus 6P Android Development] grm17:
I have been struggling with a few things these past days.

I can´t get postgresql working (no postgres -> no msfconsole). The error message says "FATAL:could not create shared memory segment." and the problem seems to be, that System V IPC is not activated in the kernel. I tried to fix this by myself but I had no success in building a flashable image including the fix.

KeX Server is not starting. The setup process seems to run smoothly as does the starting process. But afterwards I refresh the KeX server status in KeX Manager and it says "STOPPED". It is also not reachable via the NetHunter KeX App.

Everything has been installed as it is pointed out in the first post and later the NetHunter Image has been updated with 2021.1. Help would be much appreciated.
[Nexus 6P Android Development] LOGICAL8989:
for the record dont try

adb shell "twrp mount /system_root && twrp remountrw /system_root && cp /sdcard/libnexmonkali.so /system_root/system/lib64/kalilibnexmon.so && cp /sdcard/libnexmon.so /system_root/system/lib64/ && cp /sdcard/nexutil /system_root/system/xbin/ && chmod a+x /system_root/system/xbin/nexutil

resulted in twrp locking up on me with some errors.
[Nexus 6P Android Development] ghostyface:
I followed every step of this guide but whenever I try to flash the nethunter image i keep getting this error: unable to mount /system as rw, can anyone help me plz?
[Nexus 6P Android Development] LOGICAL8989:
Hey, in TWRP settings, go to the Mount tab and make sure you uncheck "mount system as read only".

Also make sure "system" is selected.

Did you do a Data wipe(where it makes u type "yes" you are sure you want to wipe).

Another thing to consider, i was unable to flash from the attached usb c flash drive,

I had to ADB push /PATH/TO/Nethunter, or drag the file over to the nexus storage in file explorer.
[Nexus 6P Android Development] ghostyface:
I found that this error is caused by using the newest version of twrp, now I flash with twrp 3.3.1 and it works fine. Thanks for the tips!
[Nexus 6P Android Development] UsPdSr:
The requirement for this setup to work is a specific FBE or FDE based custom recovery, as yesimxex already stated in the OP.

So yeah.

Though it seems that the recent release of Twrp for several devices indeed have bugs.

@devil56

What's up?
[Nexus 6P Android Development] UsPdSr:
Hm, where should this option be?

Could you attach a screenshot, please..?

That shouldn't happen.

I can't remember ever haved a problem with the usage of a USB-A to USB-C Otg-adapter & a USB drive with this setup.

Are you sure, that your hardware is completely fine?Including the USB-C slot on the Nexus 6P?
[Nexus 6P Android Development] UsPdSr:
Is this a requirement?

You wrote in the instructions, that the prior installation via fastboot of the bootloader, the radio and the vendor image to be sufficient were?!
[Nexus 6P Android Development] wogun101:
Hi @yesimxev,

Thank you for you work.
[Nexus 6P Android Development] RonTheRedHat:
What version of Magisk that you used for this project? I followed step by step your instruction but it is stuck at booting with kali linux logo.

Thank you!
[Nexus 6P Android Development] yesimxev:
Well yeah, I had problems with different stocks so going with the latest eliminated the issues - which I don't even remember what were even. It all came from the Android 8.1 times to match up with the kernel, when I jumped onto LOS17.1, I still thought better to be latest stock
[Nexus 6P Android Development] yesimxev:
v21.4 and v22 by that time. Stuck at bootlogo could also be issue if the latest stock hasn't been flashed before flashing anything else
[Nexus 6P Android Development] RonTheRedHat:
I figured out the problem. I re-flashed the Nethunter following the instruction without flashing bootanimation files and it works. After that, I tested the monitor mode using internal wireless card and working great ( However, I can't change the channel).
[Nexus 6P Android Development] Rj5533:
Help please on the Kali it says hid status kali dev/hidg0 on the his status. Please help
[Nexus 6P Android Development] Rj5533:
Help please it says this
[Nexus 6P Android Development] alscal:
Alright, I'm throwing in the white towel; now I am not an Android Developer in the slightest, while regardless of being knowledgeable in other PC related stuff, I can't understand this for the life of me.

I'm running TWRP 3.3.1-0, running exactly "nethunter-2021.3-angler-los-ten-kalifs-full" - with the already partially patched stuff, an partially patched nexmon/nethunter - what I need help with, is being able to fully use NetHunter via Patching the fw_bcmdhd.bin firmware via Nexmon itself, now supposedly new Nexmon via GitHub you can install newer versions of it, I'm trying to install version 7_112_300_14_sta as I hear installing that can fix the "Phy0 with no interface" issue, I was able to follow most of this Guide, however, when I try to

'su -c "mount -o rw,remount /system"

For some reason I get " '/system' not in /proc/mounts", I've tried remouting nearly everything, running commands via, mount | grep system, df -h, an "busybox mount -o remount,rw –t <-type> <-path> /system" from another guide, double checking everything is set to rw, I still get Error: "File-System Read Only", It's also not stock firmware, currently NH installed over LineageOS 17.1 for Nexus 6P (angler)

It would be nice if I could have someone help a little so I'm not stuck learning Android Development in the full myself
[Nexus 6P Android Development] UsPdSr:
You dont't have to patch anything.Neither do you have to set up and install the Nexmon framework from source. ;/

If I understand you correctly, did you attempt to install it over Lineage 17.1, which isn't the right proceeding anyway.

If you look over the chart at operating system, you see that a stock rom is required.The latest supported one for the Huawei Nexus 6P is the 8.0.0 (OPR6.170623.019, Sep 2017), btw.

Here you have some instructions (in case you want to start from scratch with said rom and without any prior modifications)

Cannot build for Nexus 6P nougat 7.1.2 · Issue #387 · seemoo-lab/nexmon

l am building this on Kali Linux x64 2020.1 I correctly setup NDK and cloned the Nexmon from GitHub but when I try to build it for nougat 7.1.2 (7_112_201_3_sta) It fails with error message: COMPIL...

github.com

install nexmon nexus 6p android 8.0.0 and 8.1 · Issue #195 · seemoo-lab/nexmon

hi, I got an nexus 6p and I want to install nexmon. I just flash my device with this firmware: 8.0.0 (OPR6.170623.019, Sep 2017) https://developers.google.com/android/images. After I install the ap...

github.com

The right command would be

The easiest method is to insert the Nexmon files separately into the respective system folders while you are still in Twrp.

You have to do this before you flash Magisk, if I remember correctly.

If you come across any more issues let @yesimxev or me know. (y)
[Nexus 6P Android Development] alscal:
Ah yes, I was trying to run it on LOS17.1, I had flashed it with Stock Rom before, It was originally running 8.1 Oreo, but I had upgraded to Android 10 as while I was looking at the files via Kali NH Android 10 ver, I wanted to upgrade to latest ver which is why I was trying to patch Nexmon, I did hear it was partially unstable, but seeing how there were partial guides on the matter already I thought it would be a simple process of just Copy/Paste/Patch some files. I guess Android 10 isn't ready yet. Thank you though, will make my life a 1000x easier.
[Nexus 6P Android Development] UsPdSr:
Regardless if you decide to patch the rom by yourself, remember that you have to setup the complete environment for Nexmon after the examples I provided above, but most importantly is the completed setup of the respective Kali Nethunter installation (rom,kernel, rooting, chroot...).

I don't recommend to try it with this rom, because of google's tightened security regulations.Although the 8.1 android factory one is extremely laggy and unstable.

In case the android version isn't that important for you, would I recommend the Nougat releases (7,1-7.1.2), if you want a reliable and stable Nexmon function plus beforehand can you install the offical nougat kernel from the nethunter repository @ gitlab.

I suggest this, because a additional modification of the present setup of the android ten would be very complicated.Especially for a beginner. :)

Many heaps

Annotation

@alscal Perhaps this would be something for you...

GitHub - RoninNada/libnexmonkali

Contribute to RoninNada/libnexmonkali development by creating an account on GitHub.

github.com
[Nexus 6P Android Development] yesimxev:
This should be done when running in Android, not TWRP
[Nexus 6P Android Development] LRitzdorf:
Hello! I realize this thread isn't terribly active anymore, but I have a bit of a difficult issue to ask about.

I've recently gotten my hands on a Nexus 6P, explicitly for the purpose of installing NetHunter, and it's been... interesting. I initially got everything working satisfactorily on top of the stock Android 8.1, flashed from a fresh factory image. Then, I discovered LOS, and decided to switch to that. I followed the instructions here exactly, and the ROM installation seemed to work (though I did receive a few errors about not being able to mount `/vendor` -- I assume that's normal?).

However, when I try to install the Kali chroot, I run into problems. First, if I choose to let the chroot manager download the latest kalifs archive, I get a checksum mismatch after the download completes. However, this also occurred on Oreo, so I ignored it and installed the chroot from the downloaded archive. That completes with no errors, but then things get interesting. When I open the Kali shell (via NetHunter Terminal, as usual), it initially kicks me out immediately, with a message about not being able to run `zsh`. If I use the NetHunter app to run something in the Kali shell (like the boot animation commands), those work properly, and I can then open the Kali shell successfully. Even then, though, I get an initial error about not being able to access the `.zsh_history` file, and I'm not allowed to run any commands -- even `ls` yields a "permission denied" error. And yes, this is with the phone rooted (via Magisk), with the terminal running as superuser (I see the "root access granted" toast from Magisk when I start the session), and as the Kali `root` user (displayed in the prompt). By all indications, I seem to be root, but just about everything I try to do in the Kali shell gives me a permission error.

It's worth noting that I can run commands as root in the AndroidSU shell (started via NetHunter Terminal), so this issue seems to be confined to the Kali chroot somehow. I'd be happy to provide further relevant details or try any suggestions. Thanks in advance!

(I've also asked about this on the NetHunter forums, at https://forums.kali.org/showthread.php?65840-quot-Permission-denied-quot-in-NetHunter-Chroot-(LOS), and received confirmation of the issue from one other user so far.)
[Nexus 6P Android Development] yesimxev:
Have you tried to flash the latest zip from the Kali website? I'm adding it to the thread, would be awesome if you can try https://kali.download/nethunter-images/kali-2021.4/nethunter-2021.4-angler-los-ten-kalifs-full.zip
[Nexus 6P Android Development] LRitzdorf:
Yep, that was part of the process I originally used. I'm a little busy for the next few days, but I'll try again this weekend, making sure to use that zip.

Also, just to be sure, I'm using the LineageOS 17.1 2020-08-19 image (the latest version in the list at https://androidfilehost.com/?w=files&flid=302684, which was linked from the LineageOS page, which the original post here links to in turn). Is that a version that should be compatible with NetHunter on the Nexus 6P?
[Nexus 6P Android Development] yesimxev:
Sure, yes I used https://androidfilehost.com/?fid=8889791610682919442

Usually /vendor issues when flashing happens if wrong TWRP used. Try the FBE edition from the lineage xda dev page. https://drive.google.com/file/d/1axm3GVbTKypUdQAuYubNknJX4wKRFIec/view
[Nexus 6P Android Development] LRitzdorf:
Ah, that looks like my issue. I'm relatively new to in-depth Android development, so I didn't even think to look for an FBE variant of TWRP. I'll definitely try that tomorrow and come back here with my results, but I'm guessing this will fix it. Thanks in advance!

(Also, I do remember seeing warnings from TWRP about FBE support earlier... well, hindsight is 20/20 :) )

EDIT: Yep, that did it! I now have a fully functional NetHunter install. Thanks for the tip!
[Nexus 6P Android Development] AeonAnonymous:
So I'm (obviously) on hauwei nexus 6p w/ los 17.1 + NH by way of following this guide. Firstly, thanks to all the devs and helpers on here, you guys have been saving my arse for years lol. Second, I've got everything (included hid) working properly, with the exception of my external wifi. I'm using an AWUSO36NH. nethunter sees it and when I run LD_PRELOAD=/system/lib64/kalilibnexmon.so hcxdumptool -i wlan1 --enable_status=3 it seems to start properly, but before I can rec an data it goes to 'failed to read packet: Network is down" and if i leave it running for a bit longer it starts to give errors 'INTERFACE IS NOT ON EXPECTED CHANNEL'. It seems like my wifi keeps dc'ing/reconnecting from the phone and I'm trying to figure out if this is a NH problem, or an otg problem. Any help will be greatly appreciated. (I know it's dropping randomly every few seconds because sometimes when i run the command it'll say that there is no wlan1)

Upd: this is my usb -> C adapter i'm using: https://www.ebay.com/itm/174207022656?chn=ps&_trkparms=ispr=1&amdata=enc:1UcPAO8viTamEBRPW7RKs2A89&norover=1&mkevt=1&mkrid=711-213727-13078-0&mkcid=2&itemid=174207022656&targetid=4580702891777578&device=c&mktype=&googleloc=&poi=&campaignid=418640321&mkgroupid=1233652283797640&rlsatarget=pla-4580702891777578&abcId=9300602&merchantid=51291&msclkid=141aa557f4bb12da9320c75e952355eb

Edit: I used the same c to usb adapter but tested a simple mouse and can confirm that power to mouse kept dc'ing and rc'ing every few seconds, same as wifi adapter. Assuming it is the otg adapter then?

Update: It turns out there was some wacky way in which i needed to insert the adapter lol, what i found was i had to plug the adapter in by itself first, then plug the usb wifi into the adapter, if i had it all assembled before and plugged it into the C port on the phone it wouldn't power it up....odd, isn't it? And even odder is that it dc's when i have plugged it in logo up for the c to usb adapter. When logo is down it's prefect, i've tested repeatedly and that was my issue....super weird.
[Nexus 6P Android Development] yesimxev:
Most likely lightly worn OTG or the phone's usb connector itself. I have similar issues with simple usb to pc on OPO, happens randomly so it just flicks connected and disconnected in 3times per second. That's older anyway though
[Nexus 6P Android Development] GooSeLaX:
Followed the steps in first post to install the official Nethunter 2022.1 zip.

Everything seems to work fine, thanks for the guide.

However, I had to copy the Nexmon libs before I rooted with magisk and ran the NH installer.

Like the guide mentions, when I tried to do this after magisk and NH I would get the system partition is out of space problem.

Once more, a thousand thanks for this guide.
[Nexus 6P Android Development] yesimxev:
You're a champ. I'll turn the thing back by flashing Magisk as a last step as it was before. Not sure why it locks the system, even bootkali is missed with it. Thanks!
[Nexus 6P Android Development] digiuseppefederico:
hi guys.

Any suggestion about postgresql not working?
[Nexus 6P Android Development] yesimxev:
What's the error you have?
[Nexus 6P Android Development] digiuseppefederico:
I've followed the exact steps of the first post to install NetHunter over Lineage in a Nexus 6p different times but everytime at the end I was unable to start postgresql due to a shared memory segment error.

At the end I've tried to flash the Re4son kernel 3.10.108 over the installed NetHunter and it seems to have solved the problem.

Now I have encountered a couple of new issues.

First searchsploit in NetHunter app doesn't start (the message feeding exploit db seems to last forever)

the second one is that the nexutil files installed and working before flashing the new kernel seems to have disappeared.

maybe I have to invert some steps in flashing...
[Nexus 6P Android Development] digiuseppefederico:
At the end it seems that following the guide of the first post the installation of NetHunter was missing hid feature, searchsploit and postgresql.

Flashing the Re4son kernel seems to have solved hid and Postgres.

Before installing the Re4son kernel the one I've found in the official NetHunter image was Kali Linux 3.10.108-gebc54112f07
[Nexus 6P Android Development] yesimxev:
Re4son kernel is the one we added to the installer. Looks like there was an error at some point of kernel flasher. Recently I noticed that some devices will have the system locked after flashing Magisk. Hence, please flash Magisk as the last step as seen in the steps. In the meantime, I just edited the steps so the Nexmon files should be copied before flashing Magisk (I put it before NH step now). Also for proper app functionality, see the latest installer, the original link was also pointing to the old one. https://kali.download/nethunter-images/kali-2022.1/nethunter-2022.1-angler-los-ten-kalifs-full.zip

Searchsploit is fixed after 2021.4 release. Remember to update NetHunter app after flashing if there's any new versions since release, start the app, and chroot in the app. Then do a final reboot before trying any features
[Nexus 6P Android Development] digiuseppefederico:
hi Yesimxev.

this is what I've done this time..

I've installed nexmon files before flashing NetHunter.

I've flashed Nethunter 2022.1

I've flashed magisk

I've rebooted in to system and have updated NetHunter, than updated magisk (it was essential to open NetHunter app) than I've entered NetHunter app.

inside NetHunter app I've noticed that the kernel was the Kali-linux one but not the Kali-linux_Re4son one and that there are no hid devices listed.

I've rebooted into recovery and flashed the Re4son kernel.

I've rebooted into system and have entered NetHunter app.

The kernel was the Re4son one this time.

hid devices was listed.

I've started chroot.

I've checked that in android su terminal there was nextutil and it was there.

then I've tried to start postgresql and use searchsploit but without success.
[Nexus 6P Android Development] digiuseppefederico:
After other test I've found that:

-following the guide and, after installing nexmon, flashing Nethunter first and magisk second, than updating nerthunter app and rebooting like you suggested me, the resulting installation doesn't have Re4son kernel, postgresql doesn't start, hid devices is not shown and searchsploit is not working.

-if I follow the guide and always after installing nexmon i flash nethunter than try to flash the Re4son kernel, I receive an error about the failure in the kernel install.

-if I follow your advice and after the nethunter app update and system reboot I reboot again into TWRP and flash the Re4son kernel I have the right kernel and hid devices but no postgresql and no searchsploit working

-if, after flashing the kernel in the previous point, I re-flash nethunter over nethunter, I have the right kernel, hid devices and postgresql working but searchsploit doesn't work.

This is the best configuration I've obtained.

no searchsploit working.

I don't know how it is possible if you said that it works for you.

it's very strange...

any suggestion?

Tanks for your help
[Nexus 6P Android Development] yesimxev:
What Magisk version do you use? Searchsploit had an issue a few months ago but it shouldn't have any now. It works on my phone (not 6P). I think we'll need a kernel flash after Magisk then. Some phones have this when you flash Magisk, it flashes back the stock kernel
[Nexus 6P Android Development] 463n7.57:
Alright, I'm at a loss. I can not seem to get monitor mode working. I have followed the instructions 3 times now I have used the latest TWRP and the TWRP with FBE linked in the thread. I have tried monstart-nh and get command not found. I have used the Start wlan0 in monitor mode built in command and get what is shown here:

I'm not sure what else to do could someone help point me in the right direction? I'm sure it's something obvious I'm missing but I followed every step given in the post.

Thanks, for all the work on this by the way it's pretty awesome.
[Nexus 6P Android Development] digiuseppefederico:
Hi yesimxev.

After a while I've tried to make a fresh install of nethunter on stock android 8.1 and

i've seen that here searchsploit is working fine so at the end the issue is only on lineage os.

Maybe the lineage version of nethunter hasn't been patched like the stock one to solve the searchsploit issue.

Can you suggest me where to look to fix it?

Thanks for your precious advices.
[Nexus 6P Android Development] Agairty3:
Is this working? Is there a newer streamlined install somewhere?

I dont understand why this isnt just a single flashable rom after Flashing stock 8.1

Kali website says Nexus 6P Native support but still seams like lots of problems? Or am i missing something
[Nexus 6P Android Development] FreshGaro:
Awesome! I've managed to flash everything as directed and the results are very cool. Like the post says, EAPOL packets (at minimum) have issues, meaning no reaver, but other standard tools work.

Internal card's monitor mode crashes the WiFi on occasion, more often when the device is about to sleep due to inactivity. I've made some scripts to constantly check and maintain monitor mode (can share at request), but it's much improved compared to a couple years ago.

Some channel issues still occur, seems like receiving packets meant for the wrong channel/not filtering out accurately, but when you know how to use the multiple terminal environments together, it makes the phone a fantastic package.

If there's any plan to fix the EAPOL issue, i.e. someone working on it or at least knows how to do it, I'd be interested. Would a firmware or libnexmon.so from a different source be the answer, or is it a kernel issue not passing packet headers properly?