This guide is for Windows.
- Connect phone via USB to PC, wait a while for drivers to install.
- Install "Minimal ADB Fastboot" (from XDA-Developers).
- Enable USB DEBUG under "Config / Developer Options" on phone.
- Open a Command Prompt under the folder "C:\Program Files (x86)\Minimal ADB and Fastboot"
- Open phone adb shell:
adb shell
- Use the following commands: