[Treble-Enabled Device Questions and Answers] filjusz:
Hello

For past ten days i'am trying to build omnirom pie with help of dakkars script

Here is what have i done:

1. I have installed ADB&Fastboot tools and added them to my .profile

# add Android SDK platform tools to path

if [ -d "$HOME/platform-tools" ] ; then

PATH="$HOME/platform-tools:$PATH"

fi

2. Next i have installed all needed packages for making roms:

bc bison build-essential curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev

lib32readline-gplv2-dev lib32z1-dev libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk3.0-dev

libxml2 libxml2-utils lzop pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev openjdk-8-jdk

3. In this step i installed the repo and maked it executable:

mkdir -p ~/bin

curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

chmod a+x ~/bin/repo

4. Put the ~/bin directory in your path of execution in .profile (done)

# set PATH so it includes user's private bin if it exists

if [ -d "$HOME/bin" ] ; then

PATH="$HOME/bin:$PATH"

fi

5. update your environment

source ~/.profile

6. Log in

git config --global user.name blabla

git config --global user.email blabla@xda.bla

7. FINAL: Build using dakkar's script

git clone https://github.com/phhusson/treble_experimentations

and...

Edit dakkars script to contain omnirom pie like that:

omni)

mainrepo="https://github.com/omnirom/android.git"

mainbranch="android-9.0"

localManifestBranch="android-9.0"

treble_generate="omni"

extra_make_options="WITHOUT_CHECK_API=true"

;;

save file, and run:

bash ../treble_experimentations/build-dakkar.sh omni arm64-aonly-vanilla-nosu

Do you want to sync? (Y/N): Y

After many hours of downloading (in my case 12 hours :p) it started building

filip@HP8460p:~/bin/Planetera/treble_experimentations$ bash ../treble_experimentations/build-dakkar.sh omni arm64-aonly-vanilla-nosu

Do you want to sync? n

Python 2.7.15rc1

build/make/: discarding 2 commits

~/bin/Planetera/treble_experimentations/build/make ~/bin/Planetera/treble_experimentations

HEAD is now at efc4bdf0c Merge tag 'android-8.1.0_r51' of https://android.googlesource.com/platform/build into HEAD

Applying: Set ro.build.fingerprint in system/etc/prop.default

Applying: Revert "Remove root folder bt_firmware in GSI"

error: patch failed: core/build_id.mk:18

error: core/build_id.mk: patch does not apply

Failed applying /home/filip/bin/Planetera/treble_experimentations/patches/patches/platform_build/0005-Shorten-build-id.patch

~/bin/Planetera/treble_experimentations

external/selinux/: discarding 5 commits

~/bin/Planetera/treble_experimentations/external/selinux ~/bin/Planetera/treble_experimentations

HEAD is now at 9c34b856 (re)declare versioned attributes in mapping file

Applying: libsepol: cil: Keep type[attribute] declarations when attributizing.

Applying: libsepol/cil: Create new keep field for type attribute sets

Applying: Enable multipl_decls by default. This is needed because 8.0 init doesn't add -m

Applying: libsepol/cil: Improve processing of context rules

Applying: Increase default log_level to get actual selinux error in kmsg

~/bin/Planetera/treble_experimentations

frameworks/av/: discarding 2 commits

~/bin/Planetera/treble_experimentations/frameworks/av ~/bin/Planetera/treble_experimentations

HEAD is now at efa31ebe5 Merge tag 'android-8.1.0_r51' of https://android.googlesource.com/platform/frameworks/av into HEAD

Applying: FIH devices: Fix "Earpiece" audio output

Applying: Fix WiFi-Display on Huawei devices (EMUI 8.0)

~/bin/Planetera/treble_experimentations

frameworks/base/: discarding 15 commits

~/bin/Planetera/treble_experimentations/frameworks/base ~/bin/Planetera/treble_experimentations

HEAD is now at ed29d2d966f Merge tag 'android-8.1.0_r51' of https://android.googlesource.com/platform/frameworks/base into HEAD

Applying: renderthread: relax error handling for wide gamut EGL configs

warning: services/core/java/com/android/server/power/PowerManagerService.java has type 100755, expected 100644

error: patch failed: services/core/java/com/android/server/power/PowerManagerService.java:1947

error: services/core/java/com/android/server/power/PowerManagerService.java: patch does not apply

Failed applying /home/filip/bin/Planetera/treble_experimentations/patches/patches/platform_frameworks_base/0002-Reintroduce-button-backlight-and-respective-inactivi.patch

warning: services/core/java/com/android/server/power/PowerManagerService.java has type 100755, expected 100644

Applying: power: Disable keyboard/button lights while dozing/dreaming

warning: services/core/java/com/android/server/power/PowerManagerService.java has type 100755, expected 100644

Applying: Fix backlight control on Galaxy S9(+)

error: patch failed: services/core/java/com/android/server/StorageManagerService.java:1316

error: services/core/java/com/android/server/StorageManagerService.java: patch does not apply

Failed applying /home/filip/bin/Planetera/treble_experimentations/patches/patches/platform_frameworks_base/0005-Relax-requirement-for-visible-flag-to-sdcards.patch

