Nice job! Fastboot seems to be working now.
Adb, however, is throwing an error because it can't create a log file in its preferred location:
Any idea how to fix that?
EDIT: @Surge1223 Please disregard the above - user error. It's working fine! I overwrote @osm0sis' wrapper script instead of the actual adb binary - oops!
EDIT 2: And now adb sideload works! Excellent! Fantastic update.
So btw the way to work around that issue of where the log writes and the failure it causes is to declare and define ADB_HOME and HOME in your environment.
In any case, I went ahead and fixed it in source, updated build is below
https://androidfilehost.com/?fid=8889791610682945419
Now a log gets generated on /sdcard
--- adb starting (pid 5799) ---
adb I 09-25 05:24:42 5799 5799 main.cpp:62] Android Debug Bridge version 1.0.41
adb I 09-25 05:24:42 5799 5799 main.cpp:62] Version 29.0.6-eng.surge.20200925.040615
adb I 09-25 05:24:42 5799 5799 main.cpp:62] Installed as /product/bin/adb
adb I 09-25 05:24:42 5799 5799 main.cpp:62]
adb I 09-25 05:24:42 5799 5799 auth.cpp:415] adb_auth_init...
adb I 09-25 05:24:42 5799 5799 auth.cpp:218] User key '/sdcard/.android/adbkey' does not exist...
adb I 09-25 05:24:42 5799 5799 auth.cpp:64] generate_key(/sdcard/.android/adbkey)...
adb I 09-25 05:24:42 5799 5799 auth.cpp:151] Loaded fingerprint=[94F5F9A1BA4BD897EEB07AB2B2D45682854E6721FE702E59E375484A168AD561]
adb I 09-25 05:24:42 5799 5799 auth.cpp:390] adb_auth_inotify_init...
adb W 09-25 05:28:18 5799 10027 network.cpp:149] failed to connect to '192.168.1.115:5555': Connection refused
adb I 09-25 05:28:43 5799 5799 adb_wifi.cpp:104] Known hosts file [/sdcard/.android/adb_known_hosts.pb] does not exist...
adb I 09-25 05:28:43 5799 5799 transport_mdns.cpp:165] serviceName=adb-89NY08YJS-qgX0HC not in keystore
The auth mechanism has changed quite a bit as well as the source structure in general. Im hoping there are no more hiccups, especially not with usb connection or the crypto/verification stuff.
Anyways just thought I'd give an update.
I'll post a patch of the changes I made to source soon, might be helpful for others.