[Verizon LG G2] :
So, I'm still having issues building successfully... Really not sure what I screwed up where. I'm thinking that I might need to dump my CCACHE, and see how it goes.

Anyway, since I can't seem to find a 'pure' vendor tree from say AOSP or the like. I decided to compare the /vendor/ directories between the stock rom and the CM builds (JPC's not mine). And there are a number of vendor files misising:

Only in Stock_system/vendor/firmware: widevine.b00
Only in Stock_system/vendor/firmware: widevine.b01
Only in Stock_system/vendor/firmware: widevine.b02
Only in Stock_system/vendor/firmware: widevine.b03
Only in Stock_system/vendor/firmware: widevine.mdt
Only in Stock_system/vendor/lib/hw: activity_recognition.msm8974.so
Only in Stock_system/vendor/lib: libalarmservice_jni.so
Only in Stock_system/vendor/lib: libbtnv.so
Only in Stock_system/vendor/lib: libchromaflash.so
Only in Stock_system/vendor/lib: libcneconn.so
Only in Stock_system/vendor/lib: libcne.so
Only in Stock_system/vendor/lib: libdisp-aba.so
Only in Stock_system/vendor/lib: libdpencalib.so
Only in Stock_system/vendor/lib: lib-dplmedia.so
Only in Stock_system/vendor/lib: libdpmframework.so
Only in Stock_system/vendor/lib: libdpmnsrm.so
Only in Stock_system/vendor/lib: libdsucsd.so
Only in Stock_system/vendor/lib: libepdsp_SDserver.so
Only in Stock_system/vendor/lib: libHevcSwDecoder.so
Only in Stock_system/vendor/lib: lib-imscamera.so
Only in Stock_system/vendor/lib: lib-imsdpl.so
Only in Stock_system/vendor/lib: lib-imsqimf.so
Only in Stock_system/vendor/lib: lib-imsrcscmclient.so
Only in Stock_system/vendor/lib: lib-ims-rcscmjni.so
Only in Stock_system/vendor/lib: lib-imsrcscmservice.so
Only in Stock_system/vendor/lib: lib-imsrcscm.so
Only in Stock_system/vendor/lib: lib-imsrcs.so
Only in Stock_system/vendor/lib: lib-imsSDP.so
Only in Stock_system/vendor/lib: lib-imss.so
Only in Stock_system/vendor/lib: lib-imsvt.so
Only in Stock_system/vendor/lib: lib-imsxml.so
Only in Stock_system/vendor/lib: liblocationservice.so
Only in Stock_system/vendor/lib: libloc_ext.so
Only in Stock_system/vendor/lib: liblowi_client.so
Only in Stock_system/vendor/lib: libmasc.so
Only in Stock_system/vendor/lib: libmmcamera_chromaflash_lib.so
Only in Stock_system/vendor/lib: libmmcamera_ubifocus_lib.so
Only in Stock_system/vendor/lib: libmm-hdcpmgr.so
Only in Stock_system/vendor/lib: liboemcrypto.so
Only in Stock_system/vendor/lib: libppl.so
Only in Stock_system/vendor/lib: libqmi_client_helper.so
Only in Stock_system/vendor/lib: lib-rcsimssjni.so
Only in Stock_system/vendor/lib: lib-rcsjni.so
Only in Stock_system/vendor/lib: librmp.so
Only in Stock_system/vendor/lib: lib-rtpcommon.so
Only in Stock_system/vendor/lib: lib-rtpcore.so
Only in Stock_system/vendor/lib: lib-rtpdaemoninterface.so
Only in Stock_system/vendor/lib: lib-rtpsl.so
Only in Stock_system/vendor/lib: libscale.so
Only in Stock_system/vendor/lib: libscve.so
Only in Stock_system/vendor/lib: libscve_stub.so
Only in Stock_system/vendor/lib: lib-sec-disp.so
Only in Stock_system/vendor/lib: libSecureUILib.so
Only in Stock_system/vendor/lib: libsecureui.so
Only in Stock_system/vendor/lib: libsecureuisvc_jni.so
Only in Stock_system/vendor/lib: libsecureui_svcsock.so
Only in Stock_system/vendor/lib: libsensor_test.so
Only in Stock_system/vendor/lib: libsensor_thresh.so
Only in Stock_system/vendor/lib: libStDrvInt.so
Only in Stock_system/vendor/lib: libSubSystemShutdown.so
Only in Stock_system/vendor/lib: libTimeService.so
Only in Stock_system/vendor/lib: libubifocus.so
Only in Stock_system/vendor/lib: libusutils.so
Only in Stock_system/vendor/lib: libvcel.so
Only in Stock_system/vendor/lib: libvendorconn.so
Only in Stock_system/vendor/lib: libVenusMbiConv.so
Only in Stock_system/vendor/lib: libwifiscanner.so
Only in Stock_system/vendor/lib: libwqe.so
Only in Stock_system/vendor/lib: libxtadapter.so
Only in Stock_system/vendor/lib: libxt_native.so
Only in Stock_system/vendor/lib: libxtwifi_ulp_adaptor.so
Only in Stock_system/vendor/lib: libxtwifi_zpp_adaptor.so
Binary files Stock_system/vendor/lib/mediadrm/libdrmclearkeyplugin.so and /CM_System/vendor/lib/mediadrm/libdrmclearkeyplugin.so differ
Only in Stock_system/vendor/lib/mediadrm: libwvdrmengine.so
Only in Stock_system/vendor/lib: soundfx
Only in Stock_system/vendor: media
Only in Stock_system/vendor: overlay
Only in Stock_system/vendor: pittpatt
Only in Stock_system/vendor: etc

