[UNOFFICIAL BUILD] Unofficial /e/ Builds for Lineage Supported Phones

1 Like

Can you post your docker script. I have tried building for
Asus Zenfone 2 laser - ZOOL
Samsung Galaxy tab2 10.1 GTP5100 - espresso3g
Sony Z5 Xperia - sumire
e.g
sudo docker run
-v “/srv/e/src:/srv/src:delegated”
-v “/srv/e/zips:/srv/zips:delegated”
-v “/srv/e/logs:/srv/logs:delegated”
-v “/srv/e/ccache:/srv/ccache:delegated”
-e “BRANCH_NAME=v1-nougat”
-e “DEVICE_LIST=espresso3g”
-e “CUSTOM_PACKAGES=‘MuPDF GmsCore GsfProxy FakeStore com.google.android.maps.jar Telegram Signal Mail BlissLauncher BlissIconPack MozillaNlpBackend OpenWeatherMapWeatherProvider AccountManager MagicEarth OpenCamera eDrive Weather Notes Tasks NominatimNlpBackend Light DroidGuard OpenKeychain QKSMS Bromite BromiteWebView LibreOfficeViewer’”
-e “SIGNATURE_SPOOFING=restricted”
-e “OTA_URL=https://ota.ecloud.global/api”
-e “REPO=https://gitlab.e.foundation/e/os/android.git”
registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd:latest

And none of those builds have completed - they all fail with an error

1 Like

Hi @damianham,
If it helps there is a post here of how to build with Docker and this is my build script…this is configured for my PC where I have the e folder under home/myusername/

docker run
-v “/home/manoj/e/src:/srv/src:delegated” \
-v “/home/manoj/e/zips:/srv/zips:delegated” \
-v “/home/manoj/e/logs:/srv/logs:delegated” \
-v “/home/manoj/e/ccache:/srv/ccache:delegated” \
-e “BRANCH_NAME=v1-oreo” \
-e “DEVICE_LIST=tissot” \
-e “CCACHE_SIZE=100G” \
-e “CUSTOM_PACKAGES=‘MuPDF GmsCore GsfProxy FakeStore com.google.android.maps.jar Telegram Mail BlissLauncher BlissIconPack MozillaNlpBackend OpenWeatherMapWeatherProvider AccountManager MagicEarth OpenCamera eDrive Weather Notes Tasks NominatimNlpBackend DroidGuard OpenKeychain QKSMS LibreOfficeViewer’” \
-e “SIGNATURE_SPOOFING=restricted” \
-e “OTA_URL=https://ota.ecloud.global/api” \
-e “REPO=https://gitlab.e.foundation/e/os/android.git” \
registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd:latest

Before you run the script always get the latest image by running this command
sudo docker pull registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd:latest

2 Likes

I dont think that the script is problem, because its same for all, maybe problem is your linux distro, computer specs or you dont have enough space on your drive.

Exactly the same result as before with no info about why it failed

