Coder Social home page Coder Social logo

android's Introduction

Halium 9.0

Install Packages :

sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc unzip bc repo nano && sudo apt-get install -y git gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 x11proto-core-dev libx11-dev libgl1-mesa-dev libxml2-utils xsltproc unzip bc repo nano libssl-dev && sudo apt-get install -y openjdk-8-jdk android-tools-adb bc bison build-essential curl flex g++-multilib gcc-multilib gnupg gperf imagemagick lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc yasm zip zlib1g-dev && sudo apt-get install -y build-essential kernel-package libncurses5-dev bzip2 android-liblog android-libbacktrace libtinyxml2-6 android-libutils android-sdk-build-tools git-lfs libncurses5:i386 libncurses5 ccache build-essential p7zip-full git libgtk2.0-dev chrpath libncurses5-dev libdbus-1-dev ruby libgl1-mesa-dev "^libxcb.*" libx11-xcb-dev libxrender-dev libxi-dev flex bison gperf patchelf build-essential kernel-package libncurses5-dev bzip2 android-liblog android-libbacktrace libtinyxml2-6 android-libutils android-sdk-build-tools git-lfs libncurses5:i386 libncurses5 ccache

Repo Sync :

Set Version Halium:

halium 9.0
export HALIUM="halium-9.0"

halium 8.1
export HALIUM="halium-8.1"

halium 7.1
export HALIUM="halium-7.1"

halium 5.1
export HALIUM="halium-5.1"

To initialize your local repository using the LineageOS trees, use a command like this:

mkdir -p ~/halium
cd ~/halium
repo init --depth=1 -u git://github.com/halium/android.git -b $HALIUM

Add manifest You Phone

Set You Phone Name:
export DEVICE="CODECNAME"

EX:

export DEVICE="whyred"

git clone -b $DEVICE-$HALIUM https://github.com/Linux-On-Sdm6Series/android.git .repo/local_manifests

Then to sync up:

repo sync -v -j$(nproc --all)

or :

repo sync -vc -j$(nproc --all)

or :

repo sync -vf -j$(nproc --all)

or :

repo sync -v -j$(nproc --all) --force-sync --no-clone-bundle --no-tags

or :

repo sync -vc -j$(nproc --all) --force-sync --no-clone-bundle --no-tags

or :

repo sync -vf -j$(nproc --all) --force-sync --no-clone-bundle --no-tags

Patch Hybris : [ Only Halium 9.0 ]

hybris-patches/apply-patches.sh --mb

Start Compile System.img

source build/envsetup.sh
lunch lineage_$DEVICE-userdebug
mka halium-boot -j$(nproc --all)
mka systemimage -j$(nproc --all)

or : => system.img , halium-boot.img :

source build/envsetup.sh && lunch lineage_$DEVICE-userdebug && mka halium-boot -j$(nproc --all) && mka systemimage -j$(nproc --all)

or : => halium-boot.img :

source build/envsetup.sh && lunch lineage_$DEVICE-userdebug && mka halium-boot -j$(nproc --all)

or : => system.img :

source build/envsetup.sh && lunch lineage_$DEVICE-userdebug && mka systemimage -j$(nproc --all)

make vendor.img ( only ):

source build/envsetup.sh && lunch lineage_$DEVICE-userdebug && mka vendorimage -j$(nproc --all)

Make Rootfs.img UbPorts : [ Only Halium 9.0 7.0 8.1 ]

clone halium Install : Create *.img ( i like this for all )

git clone -b halium-9.0 https://github.com/Linux-On-Sdm6Series/halium-install.git halium-install 

This For Device Works With Halium ( My Team Custom )

git clone -b $DEVICE-$HALIUM https://github.com/Linux-On-Sdm6Series/halium-install.git halium-install

=>

cd halium-install

=>

wget rootfs.tar.gz 

EX :

armhf :
wget https://ci.ubports.com/job/xenial-rootfs-armhf/lastSuccessfulBuild/artifact/out/ubports-touch.rootfs-xenial-armhf.tar.gz
arm64 :
wget https://ci.ubports.com/job/xenial-rootfs-arm64/lastSuccessfulBuild/artifact/out/ubports-touch.rootfs-xenial-arm64.tar.gz

or ( Rootfs TheKit ) / https://github.com/ubports-on-fxtec-pro1/rootfs-builder-debos-android9/releases :

wget https://github.com/ubports-on-fxtec-pro1/rootfs-builder-debos-android9/releases/download/2020-04-10/ubuntu-touch-android9-armhf-20200410.tar.gz

or ( Erfan ) :

armhf:
wget https://build.lolinet.com/file/halium/ubport/ubuntu-touch-android9-armhf.tar.gz
arm64
wget https://build.lolinet.com/file/halium/ubport/ubuntu-touch-android9-arm64.tar.gz

=>

. halium-install -p ut rootfs.tar.gz system.img

EX ( Rootfs With TheKit ) : and system.img ~/halium/out/target/product/$DEVICE/system.img

armhf :
. halium-install -p ut ubuntu-touch-android9-armhf-20200410.tar.gz ~/halium/out/target/product/$DEVICE/system.img
armhf SAR :
. halium-install --system-as-root ubuntu-touch-android9-armhf-20200410.tar.gz ~/halium/out/target/product/$DEVICE/system.img

EX ( Rootfs With Erfan ) : and system.img ~/halium/out/target/product/$DEVICE/system.img

armhf SAR Only:
. halium-install --system-as-root ubuntu-touch-android9-armhf.tar.gz ~/halium/out/target/product/$DEVICE/system.img
arm64 SAR Only :
. halium-install --system-as-root ubuntu-touch-android9-arm64.tar.gz ~/halium/out/target/product/$DEVICE/system.img

EX ( Rootfs With CI UbPorts ) : and system.img ~/halium/out/target/product/$DEVICE/system.img

armhf :
. halium-install -p ut ubports-touch.rootfs-xenial-armhf.tar.gz ~/halium/out/target/product/$DEVICE/system.img
arm64 :
. halium-install -p ut ubports-touch.rootfs-xenial-arm64.tar.gz ~/halium/out/target/product/$DEVICE/system.img
armhf SAR :
. halium-install --system-as-root ubports-touch.rootfs-xenial-armhf.tar.gz ~/halium/out/target/product/$DEVICE/system.img
arm64 SAR :
. halium-install --system-as-root ubports-touch.rootfs-xenial-arm64.tar.gz ~/halium/out/target/product/$DEVICE/system.img

Check Folder Out from halium-install / is not halium

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.