FORUMS
Remove All Ads from XDA

[KERNEL] [PIE] [G9650] [G9600] klabit kernel

2,305 posts
Thanks Meter: 1,710
 
Post Reply Email Thread
As most of you guys know Magisk will not work for us on the international snapdragon S9 and S9+
So, I have made a custom kernel that will allow us to have root on stock pie firmware.
You will need to format data unless you want to stay encrypted. If you wish to stay encrypted you can.
Files needed:
OneUI roms:
G9650:
g9650_klabit_pie_V5.2.zip

G9600:
g9600_klabit_pie_V5.2.zip

GSI roms: (Working MTP)
G9650:
g9650_klabit_pie_gsi_v1.zip

G9600:
g9600_klabit_pie_gsi_v1.zip

Above kernels based on CSE7 source.
  1. Copy the g96x0_pie_vx.zip to your external sd card.
  2. Make sure you have TWRP installed found here for g9600 or here for g9650.
  3. Flash the g96x0_pie_vx.zip
  4. Flash Magisk
  5. Reboot to system.

If you currently do not have a working lockscreen/pin/fingerprint setup, you will need to restore your stock boot.img either via backup or extract your boot.img from the official firmware and flash the img then flash my kernel.

Changelog:
Code:
 - Removed Defex
 - Removed Samsung rooting protections
 - Removed RKP (Realtime Kernel Protection)
 - Added Conservative cpu governor
 - Sanity checks for video drivers and the power share feature
 - Added support for broadcom 43456 wireless cards
 - Added ddhd random mac scanning 
 - Added more security to wifi hotspot to protect from ARP attacks, 
 - CS7111512(By LEE EONJI) Detect turn on failure in factory binary
 - CS7299329(By Kim Yu-Kyoung) Fixed SoftAP CTS fail due to interface creation failure
 - Blocked WLC_E_ROAM event to fix wakes-up frequently under weak signal AP
 - Changed error results of GETSTAINFO private command to BCME_UNSUPPORTED if the BIGDATA_SOFTAP is not supported
 - Fixed kernel panic during mfg mode interface creation
 - CS7091164(By Kang Hyung Wook) SI-13561: Fixed kernel heap overflow security issue at dhdpcie_downloadvars
 - CS7091371(By Kang Hyung Wook) SI-13584: Fixed kernel panic due to access to not allocated memory
 - CS6785460(By Jeong Min Cheol) Send HANG event to the framework for the sequential private command failure
 - CS7003600(By Kang MinHo) Support android private command for restoring roam/scan parameters
 - CS7094302(By Yoon YeJi) Fixed connect failure caused by connection information not initialized
 - CS7103552(By LEE EONJI) Fixed the recovery routine to fix the D3_ACK timeout issue
 - CS7119174(By Kim Seong Hwan) Avoid HANG event indication due to sequential private command failures in case of unsupported error
 - CS7137399(By Yoon YeJi) Fixed connect failure caused by connection information not initialized
 - CS7141596(By Suthar Nitesh) Fixed MHS operates with STA mac address
 - Control HANG report for consecutive Android private command failure by sysfs
 - Increased the NUMBER_SEQUENTIAL_PRIVCMD_ERRORS from 4 to 7
 - Taking a SOCRAM dump in the sequential private command error case
 - CS6935603(By Hong Min Whoa) SI-13638: Fixed Kernel warning message by restructuring the DMA_LOCK and DMA_UNLOCK
 - CS7091347(By Kang Hyung Wook) SI-13585: Fixed kernel panic due to write buffer exceeds the size
 - CS6650676(YeJi Yoon) Fixed mismatch connect status between framework and DHD
 - CS6678972(By Hwang MinSik) Fixed TIS/TRP test failure and high current issue from sysfs change
 - CS6715508(By Choi Hyeonu) Exported sysfs for ADPS bad AP list
 - CS6744438(By Yoon Jae Ho) Fixed duplicated roaming notification to WPA supplicant during FT roaming
 - CS6769798(By Kim Beom Jip) Fixed for GraceR/4359c0 P OS P2P connection failure issue
 - CS6856753(By kwon Jaecheol) Added the dual interface capability filed in the SoftAP info file (.softap.info)
 - CS6870793(By Tae-Yong Kim) Fixed prevent issues
 - CS6871138(By Lee Gibum) Configure AER registers to debug PCIE ERROR ATTN issues
 - CS6880409(By Sung-gi Choi) Fixed prevent issues
 - CS6887298(By Min Whoa Hong) Fixed prevent issues
 - CS6928243(By Sung-gi Choi) Fixed prevent issues
 - CS6935678(By Hwang MinSik) Fixed array out of bound issue from sysfs mac address
 - CS6984743(By Min SungBin) Print DPC schedule request timestamp for ROT issue
 - CS6985032(By LEE EONJI) Enabled DHD_RECOVER_TIMEOUT for D3_ACK missing case on 4359C0 and 4361B0
 - CS6993967(By Jeong Min Cheol) Added last_d3_inform_timestamp to check root cause of ROT
 - CS7042030(By Min SungBin) Implemented the new API to sync up the status between RC and EP to avoid unwanted L1ss configuration
 - Changed the DHD_COMMON_DUMP_PATH for non-BCM4375 Android P OS projects
 - DHD driven random mac enable by default for 4361B0
 - Enable frameburst for standalone 2.4GHz SoftAP on Dream and Great project
 - Wi-Fi Sharing-Lite feature support for Android P OS
 - CS6461136(By Min SungBin) Fixed for kernel panic due to stack overflow at get_roamscan_channel_list()
 - CS6302259(By Kang Hyung Wook) Supported DHD driven Random MAC feature
 - CS6324532(By Choi Hyeonu) Port files under /data/vendor/conn to sysfs after Android P OS
 - CS6396705(By Min SungBin) Added additional timestamp log to debug resumed on timeout issue
 - CS6398346(By Hyeonu Choi) Fixed prevent issues
 - CS6516071(By Choi Hyeonu) Fixed for corner case of schedule_timeout() API at dhd_timeout_expired()
 - CS6536174(By Choi Hyeonu) CS6433018(By Choi Hyeonu) Fixed prevent issues
 - CS6594869(By Min SungBin) Triggering Kernel panic for the scheduling problem only if the memdump mode is enabled
 - CS6600348(By LEE EONJI) Implemented 4359c0/GraceR P OS Wi-Fi sharing feature
 - CS6658253(By Choi Hyeonu) Fixed random mac setting issue instead of otp mac
 - CS6678972(By Hwang MinSik) Fixed TIS/TRP test failure and high current issue from sysfs change
 - CS6713692(By Kim MinSoo) Fixed NET_RX delay issue
 - CS6769798(By Kim Beom Jip) Fixed for GraceR/4359c0 P OS P2P connection failure issue
 - CS6791516(By Lee Gibum) Fixed the unexpected frameburst enable on standalone SoftAP in 2GHz
 - CS6791556(By Hwang MinSik) Removed CR/LF character at .cid.info including sysfs
 - CS6809444(By Hwang MinSik) Unified DHD_COMMON_DUMP_PATH for the Android P OS project of all chips
 - Changed the timestamp value to Kernel local time to debug resumed on timeout and scan timeout issues
 - Defer RxBuf post size based on the rxbufpost_sz iovar return value for monitor mode
 - Disabled DHD_LB_IRQSET for Exynos8890 platform
 - Dump AER HeaderLog registers in configuration space for PCIe debugging
 - Dumping PCIe registers for PCIe debugging enhancement
 - Fixed VHT features enable issue from GraceR project
 - Fixed unexpected RSDB mode configuration for legacy RSDB chip
 - Implemented the debug code to check if the scan timeout or resumed on timeout happens due to the DPC scheduling problem
 - Refined TDLS initialization code