[Tue Jul 2 14:19:32 UTC 2019] Branch: v1-oreo
[Tue Jul 2 14:19:32 UTC 2019] Devices: sumire,
[Tue Jul 2 14:19:32 UTC 2019] (Re)initializing branch repository
[Tue Jul 2 14:19:38 UTC 2019] Copying ‘/srv/local_manifests/*.xml’ to ‘.repo/local_manifests/’
[Tue Jul 2 14:19:38 UTC 2019] Use branch lineage-15.1 on github.com/TheMuppets
[Tue Jul 2 14:19:38 UTC 2019] Syncing branch repository
[Tue Jul 2 18:05:25 UTC 2019] Applying the restricted signature spoofing patch (based on android_frameworks_base-O.patch) to frameworks/base
[Tue Jul 2 18:05:27 UTC 2019] Setting “UNOFFICIAL” as release type
[Tue Jul 2 18:05:27 UTC 2019] Adding OTA URL overlay (for custom URL https://ota.ecloud.global/api)
[Tue Jul 2 18:05:27 UTC 2019] Using OpenJDK 8
[Tue Jul 2 18:05:27 UTC 2019] Preparing build environment
[Tue Jul 2 18:05:33 UTC 2019] Starting build for sumire, v1-oreo branch
ANDROID_JACK_VM_ARGS=-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4G
[Tue Jul 2 18:05:35 UTC 2019] Failed build for sumire
[Tue Jul 2 18:05:35 UTC 2019] Finishing build for sumire
[Tue Jul 2 18:05:35 UTC 2019] Cleaning source dir for device sumire

Hi @damianham the device you have chosen ‘sumire’ is only supported for 14.1 or nougat. You have chosen the oreo branch which is why it is failing. Docker build with the syntax given on our build branch will only work with devices officially supported on Lineage . You can check the list for lineage device support here with the correct branch details an /e/ build will work.
If you want to try for unsupported devices then you would have to check the documentation by @andrelam given here

1 Like

Hi @Manoj still no joy. One thing of note, even though I set the cache size to 100G with -e “CCACHE_SIZE=100G” I get a message ‘Set cache size limit to 50.0 GB’. Is there a way to turn on verbose out put to find out the reason it fails ?

docker run \

-v “/home/damian/data/e/src:/srv/src:delegated”
-v “/home/damian/data/e/zips:/srv/zips:delegated”
-v “/home/damian/data/e/logs:/srv/logs:delegated”
-v “/home/damian/data/e/ccache:/srv/ccache:delegated”
-e “BRANCH_NAME=v1-nougat”
-e “DEVICE_LIST=sumire”
-e “CCACHE_SIZE=100G”
-e “CUSTOM_PACKAGES=‘MuPDF GmsCore GsfProxy FakeStore com.google.android.maps.jar Telegram Mail BlissLauncher BlissIconPack MozillaNlpBackend OpenWeatherMapWeatherProvider AccountManager MagicEarth OpenCamera eDrive Weather Notes Tasks NominatimNlpBackend DroidGuard OpenKeychain QKSMS LibreOfficeViewer’”
-e “SIGNATURE_SPOOFING=restricted”
-e “OTA_URL=https://ota.ecloud.global/api
-e “REPO=https://gitlab.e.foundation/e/os/android.git
registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd:latest
Set cache size limit to 50.0 GB

[Wed Jul 3 08:59:23 UTC 2019] Branch: v1-nougat
[Wed Jul 3 08:59:23 UTC 2019] Devices: sumire,
[Wed Jul 3 08:59:23 UTC 2019] (Re)initializing branch repository
[Wed Jul 3 08:59:30 UTC 2019] Copying ‘/srv/local_manifests/*.xml’ to ‘.repo/local_manifests/’
[Wed Jul 3 08:59:30 UTC 2019] Use branch cm-14.1 on github.com/TheMuppets
[Wed Jul 3 08:59:31 UTC 2019] Syncing branch repository
[Wed Jul 3 12:27:12 UTC 2019] Applying the restricted signature spoofing patch (based on android_frameworks_base-N.patch) to frameworks/base
[Wed Jul 3 12:28:46 UTC 2019] Setting “UNOFFICIAL” as release type
[Wed Jul 3 12:28:46 UTC 2019] Adding OTA URL overlay (for custom URL https://ota.ecloud.global/api)
[Wed Jul 3 12:28:48 UTC 2019] Using OpenJDK 8
[Wed Jul 3 12:28:48 UTC 2019] Preparing build environment
[Wed Jul 3 12:30:17 UTC 2019] Starting build for sumire, v1-nougat branch
ANDROID_JACK_VM_ARGS=-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4G
[Wed Jul 3 15:16:36 UTC 2019] Failed build for sumire
[Wed Jul 3 15:16:36 UTC 2019] Finishing build for sumire
[Wed Jul 3 15:16:36 UTC 2019] Cleaning source dir for device sumire

Check logfile in /srv/logs/<devicename>. If you want to follow along, start build and type this:

tail -f logfile.log

Hi @damianham one reason could be that the device is no longer maintained by Lineage as mentioned in the warning message given on the link. You can try building for a supported device to test Docker. Using André 's script to build for non supported devices is a better option. Docker is not very flexible when it comes to building ROM’s. If it gets all the conditions right - space, memory. supported ROM - then it works smoothly else it just fails.

amazing @Unknown !! thank you for all your efforts and work on this to help /e/!!!

1 Like

These are the first errors from the docker build logs

vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SelfRemovingSwitchPreference.java:19: error: package android.support.v14.preference does not exist
import android.support.v14.preference.SwitchPreference;
^
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SelfRemovingSwitchPreference.java:20: error: package android.support.v7.preference does not exist
import android.support.v7.preference.PreferenceViewHolder;

I had no idea /e/ didn’t support so many Google devices. Surely that would be the ultimate ungoogling! :smiley:

There is a list of devices supported by Lineage here. If you mark the check box on top of the lineage wiki link you can also see the devices which have now been discontinued.
In comparison w/e/ only support 81 devices at present.
With these unofficial builds we are looking at potential candidates for inclusion into the officially supported devices list. That would mean devices on which the /e/ ROM and all device functionality works well.

1 Like

hi all, this device is not on the Lineage OS list, but if it’s possible to build an /e/ build for it , that would be great (it’s a small phone, which is absent from the LineageOS list): Samsung Galaxy J1 Mini Prime

Hi,

Unfortunately the pie build for Mi8 results in the phone just rebooting to TWRP.

and what about oreo build?

On reboot it goes straight to FASTBOOT

I’m just building a Pie image myself to see if it works.

1 Like

Mine has worked on Pie. This is what I used.

sudo docker run \
-v “/srv/e/src:/srv/src:delegated” \
-v “/srv/e/zips:/srv/zips:delegated” \
-v “/srv/e/logs:/srv/logs:delegated” \
-v “/srv/e/ccache:/srv/ccache:delegated” \
-e “BRANCH_NAME=v1-pie” \
-e “DEVICE_LIST=dipper” \
-e “CUSTOM_PACKAGES=‘MuPDF GmsCore GsfProxy FakeStore com.google.android.maps.jar Telegram Signal Mail BlissLauncher BlissIconPack MozillaNlpBackend OpenWeatherMapWeatherProvider AccountManager MagicEarth OpenCamera eDrive Weather Notes Tasks NominatimNlpBackend Light DroidGuard OpenKeychain Message Browser BrowserWebView Apps LibreOfficeViewer’” \
-e “SIGNATURE_SPOOFING=restricted” \
-e “OTA_URL=https://ota.ecloud.global/api” \
-e “REPO=https://gitlab.e.foundation/e/os/android.git” \
registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd:dev

1 Like