Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build Android-x86 using the LineageOS codebase as a starting point?

I already have a directory with the entire source code for LineageOS, which was initialized with:

repo init -u https://github.com/LineageOS/android.git -b lineage-15.1

After a couple builds, the directory is over 70GiB.

Now I would like to build Android-x86 (the LineageOS branch/port), and I'd like to know if there's a way to "rebase" the existing source code instead of re-downloading it all over again.

The Android-x86 code base is initialized with

repo init -u git://git.osdn.net/gitroot/android-x86/manifest -b oreo-x86

I tried running this from the same directory but got as a result:

fatal: manifest 'default.xml' not available
fatal: remote github not defined in /media/Fast/Dev/android/lineage/.repo/manifests/default.xml

I checked that .repo/manifests/default.xml exists in the file system, and is identical to another one created by repo init to a new directory.

like image 287
Marc.2377 Avatar asked May 24 '18 02:05

Marc.2377


1 Answers

I couldn't run on my computer due to the size but I guess the solution could be:

On LineageOS manifest.xml add a line at the end with <include name="android-x86.xml" /> and also copy the android-x86.xml from the android oreo project to the manifests folder in the LineageOS project.

After run repo sync it should keep the LineageOS but download the x86 part of the Android and add/override what is necessary. Not sure if gonna work though.

This is how it looks before changes: enter image description here

After the changes on LineageOS Manifest.xml and add to Manifests folders: enter image description here

Unfortunately I can't test but that is the idea. Hope it helps.

like image 93
dnlbox Avatar answered Nov 15 '22 00:11

dnlbox