Kernel source: https://github.com/klabit87/android_...samsung_sdm845

Thanks to @tylerhole and the @stang5litre test group for testing anything I throw at them!
You guys are the best!
The Following 30 Users Say Thank You to klabit87 For This Useful Post: [ View ] Gift klabit87 Ad-Free
 
 
16th February 2019, 09:08 PM |#2  
Senior Member
Flag San Luis Obispo
Thanks Meter: 93
 
More
Hell yeah bro! Kickin ass and takin names as per usual! Killer job! Thanks!
The Following User Says Thank You to tylerhole For This Useful Post: [ View ] Gift tylerhole Ad-Free
17th February 2019, 09:01 AM |#3  
tomatolei's Avatar
Member
Flag suzhou
Thanks Meter: 23
 
More
very good, I has test it,OK, work fine.
I want to know how to modify the kernel configuration file.


.
17th February 2019, 05:40 PM |#4  
chalofito's Avatar
Senior Member
Flag Veracruz
Thanks Meter: 387
 
Donate to Me
More
Oh God! Thank you teacher, really thank you, you have taken our terminal to another level, God bless. I hope you will continue with us a lot longer. Greetings.
The Following User Says Thank You to chalofito For This Useful Post: [ View ] Gift chalofito Ad-Free
17th February 2019, 06:43 PM |#5  
franc33s's Avatar
Member
Flag Willemstad
Thanks Meter: 6
 
