yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Android Development] Midd741:
These files needs to be copied BEFORE flashing Nethunter, otherwise you will have "no space left on device" error. This is because of a small number of inodes on system partition filesystem. What you can do, as I mentioned a few posts before, once you have installed LOS 17.1, flash Magisk from TWRP, reboot to system, install Magisk apk, go back to TWRP, mount /system_root and remount r/w with "adb shell "twrp mount /system_root && twrp remountrw /system_root". Then make some space removing audio files (*.ogg files) from /system_root/system/product/media/audio/ folders /alarms , /notifications and /ringtones, but leave /ui files. You will not have alarms, notifications and ringtones but you can use yours mp3 or wav files later.

That way you can release some number of inodes on system partition.

Then copy /firmware folder to /sdcard and create symlink in /system_root/system/etc/ folder with "ln -s /sdcard/ firmware firmware" command.

Then push nexutil files to sdcard with " adb push libnexmon* /sdcard/ && adb push nexutil /sdcard/", do adb shell and do "~ # 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"

Now you good to go with Nethunter flash.
[Nexus 6P Android Development] klofisch:
I found this a bit complicated, so just started over again with a neew setup. I followed every step.....but end up in the same situation. really wierd. Something wrong with the guide? Where do i find this folder: /firmware ?
[Nexus 6P Android Development] klofisch:
ok...running 'LD_PRELOAD="/system/lib64/kalilibnexmon.so"' airodump-ng wlan0 works
[Nexus 6P Android Development] klofisch:
but only once. running it again gives me errors :( "__nex_driver_io: error"
[Nexus 6P Android Development] Midd741:
I can't count how many times I had to go through a whole process to master it, and then to find the way to make Bluetooth Arsenal working :)

You will find firmware folder in unzipped "kernel-nethunter-20230323_130704-angler-los-ten.zip" file in /system/etc/firmware
[Nexus 6P Android Development] klofisch:
this is madness :D Well i got the error that /system_root/system/etc/firmware is a file. I tried to make a directory with the same name, but mkdir refused since there is a file named firmware. So i came to the idea to copy all the stuff to /vendor. But even mounting as rw as mentioned here in the thread it remains read-only.... mmmpfff
[Nexus 6P Android Development] klofisch:
thanks for your patience and support... :)
[Nexus 6P Android Development] klofisch:
ahhh at which point of the process i should flash the kernel....could find anything about it....maybe it is just this
[Nexus 6P Android Development] Midd741:
you can do it on the very end
[Nexus 6P Android Development] Midd741:
Hi @yesimxev , where to report the latest Nethunter app typo/bug?

On BT Arsenal Update the script is looking for package 'python3-bleuz' instead of 'python3-bluez', throwing an error:
[Nexus 6P Android Development] yesimxev:
I fixed on the following day, you can either type in manually to fix the command (when you press up in NH terminal). Or use remove as system app from NH settings tab, reboot, and install this. Fix is coming to Store in ~3 weeks https://t.co/JZSbRmWobQ
[Nexus 6P Android Development] Midd741:
@yesimxev - confirmed, works great.

Thank you for your wonderful work!
[Nexus 6P Android Development] Qazianwar222:
Hello There fellows 😊

@yesimxev and @Midd741 I am having problems running nethunter kex in the new version 2023.4

When I try to setup vnc on local server it doesn't refreshes on nethunter apk or the nethunter kex apk

I tried setting it up locally using the terminal but my phone lags and I am unable to do so

I can't even get the status of server running?

Any ideas or hints would help me out a little bit ☺
[Nexus 6P Android Development] Qazianwar222:
L2ping is also not working
[Nexus 6P Android Development] steso90:
Use this script, work perfectly for me

GitHub - crypt0b0y/BLUETOOTH-DOS-ATTACK-SCRIPT: Script for quick and easy DOS-attacks on bluetooth devices for pentest purposes

Script for quick and easy DOS-attacks on bluetooth devices for pentest purposes - GitHub - crypt0b0y/BLUETOOTH-DOS-ATTACK-SCRIPT: Script for quick and easy DOS-attacks on bluetooth devices for pe...

github.com
[Nexus 6P Android Development] Midd741:
Sorry my friend, can't help you with that as I'm not using it...

However, check this below:
[Nexus 6P Android Development] Midd741:
What I have found - if you want to use your Nexus as a phone sometimes, there is a problem with mic audio with this LOS17.1. Also, when playing music, then you finish, kill music app and put the phone somewhere, it will randomly start playing the music again. Weird. And its unstable. So, digging around I have found ROM without these problems. Use this one:

