I've found a way to do it much simpler, once you have adb shell.
- Enable developer mode on your phone (Setting > About Phone, then click 7 times on Build number, then Setting > Developer, enable USB)
- Plug your phone to your computer
- On your comp...