When booted into TWRP (not the Android OS), is there a difference between running a command on an ADB shell and running it in TWRP's terminal? Specifically something that messes with partitions? Is it safe? Are different results to be expected?
I'm having a problem with my OnePlus One. It seemingly randomly reboots or turns off instantly. Sometimes refusing to start again unless the power button is pressed for about 30 seconds or the battery connector is disconnected and connected again. According to this article, the issue might be a corrupted partition. It suggests running:
over ADB. Unfortunately it is impossible for me to get ADB to recognize my device properly. I did everything that this article suggested, but it didn't help. I tried to scan for ADB devices while in booted into TWRP (no devices showed up) and I tried to scan for devices while booted into Android, but as soon as I enable USB debugging the phone constantly disconnects like multiple times per second. I tried using a powered USB extension as suggested here, but it didn't help. I also measured the current draw and it constantly switched between ~230mA and ~270mA (the PSU would have allowed up to 5100mA). Also, I refuse to do ADB over WiFi for security reasons. It would also most likely be a pain to get the firewalls to allow it.
I also wonder if there is a way to find out if any of the other partitions are corrupted (there are like 50 devices listed under