[Guide] How to build your own kernel - Samsung Galaxy A40 Guides, News, & Discussion

I developed this guide for the A20 but it will work for you too with a few modifications.
https://forum.xda-developers.com/galaxy-a20/how-to/making-kernel-a20-t4173485

Related

[Q] Building CM10

Is there any tutorial for beginers on how to build jellybean rom for ours device?
Check the XDA-university forum. You can use the MiniCM tree or the JBMiniProject tree.

CM11 build from source

Its my first time - can anyone guide me how to build CM11 ROM from sources? Some summary of steps involved. I was following the guide here:
http://wiki.cyanogenmod.org/w/Build_for_huashan
Is this the same for locked bootloaders?

[Kernel + Boot] Stock Android 6.0

Guide how to make kernel + boot for android 6.0
This are stock kernels from Huawei.
All sources on GitHub
https://github.com/olrak2/make_boot_image_hi6210sft
Attention! Flashing a kernel or changing a kernel can damage your phone

[INDEX] Samsung Galaxy S5

[SIZE=+3][SIZE=+2]Samsung Galaxy S5 (klte)[/SIZE][/SIZE][SIZE=+2]
[INDEX][/SIZE] [SIZE=+2]
Helpful Information[/SIZE]​[SIZE=+1]Welcome, this thread has been created to encompass everything you may need for your device. Please only post in this thread with feedback on how to improve this document. Do not post "Thank you" type responses. If you have additional questions or require more help, try to find an existing thread, or create your own thread in the [/SIZE][SIZE=+1]Galaxy S 5 Q&A, Help & Troubleshooting forum. Do not use this as a general help thread.[/SIZE]​Click on a Link below for More Info
Manufacturer's Device Home Page
Basic Device Information
Official Stock Firmware
Device Tools, Root/Un-root/Un-brick methods
Custom ROMs
Kernels & Radios
MODS, GUIDES, and Misc
*​Forum Rules | New Users Guide | XDA Tour | Report Posts​Please look for a similar INDEX thread when visiting another device forum. If you would like to create an [INDEX] please Click Here. A special thanks to everyone who contributed to the production of this INDEX Please note: This is and will be, an ongoing WIP​
Basic Device Information
Samsung Galaxy S5
Wikipedia
Specifications
Resolution: 1080 x 1920
Chipset: Qualcomm MSM8974AC Snapdragon 801
CPU: Quad-core 2.5 GHz Krait 400
GPU: Adreno 330
Camera: 16MP
Official Stock Firmware
Stock
[SM-G900/F/K/L/W8/A/T/M] S5 Firmware Thread
Device Tools, Root/Un-root/Un-brick methods
Tools
[MOD]Smart Debloater[G900F][4.4.X/5.0.X/6.0.X][v4][7/6/16][AROMA][Dev-Friendly]
URWsoft Barebone Cleaner [v.7.0] for [TW 5.0.x ROMs] Profile based Extreme Debloat
Root
[HOW TO][ALL VARIANTS][19/11/ Gain root, custom recovery, prep for modding on your S5
[How to] Root for 4.4.2 and Flash rooted Stock Android 5.0 with KNOX 0x0?
[GUIDE] ROOT G900HXXU1BOG4 and G900HXXU1BOG6
Systemless Root
Custom ROMs
Marshmallow
Stock based:
[ ROM ][ G900H ] S7 Edge Apps Based MM OS [ STABLE ]
[ROM] GROMV6DUOS [6.0.1] [G900FD/MD][30/07] Stock- Stable - Smooth - Fast -Fatures S7
[ ROM ][ G900H ] Note 7 Apps Based MM OS [ STABLE ]
[ROM] [6.0.1] DarkLord UX GRACE Full Port
[ROM][6.0.1][G901F][NOTE S7 EDGE PORT 3.1 UX][Deodex]Noble Rom
[ROM][G900F][XXU1CPF7][19/06] PhoeniX ROM V12.6 [Big Aroma | Unique | Fast | Stable]
[ROM] [6.0.1] DarkLord S7 Edge Full Port
Darklord Note UX N9200ZCU2ZPF9 or MIX S7E /NOTEUX PEK 6.0.1 MM[29 th, july2016]
[ROM][G900F][ALEXNDR] CPG1, BPE3 ★ DevBase v3.7 ★ Multi CSC, Safe DeBloat, KNOX 0x0
[ROM][6.0.1][27\6]DeoXPer Pure MM 2.0 ~Deodex - PreRooted - Xposed~ for S5 G900F\M
[N5 Port][6.0.1]Thunderbolt N5 Port v2.8.4
[ROM][25/06/2016][STABLE]SpaceRocket_MM Rom S5 (G900H) Full S7 Experience!
ROM[06/04] [G900F/M/I/K/T/S/W8][5.1.1] V6.0 REVOLUTION S5 (S6E +NOTE 5) Xposed
[ROM][G900H]XtreStoLite RL v2.5[STABLE][JULY 12, 2016]
OFFICIAL Pure Note 7 Port v2
[ROM] 6.0.1 [CPE1] Material7 V1.3 / Material7 Full V1.0 - 26/05/2016 - [G901F]
[ROM][STABLE][TW][6.0.1][CPE1][10.05.16][SM-G901F] StockRom V2.0
[ROM][04/07/16] GROMV6.1 [6.0.1] [G900M/F/I][-CPF2] Stock- Stable - Fast -Fatures S7
[ROM][TW][6.0.1][ODEX][CPE1][25.05.16] StockRom_V1_G901F_Port_For_G906
CyanogenMod/AOSP:
[ROM][6.0.1][v6.19][klte][Beanstalk]][OFFICIAL][DU-Features][29.07.16]
[ROM] CyanogenMod 13.0 | Android 6.0.1 Marshmallow | [12/27/2015]+Nightlies
[ROM][6.0.1_r52][klte+variants][JUL-12]RESURRECTION REMIX MM V5.7.1
[ROM][6.0.1][G900F] Samperia 1.0R [2016-06-30]
[ROM][6.0.1_r52][OMS]TipsyOS. v4.4 [27.07.2016][klte-kltespr-klteusc-kltevzw-kltedv]
[ROM][6.0.1] AOKP MM [18.06][OFFICIAL][klte, kltespr, kltedv, klteusc]
[ROM] [Official & Nightlies] [BlissPop 6.01] 10/7 - [KLTE-SPR-DV-USC]
ROM[G900F][6.0.1]30.07.2016 Slim6[alpha0.7][UNOFFICIAL][klte,kltespr]
[ROM] [ klte ] AICP - 11.0 - MM 6.0.1_rxx| OFFICIAL NIGHTLIES
[ROM][UNOFFICIAL][2/11/2016]PAC-Rom MM 6.0.1 All-In-One ROM
[ROM][6.0.1][KLTE][NIGHTLY] Official Mokee Open Source Project
[Temasek][CM13/MM][6/7] - KLTE(DV-SPR-USC)
[ROM][all variants][6.0.1_r46 MOB30M]★★VanirAOSP★★(7/06/16)
[ROM][Official][5.1.1][klte] Dirty Unicorns v9.7
Kernels
Kernels
[KERNEL][SM-G900F][CM13][AnyKernel][Synapse Support]CrazySuperKernel v6.0[19-07-16]
[KERNEL] [SM-G900F] [CM13/CM12.1/CM12/CM11] Boeffla-Kernel (01-08-2016)
[Kernel][G901F][TW 6.0.x] Ronflex Kernel 2.1
[KERNEL][G900H] duki994 Kernel [MM][STOCK]
[KERNEL] [SM-G900F] [Samsung Stock M/LP] Boeffla-Kernel (18-07-2016)
[KERNEL][G900F][STOCK][TW6.0.1] Neox Kernel UBERTC 7.0.0 Zram Zswap Zcache
[FIRST BUILD TODAY][KERNEL][SM-G900F][CM13]JellyKernel for International Galaxy S5
[KERNEL][BETA][6.0.1][09.06.2016][SM-G900H] GreenApple Kernel V1.0
[Kernel][G900F][TW6.0.1][Linux 3.4.112][01/07/16] PhoeniX Kernel V10.0 Marshmallow
[KERNEL][SM-G900F][TW M][AnyKernel][Synapse Support]CrazySuperKernel v3[21-07-16]
[KERNEL](TW5)Crazy Kernel1 v8[UBERTC 6.0/3.4.110] (MULTY VARIANT)
[KERNEL][SM-G900F][CM12.1]CrazySuperKernel v12[4-3-16][UBERTC 6.0/-ofast optimize]
[KERNEL][INTL][TW-AOSP 4.4,5.0,5.1][05/02/2015] KT-SGS5 - OB1 - KTweaker
[kernel][LP AOSP&TW] Amplitude Kernel 0.4.2 + Config Tool (F, P, M, W8, I)
[KERNEL][STABLE][TW][5.0.2][18.04.16][SM-G901F] StockKernel V1.4
[Kernel][TW][CM13][SM-G901F] Nagatobimaru Kernel[31/05/16]
MODS, GUIDES, and Misc
Mods
(How To / MOD) Microphone Gain Increase on All S5 Variants + Mod *Update 13/06/16
[MOD]Smart Debloater[G900F][4.4.X/5.0.X/6.0.X][v4][7/6/16][AROMA][Dev-Friendly]
[MOD] HX-CAMERA-Mod_1.3_07/30_Video/Photo_Quality_and more
[Mod][Guide][How to] Increase Toolbox apps number on new Samsung FWs
[MOD][Guide]Toggles for devs to add to Custom Settings [Lollipop]
{MOD}Galaxy_Mod_Ultimate Lollipop(Update 7/5/15)
[MOD][CM12.1] Call recording from dialer!
Xposed
Guides
[GUIDE] [LAST UPDATE:11-MAR-15] Extreme Batterylife thread and ADVANCE SETUP GUIDE
[HOW TO][SM-G903F][13/07-Firmware, Custom Rom, Kernel, Recovery...]
How To Install TWRP & Root T-Mobile Galaxy S5 On Android Marshmallow 6.0.1
[HOW TO][ALL VARIANTS][19/11/ Gain root, custom recovery, prep for modding on your S5
[GUIDE] [HOW TO] Enable unlock edit add GSM LTE bands to Samsung Galaxy S5 QualComm
[Guide] [How to] boot custom ROMs for SM-G900F in SM-G900S/K/L: Editing ‘boot.img'
[Guide + Technical Explanation] Boost the headset volume without losing quality
[GUIDE] [LAST UPDATE:11-MAR-15] Extreme Batterylife thread and ADVANCE SETUP GUIDE
Galaxy S5 Secret Codes
Great work, man! Thank you for the time and patience to make such an usefull thread.
But for the debloating options I think it would be better to link the V4 of SkywalerZ script which is also the newest.
The v2 doesn't support LL and MM
Here is the link: http://forum.xda-developers.com/galaxy-s5/development/mod-smart-debloater-t2802034
Thank you once again!
AlexVat said:
Great work, man! Thank you for the time and patience to make such an usefull thread.
But for the debloating options I think it would be better to link the V4 of SkywalerZ script which is also the newest.
The v2 doesn't support LL and MM
Here is the link: http://forum.xda-developers.com/galaxy-s5/development/mod-smart-debloater-t2802034
Thank you once again!
Click to expand...
Click to collapse
Edited, thanks
Don't want to be a PITA but only by exchanging ideas we can improve your already excellent thread
So I think that you could also add the Xposed standalone mod link: http://forum.xda-developers.com/xposed/unofficial-xposed-samsung-lollipop-t3180960
Plus a link towards a systemless SuperSU: https://download.chainfire.eu/932/SuperSU/BETA-SuperSU-v2.71-20160331103524.zip
Other variants of root don't work anymore on MM.
Also this link is broken: [GUIDE] ROOT G900HXXU1BOG4 and G900HXXU1BOG6
Thank you once again and please excuse for bothering you but your thread is very nice and it could be a perfect base for everyone new on the SGS5
AlexVat said:
Don't want to be a PITA but only by exchanging ideas we can improve your already excellent thread
So I think that you could also add the Xposed standalone mod link: http://forum.xda-developers.com/xposed/unofficial-xposed-samsung-lollipop-t3180960
Plus a link towards a systemless SuperSU: https://download.chainfire.eu/932/SuperSU/BETA-SuperSU-v2.71-20160331103524.zip
Other variants of root don't work anymore on MM.
Also this link is broken: [GUIDE] ROOT G900HXXU1BOG4 and G900HXXU1BOG6
Thank you once again and please excuse for bothering you but your thread is very nice and it could be a perfect base for everyone new on the SGS5
Click to expand...
Click to collapse
Edited, thanks
Also a standalone recovery which can be flashed via Odin: https://dl.twrp.me/klte/
The most important thing here is that when flashing the recovery via Odin the Auto-Reboot option is NOT to be ticked.
After flashing the recovery, we must pull out the battery and start the device directly in Recovery mode.
If we leave the Auto-Reboot option ticked after rebooting the system will automatically overwrite the custom recovery.
It's the most usefull information on recovery, especially for noobs.
The TWRP discussion thread for the SGS5 is located here: http://forum.xda-developers.com/showthread.php?t=2727406
Thank you once again. Sorry for giving bits and bits but I write them as I remember them.
Trafalgar Square said:
[SIZE=+3][SIZE=+2]Samsung Galaxy S5 (klte)[/SIZE][/SIZE][SIZE=+2]
[INDEX][/SIZE] [SIZE=+2]
Helpful Information[/SIZE]​[SIZE=+1]Welcome, this thread has been created to encompass everything you may need for your device. Please only post in this thread with feedback on how to improve this document. Do not post "Thank you" type responses. If you have additional questions or require more help, try to find an existing thread, or create your own thread in the [/SIZE][SIZE=+1]Galaxy S 5 Q&A, Help & Troubleshooting forum. Do not use this as a general help thread.[/SIZE]​Click on a Link below for More Info
Manufacturer's Device Home Page
Basic Device Information
Official Stock Firmware
Device Tools, Root/Un-root/Un-brick methods
Custom ROMs
Kernels & Radios
MODS, GUIDES, and Misc
*​Forum Rules | New Users Guide | XDA Tour | Report Posts​Please look for a similar INDEX thread when visiting another device forum. If you would like to create an [INDEX] please Click Here. A special thanks to everyone who contributed to the production of this INDEX Please note: This is and will be, an ongoing WIP​
Click to expand...
Click to collapse
plz stick it on 1st page..its usefull for noob
tharik816 said:
plz stick it on 1st page..its usefull for noob
Click to expand...
Click to collapse
No, it'll not be sticked at the top. There are too many threads. But you can find this thread in the sticky roll up thread.
Greetings from the Baltic sea
From my understanding Dirty Unicorns Dropped support for the s5. The thread link says it's Abandoned.
TheHeroBilly said:
From my understanding Dirty Unicorns Dropped support for the s5. The thread link says it's Abandoned.
Click to expand...
Click to collapse
Yeah, thanks.
I will update this thread.

How to build custom kernel for Lenovo p1ma40, to support MagiskHide?

Lenovo p1ma40 runs on Android 5.1. And I want to use MagiskHide but am unable to do so, as , "Pre 6.0 kernels are very likely to have no mount ns procfs support, which is required for MagiskHide to work properly. This Linux kernel feature is only required to be added in Android 6.0."
So, as stated at xda forums, we need to rebuild the kernel with the required patch (https://lore.kernel.org/patchwork/patch/217023/). And set
CONFIG_NAMESPACES=y. My question is : 1) How do I patch the kernel source code(pls give exact steps)? 2)How do I flash the modified kernel? 3) do I need to unlock bootloader to do so?
Thanks in advance.....
Link: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445/amp/

Categories

Resources