More
i loaded TWRP from Travis82 , got stuck un a bootloop screen from twrp.
17th February 2019, 06:46 PM |#6  
klabit87's Avatar
OP Senior Member
Thanks Meter: 1,710
 
Donate to Me
More
Quote:
Originally Posted by franc33s

i loaded TWRP from Travis82 , got stuck un a bootloop screen from twrp.

How long did you wait? You will need to wait for 10-12 minutes and it will boot. I tested this multiple times myself and others as well before I released it here.

Sent from my Pixel 2 XL using Tapatalk
The Following User Says Thank You to klabit87 For This Useful Post: [ View ] Gift klabit87 Ad-Free
17th February 2019, 06:47 PM |#7  
klabit87's Avatar
OP Senior Member
Thanks Meter: 1,710
 
Donate to Me
More
Quote:
Originally Posted by tomatolei

very good, I has test it,OK, work fine.
I want to know how to modify the kernel configuration file.


.

Check my GitHub. The source is linked at the bottom of the op. I'm working on updating sources for TWRP as well.

Sent from my Pixel 2 XL using Tapatalk
The Following 3 Users Say Thank You to klabit87 For This Useful Post: [ View ] Gift klabit87 Ad-Free
17th February 2019, 07:18 PM |#8  
stang5litre's Avatar
Senior Member
Flag Columbus
Thanks Meter: 2,871
 
Donate to Me
More
Quote:
Originally Posted by franc33s

i loaded TWRP from Travis82 , got stuck un a bootloop screen from twrp.

I bet your phone was connected to the computer. Travis TWRP causes reboots when plugged in which is why we dont use it.

stang5litre 5.0 Edition Roms
The Following User Says Thank You to stang5litre For This Useful Post: [ View ] Gift stang5litre Ad-Free
17th February 2019, 08:13 PM |#9  
franc33s's Avatar
Member
Flag Willemstad
Thanks Meter: 6
 
More
Quote:
Originally Posted by klabit87

How long did you wait? You will need to wait for 10-12 minutes and it will boot. I tested this multiple times myself and others as well before I released it here.

Sent from my Pixel 2 XL using Tapatalk

ohh so the bootloop should be normal for 10 to 12 minutes? tough it would be stuck on the samsung bootscreen for those minutes, im goint to try again then.

---------- Post added at 04:13 PM ---------- Previous post was at 04:12 PM ----------

Quote:
Originally Posted by stang5litre

I bet your phone was connected to the computer. Travis TWRP causes reboots when plugged in which is why we dont use it.

stang5litre 5.0 Edition Roms

with one should i use then?
17th February 2019, 09:19 PM |#10  
chalofito's Avatar
Senior Member
Flag Veracruz
Thanks Meter: 387
 
Donate to Me
More
I did the steps as you indicated them and when restarting (for the second time) in TRWP I can not access the internal storage and I have encryption, what do you suggest doing? by others it works normally, I have a successful ROOT.

NOTE: the steps that I followed were the following:
1 flash zip root foot, from external memory
2.- format data (yes)
3.- reboot
4.- Again reboot
5.- again restart, but now in twrp.
17th February 2019, 09:24 PM |#11  
stang5litre's Avatar
Senior Member
Flag Columbus
Thanks Meter: 2,871
 
Donate to Me
More
Quote:
Originally Posted by franc33s

ohh so the bootloop should be normal for 10 to 12 minutes? tough it would be stuck on the samsung bootscreen for those minutes, im goint to try again then.

---------- Post added at 04:13 PM ---------- Previous post was at 04:12 PM ----------



with one should i use then?

I would use @klabit87 TWRP as it doesn't have that issue. Its posted in his thread
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes