Development [Pixel7/pro][Kali-nethunter kernel]Mad-Kali-MaxHunter kernel for cheetah/panther[Pixel 7/pro]

Search This thread
3450e-kali-nethunter.png


WITH GREAT POWER COMES GREAT RESPONSIBILITY............

Please use kernel responsibly and respect the rights of others including and especially privacy!

The mad clown is back with another Kernel for all of the Kali-linux-nethunter users wanting the portability of kali-nethunter for their Pixel 7 and pixel 7 pro devices codenamed cheetah and panther collectively pantah

hahahahahahahahahahahahahahahahahahaha

Warning your warranty is now void. Do this at your own risk. The mad clown is in no way responsible for the chaos, worldwide disease, nuclear destruction, laughing fish, costumed caped crusaders or damage caused to your device by performing the steps involved.

hahahahahahahahahahahahahahahahahahaha


kernel features::

Code:
--Merged latest android kernel source Linux 5.15.149 QPR2

--Make TEO-Cpuidle util-aware (improves latency, performance and decreases energy consumption for certain workloads, more information here)

--Scheduler improvements for RT (realtime) tasks

--Boeffla's wakelock blocker

--Enabled power efficient workingqueues on various drivers

--mm: vmstat: use power efficient workingqueues tree wide

--Fsync on/off support

--Multi-gen LRU driver

--DAMON driver

--Disabled lots of debug spam

--Added bbr2 tcp drivers and enabled full options

--Lazy RCU should grant extra battery savings

--Enable support for TTL spoofing

--Full USB gadget support

--update several drivers to use power efficient workingqueues (for example wlan driver)

--f2fs: reduce timeout for uncongestion

--f2fs: Demote GC thread to idle scheduler class

--f2fs: set ioprio of GC kthread to idle

--tcp: enable advanced tcp, give user more options for tcp alorithm

--Force usb fastcharge

--Some hardening and security from graphene

--Errata work arounds

--DNS resolver support

--Checkpoint restore

--Suspend skip sync

--Security Yama

--uci functions including
  -sweep2sleep
  -cleanslate battery feature
  -more

--Tri cluster kernel api =big, little, prime

plus all the commits needed to run kali-linux on your device and more. see my commits on github for more info


prerequisites:: vbmeta must have disabled verity and verification.

To do this pull a vbmeta.img from stock image zip or from a custom rom zip. back up your device as you will need to factory data reset your device after doing so

connect your device to your pc and open a terminal window and run

Code:
fastboot flash vbmeta vbmeta.img --disable-verity --disable-verification
fastboot -w

Works on any Android 13 sec patch

Flash using FKM (preferred)

Source ::

release ::


For one on one support join us on Telegram at


Special Thanks to

@acuicultor
@Freak07
 

Attachments

  • Screenshot_20230323-153000_Franco_Kernel_Manager.png
    Screenshot_20230323-153000_Franco_Kernel_Manager.png
    233.1 KB · Views: 338
Last edited:
I dont know what google did to the build system but

BUILD_CONFIG=private/gs-google/build.config.cloudripper

no longer works. it gets all the way past lto on the vmlinux and fatals making the gki modules at edgetpu/jainero complaining about it not being a git repo. i removed .git folder and stil it failed

i tried different build commands but the only one that would finish was

BUILD_CONFIG=build.config build/build.sh

but upon further inspection i noticed in the .config only gs101 configs were enabled and none of the gs201 configs.

Im hoping one of the seniors has a clue as to what im doing wrong and how to get the kernel to boot both p6 and p7 devices

as it stands i ended up moving my gs-google kernel source to a qpr1 build system and everything built fine using the cloudripper config.
 
  • Like
Reactions: kkjb
wifi monitor mode can be enabled using wifi sniffer and special firmware thats included in the android 14 developers previews.

we pulled whats needed from the vendor image and i created a magisk module for you to flash with the firmware binaries and .rc files.

i have included the zip in this post but you can get it from my github as well



