Phone stuck in ADB sideload
if you can't take out the battery of your device and if longpressing whatever does not solve it


install adb on pc.
connect device with usb cable to pc
enter following command on pc

adb sideload /dev/null



the device will complain that file is not valid but it will come out of the sideloading state