blob: ca27b0d60ce0aeaa9b312cf1d097698e2c55842d [file] [log] [blame]
James Christopher Adduonoc04964e2016-04-26 00:42:04 -04001{% capture fastboot %}fastboot{% if page.fastbootvendor %} -i 0x{{ page.fastbootvendor }}{% endif %}{% endcapture %}
MSF Jarvisce2ee802016-04-07 16:22:23 +05302<html>
Patrick Connollyd151bf82015-04-13 18:02:33 -04003<div class='page-heading' id='fastboot-install'>Fastboot Install Method (No Root Required):</div>
MSF Jarvisce2ee802016-04-07 16:22:23 +05304<a id='fastboot'></a>
bigbiffd006b302015-03-06 18:36:03 -05005<hr />
James Christopher Adduonob7052342016-05-16 22:40:58 -04006<p class="text"><a href="http://developer.android.com/sdk/index.html#linux-bundle-size">You will need the platform-tools from the Android SDK on your computer.</a> Find the Android command line tools section on the page linked and install the SDK tools package. From the SDK Manager, download only the platform-tools to get adb and fastboot binaries.</p>
steadfasterXfe6b5b72017-02-15 15:48:25 +01007<p class="text">Windows users will need proper drivers installed on their computer. You can try the <a href="https://forum.xda-developers.com/android/software-hacking/live-iso-adb-fastboot-driver-issues-t3526755" target=_blank>simple FWUL adb/fastboot ISO</a> or the <a href="http://www.xda-developers.com/universal-naked-driver-solves-your-adb-driver-problems-on-windows/">Naked ADB drivers</a> or the <a href="http://www.koushikdutta.com/post/universal-adb-driver">Universal ADB drivers</a> if you don't already have a working driver installed</p>
bigbiffd006b302015-03-06 18:36:03 -05008<p class="text">On your device, go into Settings -> About and find the Build Number and tap on it 7 times to enable developer settings. Press back and go into Developer Options and enable USB debugging. From your computer, open a command prompt and type:</p>
James Christopher Adduono743773d2016-04-26 01:31:33 -04009<p class="code">adb reboot bootloader</p>
James Christopher Adduonoc04964e2016-04-26 00:42:04 -040010<p class="text">You should now be in fastboot mode.</p>
11{% if page.fastbootunlock %}
12<p class="text">Your device needs to be unlocked before it can flash custom images. To unlock your device type:</p>
James Christopher Adduono743773d2016-04-26 01:31:33 -040013<p class="code">{{ fastboot }} oem unlock</p>
James Christopher Adduonoc04964e2016-04-26 00:42:04 -040014{% endif %}
15<p class="text">Download the correct image file and copy the file into the same folder as your adb and fastboot binaries. Rename the image to twrp.img and type:</p>
James Christopher Adduono743773d2016-04-26 01:31:33 -040016<p class="code">{{ fastboot }} flash recovery twrp.img</p>
17<p class="code">{{ fastboot }} reboot</p>
18<p class="text">Note many devices will replace your custom recovery automatically during first boot. To prevent this, use <a href="http://www.google.com">Google</a> to find the proper key combo to enter recovery. After typing <span class="code">{{ fastboot }} reboot</span>, hold the key combo and boot to TWRP. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don't follow this step, you will have to repeat the install.</p>
James Christopher Adduonoc04964e2016-04-26 00:42:04 -040019</html>