If you really need to have ADB
running as root
, the quickest and easiest way is to install Android Custom ROMs and the most popular is CyanogenMod
for it has the Root Access
options in developer options menu where you can choose to give root access to apps and ADB
. I used CM before but since it wasn't developed anymore, I tried looking for some solutions out there. Although CyanogenMod is still a good alternative because it does not have bloatware.
One alternative I found out from a friend is using adbd insecure
app which you could try from here: https://forum.xda-developers.com/showthread.php?t=1687590. In my case, it works perferct with an Android custom kernel, but not with the Android stock ROM (vanilla android only). You may try other alternatives too like modifying boot.img
of the Android ROM.