Applying: Also scan /product/overlay for RRO

Applying: Also scan /system/overlay

Applying: Fix(?) #62

Applying: S9 brightness override only for screen

Applying: Fix OP6 brightness

Applying: Try to make brightness more generic using property set by rw-system

Applying: property-matching RROs: allow to prefix the value with + to do glob match instead of exact match

Applying: Fix typo on fnmatch return value check

Applying: Add Qualcomm starlte

Applying: "remaining" of HAL onEnroll is actually a percent of progress

Applying: Show APN Settings for CDMA carriers

Applying: Change SignalStrentgh to change behaviour based on property

~/bin/Planetera/treble_experimentations

frameworks/native/: discarding 1 commits

~/bin/Planetera/treble_experimentations/frameworks/native ~/bin/Planetera/treble_experimentations

HEAD is now at e57c93424 Merge tag 'android-8.1.0_r51' of https://android.googlesource.com/platform/frameworks/native into HEAD

error: patch failed: services/surfaceflinger/Layer.cpp:871

error: services/surfaceflinger/Layer.cpp: patch does not apply

error: patch failed: services/surfaceflinger/SurfaceFlinger.cpp:247

error: services/surfaceflinger/SurfaceFlinger.cpp: patch does not apply

error: patch failed: services/surfaceflinger/SurfaceFlinger.h:727

error: services/surfaceflinger/SurfaceFlinger.h: patch does not apply

Failed applying /home/filip/bin/Planetera/treble_experimentations/patches/patches/platform_frameworks_native/0002-device-Huawei-HWC-doesn-t-understand-0-0-0-0-fullscr.patch

Applying: DO NOT MERGE: Need GSI to support landscape LCM

~/bin/Planetera/treble_experimentations

frameworks/opt/telephony/: discarding 3 commits

~/bin/Planetera/treble_experimentations/frameworks/opt/telephony ~/bin/Planetera/treble_experimentations

HEAD is now at 8291c8125 Merge tag 'android-8.1.0_r51' of https://android.googlesource.com/platform/frameworks/opt/telephony into HEAD

Applying: Make better signal levels on Huawei devices

Applying: add hi3650

Applying: Set OpenKirin signal level meter to be activated on property

~/bin/Planetera/treble_experimentations

system/bt/: discarding 1 commits

~/bin/Planetera/treble_experimentations/system/bt ~/bin/Planetera/treble_experimentations

HEAD is now at 1158b8e7 Merge tag 'android-8.1.0_r51' of https://android.googlesource.com/platform/system/bt into HEAD

Applying: Make BTM_BYPASS_EXTRA_ACL_SETUP dynamic

~/bin/Planetera/treble_experimentations

system/core/: discarding 2 commits

~/bin/Planetera/treble_experimentations/system/core ~/bin/Planetera/treble_experimentations

HEAD is now at 2cbe879dd Merge tag 'android-8.1.0_r32' of https://android.googlesource.com/platform/system/core into HEAD

Applying: Revert "logd: add "+passcred" for logdw socket"

Applying: On S9/+, disable/enable TS on suspend/resume

.git/rebase-apply/patch:26: trailing whitespace.

warning: 1 line adds whitespace errors.

~/bin/Planetera/treble_experimentations

system/libvintf/: discarding 2 commits

~/bin/Planetera/treble_experimentations/system/libvintf ~/bin/Planetera/treble_experimentations

HEAD is now at 9b35a0d Snap for 4657601 from 9db9b147602210e6ae4b40848c49a7bfeeaefcff to oc-m4-release

Applying: HACK: Support sepolicy vndk 26

Applying: Say we support AVB 1.0

~/bin/Planetera/treble_experimentations

system/netd/: discarding 1 commits

~/bin/Planetera/treble_experimentations/system/netd ~/bin/Planetera/treble_experimentations

HEAD is now at 1cefd15 Merge tag 'android-8.1.0_r28' of https://android.googlesource.com/platform/system/netd into HEAD

Applying: Huawei Kirin 960:: accept broken rpfilter match

~/bin/Planetera/treble_experimentations

~/bin/Planetera/treble_experimentations/system/vold ~/bin/Planetera/treble_experimentations

HEAD is now at 31b8e69 Merge tag 'android-8.1.0_r51' of https://android.googlesource.com/platform/system/vold into HEAD

error: patch failed: Ext4Crypt.cpp:211

error: Ext4Crypt.cpp: patch does not apply

Failed applying /home/filip/bin/Planetera/treble_experimentations/patches/patches/platform_system_vold/0001-Allow-deletion-of-symlink.patch

~/bin/Planetera/treble_experimentations

including vendor/omni/vendorsetup.sh

including sdk/bash_completion/adb.bash

build/core/product_config.mk:232: *** _nic.PRODUCTS.[[device/phh/treble/treble_arm64_avN.mk]]: "device/phh/treble/omni.mk" does not exist. Stop.

filip@HP8460p:~/bin/Planetera/treble_experimentations$

Community help will be very appreciated :highfive: