Accessing a phone after factory resetting it with adb
You won't have USB debugguing after a factory reset.
Perhaps you could tweak a custom rom to do so, i never tryed myself, but ie TWRP recovery have adb enabled by default.