DevUt | 5d831b4 | 2016-12-31 13:24:32 +0530 | [diff] [blame] | 1 | --- |
| 2 | layout: device |
steadfasterX | 58b5640 | 2017-05-20 21:27:50 +0200 | [diff] [blame] | 3 | title: "LG G4" |
steadfasterX | 7c55923 | 2018-05-23 09:29:00 +0200 | [diff] [blame^] | 4 | codename: G4, F500, LS991, H810, H811, H812, H815, H819, US991, VS986 |
steadfasterX | 47c6f76 | 2017-06-14 13:24:22 +0200 | [diff] [blame] | 5 | downloadfolder: g4 |
DevUt | 5d831b4 | 2016-12-31 13:24:32 +0530 | [diff] [blame] | 6 | supportstatus: Current |
| 7 | maintainer: steadfasterX |
| 8 | oem: LG |
steadfasterX | 47c6f76 | 2017-06-14 13:24:22 +0200 | [diff] [blame] | 9 | devicetree: https://github.com/TeamWin/android_device_lge_g4 |
DevUt | 5d831b4 | 2016-12-31 13:24:32 +0530 | [diff] [blame] | 10 | ddof: "/dev/block/bootdevice/by-name/recovery" |
| 11 | xdathread: "http://forum.xda-developers.com/g4/development/recovery-twrp-3-touch-recovery-t3442424" |
| 12 | --- |
| 13 | |
| 14 | {% include disclaimer.html %} |
| 15 | |
| 16 | {% include supportstatus.html %} |
| 17 | NOTE: You must unlock the bootloader first before installing TWRP! |
| 18 | |
steadfasterX | b4ede05 | 2018-02-16 14:30:05 +0100 | [diff] [blame] | 19 | <div class='page-heading' id='unlock'>Unlock your device:</div> |
| 20 | <hr /> |
| 21 | <p class="text">The recommended way is to use <a href="https://forum.xda-developers.com/android/software-hacking/live-iso-adb-fastboot-driver-issues-t3526755" target=_blank>FWUL - a simple adb/fastboot ISO</a> which has all drivers etc included and provides an easy and ready-to-use adb environment.</p> |
| 22 | <p class="text">Consider a full backup in Download Mode with <a href="https://bit.do/SALTatXDA" target=_blank>SALT</a> first before you begin..</p> |
| 23 | <p class="text">If you still want to use Windows <a href="http://developer.android.com/sdk/index.html#linux-bundle-size">you will need the platform-tools from the Android SDK</a> on your computer. 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> |
| 24 | <p class="text">Windows users will also need proper drivers installed on their computer. You can try 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> |
steadfasterX | af3cefb | 2018-03-26 18:43:36 +0200 | [diff] [blame] | 25 | <p class="text">Your device needs to be either officially unlocked by LG or unofficially <a href="https://bit.do/unlockg4" target=_blank>UsU'd</a> before you can flash custom images! |
| 26 | <p class="text">To unlock your device officially you have to go to: <a href="http://developer.lge.com/resource/mobile/RetrieveBootloader.dev" target=_blank>http://developer.lge.com</a> and follow all steps there to get and flash your LG unlock binary onece received. You can NOT proceed without completing this step!</p> |
steadfasterX | b4ede05 | 2018-02-16 14:30:05 +0100 | [diff] [blame] | 27 | |
DevUt | 5d831b4 | 2016-12-31 13:24:32 +0530 | [diff] [blame] | 28 | {% include appinstall.html %} |
| 29 | |
steadfasterX | b4ede05 | 2018-02-16 14:30:05 +0100 | [diff] [blame] | 30 | <div class='page-heading' id='fastboot-install-lpmm'>Fastboot Installation Method (LP/MM bootloader - for N bootloader scroll down!):</div> |
| 31 | <hr /> |
| 32 | <p class="text">This method works <b>only</b> when you have a <b>Lollipop or Marshmallow</b> bootloader / ROM installed! If you have flashed <b>Nougat</b> scroll down to the next topic!</p> |
| 33 | <p class="text">TWRP requires an unlocked device - read the above topic and ensure you have your device unlocked and <b>adb/fastboot</b> ready (read above topic if not)!</p> |
| 34 | <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> |
| 35 | <p class="code">fastboot boot twrp.img</p> |
| 36 | <p class="text">This will boot up TWRP but for the moment in <i>memory</i> only. To complete the installation and making it persistent:</p> |
| 37 | <p class="text">Copy the twrp.img to your device <u>while still in twrp</u> (e.g. with a file explorer or by typing <i>adb push twrp.img /sdcard</i>)</p> |
| 38 | <p class="text">Flash the twrp.img with the twrp GUI to the <b>recovery(!)</b> partition (choose the button at the bottom named <b>'Image'</b> to display the copied image)</p> |
| 39 | <p class="text">Android would <b>overwrite</b> TWRP on boot so: you need to boot TWRP once again <b>NOW</b>: Choose Reboot -> <b>Recovery</b><br /> |
| 40 | or on your PC type: <i><b>adb reboot recovery</b></i></p> |
| 41 | <p class="text">If you see TWRP afterwards then you are safe to use the key combo described in the next topic. If NOT: <b>RE-DO all steps!</b> DO <b>NOT</b> USE THE KEY COMBO described in the next topic until the reboot into recovery worked!</p> |
| 42 | |
| 43 | <div class='page-heading' id='fastboot-install-n'>Fastboot Installation Method (N bootloader - for LP/MM bootloader scroll up!):</div> |
| 44 | <hr /> |
| 45 | <p class="text">This method works <b>only</b> when you have a <b>Nougat</b> bootloader / ROM installed! If you have flashed <b>Lollipop or Marshmallow</b> scroll up to the previous topic!</p> |
| 46 | <p class="text">Consider a full backup with <a href="https://bit.do/SALTatXDA" target=_blank>SALT</a> first before you begin..</p> |
| 47 | <p class="text">TWRP requires an unlocked device - read the above topic and ensure you have your device unlocked and <b>adb/fastboot</b> ready (read above topic if not)!</p> |
| 48 | <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> |
| 49 | <p class="code">fastboot flash recovery twrp.img</p> |
| 50 | <p class="text">There is no 100% way to verify your TWRP installation on the N bootloader so you have to take the risk (did you made a SALT backup before?) but ensure you follow this next step briefly:</p> |
| 51 | <p class="text">Take out the battery and disconnect the USB cable. Now follow the topic: <i><b>Boot into TWRP with a key combination</b></i> (as you can not verify the TWRP installation just do it). If you skip this step and boot into Android before doing this TWRP will be overwritten by Android so it is <b>crucial</b> important to do this step above <b>directly after flashing TWRP</b>!! if you miss it you will have to flash TWRP <b>again!</b></p> |
| 52 | <p class="text">If all went well TWRP should boot up.</p> |
| 53 | <p class="text">Android would <b>overwrite</b> TWRP on boot so: you need to boot TWRP once again <b>NOW</b>: Choose Reboot -> <b>Recovery</b><br /> |
| 54 | or on your PC type: <i><b>adb reboot recovery</b></i></p> |
| 55 | <p class="text">If you see TWRP afterwards again then you are safe to use the key combo described in the next topic. If NOT: <b>RE-DO all steps!</b> DO <b>NOT</b> USE THE KEY COMBO described in the next topic until the reboot into recovery worked!</p> |
| 56 | |
DevUt | 5d831b4 | 2016-12-31 13:24:32 +0530 | [diff] [blame] | 57 | <div class='page-heading'>Download Links:</div> |
| 58 | <hr /> |
steadfasterX | 58b5640 | 2017-05-20 21:27:50 +0200 | [diff] [blame] | 59 | <p class="text">LG G4 (any model):</p> |
DevUt | 5d831b4 | 2016-12-31 13:24:32 +0530 | [diff] [blame] | 60 | <ul> |
| 61 | {% for mirror in site.data.mirrors %} |
| 62 | <li> |
steadfasterX | 47c6f76 | 2017-06-14 13:24:22 +0200 | [diff] [blame] | 63 | <a href="{{ mirror.baseurl }}g4"> |
DevUt | 5d831b4 | 2016-12-31 13:24:32 +0530 | [diff] [blame] | 64 | {{ mirror.description }} |
| 65 | </a> |
| 66 | </li> |
| 67 | {% endfor %} |
| 68 | </ul> |
| 69 | |
steadfasterX | 3de1119 | 2017-06-13 16:05:04 +0200 | [diff] [blame] | 70 | <div class='page-heading'>Boot into TWRP with a key combination:</div> |
| 71 | <hr /> |
| 72 | <p class="text">Ensure you have validated the TWRP installation first! Check the above topic and proceed when verification was successful <b>only</b>!<p> |
| 73 | <p class="text">After installing TWRP correctly, you will still have the original LG factory reset screen/menu booting before TWRP, every time! So the correct and only way to get into TWRP with a key combo is to select <b>two times "Yes"</b> in the official LG factory reset menu, and only then you will get into TWRP (This a restriction by LG. There is no key combo available in some / all / most LG devices to boot directly into recovery and so TWRP).</p> |
| 74 | <p class="text">Power down and pull out the battery. Do not forget to remove any USB cable. <br /> |
| 75 | Press power down and hold it down. Put battery back while keeping vol down pressed. Press power button and keep now both buttons pressed. Directly you see the LG logo the first time just release <b>only</b> the power button for 1 second ( do not release vol down ) and then press power again and keep both pressed until you see the factory reset screen. Proceed like you would to the factory reset (as long as TWRP is installed it will not reset but just open TWRP instead). |
| 76 | |
steadfasterX | a8217cd | 2017-02-15 15:36:33 +0100 | [diff] [blame] | 77 | |
DevUt | 5d831b4 | 2016-12-31 13:24:32 +0530 | [diff] [blame] | 78 | {% include twrpinstall.html %} |
| 79 | |
| 80 | {% include ddinstall.html %} |