lineage-17.1-20220501-UNOFFICIAL-angler.zip | by gerard_f for Nexus 6P

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com

Thanks to @gerard_f

@yesimxev - you can recommend this ROM, I've tested it over a few months, everything is working without problems.

vendor.squashfs file attached or this ROM (unzip it first).
[Nexus 6P Android Development] Qazianwar222:
I am using the latest Los 17.1-20200819-UNOFFICIAL-angler.zip

Everything else is working like a charm

I can't use l2ping ,It gives me an error "Can't connect : Permission Denied"

And kex is also the problem

When I try to start vncserver manually using the terminal my phone lags and is stuck on the terminal screen

Nothing makes the phone normal again except forcing it to reboot holding the power button

If you want me to try the specific ROM you mentioned above

I can try that one also?
[Nexus 6P Android Development] Qazianwar222:
@Midd741 I am also having issues connecting to WiFi networks

IDK if the problem is with the monitor patched firmware replaced with the original

When I want to connect to a network like my brother's hotspot

My phone doesn't shows his AP so I may connect to it in Android settings

But when I try to search networks in monitor mode in Kali terminal I see the networks in wifite, airodump etc?

But not in android settings, Am I doing something wrong?
[Nexus 6P Android Development] Midd741:
@Qazianwar222 - sure you can try that ROM. Works better for me.

Regarding wifi connection in Android settings - I noticed that behaviour with my wifi based on OpenWRT router, not only on Nexus but also other devices, not all though.

l2ping - @steso90 mentioned some script.. try this one.
[Nexus 6P Android Development] Qazianwar222:
I tried the script

Its just some commands to make the initially installed l2ping to work

It doesn't effect the bluez tools installed

And for WIFI related issue

Is there any way for me to connect to AP in monitor mode

As I am only able to scan the networks in monitor interface, the ones missing form the android settings are scanned during airodump session or any other but not in managed mode
[Nexus 6P Android Development] Qazianwar222:
Also having battery draining issue
[Nexus 6P Android Development] Midd741:
I don't think monitor mode is designed for connection, rather for reconnaissance/attack. Once set up in monitor mode you can perform some actions, then go back to managed mode (nexutil -m0) and then connect with right creds.

Battery on Nexus is not great, I have replaced the battery and it doesn't last long anyway, especially when working on Nethunter.
[Nexus 6P Android Development] yesimxev:
Yes app will be updated in the next days in NH store.

Kernel 3.10 supports hid but, need for usb arsenal, just use out of the box after kernel/nh zip flashed

Get the battery changed, you have dead cells

I used this when i had 6P https://androidfilehost.com/?fid=8889791610682919442
[Nexus 6P Android Development] yesimxev:
Kex is updated, will be in store soon
[Nexus 6P Android Development] Qazianwar222:
Reflashing your nethunter kernel fixed the Kex issue and now I can use everything as normal

IDK what was the problem but I flashed the kernel on top of nethunter Los 2023.4 zip and I was good to go

I flashed this kernel https://androidfilehost.com/?fid=4279422670115730196
[Nexus 6P Android Development] Qazianwar222:
Sorry to ask but

Is there a way I can reverse engineer a nexmon patched firmware?
[Nexus 6P Android Development] Midd741:
this is most likely because of the small number of inodes on the filesystem, described by me a few posts before. If you will not prepare filesystem as described then after flashing nethunter you will not have kernel flashed, that's why you have to flash the kernel separately (and problems with firmware files on top of that).
[Nexus 6P Android Development] Qazianwar222:
Yup I solved every issue of my device and now the only thing that bother's me is the phone's battery life an some of the programs like deauth using mk3,4 is not working using the internal wifi chip

I also have another question to ask?

is the Y-cable supported? due to less battery life I can't use my phone for much longer so can I be able to use the external wifi adapter and charging the same time?
[Nexus 6P Android Development] Midd741:
"is the Y-cable supported?" - I don't think so, well, usb hub is not, I tried that.
[Nexus 6P Android Development] Qazianwar222:
Well my USB is working like a charm

It wasn't working

Then I typed (sm set-force-adaptable true) and rebooted my phone

