Here is my problem. I have a Nexus 4 that constantly powers off. And by power off, I mean as soon as the Nexus 4 boots up into the OS, the phone starts the power off sequence.

What I've tried so far was:
- in recovery did a factory reset, wiped both the data and cache partition.
- tried reloading the official nexus 4 firmware. Tried the 4.4.4 and 4.4.3 image
- used fastboot to load up a custom recover only to realize there is no rom on the phone itself to install from so that's out of the question pretty much.
- I tried the adb sideload but the computer doesn't see the nexus 4. the computer however sees the phone when it boots into the OS but the phone starts the shutdown operation as soon as it loads the start screen.

If it's hardware issue, then I guess there's no point in trying to fix it. But if it's only software related I want to at least try to see if it can be saved. lol

XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality.Are you a developer?