{"id":3814,"date":"2017-02-12T22:42:18","date_gmt":"2017-02-12T21:42:18","guid":{"rendered":"http:\/\/www.sacchibelli.it\/?p=3814"},"modified":"2017-02-15T09:41:24","modified_gmt":"2017-02-15T08:41:24","slug":"lineage-os-14-1-on-moto-g-3rd-gen-osprey","status":"publish","type":"post","link":"https:\/\/www.sacchibelli.it\/?p=3814","title":{"rendered":"Lineage OS 14.1 on Moto G 3rd gen (osprey)"},"content":{"rendered":"<p><div style=\"width: 190px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.sacchibelli.it\/pictures\/nougat_7p1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.sacchibelli.it\/pictures\/nougat_7p1_a.png\" width=\"180\" height=\"320\" class=\"size-medium\" \/><\/a><p class=\"wp-caption-text\">Here Android 7.1.1 running on my Moto G 3rd gen<\/p><\/div>Although <a href=\"https:\/\/www.android.com\/\">Android<\/a> 6.01 running on Moto G (3rd generation) is clean enough, the adult male component of sacchibelli&#8217;s family decided to hack his mobile phone to enjoy the new features of Android 7 (aka Nougat), in its stock version, without any addition or customization provided by Motorola or anyone else. This is now possible thanks to the team of <a href=\"http:\/\/lineageos.org\/\">Lineage OS<\/a>, the former <a href=\"https:\/\/en.wikipedia.org\/wiki\/CyanogenMod\">CyanogenMod <\/a>custom rom providing the original flavor of Android OS. Here I listed the procedure I followed: it is a bit tricky and a bit risky too. A PC (in this case running Windows, but this is not mandatory) and a Moto G (3rd generation, 2015) updated to 6.01 is the needed hardware.<\/p>\n<ul>\n<li><strong>To install adb and fastboot driver on (Windows, in this case) PC<\/strong><\/li>\n<li><em>adb and fastboot are command line tools that allows to communicate with the mobile phone connected to the PC through USB<\/em><\/li>\n<li>Download the .exe from <a href=\"https:\/\/forum.xda-developers.com\/showthread.php?t=2588979\">https:\/\/forum.xda-developers.com\/showthread.php?t=2588979<\/a><\/li>\n<li>Install it on the Windows PC you are using to install Lineage OS on the smart phone<\/li>\n<li><strong>To unlock the bootloader of the phone (aka, to root the phone)<\/strong><\/li>\n<li><em>This is the step that makes your warranty void. A more detailed description can be found <a href=\"http:\/\/droidvendor.com\/how-to-unlock-bootloader-on-all-motorola-devices\/\">here<\/a><\/em><\/li>\n<li>Download the most updated USB drivers for Moto G 3rd gen from <a href=\"https:\/\/motorola-global-portal.custhelp.com\/app\/answers\/detail\/a_id\/88481\">here<\/a>, and install them on your PC<\/li>\n<li>On your Moto G, go to <code>settings<\/code> &rarr; <code>About phone<\/code> &rarr; <code>build nuber<\/code><\/li>\n<li>Enable <code>Developer options<\/code> on your Moto G tapping <code>build number<\/code> 7 times until it says \\u2018<em>You are now a developer<\/em>\\u2019<\/li>\n<li>Enable <code>USB debugging<\/code> on your Moto G, going to <code>Settings<\/code> &rarr;  <code>Developer options<\/code> &rarr; <code>USB debugging<\/code><\/li>\n<li>Connect now the Moto G to your PC through USB cable; if any notifications about USB connection popups on your phone, please approve it<\/li>\n<li>Open a DOS command window on your Windows PC<\/li>\n<li>From here execute <code>adb reboot bootloader<\/code> to reboot your Moto G<\/li>\n<li>After the Moto G has rebooted to bootloader mode, please execute, always from the PC DOS command window, <code>fastboot oem get_unlock_data<\/code><\/li>\n<li>A strange and long string like this one<br \/>\n<code>(bootloader) 0A40040192024205#4C4D3556313230<br \/>\n(bootloader) 30373731363031303332323239#BD00<br \/>\n(bootloader) 8A672BA4746C2CE02328A2AC0C39F95<br \/>\n(bootloader) 1A3E5#1F53280002000000000000000<br \/>\n(bootloader) 0000000<\/code><br \/>\nwill appear on your PC terminal<\/li>\n<li>Rearrange it in a text editor removing the (bootloader) text and writing all the numbers and letters in sequence, in this way 0A40040192024205#4C4D355631323030373731363031303332323239#BD008A672BA4746C2CE02328A2AC0C39F951A3E5#1F532800020000000000000000000000<\/li>\n<li>Go now to this <a href=\"https:\/\/motorola-global-portal.custhelp.com\/app\/standalone\/bootloader\/unlock-your-device-b\">Motorola bootloader unlock page<\/a> where, after logging in with your Motorola account, you can check if your device can be unlocked<\/li>\n<li>Paste, in the appropriate field, the rearranged string you prepared in the text editor two steps ago and you will get an email with the bootloader <code>unlock key<\/code> written in upper case<\/li>\n<li>Type now the following command on your PC command window, to unlock your phone: <code>fastboot oem unlock UNIQUE_KEY<\/code><\/li>\n<li>If no errors appears on your phone, your device is now unlocked<\/li>\n<li><strong>To flash a <a href=\"https:\/\/twrp.me\/\">TWRP<\/a> Custom recovery<\/strong>\t<\/li>\n<li><em>This step, described in details <a href=\"http:\/\/droidvendor.com\/how-to-install-twrp-recovery-via-fastboot-on-android\/\">here,<\/a> allows you to install on your Moto G, the Team Wind TWRP Recovery, needed to flash then the Lineage OS custom ROM<\/em><\/li>\n<li>Download on your PC the latest TWRP Recovery for your Moto G (3rd gen) from <a href=\"https:\/\/forum.xda-developers.com\/devdb\/project\/dl\/?id=21965\">here<\/a>, and open a command window from the folder where this TWRP Recovery has been downloaded<\/li>\n<li>Type this command <code>adb reboot bootloader<\/code> to reboot your phone in bootloader mode<\/li>\n<li>Type then this command <code>fastboot flash recovery twrp-osprey-3.0.2-r5.img<\/code> to effectively install the TWRP Recovery on your phone<\/li>\n<li>Type then <code>fastboot reboot<\/code> to reboot your phone, once the TWRP recovery has been installed<\/li>\n<li><strong>Create a Nandroid backup<\/strong><\/li>\n<li><em>Before to go on, it is safer to create a Nandroid backup, using the installed TWRP Recovery<\/em><\/li>\n<li>The Nandroid backup procedure is well described at this link: <a href=\"http:\/\/droidvendor.com\/how-to-backuprestore-data-via-nandroid-backup-using-twrp-custom-recovery\/\">http:\/\/droidvendor.com\/how-to-backuprestore-data-via-nandroid-backup-using-twrp-custom-recovery\/<\/a><\/li>\n<li><strong>Eventually, install Lineage OS Custom Rom<\/strong><\/li>\n<li><em>This is the final step, with the installation of Lineage OS custom Rom on your Moto G (see here for more details)<\/em><\/li>\n<li>Download, in your PC, Lineage OS 14.1 ROM for Moto G 2015 from <a href=\"https:\/\/download.lineageos.org\/osprey\">here<\/a> [Pick up the latest build]<\/li>\n<li>Download, in your PC,  Lineage OS 14.1\/Android 7.1.x Google Apps from <a href=\"http:\/\/opengapps.org\/\">here<\/a>, choosing ARM as platform, 7.1 as android, and stock as variant<\/li>\n<li>Now transfer both files on your Moto G storage<\/li>\n<li>Turn off your device and reboot into TWRP recovery<\/li>\n<li>Select <code>\\u201cWipe\\u201d<\/code> from TWRP main menu and do a \\u201c<code>Swipe to Factory Reset<\/code>\\u201d on the bottom of screen<\/li>\n<li>Go back to TWRP main menu, tap on <code>\\u201cInstall\\u201d<\/code> and select the Lineage OS  ROM .zip file that you transferred to your device two steps ago (lineage-14.1-20170207-nightly-osprey-signed.zip in my case)<\/li>\n<li>After selecting the .zip file, do <code>\\u201cSwipe to Confirm Flash\\u201d<\/code> on the bottom of screen to begin the custom ROM installation process. This may take some time.<\/li>\n<li>Once your ROM is successfully flashed, you\\u2019ll see <code>\\u201cWipe cache\/dalvik\\u201d<\/code> option, select it and then do <code>\\u201cSwipe to wipe\\u201d<\/code> on bottom of screen<\/li>\n<li>Repeat now the same step, from the TWRP main menu, installing the Google Apps .zip file (open_gapps-arm64-7.1-stock-20170208.zip in my case)<\/li>\n<li>Hit the <code>\\u201cBack\\u201d<\/code> button on-screen and then select <code>\\u201cReboot System\\u201d<\/code> button<\/li>\n<li>The Lineage OS boot logo should appear and you will enjoy the new Android 7.1.1 on your Moto G 3rd gen, although Motorola decided to stop the OS update to Android 6.0.1<\/li>\n<\/ul>\n<p>Till now it seems that everything is working well, with the exception of the flash in the camera app. However other apps (like open camera) are able to drive the flash.<br \/>\n<div style=\"width: 190px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.sacchibelli.it\/pictures\/nougat_7p1_home.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.sacchibelli.it\/pictures\/nougat_7p1_home_a.png\" width=\"180\" height=\"320\" class=\"size-medium\" \/><\/a><p class=\"wp-caption-text\">The new customized home screen<\/p><\/div><br \/>\nUPDATE: the following bug seems to be present (<a href=\"https:\/\/jira.lineageos.org\/browse\/BUGBASH-72?jql=text%20~%20%22osprey%22\">https:\/\/jira.lineageos.org\/browse\/BUGBASH-72?jql=text%20~%20%22osprey%22<\/a>), with an issue in the transition from Wi-Fi to Cellular Data.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Although Android 6.01 running on Moto G (3rd generation) is clean enough, the adult male component of sacchibelli&#8217;s family decided to hack his mobile phone to enjoy the new features of Android 7 (aka Nougat), in its stock version, without any addition or customization provided by Motorola or anyone else. This is now possible thanks [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[],"class_list":["post-3814","post","type-post","status-publish","format-standard","hentry","category-geek"],"_links":{"self":[{"href":"https:\/\/www.sacchibelli.it\/index.php?rest_route=\/wp\/v2\/posts\/3814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sacchibelli.it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sacchibelli.it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sacchibelli.it\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sacchibelli.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3814"}],"version-history":[{"count":58,"href":"https:\/\/www.sacchibelli.it\/index.php?rest_route=\/wp\/v2\/posts\/3814\/revisions"}],"predecessor-version":[{"id":3874,"href":"https:\/\/www.sacchibelli.it\/index.php?rest_route=\/wp\/v2\/posts\/3814\/revisions\/3874"}],"wp:attachment":[{"href":"https:\/\/www.sacchibelli.it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sacchibelli.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sacchibelli.it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}