/YARBS

Yet another redbull build script

Primary LanguageShell

Yet Another Redbull Build Script (YARBS) 🦊

Simple Bash script for building android kernels!


▶️ Script features:

  • Build standart/custom kernel for Google Redbull family

  • Build kernel with KernelSU (patches and kprobes methods)

  • Build kernel with APatch fixes

  • Pack builded kernel into AnyKernel3


▶️ Future plans:

  • Add support of build and patch kernels for most of android devices
  • Make more flexible settings
    • Add more avalible patches


⚠️DISCLAIMER⚠️

WE ARE NOT RESPONSIBLE IF YOUR DEVICE BRICKS OR BREAKS. PROCEED AT YOUR OWN RISK.

THIS SCRIPT IS IN EARLY TESTING AND MAY CAUSE DAMAGE TO YOUR DEVICE IF USED INAPPROPRIATELY. CONSIDER ALL RISKS AND USE IT AT YOUR OWN RESPONSIBILITY.

DO NOT OPEN A NEW ISSUE IF YOU HAVE BRICKED YOUR DEVICE.


❔How to build?

You must be running a 64-bit Linux distribution and must have installed some packages to build Kernel. Google recommends using Ubuntu.

Or you can use our FTBE!

Setup machine

sudo curl --create-dirs -L -o /usr/local/bin/repo -O -L https://storage.googleapis.com/git-repo-downloads/repo
sudo chmod a+rx /usr/local/bin/repo
sudo apt-get install -y curl bc flex bison git cmake build-essential libncurses5 libncurses5-dev 

Clone this repo to the home directory

git clone https://github.com/DiamivaeBro/YARBS.git

Start script

./$HOME/YARBS/build_ksu.sh

Then answer for some qutions and build starts


  • Results you can found in "AnyKernel3" and "out" directories in $HOME/android-kernel
  • You can configure for what android version kernel you building, just change branch at script
  • Also in releases you can find prebuilded by me redbull kernels that includes KSU. A14 QPR1 ONLY

❔ How to install?

Download latest kernel form releases (boot.img for stock,AnyKernel3 for custom roms)

1. For stock ROM:

  1. Unlock bootloader

  2. Reboot to bootloader

  3. Flash boot.img

fastboot flash boot boot.img
  1. Boot to system

5 If it dont booted and ask to restore factory data you need to restore factory data

Congratulations! All might be okay

2. For custom ROM (Tested with LineageOS 21 may not work on others)

  1. Reboot to recovery

  2. Apply update

  3. Apply update from ADB

  4. Complete installing

adb sideload AnyKernel3.zip
  1. Reboot to system

Congratulations! All might be okay


▶️ Thanks to: