Backup/reset Pixel XL with dead screen but adb access

Search This thread

androgames

New member
May 30, 2010
4
0
I have a Pixel XL on which the screen suddenly went dead.
Being a developer, I had turned on debugging and can get on it with adb.
I would like to recover pictures from it and some app data.

But even more importantly, before I send the phone back (I got a replacement under warranty), I want to erase all the data on it.

Does anybody have a good suggestion on how to do both of these things?