su binary is installed to xbin folder and is symlinked to the bin folder. SUPERUSER_EMBEDDED = true is enabled in build script and points to files for binary and application. After about 8 different build attempts of changing one thing here or there, i decided to pull a logcat and found this sequence when asking for root privelage over ADB:
[ 08-30 00:24:22.616 2888: 2888 D/su ] su invoked. [ 08-30 00:24:22.616 2888: 2888 D/su ] starting daemon client 2000 0 [ 08-30 00:24:22.616 2888: 2888 E/su ] connect failed with 2: No such file or directory\
The hint is that when you flash a custom kernel over the device after building our repo from scratch, su issue is gone. But i can't quite figure out where the issue is, I've looked through kernel related files and boot related files. Any assistance would be greatly appreciated. Im using an HTC one m8 (m8vzw/m8wlv), the repo with this is under "VentureROM-Legacy" on github, but i guess i cant post that since i never use XDA. Thank you in advance
Found the issue.