And I had no problems afterwards but I never tried the y-cable so that's why I asked 🥰
[Nexus 6P Android Development] w1f1shower:
Hi, guys! I found that there's no way to change MAC in this LOS ROM(latest Pixel Boot's lineage-17.1-20200819-UNOFFICIAL-angler). I mean there's no "use randomized MAC" option in any settings menu. Any ideas or idk🤒
[Nexus 6P Android Development] yesimxev:
Hmm that's a good find 👏👏
[Nexus 6P Android Development] foxy_proxy:
Hello Sir.....please ignore...my english is weak...I have done everything Right on my phone that you mentioned...(Assuming you have flashed stock radio, vendor, bootloader, TWRP, and Lineage 17.1) I have installed it in proper way. After that successfully installed Kali Nethunter with Nethunter kernel as you mentioned. Each and Everything accroding to that.

You can see Custom Kernel for Nethunter and also HID status...but the issue is not HID Attacks are working not wlan0 going to monitor mode...and I install Wireless Firmware for Nethunter but external Wifi Adapters are not showing (wlan1) my Adpater is RTL8188FTV which is mention in Wireless Firmware for Nethunter on github.

and I also install Nethunter latest version (2024.1) for Nexus6P Lineage OS 17.1 but not working and with pervious version..again not working...install it with stock rom Oreo and install Nethunter latest version for Nexus6P for Oreo but again it is not working (HID Attacks, External Adapters with Wireless Firmware). When I click on USB Arsenal. It says (Your Kernel does not support USB ConfigFS!).

How is that possible even though I have installed cutom kernel for Nethunter with all the instrcutions that you have mentioned in your post. I had watches so many tutorial for my phone on YouTube for my specific device (Nexus6P) and also do some research on google, github. in the vidoe it is working fine, but for me it is not lol.

Can you please help me...so that can make it working.​
[Nexus 6P Android Development] Qazianwar222:
Which kernel you're using?
[Nexus 6P Android Development] Qazianwar222:
You have to move the firmware folder manually to /system/etc from the kernel zip to make the external drivers work

And after you have done every thing right

Type this command in android terminal to make the USG otg work

su

sm set-force-adoptable true

I hope this works for you

I am also using a nexus 6p
[Nexus 6P Android Development] Qazianwar222:
Also reboot the phone to make the changes work
[Nexus 6P Android Development] w1f1shower:
Are you using LOS? Can you check MAC changer function or if your phone has MAC randomization option? Because when I was using LOS there was no way to do it😕
[Nexus 6P Android Development] foxy_proxy:
See...the Kernel is build by @yesimxev and @Re4son which is cutom kernel for Nethunter.
[Nexus 6P Android Development] foxy_proxy:
Brother the issue is not HID wroking and not Internal and External Wifi. I have followed all the steps that is mentioned by @yesimxev...I don't know why this is not working...the HID Status is shwon...but not working.

When I click in USB Arsenal...it says (Your Kenrel does not support USB ConfigFS.)
[Nexus 6P Android Development] foxy_proxy:
Bro can you please contact me on this email memagicalmoser8@fearlessmails.com...I'm also from Pakistan...It will be very helpful to me that you guide me.
[Nexus 6P Android Development] foxy_proxy:
Can anyone help me??

@yesimxev @Qazianwar222
[Nexus 6P Android Development] Qazianwar222:
The Mac address is changed in Kali terminal but can't change in nethunter apk

IDK why
[Nexus 6P Android Development] Qazianwar222:
Use

Use the last kernel posted by @yesimxev sir on Android file host
[Nexus 6P Android Development] Qazianwar222:
Yeah I know it's a kernel prob 🙃
[Nexus 6P Android Development] w1f1shower:
That's kinda strange, I cannot even do it from terminal with "macchanger -A wlan0"
[Nexus 6P Android Development] Qazianwar222:
the terminal can make the Mac address change but it's not permanent and undo's to the real one

But once assigned it's assigned
[Nexus 6P Android Development] steso90:
can you add support for rtl8761b bluetooth adapter? 😊 bought a really cheap adapter for 10$ but it only worked with "normal" kali after redirecting some wrong choosen firmware https://forums.linuxmint.com/viewtopic.php?t=382807 @yesimxev
[Nexus 6P Android Development] 808d0l3:
THe new 2024.1 is corrupt on both Lineage OS and Oreo. Everytime IT fails despite how it's flashed or whether you 7-zip. I even built a Kernel and it's still corrupt very poorly made. Not surprised whatsoever. This is a LOS cause.
[Nexus 6P Android Development] 808d0l3:
Can they just make a build that isn't complete **** lol. I've spent 100s of hours and learned a lot during this time but this harder than it should be. I've got Kali on A Raspberry Pi, USB with LUKS encryption, VM, Rootless, Root lite on pixel 2 XL and this is just straight up a waste of time. The best app to use with this is Zanti which can be acquired from Zimperium's website. Otherwise, Csploit and Nethunter commands are borderline pointless. I have Atheros, Realtek, Ralink and TPlink adapters and there's allllways an issue. Internal bluetooth and wifi issues, external wifi adapter issues ( and I know the power limit isn't being exceeded ~500mah) . Tried an OTG Y, powered USB hub, different OTG adapters, flashing it various methods, built my own Kernel. Like do you guys need some help lol. The currrent 2024.1 On kali's website is corrupt and I've tried it on different USB's, adb push etc. No dice. I even went as far as enabling HW tools and BP tools as this will allow

