My device is stuck at the Apple logo. How can I reboot w/a broken power button?

Hello guys! I have lil' problem here..
So, I was installing tweak which is only for 7.0.4 on my iPhone 7.1.2 device.. And it asked me for reboot(when all was completed). I click on reboot button, and my device just stuck at apple logo, and now I can't use it.. And one more problem is that my lock button is broken. Please help me, pleaseee!! <3 🙁 Sorry for bad english..
I suppose one way is to let the battery deplete and then connect your device to a charger. You should also be able to restore the device via iTunes.
Try to restore it to iTunes. Or try to kill the lasting charge. Other than that you would be SOL.

Original thread: https://forums.imore.com/threads/my-device-is-stuck-at-the-apple-logo-how-can-i-reboot-w-a-broken-power-button.293139/