Trick: Patching bootimg to enable adbd on early boot.
Here is a method to enable ‘adbd’ service on early boot without enabling them in Settings. It’s great if device is booting for first time and it’s stuck somewhere. You could immediately track the problem that way. The user ‘sigprof’ taught me this -
On cm-14.1, I found that that initrd now generates ramdisk-recovery.cpio instead of ramdisk.cpio… So just simply replacing ramdisk by ‘ramdisk-recovery’ should work. Happy debugging!