Our efforts are are vain my friend, The most stable app for this build is Zanti lol.
[Nexus 6P Android Development] Qazianwar222:
May I know which device you're using?
[Nexus 6P Android Development] Qazianwar222:
I am also using angler (Nexus 6p) but I didn't installed the newly built chroot as I had the fully upgraded chroot installed and working from the previous build

All I did was downloaded the latest nethunter zip and flashed it without the chroot inside (deleting it) and I had no errors

The only problem I'm having is that I can't use any type of wireless attacks except deauth and monitor mode

Wifite pixie dust attack is not working from the internal wifi chip and I haven't tested the device to capture a 4 way handshake

Some say It do captures the handshake but it's malformed IDK but I never tried except the injection is working

Internal Bluetooth is working also thanks to @Midd741 but I have issues disconnecting a Bluetooth device using l2ping and rfcomm_scan also having bugs

But everything else is working fine for me External adapters and HID attacks work out of the box
[Nexus 6P Android Development] yesimxev:
Ignore, Nexus 6P kernel has HID always. USB arsenal is for kernel 4.x or above. I'll edit the message so it won't be confusing. HID is always enabled. You see hidg0/1 on main screen. Use drivedroid for USB storage emulation, and USB tethering in android for RNDIS
[Nexus 6P Android Development] yesimxev:
I will try to re-do nexmon for this phone, I'll need you for testing. Later this year
[Nexus 6P Android Development] yesimxev:
Good, Android 10 and above doesn't really accept mac change on any device as far as I know
[Nexus 6P Android Development] yesimxev:
Check device id in lsusb and I'll try
[Nexus 6P Android Development] steso90:
bus 001 Device 002: ID 2550:8761 Realtek Bluetooth Radio

Thanks!
[Nexus 6P Android Development] Qazianwar222:
Sure Sir It will be a honour ❤️
[Nexus 6P Android Development] Qazianwar222:
Indeed sir
[Nexus 6P Android Development] test9090:
hello everyone I have problem with install nexmon for huawei nexus 6p lineageos 17.1 when I opened terminal androidsu and using this commend I got messeage.

nexutil -m2

I got message "__nex_driver_io: error ret=-1 errno=4. export LD_PRELOAD=/system/lib64/kalilibnexmon.so nexutil -m2

I got message "CANNOT LINK EXECUTABLE "nexutil": library "libdl.so.2" not found

I don't know where is problem ?
[Nexus 6P Android Development] Qazianwar222:
Make sure your wifi isn't connected to any AP and your wifi is on

And you've given executable permissions to nexutil
[Nexus 6P Android Development] yesimxev:
Did you flash vendor.squashfs?
[Nexus 6P Android Development] Qazianwar222:
@yesimxev

Sir any good news about reviving nexmon for nexus 6p
[Nexus 6P Android Development] yesimxev:
Later this year
[Nexus 6P Android Development] Qazianwar222:
Eagerly waiting for the good news ☺️
[Nexus 6P Android Development] alex93310:
Hi, I am facing an issue where I receive the following error when trying to flash the NetHunter zip:

Error: Unable to extract! The zip may be corrupt or your device may not have enough RAM to proceed. Consider using a smaller installer if it is available.Aborting...
Cleaning Up...
Failed to install Kali NetHunter!Updater process ended with ERROR: 1
I:Install took 12 second(s).

How it happened:

I followed all instructions in the OP until I ran into this error.

What I am using:

ROM: lineage-17.1-20200819-UNOFFICIAL-angler

Recovery: twrp-3.3.1.0-FBE-10+-angler.img

NetHunter: nethunter-2024.1-angler-los-ten-kalifs-full-zip

What I've tried so far:

The error message itself suggested two possibilities:

The zip may be corrupt

I checked my zip file's SHA256 checksum, it does match with the one listed on Kali's website (66ebd98f7171eaa1a809e336954d3ac21323f1e5c5f904d69a7935a041e27000)

