yashsingh1/xdaforums huggingface dataset:
[Moto G5S Plus Guides, News, & Discussion] Avinashkrishnan:
Hi, I have been trying to unlock the bootloader. But the `fastboot oem get_unlock_data` is showing on waiting for device message. I tried to install Moto driver from various sites but it's also stuck during installation.
[Moto G5S Plus Guides, News, & Discussion] Adam_Kowalik:
Hi,

I have a question. This method still works on motorola g5s plus? because I want buy used model and firstly I want unlock bootloader to root phone and do other modifiications.

Thanks for reply.
[Moto G5S Plus Guides, News, & Discussion] ssoni0097:
As my phone is not able to turn off, how should i enable dev options and unlock the bootloader? Please help
[Moto G5S Plus Guides, News, & Discussion] nd4spdbh:
nope, modules are not working unfortunatly. Sticking with unrooted now, and i wish i would of known beforehand as i would of saved myself hours and had a stock phone locked with a newer build on it.
[Moto G5S Plus Guides, News, & Discussion] Schrotty35:
What is the different between system and system image and do I also have to backup the system image?
[Moto G5S Plus Guides, News, & Discussion] yograjfire18:
i don't have the idea abt the difference (i think is same)

But u don't need to backup that as i haven't done too but rom work without any issue
[Moto G5S Plus Guides, News, & Discussion] Aayush124:
Hi since I root it I can use Xposed modules right?
[Moto G5S Plus Guides, News, & Discussion] raychang:
Could someone please explain how they copy TWRP backup from phone to PC and copy Magisk.zip from PC to phone under the TWRP recovery mode during the rooting step? By using adb push/pull under recovery mode?

Thanks.
[Moto G5S Plus Guides, News, & Discussion] winpooh:
Should be able to copy and paste. I believe the device is mounted as MTP when you're in recovery and connected to your computer.
[Moto G5S Plus Guides, News, & Discussion] nexx2:
Edit: Bloody hell, i was completely ignoring the "plus" in the thread title... shame on me. Wrong phone section -_-
[Moto G5S Plus Guides, News, & Discussion] BSDADON:
I'm finally getting around to rooting the phone and it looks like twrp is not installing for some reason. I changed USB cables and downloaded the file again but still nothing. This is what I keep getting when I try to install it. Any help?

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery twrp-3.1.1-sanders.img
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:recovery: not found
target reported max download size of 536870912 bytes
sending 'recovery' (10236 KB)...
OKAY [ 0.328s]
writing 'recovery'...
(bootloader) Image not signed or corrupt
OKAY [ 0.172s]
finished. total time: 0.500s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot reboot recovery
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
usage: fastboot [ <option> ] <command>
[Moto G5S Plus Guides, News, & Discussion] nexx2:
Do not run "fastboot reboot recovery".

You have to change via fastboot into recovery mode using the up/downvolume keys first. This should get you into TWRP. This has to be done after flashing twrp, since a normal system boot without entering twrp first will wipe twrp.
[Moto G5S Plus Guides, News, & Discussion] BSDADON:
Thank you for the quick response. That worked.
[Moto G5S Plus Guides, News, & Discussion] Phazmos:
Just got this device to replace a6p that had the blod and battery problems. I've unlocked and rooted without issue. Twrp is installed but have 1 issue. Whenever I reboot, I go right into recovery. Only way to get into os is to boot to bootloader and select start from there. Anyone see this? If so, what did I do wrong? Thanx a bunch!!
[Moto G5S Plus Guides, News, & Discussion] mrbojangle69:
Flash this recovery and you will be able to boot directly to the rom

https://drive.google.com/file/d/0B-GqaSoHiNTuZWpDd1I2d0dpMjA/view

Credits to [MENTION=4899281]gourabpa[/MENTION]

Enviado desde mi XT1805 mediante Tapatalk
[Moto G5S Plus Guides, News, & Discussion] Phazmos:
Thanx for the reply, but doesn't work. Flashed via twrp and errors when going into it - failed to load kernel. Oh well, I've got a couple things to try. Thanx anyway!
[Moto G5S Plus Guides, News, & Discussion] mis2417:
are you using this rom?

https://xdaforums.com/g5-plus/development/rom-lineageos-15-0-t3673573

