[Galaxy Note5 General] :
●BRIEF INTRODUCTION :-

•Many Users Prefer To Use Custom Kernels For Advanced Functionality Like Better DeepSleep/Permissive SE Linux For Audio Mods/Battery Life Improvements/Wakelocks And Hotplugs Etc.

•Dirty Flashing Of Custom Kernel Without Wipe/Over Flashing Of Same Roots/Flashing Root On One Another Without Removing Previous Root's Residuals Remained In Root Directories Can Probably Cause Various Issues

•By Following This Simplified And Detailed Guide Users Can Avoid Such Possible Further Flashing Issues

●GUIDE IS USEFUL FOR :-

•Users Facing Issues Like Device Hanging/Random Reboots/Software Glitches Etc.

•Users Facing Issues Like Unexpected Battery Drain/SOD/DeepSleep Broken Etc.

•Users Facing Issues Like Root Not Detected/Root Functionality Issues Due To Over Flashing Of Same Roots/Different Root Flashing On One Another Without Removing Previous Root's Residuals Remained In Root Directories Etc.

●PRE-REQUISITES :-

•Before Installing Any Custom Kernels To Avoid Further Flashing Root Messup/Root Misbehavior Kindly Follow The Below Steps To Make Your Device Clean By Removing Remained Residuals Of Previous Root For Only One Of Preferred Root Choices At A Time Either Magisk Root OR SuperSU Root

•Removal Of Previous Root's Residuals Remained In Root Directories For Root Switching Purposes

Like For Eg. Switching From SuperSu To Magisk OR Switching From Magisk To SuperSU Etc.

Note :-

+Switching From Magisk Root To SuperSU Root :-

*If You Were Previously On Magisk Root, Then Flash Latest Available Magisk Uninstaller First

*It Will Remove All Previously Flashed Magisk Root's Residuals Remained In Root Directories

*Now You Are All Ready To Flash SuperSU Root Along With Custom Kernel Without Any Possible Flashing Errors

+Switching From SuperSU To Magisk Root :-

*If You Were Previously SuperSU Root Then You Have To Unroot/Remove SuperSU Root First To Use Magisk Root Without Any Issues

*Before Booting Your Device Into TWRP-Custom-Recovery/Flashing Custom Kernel Kindly Follow Below Steps

*Open SuperSU App> Go To Settings> Select Full Unroot> Select 'Continue'> Select 'No' When Asked For 'Attempt To Restore Stock Boot Image'> SuperSU Will Unroot Your Device Automatically> Your Device Will Reboot Afterwards> You Can See SueprSU App Is Disappeared From AppDrawer

*But Still There Are Some SuperSU Root's Residuals Remained In Device System Root Directories

*Kindly Flash UPDATE-unSU-Signed Zip By [MENTION=4544860]osm0sis[/MENTION] You Can Find Below Through TWRP Before Flashing Custom Kernel To Remove All Remained Residuals Of SuperSU Root In Device's Root Directories

*Direct Link To Thread And Download For UPDATE-unSU-Signed Zip :-

https://xdaforums.com/showpost.php?p=63615067

*Now You Are All Ready To Flash Magisk Root Along With Custom Kernel Without Any Possible Flashing Errors

●INSTALLATION INSTRUCTIONS :-

•Boot Your Device Into TWRP-Custom-Recovery

•Wipe Dalvik/Art And Cache

Note :-

*This Step Is Always Recommended Before Flashing Custom Kernels Over Stock/Any Other Custom Kernels

*This Step Is Not Always Recommended Before Flashing Stock Kernels Over Stock/Any Other Custom Kernels

•Flash Custom Kernel With Your Preferred Root Choices Either Magisk Root OR SuperSU Root

•Flash BusyBox Version Of Your Preferred Choice

Note :-

*Flashing BusyBox Is Totally Your Choice As Some Users Find It Useful While Some Not

*Also BusyBox Availability/Functionality Varies With Different Developers OfCourse

*Various Mods/Fixes Sometimes Needs BusyBox Installed/Enabled For Actual Working

*So You Can Flash Any Preferred BusyBox Version Of Your Own Choice According To Requirements

•Reboot Device From TWRP-Custom-Recovery

•Don't Touch Device For Atleast 5 Minutes To Make Custom Kernel Integrate With Both Hardware And Software For Performance Stability

•Reboot Device Again After 5 Minutes When Custom Kernel Gets Properly Integrated With Both Software And Hardware

Note :-

*Second Reboot Is Not Compulsory But Always Recommended For Smoother Experience

●Sticky Note :-

*I Am Aware Of Simultaneous Working Status Of Magisk Root With SuperSU Root And Vice Versa

*But I Always Prefer Clean Install Of Only One Preferred Root Choice After Removing Previous Root's Residuals Remained In Root Directories To Avoid Any Further Flashing Root Related Issues Already Mentioned

*Choice Is Yours Either To Use Both Roots Choices Simultaneously OR To Use Single Preferred One At A Time

* [MENTION=7471650]The Joker[/MENTION] And [MENTION=4350788]haifish9999[/MENTION] Thanks Mates Because Of Your Discussion And Custom Kernel Threads I Was Encouraged To Make This Guide Publicly For Benefits Of Every Single User Here On Xda