• Stars
    star
    151
  • Rank 246,057 (Top 5 %)
  • Language
    C
  • License
    Other
  • Created over 5 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple low memory killer kernel driver for Android devices. Pick from the branch that corresponds to your kernel version.

How do I submit patches to Android Common Kernels

  1. BEST: Make all of your changes to upstream Linux. If appropriate, backport to the stable releases. These patches will be merged automatically in the corresponding common kernels. If the patch is already in upstream Linux, post a backport of the patch that conforms to the patch requirements below.

    • Do not send patches upstream that contain only symbol exports. To be considered for upstream Linux, additions of EXPORT_SYMBOL_GPL() require an in-tree modular driver that uses the symbol -- so include the new driver or changes to an existing driver in the same patchset as the export.
    • When sending patches upstream, the commit message must contain a clear case for why the patch is needed and beneficial to the community. Enabling out-of-tree drivers or functionality is not not a persuasive case.
  2. LESS GOOD: Develop your patches out-of-tree (from an upstream Linux point-of-view). Unless these are fixing an Android-specific bug, these are very unlikely to be accepted unless they have been coordinated with [email protected]. If you want to proceed, post a patch that conforms to the patch requirements below.

Common Kernel patch requirements

  • All patches must conform to the Linux kernel coding standards and pass script/checkpatch.pl
  • Patches shall not break gki_defconfig or allmodconfig builds for arm, arm64, x86, x86_64 architectures (see https://source.android.com/setup/build/building-kernels)
  • If the patch is not merged from an upstream branch, the subject must be tagged with the type of patch: UPSTREAM:, BACKPORT:, FROMGIT:, FROMLIST:, or ANDROID:.
  • All patches must have a Change-Id: tag (see https://gerrit-review.googlesource.com/Documentation/user-changeid.html)
  • If an Android bug has been assigned, there must be a Bug: tag.
  • All patches must have a Signed-off-by: tag by the author and the submitter

Additional requirements are listed below based on patch type

Requirements for backports from mainline Linux: UPSTREAM:, BACKPORT:

  • If the patch is a cherry-pick from Linux mainline with no changes at all
    • tag the patch subject with UPSTREAM:.
    • add upstream commit information with a (cherry picked from commit ...) line
    • Example:
      • if the upstream commit message is
        important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <[email protected]>
  • then Joe Smith would upload the patch for the common kernel as
        UPSTREAM: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <[email protected]>

        Bug: 135791357
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        (cherry picked from commit c31e73121f4c1ec41143423ac6ce3ce6dafdcec1)
        Signed-off-by: Joe Smith <[email protected]>
  • If the patch requires any changes from the upstream version, tag the patch with BACKPORT: instead of UPSTREAM:.
    • use the same tags as UPSTREAM:
    • add comments about the changes under the (cherry picked from commit ...) line
    • Example:
        BACKPORT: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <[email protected]>

        Bug: 135791357
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        (cherry picked from commit c31e73121f4c1ec41143423ac6ce3ce6dafdcec1)
        [joe: Resolved minor conflict in drivers/foo/bar.c ]
        Signed-off-by: Joe Smith <[email protected]>

Requirements for other backports: FROMGIT:, FROMLIST:,

  • If the patch has been merged into an upstream maintainer tree, but has not yet been merged into Linux mainline
    • tag the patch subject with FROMGIT:
    • add info on where the patch came from as (cherry picked from commit <sha1> <repo> <branch>). This must be a stable maintainer branch (not rebased, so don't use linux-next for example).
    • if changes were required, use BACKPORT: FROMGIT:
    • Example:
      • if the commit message in the maintainer tree is
        important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <[email protected]>
  • then Joe Smith would upload the patch for the common kernel as
        FROMGIT: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <[email protected]>

        Bug: 135791357
        (cherry picked from commit 878a2fd9de10b03d11d2f622250285c7e63deace
         https://git.kernel.org/pub/scm/linux/kernel/git/foo/bar.git test-branch)
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        Signed-off-by: Joe Smith <[email protected]>
  • If the patch has been submitted to LKML, but not accepted into any maintainer tree
    • tag the patch subject with FROMLIST:
    • add a Link: tag with a link to the submittal on lore.kernel.org
    • add a Bug: tag with the Android bug (required for patches not accepted into a maintainer tree)
    • if changes were required, use BACKPORT: FROMLIST:
    • Example:
        FROMLIST: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <[email protected]>

        Bug: 135791357
        Link: https://lore.kernel.org/lkml/[email protected]/
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        Signed-off-by: Joe Smith <[email protected]>

Requirements for Android-specific patches: ANDROID:

  • If the patch is fixing a bug to Android-specific code
    • tag the patch subject with ANDROID:
    • add a Fixes: tag that cites the patch with the bug
    • Example:
        ANDROID: fix android-specific bug in foobar.c

        This is the detailed description of the important fix

        Fixes: 1234abcd2468 ("foobar: add cool feature")
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        Signed-off-by: Joe Smith <[email protected]>
  • If the patch is a new feature
    • tag the patch subject with ANDROID:
    • add a Bug: tag with the Android bug (required for android-specific features)

More Repositories

1

android_kernel_google_wahoo

Pixel 2/XL kernel.
C
110
star
2

android_kernel_google_floral

Pixel 4/XL kernel.
C
86
star
3

android_kernel_oneplus_msm8974

OnePlus One kernel.
C
74
star
4

android_kernel_google_gs201

Pixel 7 series kernel.
C
57
star
5

android_kernel_oneplus_msm8996

OnePlus 3(T) kernel.
C
55
star
6

android_kernel_google_bluecross

Pixel 3/XL kernel
C
39
star
7

android_kernel_google_zuma

Pixel 8 series kernel.
C
28
star
8

android_kernel_google_redbull

Old WIP Pixel 5 and 4a 5G kernel. Some of my commits in this repo may be wrong or out of date. Check floral before picking anything, or @ me in the comments of a dubious commit.
C
27
star
9

kernel_x86_laptop

C
25
star
10

android

manifests for devices I work on
23
star
11

android_device_oneplus_oneplus3

C
22
star
12

android_releases

Repo to host distributed binaries.
15
star
13

android_kernel_oneplus_msm8998

OnePlus 5T kernel.
C
14
star
14

patcher

Script that applies necessary patches for building my CM variant.
Shell
14
star
15

android_hardware_qcom_camera

Custom camera HALs for the OnePlus One and OnePlus X. OnePlus One (bacon/cm-13.0-sultan branch): use with OxygenOS v1.0.0 proprietary camera libraries. OnePlus X (onyx/cm-13.0-sultan branch): use with OxygenOS v2.2.2 proprietary camera libraries.
C
12
star
16

sultan-kernel-celox

AOSP kernel for the Samsung Skyrocket (SGH-I727) and Samsung Hercules (SGH-T989), based off of the official Samsung Jelly Bean kernel source code release, and rebased to CAF jb_1.9.6.
C
9
star
17

android_packages_apps_SnapdragonCamera

LA.BR.1.2.x. Requires http://review.cyanogenmod.org/#/c/106197/ and http://review.cyanogenmod.org/#/c/106198/
Java
9
star
18

CMUpdater-API

Placeholder for JSON API used for OTA updates
8
star
19

android_kernel_xiaomi_dipper

Basic support for Mi 8 on top of CAF. Boots to lockscreen on LineageOS.
C
5
star
20

android_kernel_oneplus_onyx

C
5
star
21

android_kernel_oneplus_bacon-3.10

3.10 kernel ported to OnePlus One based off of CAF LA.BF.2.1_rb1.xx. Requires updated WCNSS configuration to boot.
C
4
star
22

xserver

modesetting DDX with TearFree support
C
4
star
23

android_hardware_qcom_audio

Based off vanilla CAF sources
C
4
star
24

android_packages_apps_Snap

Java
4
star
25

android_device_oneplus_dumpling

C++
3
star
26

android_kernel_oneplus_sm8250

Old WIP OnePlus 8 kernel
C
3
star
27

sultan-kernel-pyramid-CAF-3.4

CAF KitKat kernel made possible by drivers and fixes from Flemmard. Based off of the kk_2.7-stable branch.
C
2
star
28

android_kernel_lge_v400

Based off CAF LA.BF.1.1.1_rb1.x
C
2
star
29

dtc

DTC for DTBO Android devices. Upstream: https://android.googlesource.com/platform/external/dtc
C
2
star
30

sultan-kernel-celox-CAF-3.4

3.4 kernel for the Samsung Galaxy S2 (Skyrocket—SGH-I727 and Hercules—SGH-T989) based off of vanilla CAF kk_2.7 kernel source (source tag: AU_LINUX_ANDROID_KK_2.7_RB1.04.04.04.007.067).
C
2
star
31

android_hardware_qcom_display

Based off vanilla CAF sources
C++
2
star
32

android_device_oneplus_onyx

C
2
star
33

backport-iwlwifi

iwlwifi driver for 4.19.x
C
1
star
34

android_kernel_asus_grouper

C
1
star
35

android_packages_apps_WeatherProviders

Makefile
1
star
36

AnyKernel2

Shell
1
star
37

vendor_oneplus

Makefile
1
star
38

android_kernel_google_zumapro

Pixel 9 series kernel.
C
1
star