Re: Phone always thinks it's plugged in!
My new phone has since started freaking out as well- it would just randomly turn on and off, restart itself over and over- sometmes 15 or 20 times a day. Unrelated to the loose battery since it did it just sitting on the desk. Hard reset didn't fix it. I finally read about the boot menu (power off then hold volume up/down and power until you see the android) from here you can wipe your cache partition. This has mostly stopped the issue for me though it does still restart sometimes.
If you have the voice command/thinks its plugged in issue, i would try this as well.
Really bummed this phone is so buggy, when it works it's fantastic but so far i'm 0 for 2 having them work properly for more than 3 months in a row.