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
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
hybris-patches/apply-patches.sh --mb
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)
source build/envsetup.sh && lunch lineage_$DEVICE-userdebug && mka vendorimage -j$(nproc --all)
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