Git Product home page Git Product logo

android_device_halium_ubport's Introduction

Device configuration for Halium Ubuntu Touch (ubport)

This branch supports the arm32 version on Ubports GSI

How to build

Get build tools

If you are on the amd64 architecture (commonly referred to as 64 bit), enable the usage of the i386 architecture:

$ sudo dpkg --add-architecture i386

Update your package lists to take advantage of the new architecture:

$ sudo apt update

Install the required dependencies:

$ sudo apt install git gnupg flex bison gperf build-essential \
  zip bzr curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
  libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
  libgl1-mesa-dev g++-multilib mingw-w64-i686-dev tofrodos \
  python-markdown libxml2-utils xsltproc zlib1g-dev:i386 schedtool \
  repo liblz4-tool bc lzop imagemagick libncurses5 rsync

If there are missing dependency errors, the easiest solution is to switch to Ubuntu 18.04 LTS

Get sources

$ mkdir ~/halium-9.0 && cd ~/halium-9.0
$ repo init -u https://github.com/Halium/android -b halium-9.0 --depth=1

You have to setup repo if using for first time

$ repo sync

Apply Patches

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

Place GSI device tree

$ mkdir device/halium && cd device/halium
$ git clone <this repo>
$ mv <cloned folder> ubport

Place this repo under ~/halium-9.0/device/halium

Delete these to avoid confusion

$ cd ~/halium-9.0/halium
$ rm -r fake_crypt stub_netd

These files we deleted already exists in the GSI device tree We deleted it to avoid the source tree build errors

Inherit from phh vndk

$ cd ~/halium-9.0/vendor
$ git clone https://github.com/phhusson/vendor_vndk
$ mv vendor_vndk vndk

The device tree depends on the phh vndk

Credits to @phhusson

Start the build

$ cd ~/halium-9.0/
$ source build/envsetup.sh && breakfast <YOUR_DEVICE_CODENAME>
$ mka systemimage

android_device_halium_ubport's People

Contributors

danct12 avatar erfanoabdi avatar midhunvnadh avatar

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.