[CUSTOM BUILD] Samsung Galaxy Tab 2 (espressowifi / espresso3g) for /e/OS-Oreo and Pie

Soo build steps, sorry i dont normally use any standard method or manifest.xml but here we go
I’m on Ubuntu 24.04

Pre-Build

Dependencies
sudo apt install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git git-lfs gnupg gperf imagemagick protobuf-compiler python3-protobuf lib32readline-dev lib32z1-dev libdw-dev libelf-dev lz4 libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev
sudo apt install imagemagick clang zip unzip

As mentioned in LineageOS Wiki (Build for espresso3g | LineageOS Wiki)

wget https://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2_amd64.deb && sudo dpkg -i libtinfo5_6.3-2_amd64.deb && rm -f libtinfo5_6.3-2_amd64.deb
wget https://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2_amd64.deb && sudo dpkg -i libncurses5_6.3-2_amd64.deb && rm -f libncurses5_6.3-2_amd64.deb

Java 8 for Oreo

sudo apt install openjdk-8-jdk
NOTE: For building these versions you’ll need to remove TLSv1 and TLSv1.1 from jdk.tls.disabledAlgorithms in /etc/java-8-openjdk/security/java.security.

Python 2.7, since Ubuntu 24.04 doesnt have its package i built it from source

wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
tar xzf Python-2.7.18.tgz
./configure --enable-optimizations
make
sudo make install

Repo

mkdir -p ~/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

Ccache

sudo apt  install ccache
export USE_CCACHE=1
export CCACHE_EXEC=/usr/bin/ccache
ccache -M 25G
ccache -o compression=true

Build

Sync Sources

repo init -u https://gitlab.e.foundation/e/os/releases.git -b refs/tags/v0.21.4-oreo
repo sync -c --no-tags --no-clone-bundle -j$(nproc --all)

Sync Device Trees

git clone https://github.com/MightyM17/android_kernel_ti_omap4 kernel/ti/omap4
git clone https://github.com/MightyM17/android_kernel_ti_omap4 kernel/ti/omap4 --depth 1
git clone https://github.com/MightyM17/android_hardware_ti_omap4 hardware/ti/omap4
git clone https://github.com/MightyM17/proprietary_vendor_samsung vendor/samsung
git clone https://github.com/Unlegacy-Android/proprietary_vendor_ti vendor/ti
git clone https://github.com/LineageOS/android_external_jhead external/jhead
git clone https://github.com/Unlegacy-Android/android_external_stlport -b aosp-8.1 external/stlport

Patches

https://xdaforums.com/t/rom-8-1-0-lineageos-15-1-unofficial.4540297/post-88043983
https://github.com/MightyM17/espresso_patches

Start building!

source build/envsetup.sh
brunch espresso3g

Fixes

export LC_ALL=C
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx8g
jack-admin kill-server && jack-admin start-server
Make MINIMAL_APPS = true in vendor/lineage/config/common.mk

3 Likes

Thank you very much for your contribution (knownledge and time)

.

related to the wifi not working.

  • in the “about the device” photo :

i note that baseband version is unknown.

  • in kmsg.txt i can see :

[ 3.178924] init: Couldn’t load property file: Unable to open ‘/vendor/default.prop’: No such file or directory: No such file or directory

I dont think so that is the issue. kmsg usually shows logs related to kernel and this same kernel has working wifi on LOS 15.1 and AOSP 8.1, something in logcat can help us figure out what to do. I might have missed some patch to make wifi work, but I cannot find the issue exactly.

Just let me know when you want me to test again. Ready whenever !

Could you give the current build a test? And let me know what things are broken so i can try to have the next build with more fixes

Sure. Where can I get/download the same ?

12345678901234567890

I’m not very bright mine is just espresso whifi, hence immediate error ;(

Ready to try whenever you want me to. Thank you.

Hey guys, awesome work you are doing here! I’m ready to test builds for espressowifi whenever new ones are out.

This topic was automatically closed after 365 days. New replies are no longer allowed.