[GUIDE][OSPREY] Moto G3 BEGIN: Unlock bootloader, Flash: TWRP, ROM, Root, Boot logo

Search This thread

adityak1303

Senior Member
Sep 12, 2016
700
605
25
Great job with this thread @KrisM22. It's really easy to just share this thread with any new members who are just getting started in rooting and installing ROMs.
 
  • Like
Reactions: KrisM22

MotoJunkie01

Senior Member
Apr 2, 2016
2,402
1,216
Corbin

Dave here

Member
Nov 12, 2017
8
4
Thank you!

Thank you very much for this guide. I looked at it in conjunction with LineageOS's own installation guide for Osprey and it has enabled me, a custom ROM newbie, to install LineageOS 14.1 successfully on my Moto G3 XT1541 1GB. :D

I ran into a few issues and questions along the way, so thought I would post back here in case it helps anyone or inspires tweaks to the guide.

Setting up adb & fastboot
Your guide has this at step (2a) after unlocking bootloader. However the Motorola instructions for unlocking bootloader involve setting up adb & fastboot, so I did this as part of step (1). I used the platform-tools zip from Google.

Unlocking bootloader
After following the steps on the Motorola bootloader unlock page you linked to and entering the correct code, I just got a page with an error message:
"There has been an error with your request."
I found a thread on the Lenovo forums describing the same problem (I can't post the URL, as a newbie here) and suggesting using this URL instead - which I also can't post, but just replace "motorola-global-portal" with "motorola-global-portal-de".
My phone is a UK model so I looked for a UK equivalent and found one, which worked for me: replace ""motorola-global-portal"" with "motorola-global-en-uk".

Backup from TWRP
I took a backup as you recommended at step (3). The only thing I wasn't clear about was which partitions to back up. I searched around and found some suggestions but this would be a useful thing to mention to help newbies.

I put the backup in internal storage as suggested. You say, "This is your stock ROM. YOU WILL NEED THIS LATER." When would I need this, for disaster recovery if the installation failed or if I later wanted to revert to stock? Do I need to keep it in internal storage?

Finally, a question that occurred to me, given that the installation involves copying zip files onto SD card to flash them. Does it make a difference whether the SD card has been set up as internal or external? I used a new SD card and LineageOS is now asking how I want to set it up. If I chose internal, would that complicate things for (a) LineageOS upgrades or (b) if I wanted to flash a different ROM in future?

Thanks again for an excellent guide, much appreciated.
 
  • Like
Reactions: KrisM22

KrisM22

Senior Member
Sep 12, 2010
3,961
1,318
many ways to guide, many ways to heal
Thank you very much for this guide. I looked at it in conjunction with LineageOS's own installation guide for Osprey and it has enabled me, a custom ROM newbie, to install LineageOS 14.1 successfully on my Moto G3 XT1541 1GB. :D

I ran into a few issues and questions along the way, so thought I would post back here in case it helps anyone or inspires tweaks to the guide.

Setting up adb & fastboot
Your guide has this at step (2a) after unlocking bootloader. However the Motorola instructions for unlocking bootloader involve setting up adb & fastboot, so I did this as part of step (1). I used the platform-tools zip from Google.

Unlocking bootloader
After following the steps on the Motorola bootloader unlock page you linked to and entering the correct code, I just got a page with an error message:
"There has been an error with your request."
I found a thread on the Lenovo forums describing the same problem (I can't post the URL, as a newbie here) and suggesting using this URL instead - which I also can't post, but just replace "motorola-global-portal" with "motorola-global-portal-de".
My phone is a UK model so I looked for a UK equivalent and found one, which worked for me: replace ""motorola-global-portal"" with "motorola-global-en-uk".

Backup from TWRP
I took a backup as you recommended at step (3). The only thing I wasn't clear about was which partitions to back up. I searched around and found some suggestions but this would be a useful thing to mention to help newbies.

I put the backup in internal storage as suggested. You say, "This is your stock ROM. YOU WILL NEED THIS LATER." When would I need this, for disaster recovery if the installation failed or if I later wanted to revert to stock? Do I need to keep it in internal storage?

Finally, a question that occurred to me, given that the installation involves copying zip files onto SD card to flash them. Does it make a difference whether the SD card has been set up as internal or external? I used a new SD card and LineageOS is now asking how I want to set it up. If I chose internal, would that complicate things for (a) LineageOS upgrades or (b) if I wanted to flash a different ROM in future?

Thanks again for an excellent guide, much appreciated.

Huge thanks!!! Excellent!!! You pointed out some really great mistakes and problems!!!

This is a real quick reply for the moment - I re-wrote 1 and 2 and 3 a bit. You could probably give me those links by changing the dots and slashes to spaces - I would like to put your experience and those links into that section to help others. Do the same if you would for the link you used to get fastboot and adb.

Looking forward to getting those links!!! :D
 

Dave here

Member
Nov 12, 2017
8
4
Links

Huge thanks!!! Excellent!!! You pointed out some really great mistakes and problems!!!

This is a real quick reply for the moment - I re-wrote 1 and 2 and 3 a bit. You could probably give me those links by changing the dots and slashes to spaces - I would like to put your experience and those links into that section to help others. Do the same if you would for the link you used to get fastboot and adb.

Looking forward to getting those links!!! :D

Glad it was helpful! Happy to be able to give something back. Here are some links I used...

LineageOS Osprey install guide:
wiki dot lineageos dot org /devices/osprey/install

LineageOS Using ADB and fastboot guide:
wiki dot lineageos dot org /adb_fastboot_guide.html

adb & fastboot: I used this link, which was in the LineageOS ADB guide and I think also the Motorola bootloader unlocking instructions:
Mac: dl dot google dot com /android/repository/platform-tools-latest-darwin.zip
Windows: dl dot google dot com /android/repository/platform-tools-latest-windows.zip
Linux: dl dot google dot com /android/repository/platform-tools-latest-linux.zip

Lenovo forum: "THERE IS AN ERROR WITH YOUR REQUEST! MOTO G ROOTING PROBLEM!" (it's actually about bootloader unlocking, not rooting):
forums dot lenovo dot com /t5/MOTO-G-MOTO-G-4G-LTE-1st-Gen/THERE-IS-AN-ERROR-WITH-YOUR-REQUEST-MOTO-G-ROOTING-PROBLEM/m-p/3458979#M27009

European Motorola unlocking URLs:
motorola-global-en-uk dot custhelp dot com /app/standalone/bootloader/unlock-your-device-a
motorola-global-portal-de dot custhelp dot com /app/standalone/bootloader/unlock-your-device-a

Thanks again.
 
  • Like
Reactions: KrisM22

KrisM22

Senior Member
Sep 12, 2010
3,961
1,318
many ways to guide, many ways to heal
reposted with links from @Dave here :
Glad it was helpful! Happy to be able to give something back. Here are some links I used...

LineageOS Osprey install guide:
wiki.lineageos.org/devices/osprey/install

LineageOS Using ADB and fastboot guide:
wiki.lineageos.org/adb_fastboot_guide.html

adb & fastboot: I used this link, which was in the LineageOS ADB guide and I think also the Motorola bootloader unlocking instructions:
Mac: dl.google.com/android/repository/platform-tools-latest-darwin.zip
Windows: dl.google.com/android/repository/platform-tools-latest-windows.zip
Linux: dl.google.com/android/repository/platform-tools-latest-linux.zip

Lenovo forum: "THERE IS AN ERROR WITH YOUR REQUEST! MOTO G ROOTING PROBLEM!" (it's actually about bootloader unlocking, not rooting):
forums.lenovo.com/t5/MOTO-G-MOTO-G-...EST-MOTO-G-ROOTING-PROBLEM/m-p/3458979#M27009

European Motorola unlocking URLs:
motorola-global-en-uk.custhelp.com/app/standalone/bootloader/unlock-your-device-a
motorola-global-portal-de.custhelp.com/app/standalone/bootloader/unlock-your-device-a

Thanks again.
 
Last edited:

Dave here

Member
Nov 12, 2017
8
4
@Dave here - great - okay - if you get a chance could you take a fresh look at the guide and see if there are any errors, or wording you would like seen added? (or things I didn't get right!)

Huge thanks!!!

@KrisM22 Looks good to me! Thanks for providing answers about internal vs external SD card and about how & why to keep the backup.

I think the only question I was left with is which partitions to back up. From memory, two of the partition options offered by TWRP backup were similar-sounding: may have been System and System Image. I've just found a page that explains that: twrp dot me /faq/whattobackup.html . I didn't find that at the time and just stuck with what TWRP had pre-selected.

Just remembered another issue I ran into with bootloader unlocking: initially when running through the adb commands in the Motorola instructions, it failed to unlock, saying unlocking was disallowed. I found the setting for that under developer options on the phone.

I didn't root the device, as I wasn't aware of any reason why I would need to do that.

Very happy with LineageOS 14.1 so far. My Moto is nice and fast again, feels like a new phone and has gone from security patch level 1st April to 5th October, which was my main reason for doing it.

Thanks again!
 
  • Like
Reactions: KrisM22

KrisM22

Senior Member
Sep 12, 2010
3,961
1,318
many ways to guide, many ways to heal
@KrisM22 Looks good to me! Thanks for providing answers about internal vs external SD card and about how & why to keep the backup.

I think the only question I was left with is which partitions to back up. From memory, two of the partition options offered by TWRP backup were similar-sounding: may have been System and System Image. I've just found a page that explains that: twrp dot me /faq/whattobackup.html . I didn't find that at the time and just stuck with what TWRP had pre-selected.

Just remembered another issue I ran into with bootloader unlocking: initially when running through the adb commands in the Motorola instructions, it failed to unlock, saying unlocking was disallowed. I found the setting for that under developer options on the phone.

I didn't root the device, as I wasn't aware of any reason why I would need to do that.

Very happy with LineageOS 14.1 so far. My Moto is nice and fast again, feels like a new phone and has gone from security patch level 1st April to 5th October, which was my main reason for doing it.

Thanks again!

Again, Huge thanks!!! - excellent point: I added this to the guide

-- > For TWRP BACKUP I use the default settings of "system,data, and boot". Here is a nice article that explains the differences: https://twrp.me/faq/whattobackup.html .


Prep - absolutely! added this:

1a) Prep - before you do anything, in stock, go to settings/Development Options (which is turned on by tapping /settings/about phone/Build Number about 10 times.)
turn "OEM unlocking" ON
turn Debugging - "USB debugging" ON.

Again thank you for your time!!! Any time you see something that could be changed to make noobs life easier, please let me know!!!!!

This has been a massive help!!!

Yes, LinOS 14.1 is solid for most folks! Rooting is only for folks that need to use apps that need root - wouldn't be at all surprised if that was somewhere in your future!!! :) Welcome!!! :D
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    Edited Dec 22 -2017 <-- I may not always change this, but this is a work in progress!
    [GUIDE][OSPREY] Moto G3 2015 - BEGIN: How to Unlock bootloader, flash TWRP, flash ROM, flash Root, Flash boot logo.

    I started this because while trying to explain it to a user I kept running in to old info.

    Code:
    /*
     * Your warranty is now void.
     *
     * This may destroy your phone. As with any modification to a phone,
     * you must be prepared/willing to THROW IT AWAY without thinking twice.
     * If you need it or it is your daily driver, don't mess with it.
     * I am not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about the suggestions in this guide
     * before following it! YOU are choosing to make these modifications, and if
     * you point the finger at me for messing up your device, I will laugh at you.
     */

    This may well work on Merlin but I don't have one to test.

    --> NOTE: I no longer use LineageOS so can't help there. Using AOSP 8. Should be no difference.

    1a) Prep - before you do anything, in stock, go to settings/Development Options (which is turned on by tapping /settings/about phone/Build Number about 10 times.)
    turn "OEM unlocking" ON
    turn Debugging - "USB debugging" ON.

    1b) Now! - To do anything, you must unlock your bootloader: This is done by going to the Motorola site and following their instructions completely.
    https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a
    They want you to "Install the Android SDK.". You only need adb and fastboot on your PC (windows or Linux).
    Try this guide to get ADB and FASTBOOT onto your computer: https://xdaforums.com/showthread.php?t=2588979
    For Ubuntu Linux simply type fastboot on the terminal and if it's missing a command will pop up as to how to add it - simple. same with adb.

    ADDITIONAL THOUGHTS: a very helpful user suggested the following additional for unlock bootloader and getting adb and fastboot: @Dave here - see post 34ff.
    Glad it was helpful! Happy to be able to give something back. Here are some links I used...

    LineageOS Osprey install guide:
    wiki.lineageos.org/devices/osprey/install

    LineageOS Using ADB and fastboot guide:
    wiki.lineageos.org/adb_fastboot_guide.html

    adb & fastboot: I used this link, which was in the LineageOS ADB guide and I think also the Motorola bootloader unlocking instructions:
    Mac: dl.google.com/android/repository/platform-tools-latest-darwin.zip
    Windows: dl.google.com/android/repository/platform-tools-latest-windows.zip
    Linux: dl.google.com/android/repository/platform-tools-latest-linux.zip

    Lenovo forum: "THERE IS AN ERROR WITH YOUR REQUEST! MOTO G ROOTING PROBLEM!" (it's actually about bootloader unlocking, not rooting):
    forums.lenovo.com/t5/MOTO-G-MOTO-G-...EST-MOTO-G-ROOTING-PROBLEM/m-p/3458979#M27009

    European Motorola unlocking URLs:
    motorola-global-en-uk.custhelp.com/app/standalone/bootloader/unlock-your-device-a
    motorola-global-portal-de.custhelp.com/app/standalone/bootloader/unlock-your-device-a

    2) Now that your phone is "bootloader unlocked" you will get an ugly screen on every bootup - we'll get to that in step 4.
    - Now you must set up a custom recovery so you can back things up and change things. To do that you need to flash a recovery from your PC.
    -> Follow squid2's guide: https://xdaforums.com/2015-moto-g/orig-development/twrp-twrp-moto-g-2015-t3170537
    Hint - to get into fastboot mode on your Osprey, power off, THEN, hold power and vol-down for maybe 8 seconds until the fastboot screen pops up, Then connect USB cable phone to PC.
    I recommend flashing his latest.
    I also recommend doing it twice in a row, simply because once in a while that is needed.

    3) okay, now you can boot into TWRP: power off, hold power and vol-down for a few secs until fastboot screen pops up. use vol-down to step through the options. Choose Recovery and press power to select. 10 secs later, you're in TWRP. If you get the dead android it means you still have the stock recovery - boot to fastboot and flash TWRP again.

    IMMEDIATELY tap Backup and select to put backup on external storage - your SDcard. NOTE - if your SDcard has been converted to "internal storage" you will have to choose "internal storage" (em0). I did it twice. This is your stock ROM. YOU WILL NEED THIS LATER.

    -- > For TWRP BACKUP I use the default settings of "system,data, and boot". Here is a nice article that explains the differences: https://twrp.me/faq/whattobackup.html .

    At this point I recommend you boot back into stock and connect your phone to your PC via USB (slide down) and copy that backup in the TWRP folder to your PC. at least once, maybe twice, for safe keeping. You will need this if you wish to test if a problem exists only on a custom ROM but not on the stock ROM. You will also need this if you simply choose to run stock, instead of a custom ROM. Remember, you are now testing ROMs - nothing is certain!

    4. Getting rid of the nasty boot message:
    This has some nice ones: https://xdaforums.com/2015-moto-g/themes-apps/bootlogo-beautiful-logos-t3229167
    Grab the one(s) you like and download - they're in .zip format. Put it on SDcard. Boot to TWRP, tap install, choose the one you want to flash. Voila.
    Be aware there are some sites out there with logos that don't work on Moto G3.

    5. To flash a custom ROM: Download to PC and put it on your SD card. Do same for gapps. (gapps - g-apps - google apps allow you to log in to your google account, use play store, etc. example http://opengapps.org/ (use arm, 7.1, whatever size you wish)(if you're new use full, mini, or micro until you know what you need. If you're on a 1GB phone, consider nano or pico.) )
    https://download.lineageos.org/osprey or whatever ROM you want.
    http://opengapps.org/ or whatever gapps you want.

    Boot to TWRP.
    Clean flash:
    tap WIPE,
    tap advanced, carefully checkmark:
    Dalvic/ARTCache,
    System,
    Data,
    Cache,

    and then swipe the bottom swipe button. Takes a few sec. This is what makes a "clean flash".
    Generally: Don't wipe "internal storage" or SDcard as this is where TWRP stores its backups/nandroids. - I always copy my TWRP backups to PC for safety.

    Then back to menu screen and tap Install, select the rom, and swipe and let it do its thing.
    Then back and tap Install, select the gapps and swipe to flash it.
    THEN, and only then: tap Reboot (if you're at the main menu you also have to tap System to boot from system.)
    The install takes 3 min or so before it starts asking questions.
    Be sure to choose "Set up as New" or else you get whatever junk is in your google drive. This has cost errors and much time. <-----

    6. Root: If you want to use bank apps, PokemonGo, etc, follow these instructions for Magisk:
    https://xdaforums.com/2015-moto-g/general/guide-pass-safetynet-custom-roms-t3603609
    read the whole thread.

    - Else go to https://download.chainfire.eu/1019
    and download the zip form of Chainfire's SuperSU 2.79 and boot to TWRP and flash (install) it.

    Many thanks to @acejavelin for inspiration and information(which I probably shamelessly stole from him), to @squid2 for his installation guide and his version of TWRP, to @Chainfire for the tons of work that continue to go into superSU, to @coolguy_16 for the safetynet/CTS work, and all the many Devs and helpers who make these ROMs possible, and as clean as they are! And to users like you who find bugs and file bug reports! Thank you!

    Remember you are working with a Development ROM - a work in progress! (Even stock isn't perfect!!!)

    Enjoy!
    2
    Thanks guys, I will report back

    ---------- Post added at 01:34 PM ---------- Previous post was at 01:10 PM ----------

    Flash TWRP then immediately start it, allow writes to system, go to reboots menu, select Recovery... TWRP shouldn't ask you for write permission. Then it will stick.

    That's it!, instead of reboot the phone after flashing the recovery, I enter right away :silly:

    Thanks yall
    2
    Help

    Hi i flash it the official twrp 3 times nothing and then the squid and nothing, i am missing some thing here?

    PS: of course i have the bootloader unlocked

    "bootloader unlocked code:3 something something"
    Flash TWRP then immediately start it, allow writes to system, go to reboots menu, select Recovery... TWRP shouldn't ask you for write permission. Then it will stick.
    2
    minor changes.
    2
    a) I have seen that but not tried it. I did add a note so you're now the authority!

    b) not after SuperSU 2.78 (or 2.70 or something) - Those were invented because earlier SuperSUs had probs. I've been flashing 2.79 for a while now with no problems on Lineage.

    Thanks for looking in!
    SuperSU 2.79 "General Release" was the version of the change, anything prior needed the forced systemless command, all 2.79 or later versions include the correct check to flash on most Moto devices without the command. Using the echo command to create the file has no detrimental effects on later versions though. Note that using https://download.chainfire.eu/supersu/ as your download link will always get you the most current stable version of SuperSU available directly from the official source.

    Magisk is the way to go to root most stock devices though, I would definitely agree with that.