How to patch android kernel source from Google security patches - Android Q&A, Help & Troubleshooting

Hi everybody,
I want to build a Android Pie custom kernel for my device, Huawei Mate 10, but I think that my questions can work for Android Pie from other vendors.
I have downloaded the correct Pie kernel source for my device model from vendor, and I have been able to build and flash it, and it's working fine.
The vendor's kernel source has 2018-11-01 security patch level applied.
At this point I have questions about security patch level. I have searched for information, but I have not found what I am looking for:
How can I download security patches? There is some zip file with all the patches for every security level? For example, I want to patch kernel source with security patch level 2018-12-01: https://source.android.com/security/bulletin/2018-12-01. I have not been able to find downloadable patch files, or instruction for patch the kernel sources.
Can anyone help me to define a procedure?
Best Regards,
Operich.

Related

How to flash a google patch?

I want to apply a google patch (https://android-review.googlesource.com/#/c/181019/) to my stock G3 (http://forum.xda-developers.com/ver...t/vs985-46a-stock-flashable-firmware-t3304365). Is this possible? How would I go about doing it?
No, it's not possible. That's just source code. You'd have to compile it and integrate it into a ROM. A maintainer of a non-stock ROM such as CyanogenMod would possibly capture that new source code in their compiles.

Android kernel how to make compatible with higher os? (+Where can I find the patch?)

Hello, I'm newbie dev trying to build CM13 for Lenovo Phab plus.
I think I'm almost finished with device and vendor, but I cannot figure it out what to do with kernel.
The circumstance is,
I have a stock kernel source which runs in 5.1.1 LP, with version of 3.10.49.
What I want is to make kernel compatible with 6.0.1.
I already know that linux kernel version doesn't have to be exactly same with new Android OS versions and I can just make a few patches in order to run kernel in higher OS.
So I googled and studied(?) for 2-3weeks, but got not many useful informations and I still cannot figure out where to find required patches for 6.0.1 .
So here's what I am not sure about.
1. I found that I can either upstream, merge, cherry-pick kernel sources from higher OS. For instance, if I merge kernel patches (starting from 3.10.50 to 3.18 step by step) and check if the kernel compiles successfully, is this a right thing to do? I am confused whether merging or cherry-picking is required for my situation.
2. I see lots of commits when comparing with other kernel sources in github. How do you find those kinds of patches? -> just keep compiling kernel and if error comes out->search->commit
Always this pattern goes again and again till boot properly?
3. i'm quite curious with backports. What i know is that "backports" are the files which is compatible for lower version kernels. For example, backported audio driver originally based on 4.9 can be used in kernels with version below 4.9. Is it right?
4. If there is an useful links, anything could be helped a lot.
THANKS IN ADVANCE.

latest stock rom with security patches!?

Hoi, i just have a short question .. is it possible that some1 could provide the lastest stock rom with security
patches for blueborne and cr4ck? i mean implement those patches into the latest stock rom?
thanks

How to add Android Security Patch to custom rom?

How to do that? Any instruction? I see that many devs are adding security patches to they's custom rom. Please help!

[REQUEST] LineageOS 13.0 with latest security patch

Hi,
i tried almost every latest rom and i finally found the best rom for our ancient device. Which is LineageOS 13.0 with Meilor NUI theme. Netflix works and device smooth as butter. (I tweaked it littlebit and it took 90718 Antutu v8.0.3 score)
is there any dev can provide LineageOS 13.0 with latest security patch for Manta?
Come on its not that much hard.
https://wiki.lineageos.org/devices/manta/build
[DELETED]
perfect_ said:
Come on its not that much hard.
https://wiki.lineageos.org/devices/manta/build
Click to expand...
Click to collapse
OP was correct in his request, because:
1. LineageOS' last build for Manta was July 2017, and the kernel was last patched and updated in 2018. That's very old for security patches.
2. And yes, it's fairly difficult to build for older versions with those older blobs that are no longer available for download.
CM13 was the last version released for Manta (Nexus 10).
If you care to read carefully, the build process does not bring in newer security patches into either build - it only pulls these last-known builds and builds them.

Categories

Resources