I tried installing both from an USB OTG drive, and from my device's /sdcard, both produce the same error.

My device may not have enough RAM

While I find it to be very unlikely that I have dead RAM, I did run the following command on the terminal in TWRP:

cat /proc/meminfo | grep MemTotal

Which returns:

MemTotal: 2866444 kB

I'm not certain whether this number is the correct amount of RAM, however it does seem pretty close to the Nexus 6P's stated 3GB of RAM.

I did a web search on this error, all I can find is the source code of the error message itself, not solutions to it. I'm stumped! Am I missing something?
[Nexus 6P Android Development] Qazianwar222:
Just try to flash a nethunter kernel or revert to stock and do the steps again?
[Nexus 6P Android Development] Qazianwar222:
A kernel without rootfs should be fine I hope so try and let me know what happened?
[Nexus 6P Android Development] Qazianwar222:
Can you use stock at the moment?

The android office factory image for angler 8.1 ?
[Nexus 6P Android Development] alex93310:
As stated in my previous post, I was already using the stock boot image, which afaik is the stock bootloader:

Regardless, I tried everything again, including flashing those stock images again, this time I even flashed the stock system image, and I still get the same errors.

When flashing the NetHunter zip, I get an ERROR: 1 as stated in post #555.

As for the NetHunter Kernel, I don't know what the heck I did but it can be successfully installed now. Attempting to flash the NetHunter zip after installing NetHunter kernel still results in the same error though.
[Nexus 6P Android Development] lappIand:
Hi, could I ask if the

EAPOL packet capture issue is still active or if it has been resolved.

I'm want to buy a phone which supports frame injection and can utilize nethunter. I'm split between a Nexus 5 and a Huawei Nexus 6P. (note: What even is the difference between a Google and a Huawei Nexus 6P if there is any).

Thank you.
[Nexus 6P Android Development] w1f1shower:
As I know, handshake capture is still an issue. I also have issues with deauthentication on Oreo, can't remember if it was on LOS version. I also found LOS unstable, because camera app crashes from time to time, and I can't enable randomised MAC option, maybe because it wasn't enabled in build.

(No difference between them, it's just Huawei made hardware for Google phone, it's just two different names of one phone)
[Nexus 6P Android Development] w1f1shower:
I have both of them. Nexus 5 works fine with internal card and can deauthenticate well, but I have issues with wifite, need to use all the tools manually. I'm not sure about external adapter, but as I know, Nexus 5 only supports tp-link wn722n v1(!)(other versions have different chipsets from v1), and I'll check it in July.

However, Nexus 6p supports popular rtl8812au chipset and maybe tp-link wn722n v2/v3 (maybe I'll check this too, but some people says they are useless for any wifi stuff).

Can't get internal bluetooth work, but Nexus 6p works with Sena UD100 and it should work with tp-link ub400, but I don't have it to check. Can't remember about Nexus 5 (check it when I'll be back in town)
[Nexus 6P Android Development] Midd741:
@w1f1shower regarding your problem with internal bluetooth, if bluebinder doesn't start and throws errors then check post #472
[Nexus 6P Android Development] w1f1shower:
Now my Nexus 6P is on Oreo, should I even try this out?
[Nexus 6P Android Development] Midd741:
bluebinder works on oreo? the file from android10 will not work there for sure
[Nexus 6P Android Development] w1f1shower:
Nah, it’s not working in any combination of Bluetooth and airplane mode turned on/off
[Nexus 6P Android Development] Qazianwar222:
Bluebinder is working but the Bluez tools like l2ping and rfcomm aren't working in Kali chroot IDK why and please help us revive nexmon for nexus 6p
[Nexus 6P Android Development] w1f1shower:
Hey, Guys! Does anyone know the way to change MAC in LOS version?

Might not through MACchanger, but maybe there's any other way to do this🤔
[Nexus 6P Android Development] UsPdSr:
Revision

It seems that the chef has modified the "mon"-scripts.

It is again being said, that 'ten' still a experimental setup is.

I didn't touched another rom above Oreo, until the kernel for Android Ten was released and I was in possession of a second 6P; I am very careful and watch for any aberrations while testing through the newly spreading threads with ten roms.

Just a word of caution.

If you want to stay on the safe side, don't like experimental custom roms, have a thing against BLOD - flash the latest stock and have fun hunting. :laugh:
[Nexus 6P Android Development] yesimxev:
That's not done yet, internal wifi monitor mode is in progress. Therefore, we recommend Oreo for anyone who needs wlan0 mon mode and generally stable system