[T-Mobile Galaxy Note 4 Android Development] Michael.B.:
Thanks for this! I am half following your guide as well as the updates from fattire. I am currently trying to build an updated tmo version. I basically did the repo init and added the local_manifests/roomservice.xml (I am using exactly what fattire put in the second post of the thread) and synced everything. I went into the tmo device directory and ran the extract-files.sh. It was unable to find two of the proprietary files, below is my changes to get it to pull them correctly.

michael@crux:~/android/system/device/samsung/trltetmo$ git diff
diff --git a/proprietary-files.txt b/proprietary-files.txt
index dde2db6..b6a4fef 100755
--- a/proprietary-files.txt
+++ b/proprietary-files.txt
@@ -5,7 +5,7 @@ vendor/firmware/bcm43569A0.hcd
vendor/firmware/bcm43569A1.hcd

# GPS
--app/com.qualcomm.location.apk
+-app/com.qualcomm.location/com.qualcomm.location.apk
bin/gsiff_daemon
etc/permissions/com.qualcomm.location.xml
vendor/lib/hw/flp.default.so

michael@crux:~/android/system/device/samsung/trlte-common$ git diff
diff --git a/proprietary-files.txt b/proprietary-files.txt
index 7aae171..ba02e37 100644
--- a/proprietary-files.txt
+++ b/proprietary-files.txt
@@ -348,7 +348,7 @@ lib/hw/sensorhubs.apq8084.so

# Time services
bin/time_daemon
--app/TimeService.apk
+-app/TimeService/TimeService.apk
lib/libcommon_time_client.so
vendor/lib/libTimeService.so
-vendor/lib/libtime_genoff.so

After this, I started the breakfast/brunch and got the following a few minutes later:

make: *** No rule to make target `/home/michael/android/system/out/target/product/trltetmo/obj/lib/libtime_genoff.so', needed by `/home/michael/android/system/out/target/product/trltetmo/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/LINKED/libandroid_servers.so'. Stop.
make: *** Waiting for unfinished jobs....

To attempt to solve this, I did some Googling, and they mentioned they just copied the file from the trlte-common folder to the location it was looking for. I ran the below command and this allowed the build to continue.

michael@crux:~/android/system$ cp vendor/samsung/trlte-common/proprietary/vendor/lib/libtime_genoff.so /home/michael/android/system/out/target/product/trltetmo/obj/lib/libtime_genoff.so

Build finished, went to flash it (After a backup/wipe) and it seems to just be stuck on the rotating cid boot image.

When looking in logcat, I see the following errror in a few places:

E/art ( 3822): dlopen("/system/lib/libandroid_servers.so", RTLD_LAZY) failed: dlopen failed: could not load library "libtime_genoff.so" needed by "libandroid_servers.so"; caused by library "libtime_genoff.so" not found

I also notice the phone get's quite hot and I see this constantly:

I/ThermalEngine( 310): Sensor:tsens_tz_sensor6:94000 mC
I/ThermalEngine( 310): ACTION: CPU - Setting CPU[0] to 2265600
I/ThermalEngine( 310): ACTION: CPU - Setting CPU[1] to 2265600
I/ThermalEngine( 310): ACTION: CPU - Setting CPU[2] to 2265600
I/ThermalEngine( 310): ACTION: CPU - Setting CPU[3] to 2265600

I feel like I am close, does anyone have any suggestions? I feel like the issue is due to the original libtime_genoff.so not being in the correct place.

Thanks in advance!

Mike