Skip to content

DqrKnzx/android_manifest-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KangOS

Yet Another cherry-picked AOSP Custom ROM

BANNER

Credits


How To Build KangOS For Your Device - Tutorial

Downloading KangOS Source Codes

To get started with the building process, you'll need to get familiar with Git and Repo.

To initialize your local repository, use a command like this:

repo init -u https://github.com/KangOS-Snowcone/android_manifest -b snowcone

To save time, space and internet data during sync, use a command like this:

repo init --depth=1 -u https://github.com/KangOS-Snowcone/android_manifest -b snowcone

Then to sync up

repo sync -c --force-sync --no-tags --no-clone-bundle -j$(nproc --all) --optimized-fetch --prune

Finally to build

From root directory of Project, perform following commands in terminal

source build/envsetup.sh
lunch kangos_<devicecodename>-<build-type>
make bacon

A Detailed Overlook About Setting Up Your Machine For Compilation:

To get started with the building process, you'll need to get familiar with Git and Repo.

Build Environment

  • Tested and Working on any version of Ubuntu - 14.04, 14.10, 15.04, 16.04, 18.04, 20.04 (64-bit)
  • Any other distribution based of the Ubuntu Distro such as Lubuntu, Xubuntu and etc.
  • Any form of Terminal
  • Decent hardware (minimum of at least a quad core CPU and 16 GB of RAM)
  • A storage unit of any kind (We recommend utilizing SSDs as Mechanical HDDs slow down the build proccess drastically and the minimum storage size is 70GB. Having more will be useful with CCache[More on that later])
  • Required Packages should have been installed

Required Packages [this is for ubuntu 16.04, for other variants it may differ]

Simply copy and paste this in a terminal window:

[Hint: This command updates the Ubuntu Packages List (Install Listing) and install the required version of Java]

     sudo apt-get install openjdk-8-jdk

[Hint: Running this command installs the other required packages to build android]

     sudo apt-get update && sudo apt-get install bc git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk3.0-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev openjdk-8-jre openjdk-8-jdk pngcrush schedtool libxml2 libxml2-utils xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline6-dev gcc-multilib maven tmux screen w3m ncftp adb fastboot repo python default-jdk

Grabbing the sources

  • Making required directories
  • Obtaining the repo binary
  • Adding repo binary to your path
  • Giving the repo binary proper permissions
  • Initializing an empty repo
  • Syncing the repo

Alright, so now we’re getting there. I have outlined the basics of what we’re about to do and broke them down as I know them. This is all pretty much going to be copy/paste so it’ll be fairly difficult to screw this up :)

Make directory for the repo binary

      mkdir ~/bin

Add directory for the repo binary to its path

      PATH=~/bin:$PATH

Downloading repo binary and placing it in the proper directory

      curl http:https://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

Giving the repo binary the proper permissions

      chmod a+x ~/bin/repo

Creating directory for KangOS source codes to be synced and compiled

      mkdir ~/kangos
      cd ~/kangos

Another Simple Script For Setting Up Build Environment

      sudo apt update && sudo apt upgrade
      git clone https://github.com/akhilnarang/scripts --depth 1
      cd scripts
      bash setup/android_build_env.sh

After Succesfully Compiling KangOS for your device, dont forgot to take a look at this :

To get official maintainership for KangOS, refer here.

Contact us via

About

The origin of Kangies😉

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages