This how-to is meant for people building/editing ROMβs and got stuck in a bootloop (the phone, not the people ). To debug this we need to have βadb logcatβ. To enable this modify the following files:
Edit: system/core/adb/daemon/main.cpp
example: /srv/src/PIE/system/core/adb/daemon/main.cpp
ββββββββββββββββββββββββββββββββββββββββββ
// if (ALLOW_ADBD_NO_AUTH && !android::base::GetBoolProperty(βro.adb.secureβ, false)) {
// auth_required = false;
// }
auth_required = false;
ββββββββββββββββββββββββββββββββββββββββββ
Edit: system.prop in your device tree
example: /srv/src/PIE/device/leeco/s2/system.prop
ββββββββββββββββββββββββββββββββββββββββββ
persist.service.adb.enable=1 persist.service.debuggable=1 persist.sys.usb.config=mtp,adb
ββββββββββββββββββββββββββββββββββββββββββ
Build and flash the ROM.
Now type adb logcat in a terminal and boot the phone, hopefully you get to see the error.
PS: the main.cpp is kind of a hack, there must be a βconfigβ way to do it, but I did not find it yet.