For more info on wifi sniffer and how to use it follow this link

 

Attachments

  • nh-magisk-wifi-firmware-gs101-gs202-.zip
    5.3 MB · Views: 91
  • Like
Reactions: elong7681
im trying to get sweep to sleep to compile and ive run the commits in entirety and it still errors for implicit declarations.

im attaching the log in a zip (since i cant attach .txt files) with the errors if anyone knows to fix this please let me know
 

Attachments

  • build-errors-sweep2sleep.txt.zip
    1.3 KB · Views: 14
Last edited:

jutochoppa

Member
Mar 27, 2023
5
0
Does this support external wifi adapters? I have the kernel and magisk wifi module installed. My wifi adapter chipset is RTL8812BU . lsusb lists it's info but in the driver section says driver=(none)
 
i think i know whats going on. some kali linux programs and android apks as well look to the /proc/config.gz for the proper configs in order to use them

the problem is that when you make all of the kernel configs needed by kali in order to use everything it creates a system warning at every boot due to a frameworks trigger that also checks /proc/config.gz

if the trigger checks it and it sees that it doesnt match you get the warning.

to fix this we use a commit that packages the original defconfig as the /proc/config.gz

see this commit::




What i can do is make two different kernels. keep the current kernel as is for those that want the kali flex and dont need all the functionality and recompile the kernel with that commit reverted for the power users that need it.

But be warned every time you reboot you will get a system warning. it wont effect anything its just annoying
 
Last edited:
  • Like
Reactions: elong7681

jutochoppa

Member
Mar 27, 2023
5
0
i think i know whats going on. some kali linux programs and android apks as well look to the /proc/config.gz for the proper configs in order to use them

the problem is that when you make all of the kernel configs needed by kali in order to use everything it creates a system warning at every boot due to a frameworks trigger that also checks /proc/config.gz

if the trigger checks it and it sees that it doesnt match you get the warning.

to fix this we use a commit that packages the original defconfig as the /proc/config.gz

see this commit::




What i can do is make two different kernels. keep the current kernel as is for those that want the kali flex and dont need all the functionality and recompile the kernel with that commit reverted for the power users that need it.

But be warned every time you reboot you will get a system warning. it wont effect anything its just annoying
Brilliant idea! That would be wonderful.
 
Change log: 03/27/23

v1.1
removed non working uci functions
added some tcp optimisations
some other optimisations see branch qpr2-0327

Change log: 03/27/23
v1.1 full
same as above
removed the commit to hide the actual /proc/config.gz

if you use the full version you will receive a system warning at boot. this is an expected annoyance and non harmful but will give you full function of the kernel and all available drivers


if you try an adapter and it still doesnt work check my defconfig at the bottom for your drivers and see if its already configged if not let me know and ill look for the missing drivers.

make sure you have the proper firmware installed for your adapters chipset. this can be done using apt in kali linux or by installing the magisk module from previous post


the kernel folder will have a special folder called kali-full-config and the zip will have full in its name

i also updated the link in op. just navigate to correct folder
 

Attachments

  • Mad-Kali-MaxHunter-pantah-tm-qpr2-v1.1-full.zip
    33.8 MB · Views: 37
  • Mad-Kali-MaxHunter-pantah-tm-qpr2-v1.1.zip
    33.8 MB · Views: 23
Last edited:
  • Like
Reactions: xdagee and kkjb

jutochoppa

