My sister accidentally dropped her Nexus 4 in the sea when she tried to take some pictures on her holiday. She continued using the phone for a few days before it couldn't start any more. Then she sent the phone to me.
The power button doesn't work anymore, therefore the phone couldn't start. But the phone can still charge, which is a good sign. After a few search I followed some steps from XDA [LINK Here] to recovered the phone as well as the personal data.
This is exactly what I did:
1, open the phone and clean it, now the button works.
2, follow the guide, use LGNPST to rescue the phone, stop at flashing the stock rom.
3, boot into bootloader and unlock it with fastboot.
4, flash twrp recovery.
5, flash usb-otg kernel [here] under twrp using adb sideload.
6, use usb-otg under twrp with Y-cable to recover user data.
7, follow the guide [here] to flashing the factory image.
side note:
apparently the you can pull the complete folder directly from the recovery mode, so no otg required. I feel kinda stupid now...