Only in /CM_System/vendor/lib: libbt-vendor.so
Only in /CM_System/vendor/firmware: BCM4335B0_002.001.006.0191.0201_ORC.hcd
Only in /CM_System/vendor/firmware: bcm4335_prepatch.hcd

I'm thinking the 3 files that are only in the CM tree probably aren't needed anymore.

In the stock tree there are quite a few files, most of them I'm unsure what they might actually do.

Probably unimportant:

/vender/pittpatt/ can probably be ignored, it's a pattern recognition thing. Apparently helps search the web for images.

/vendor/overlay/ is full of replacement APKs, probably largely unimportant.

The widevine files are just links to the same filenames in /persist-lg/firmware but apparently it's for some proprietary DRM stuff.

/vendor/etc/ only contains an audio_effects.conf and charger images in a directory... meh.

Possibly important:

Only in Stock_system/vendor/lib: libxtadapter.so

Only in Stock_system/vendor/lib: libxt_native.so

Only in Stock_system/vendor/lib: libxtwifi_ulp_adaptor.so

Only in Stock_system/vendor/lib: libxtwifi_zpp_adaptor.so

service xtwifi_inet /system/bin/xtwifi-inet-agent

class late_start

user gps

group inet gps

disabled

service xtwifi_client /system/bin/xtwifi-client

class late_start

user gps

group net_admin wifi inet gps

disabled

Only in Stock_system/vendor/lib: liblowi_client.so

From stock's init.galbi2_core.rc:

service lowi-server /system/bin/lowi-server

class late_start

user gps

group gps net_admin wifi inet

disabled

The one that seems really important to me though... is this one

Only in Stock_system/vendor/lib: liblocationservice.so

From the same .rc file I was linking before we have:

#Create directories for QuIPS

mkdir /data/misc/quipc 0770 gps system

#Create directories for Location services

mkdir /data/misc/location 0770 gps gps

mkdir /data/misc/location/mq 0770 gps gps

mkdir /data/misc/location/xtwifi 0770 gps gps

and

service location_mq /system/bin/location-mq

class late_start

user gps

group gps

from init.qcom.rc

service loc_launcher /system/bin/loc_launcher

#loc_launcher will start as root and set its uid to gps

class late_start

group gps inet net_raw qcom_diag net_admin wifi

I'm thinking that maybe these daemons *might* need to link to these vendor files somehow.. but we're also not building some of these binaries for /system/bin

I'm thinking that maybe these daemons *might* need to link to these vendor files somehow.. but we're also not building some of these binaries for /system/bin

There's a couple more sub directories that didnt compare either it seems. Like /vendor/lib/hw also contains flp.default.so and sensors.msm8974.so in the stock system.

Like I've said before. GPS seems like it's working, it's just not reporting as accurately as it should... which is what I'm trying to trace down right now.

Any ideas?

Like I've said before. GPS seems like it's working, it's just not reporting as accurately as it should... which is what I'm trying to trace down right now.

Any ideas from anyone with a bit more knowledge than me? Perhaps there's a way to trace what's using what vendor files while in stock?