Member
Mar 27, 2023
5
0
The kernel flashes successfully. I did not seem to get a warning message. The adapter does not work still sadly. I init and synced QPR1 build system and cloned your repo in to gs-google source. looked up the driver by device ID (https://linux-hardware.org/?id=usb:2001-331c) and it seems the driver is in your source. I ran the BUILD_CONFIG=private/gs-google/build.config.cloudripper build/build.sh command.
It seems to build fine. I'm just not sure what to look for in the /out to make an AnyKernel.
This is my first time lol.
 
look in the android-kernel/out/android13-gs-pixel-5.10/dist directory

there you will find the
boot.img
dtbo.img
vendor_dlkm.img
vendor_kernel_boot.img

are you sure you flashed the right .zip it should have full in its name

also do you have the adapters firmware installed
 

Attachments

  • Screenshot_20230328-163233_Apex_Launcher.png
    Screenshot_20230328-163233_Apex_Launcher.png
    39.4 KB · Views: 110

jutochoppa

Member
Mar 27, 2023
5
0
look in the android-kernel/out/android13-gs-pixel-5.10/dist directory

there you will find the
boot.img
dtbo.img
vendor_dlkm.img
vendor_kernel_boot.img

are you sure you flashed the right .zip it should have full in its name

also do you have the adapters firmware installed
my output was different lol. i'll have to look into it more.
Anyway.. I did not get that error. I flashed the "Mad-Kali-MaxHunter-pantah-tm-qpr2-v1.1-full.zip". I also flashed the magisk firmware module on your github that inlcudes support for "RTL8821/12* (AE/AU/BU)" in the readme. # usb-devices still says there isn't a driver. weird. i guess i'll try to figure out how to get a driver for it.
-I will add that I have StagOS-cheetah-13.0-OFFICIAL-GApps-20230224-2018-update ROM

Thanks for your help.
 
This is how i get wifi_sniffer to work. first download and install the nethunter firmware magisk module. check permissions of the binaries.

next reboot your device and disable wifi and data. This must be done in order to restart the wlan in monitor mode

now open terminal emulator and either type or copy and paste the commands below

in su shell

Code:
su

# Set bandwidth to 160 MHz for sniffing on 2.4 GHz

Code:
setprop persist.vendor.wifi.sniffer.bandwidth 160

# Set 2.4GHz band

Code:
setprop persist.vendor.wifi.sniffer.freq 2412

# start wifi sniffer

Code:
wifi_sniffer start

#tcp dump to .pcap file

Code:
tcpdump -i radiotap0 type mgt subtype beacon -w /data/beacon-capture.pcap
 

Attachments

  • Screenshot_20230405-000949_Terminal_Emulator.png
    Screenshot_20230405-000949_Terminal_Emulator.png
    339 KB · Views: 105
Last edited:
  • Like
Reactions: elong7681
Change log: 4-11-23

version bump to v1.2

merge gs-google/refs/tags/android-13.0.0.70

Fixed CVE-2022-4696 :
UPSTREAM: io_uring: add missing item types for splice request

see commits for branch QPR2-0411 for more info

Change log : Mad-Kali-MaxHunter-full

same as above but i changed the version from full to EX, honestly because it sounds better
 

Attachments

  • Screenshot_20230411-220621_Franco_Kernel_Manager.png
    Screenshot_20230411-220621_Franco_Kernel_Manager.png
    221.5 KB · Views: 83
  • Mad-Kali-MaxHunter-pantah-tm-qpr2-V2.1-Ex.zip
    33.8 MB · Views: 39
  • Mad-Kali-MaxHunter-pantah-tm-qpr2-V2.1.zip
    33.8 MB · Views: 43
  • Screenshot_20230411-230304_Franco_Kernel_Manager.png
    Screenshot_20230411-230304_Franco_Kernel_Manager.png
    225.2 KB · Views: 83

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    3450e-kali-nethunter.png


    WITH GREAT POWER COMES GREAT RESPONSIBILITY............

    Please use kernel responsibly and respect the rights of others including and especially privacy!

    The mad clown is back with another Kernel for all of the Kali-linux-nethunter users wanting the portability of kali-nethunter for their Pixel 7 and pixel 7 pro devices codenamed cheetah and panther collectively pantah

    hahahahahahahahahahahahahahahahahahaha

    Warning your warranty is now void. Do this at your own risk. The mad clown is in no way responsible for the chaos, worldwide disease, nuclear destruction, laughing fish, costumed caped crusaders or damage caused to your device by performing the steps involved.

    hahahahahahahahahahahahahahahahahahaha


    kernel features::

    Code:
    --Merged latest android kernel source Linux 5.15.149 QPR2
    
    --Make TEO-Cpuidle util-aware (improves latency, performance and decreases energy consumption for certain workloads, more information here)
    
    --Scheduler improvements for RT (realtime) tasks
    
    --Boeffla's wakelock blocker
    
    --Enabled power efficient workingqueues on various drivers
    
    --mm: vmstat: use power efficient workingqueues tree wide
    
    --Fsync on/off support
    
    --Multi-gen LRU driver
    
    --DAMON driver
    
    --Disabled lots of debug spam
    
    --Added bbr2 tcp drivers and enabled full options
    
    --Lazy RCU should grant extra battery savings
    
    --Enable support for TTL spoofing
    
    --Full USB gadget support
    
    --update several drivers to use power efficient workingqueues (for example wlan driver)
    
    --f2fs: reduce timeout for uncongestion
    
    --f2fs: Demote GC thread to idle scheduler class
    
    --f2fs: set ioprio of GC kthread to idle
    
    --tcp: enable advanced tcp, give user more options for tcp alorithm
    
    --Force usb fastcharge
    
    --Some hardening and security from graphene
    
    --Errata work arounds
    
    --DNS resolver support
    
    --Checkpoint restore
    
    --Suspend skip sync
    
    --Security Yama
    
    --uci functions including
      -sweep2sleep
      -cleanslate battery feature
      -more
    
    --Tri cluster kernel api =big, little, prime

    plus all the commits needed to run kali-linux on your device and more. see my commits on github for more info


    prerequisites:: vbmeta must have disabled verity and verification.

    To do this pull a vbmeta.img from stock image zip or from a custom rom zip. back up your device as you will need to factory data reset your device after doing so

    connect your device to your pc and open a terminal window and run

    Code:
    fastboot flash vbmeta vbmeta.img --disable-verity --disable-verification
    fastboot -w

    Works on any Android 13 sec patch

    Flash using FKM (preferred)

    Source ::

    release ::


    For one on one support join us on Telegram at


    Special Thanks to

    @acuicultor
    @Freak07
    4
    Second update. versions 2.0 and 2.0-Ex

    i was able to get the uci stuff to compile with out error. so now you have all that stuff like cleanslate battery and sweep2sleep etc

    source branch is QPR2-release

    im also hosting pre-builts for those who wamt to build this into thier roms

    3
    Change log: 4-11-23

    version bump to v1.2

    merge gs-google/refs/tags/android-13.0.0.70

    Fixed CVE-2022-4696 :
    UPSTREAM: io_uring: add missing item types for splice request

    see commits for branch QPR2-0411 for more info

    Change log : Mad-Kali-MaxHunter-full

    same as above but i changed the version from full to EX, honestly because it sounds better
    2
    May 1st update

    I ended up reworking the whole of my kernel source. needed to clean up my repo.

    you can check the code block for a more in depth list of features

    some of the stuff i added were some commits from graphene for security and hardening, ttl spoofing support, dns resolver support and alot more. the working branch is QPR2-0501 if you want to check my commits

    but overall i good bit of optimisations and improvements

    be sure to grab the right zip for the amount of madness you desire.
    2
    Change log: 03/27/23

    v1.1
    removed non working uci functions
    added some tcp optimisations
    some other optimisations see branch qpr2-0327

    Change log: 03/27/23
    v1.1 full
    same as above
    removed the commit to hide the actual /proc/config.gz

    if you use the full version you will receive a system warning at boot. this is an expected annoyance and non harmful but will give you full function of the kernel and all available drivers


    if you try an adapter and it still doesnt work check my defconfig at the bottom for your drivers and see if its already configged if not let me know and ill look for the missing drivers.

    make sure you have the proper firmware installed for your adapters chipset. this can be done using apt in kali linux or by installing the magisk module from previous post


    the kernel folder will have a special folder called kali-full-config and the zip will have full in its name

    i also updated the link in op. just navigate to correct folder