Warning: Your data ( sms, call logs etc..) apps, configuration stored in phone memory will be lost, take backup.
1. Unlocked androidone and install recovery
1. Android Debug Bridge CLI tool and Android Fastboot protocol CLI tool. Easily available in debian via
apt-get install android-tools-adb android-tools-fastboot
2. Custom recovery
TWRP is used here. Read the rest of this entry
You must have adb in your linux box. You can install the same in debian by
apt-get install android-tools-adb