(it's g5+, not g5s+ so I wanted a clarification)
[Moto G5S Plus Guides, News, & Discussion] super-drone:
Well I tried to get_unlock_data and showed me unknown error, after that I downloaded Motorola drivers again and got the code, then I went to Motorola website and it's showing doesn't found my PUID and my device is not unlockable, any thoughts? My device model is XT1802

Edit: nvm I forgot the #'s
[Moto G5S Plus Guides, News, & Discussion] trabando:
Why must we wipe before root in TWRP?
[Moto G5S Plus Guides, News, & Discussion] sssaurabh:
Hello,

I have done the procedure as per the post and flashed super su instead of magdisk. It was completed and i got the root. But after 20 mins i loose the root in system. What could be the possible reason?
[Moto G5S Plus Guides, News, & Discussion] crobjam:
Like Phazmos I have root, but I boot directly into TWRP.

I want to stop that from happening. I don't want to change roms, just want to boot normally, instead of booting into recovery on every power off.

How can I get it to stop booting into TWRP?
[Moto G5S Plus Guides, News, & Discussion] narf0815:
i flashed TWRP and rebootet to TWRP via phone menu (bootloader). next step was format data:

"could not mount /data and unable to find crypto footer.

.

.

.

unable to mount storage"

pc sees the Moto Z storage but i can't copy anything. ("no reaction from device or no connection")

what now?
[Moto G5S Plus Guides, News, & Discussion] Kevin111Rojas:
Help me please!!!

hey bro do all the steps but I think I did something wrong, could you help me please stay in step two

I have these alerts (CMD)

C:\Users\Kevin Rojas\Desktop\Minimal ADB by Shu006>fastboot flash recovery twrp-3.1.1-sanders.img

target reported max download size of 536870912 bytes

sending 'recovery' (10236 KB)...

OKAY [ 0.376s]

writing 'recovery'...

(bootloader) Image not signed or corrupt

OKAY [ 0.239s]

finished. total time: 0.626s

C:\Users\Kevin Rojas\Desktop\Minimal ADB by Shu006>fastboot reboot recovery

usage: fastboot [ <option> ] <command>

commands:

update <filename> reflash device from update.zip

flashall flash boot, system, vendor and if found,

recovery

flash <partition> [ <filename> ] write a file to a flash partition

flashing lock locks the device. Prevents flashing partitions

flashing unlock unlocks the device. Allows user to flash any partition except the ones that are related to bootloader

flashing lock_critical Prevents flashing bootloader related partitions

flashing unlock_critical Enables flashing bootloader related partitions

flashing get_unlock_ability Queries bootloader to see if the device is unlocked

erase <partition> erase a flash partition

format[:[<fs type>][:[<size>]] <partition> format a flash partition.

Can override the fs type and/or

size the bootloader reports.

getvar <variable> display a bootloader variable

boot <kernel> [ <ramdisk> ] download and boot kernel

flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it

devices list all connected devices

continue continue with autoboot

reboot [bootloader] reboot device, optionally into bootloader

reboot-bootloader reboot device into bootloader

help show this help message

options:

-w erase userdata and cache (and format

if supported by partition type)

-u do not first erase partition before

formatting

-s <specific device> specify device serial number

or path to device port

-l with "devices", lists device paths

-p <product> specify product name

-c <cmdline> override kernel commandline

-i <vendor id> specify a custom USB vendor id

-b <base_addr> specify a custom kernel base address.

default: 0x10000000

-n <page size> specify the nand page size.

default: 2048

-S <size>[K|M|G] automatically sparse files greater

than size. 0 to disable

Moto g5s Plus bootloader Logs:

cmd:getvar: partition-type:recovery

cmd:getvar:max-download-size

cmd:download:009ff000

cmd:flash recovery

and after that I access recovery mode

Error: Failed to load kernel!

boot up failed
[Moto G5S Plus Guides, News, & Discussion] gaurav.saroya:
How to unroot? Could you please provide the unroot zip?
[Moto G5S Plus Guides, News, & Discussion] Phazmos:
Try searching (Google or all of xda) for osmosis unsu.zip (get the latest). You'll also need the boot image from whatever rom you're on. Flash the zip, flash the boot image - should be good.
[Moto G5S Plus Guides, News, & Discussion] gaurav.saroya:
Did that. Now struck at boot loop. lol
[Moto G5S Plus Guides, News, & Discussion] super-drone:
If youre rooted with magisk then you should download magisk uninstaller not unsu
[Moto G5S Plus Guides, News, & Discussion] gaurav.saroya:
I flashed magiskunistaller.zip latest build and then flashed boot.img via twrp. That caused bootloop
[Moto G5S Plus Guides, News, & Discussion] Phazmos:
Clean flash the rom. I see now you're using magisk - glad I never did.
[Moto G5S Plus Guides, News, & Discussion] gaurav.saroya:
Had backup. Resored it and did factory reset. It's all good as new.
[Moto G5S Plus Guides, News, & Discussion] Phazmos:
A good bu is a wonderful thing! And you get your first thanx for having it - enjoy!
[Moto G5S Plus Guides, News, & Discussion] Jai388:
Moto g5s

Will this twrp recovery work on moto g5s only not plus .And if not can u make one pls I tried everywhere couldn't find one.
[Moto G5S Plus Guides, News, & Discussion] kirokko:
there's a separate forum for g5s (not plus): https://xdaforums.com/moto-g5s

there's also a recovery for your model.
[Moto G5S Plus Guides, News, & Discussion] Chemacky:
Hi,

Brand new G5s Plus arrived to day, but I'm having a bit of trouble with this root method.

Firstly, I enabled developer mode, then OEM unlock and USB debugging, and then booted into fastmode. I have downloaded the minimalADB zip from the post. I extracted it to my desktop, then did shift+right click and 'open new powershell window here' (win10). I then typed "fastboot oem get_unlock_data". It then says "< waiting for device >" forever.

I have tried a couple of different cables and USB ports. I have tried running the adb.exe and fastboot.exe files in the minimalADB folder. I have tried opening the command prompt .bat file instead of a windows powershell window. I have tried running all of these as administrator. I've tried restarting my pc. Nothing got me past "< waiting for device >".

Any ideas?

Here is what my fastboot window looks liek when USB is connected. Is this what it should look like?

Edit: Ok, I managed to fix my problem by following various adb driver fixes tutorials. Problem was that device wasn't listed when using adb dvices command, and then after I fixed that it wasn't listed under fastboot devices. Eventually fixed that too.

I then went on to flash twrp form the download link, and then managed to reboot into recovery which was twrp. I swiped to allow modifications and was then greeted by the classic twrp start page. I couldn't get my PC to recognise the storage section of the phone while in recovery so that I could transfer the magisk zip to flash, so I rebooted phone into the ROM (stock obviously), and transferred the zip across. I then rebooted to fastboot so that I could use the menu to select 'recovery mode', but it is no longer rebooting into twrp. It boots into the stock recovery and I have no options. Just says 'no command' and it either eventually reboots itself, or I turn it on and off again.

What's the deal with that? Any ideas?
[Moto G5S Plus Guides, News, & Discussion] crewpuk13th:
is this applicable to XT1805 ? mine is XT1805 and i'm searching all over this thread is XT1804 ? are they the same ?
[Moto G5S Plus Guides, News, & Discussion] Chemacky:
My understanding is that it is for 'sanders' which includes both models? I am interested in hearing about that from someone with a bit more experience than me though.
[Moto G5S Plus Guides, News, & Discussion] ksigit:
Flashing TWRP on sanders is a hit and miss. This is what I've done:

1. Unlock bootloaders

2. Run TWRP on-the-fly :

- on fastboot mode: >fastboot boot recovery twrp-sanders.img

- phone should boot into TWRP

- root the phone by flashing magisk or supersu (magisk is proved to be working)

3. Boot into system. At this point TWRP is not yet installed.

4. Install 'flashify'

5. Install TWRP via flashify

6. Done
[Moto G5S Plus Guides, News, & Discussion] Chemacky:
I can confirm that this method worked for my XT1805 the second time, after the problems I posted above. Just make sure you have already downloaded the magisk zip to the phone before you try to boot into twrp recovery for the first time, and then make sure you flash the magisk zip that first time. Then you'll at least have SU if the first flash of twrp doesn't 'take', but I suspect that might help it to take? I don't know. Otherwise follow steps below in the quote.

This sounds like an excellent idea. I did manage to get it working by just following the steps in the original post again, but this time flashing magisk. Seems to have worked well. Thanks though!

As for magisk 14 not passing safteynet, and magisk hide not working. Are there any older versions for sanders that either of these work for? While I don't really need saftynet to pass at this stage, I have recently found out that I do actually need magisk hide for a couple of apps to work properly for me. Although I noticed that it was not working before flashing, I had totally forgotten that I needed magisk hide! Couldn't care less about the magisk modules though.
[Moto G5S Plus Guides, News, & Discussion] imdeiv:
i got Error "Image not signed or corrupt"
[Moto G5S Plus Guides, News, & Discussion] Chemacky:
I got that message as well. Both times I went through the process. I believe it's normal. I continued through the process and had success.
[Moto G5S Plus Guides, News, & Discussion] crewpuk13th:
which twrp are you using ?, can i boot twrp 'live' from img OP posted on first page ?
[Moto G5S Plus Guides, News, & Discussion] Chemacky:
I initially flashed the twrp from the first post of this thread. However, I have since moved on to the twrp r9 recovery in this thread https://xdaforums.com/moto-g5s-plus/development/recovery-twrp-3-1-1-r7-t3694910

This recovery is a bit newer and has a few more features, but it also allows you to flash this kernal https://xdaforums.com/moto-g5s-plus/development/kernel-resurrected-kernel-t3716267 which means that magisk can work properly (pass safetynet, hide, modules). Although the process was a bit more complicated, a few mistakes lead to a bootloop and I had to do a clean wipe, but I think it was worth it. If you don't need safetynet /magisk hide and just want SU, then I would just follow the instructions in this thread. It was relatively simple.
[Moto G5S Plus Guides, News, & Discussion] aelx2621:
Twrp Does not work...

What should i do...??

Should i install this version of twrp https://xdaforums.com/moto-g5s-plus/development/recovery-twrp-3-1-1-r7-t3694910
[Moto G5S Plus Guides, News, & Discussion] ReverseEffect:
I had to use that version with my G5S Plus. I believe my device is a XT1806.

Also, did anyone have any issues with Gapps? I have an issue with the Play Store always crashing. I also cannot install most apps on the device as Package Manager crashes often.
[Moto G5S Plus Guides, News, & Discussion] razers7t8:
Mine just stays stuck on "waiting for device."
[Moto G5S Plus Guides, News, & Discussion] Chemacky:
You probably need to install the adb usb drivers or whatever. Search YouTube for adb waiting for devices.
[Moto G5S Plus Guides, News, & Discussion] xSpartacusx:
when i put the comand in for bootloader code it just says waiting for device... i enabled oem unlock and debugging in setting.. and the phone says its plugged in and charging..

---------- Post added at 09:38 AM ---------- Previous post was at 09:24 AM ----------

i must be doing something wrong i have the XT1806 32 gb model.. lunar gray and when i do the fastboot oem command i only get 4 lings of text not 5 and when i enter it i get PUID not found in your identifier..?
[Moto G5S Plus Guides, News, & Discussion] xSpartacusx:
nevermind got it unlocked however.. i cant make a back up it says backup failed at the end
[Moto G5S Plus Guides, News, & Discussion] bichoudandy:
I havent manage to install TWRP on my XT1805. I have successfully unlock the bootloade.

All the TWRp img seem not signed / corrupt in ADB. have been trying with lots of TWRP for G5S Plus.

any advice??
[Moto G5S Plus Guides, News, & Discussion] lilcdroid:
All TWRPs will output an unsigned/corrupt message in adb but it's actually ok. This is normal as they aren't signed images.

Sent by way of magic
[Moto G5S Plus Guides, News, & Discussion] bichoudandy:
I see..but how do I go to TWRP recovery?? the cmd in fastboot when I type fastboot reboot recovery --> nothing happen.

When i press the volume down + Power and choose recovery I only see an info saying " you r device has unlock bootloader and cant be trusted"
[Moto G5S Plus Guides, News, & Discussion] lilcdroid:
Try this recovery and see if it works better.

https://xdaforums.com/showthread.php?p=74300856

Not sure which one you have but this is the newest. I was never able to boot into recovery with adb. I flashed the recovery, booted to the bootloader then entered recovery through bootloader.

Sent by way of magic
[Moto G5S Plus Guides, News, & Discussion] flaviort:
Root g5s plus.. not root

guys, I'm not getting root in my g5s plus. by TWRP the magisk says not to find .MD5, by supersu it gives success, but in Android the application says there is no root. is there another way to do root?
[Moto G5S Plus Guides, News, & Discussion] Phazmos:
Su works just fine on all roms, I know cuz I've used it on all roms. If it's not working for you, you've done something wrong somewhere along the line. Start from scratch with a proper clean flash.
[Moto G5S Plus Guides, News, & Discussion] flaviort:
I got to do it several times. I already got to do wipe and date. I erased everything. I just do not want to change the rom. When I open some program it asks for super user permission. but there it goes every 30 seconds saying. was granted super user permission to such application. but the applications do not work and are registered in the super user in the supersu app. but the screen says that root was not found. I need to send the print of the screen for you to see

---------- Post added at 09:45 PM ---------- Previous post was at 09:41 PM ----------

[IMG="erro rote"]https://uploaddeimagens.com.br/imagens/screenshot_20180101-202748-png[/IMG]

---------- Post added at 09:49 PM ---------- Previous post was at 09:45 PM ----------

[IMG="erro root g5s plus"]http://uploaddeimagens.com.br/imagens/screenshot_20180101-202748-png--2[/IMG]

---------- Post added at 09:52 PM ---------- Previous post was at 09:49 PM ----------

http://uploaddeimagens.com.br/imagens/screenshot_20180101-202748-png--2

---------- Post added at 09:53 PM ---------- Previous post was at 09:52 PM ----------

[IMG="erro rote"]https://uploaddeimagens.com.br/imagens/screenshot_20180101-202748-png[/IMG]
[Moto G5S Plus Guides, News, & Discussion] Phazmos:
Well, I'd have to say it pretty obvious you're not doing it properly. Ya know what they say , definition of insanity (or some say stupidity) is doing the same thing over and over and expecting a different result.

View my forum posts to see how it's done properly. Sorry, but I'm not typing it yet again. I've posted it several times already - 3 is my limit - maybe it was 4 - can't remember how many times I've posted the right way to do it.

Note - I have noticed the app isn't installing on recent roms, I've extracted the apk and just install manually. Doesn't effect anything, just a minor annoyance. Best of luck!

PS - you can turn off those notifications in the su app. One of the first things I do.
[Moto G5S Plus Guides, News, & Discussion] flaviort:
Thank my friend

Thank you, my friend, for your attention. I already did in several devices that I already had. nexus, lg k7, moto g2, s3 and s5. in my cousin's g5 and in the new one he does not accept. I did all the procedure correctly and it exists in other forums some saying that it was not possible either. and as in this forum I always accompanied and I know that there are people here like you, I decided to post here. I really appreciate the attention. if I get it in another way I come to post
[Moto G5S Plus Guides, News, & Discussion] Phazmos:
Well, you seem like a nice person, and I am curious.

What rom u trying this on?
[Moto G5S Plus Guides, News, & Discussion] Dilbertcrash:
Image Source

progress 2:

tried different twrp image from other source, and tried your guide again... now i can boot to TWRP...

and rooted... thx for the guyide :)[/QUOTE]

Hi, where is the source of different twrp image?
[Moto G5S Plus Guides, News, & Discussion] raviiist:
unlocking bootloader itself, erases all user data.

While unlocking the bootloader itself, Its erases all the user data... shu006, you should have mentioned earlier that this will erase all user data. Anyway thanx for the info.
[Moto G5S Plus Guides, News, & Discussion] Mau669:
Guys this is probably a stupid question but i hope you don't hate me for it. Last time I rooted a device was 4 years ago so I'm very rusty.

So i got my moto g5s plus a few days ago and I'm pretty happy with it, however, i haven't rooted it yet.

My question is:

If i decide to root it now, will I still receive OTA updates? Let's say they start rolling out Oreo and i get the notification, will i be able to install it and then have to flash twrp and the root file again? or will the update simply not work?

What would be my options? wait for someone to come up with flashable oreo files?

Thank you.
[Moto G5S Plus Guides, News, & Discussion] super-drone:
Nope, you'll have to install stock over again and then update via OTA and then you can do twrp+root again
[Moto G5S Plus Guides, News, & Discussion] Mau669:
Thanks a lot! one last question, when you say install stock again, does restoring a nandroid backup of your stock rom count? you know, if you make a backup as soon as you install twrp, before flasing the root file. Or is it necessary to flash a stock image?
[Moto G5S Plus Guides, News, & Discussion] super-drone:
as long as you do full wipe before that... I think you can restore stock and update via OTA

but I have to say one day I tried to restore stock backup and ended up in a bootloop so I can't assure you if it will work
[Moto G5S Plus Guides, News, & Discussion] loco72:
A nandroid backup will not work, you need stock recovery for ota updates.
[Moto G5S Plus Guides, News, & Discussion] Sentheb3ast:
Is it a must to flash the magisk, or can I just stay without root?
[Moto G5S Plus Guides, News, & Discussion] crewpuk13th:
Deleted