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.
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:
After the changes on LineageOS Manifest.xml and add to Manifests folders:
Unfortunately I can't test but that is the idea. Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With