yashsingh1/xdaforums huggingface dataset:
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Joaoovn:
Error when i'm trying to flash

Hey guys, when i'm trying to flahs i get corrupted image error, then, when i reboot to recovery mode twrp opens normally but when i restart the phone it goes back to stock recovery. (i've already unlocked bootloader) PS: i'm using permanent mode.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] pizzaboy192:
Hi, can you update your TWRP to not mount OEM as R\W so that it doesn't damage it for stock OTA updates?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] saumyajit:
Twrp not mounted

RESPONSE RECEIVED AFTER FLASHING TWRP:

D:\android root\New folder\Minimal ADB and Fastboot>fastboot flash recovery twrp

-3.1.1-sanders.img

target reported max download size of 534773760 bytes

sending 'recovery' (10236 KB)...

OKAY [ 0.328s]

writing 'recovery'...

(bootloader) Image not signed or corrupt

OKAY [ 0.140s]

finished. total time: 0.468s
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] marcdw:
[ Excuse any double posts. I replied but it didn't seem to show up ]

[MENTION=5017351]saumyajit[/MENTION], just reading the previous page would've shown you're okay. The message can be ignored. The OKAY at the end tells you it installed successfully. TWRP 3.1.1 is too old to flash most ROMs released over the past year but at least you can use it to install a newer one. Maybe see here...

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

And don't ever quote the OP. Doesn't make any sense.

Moto G5S Plus XT1806, OmniROM, microG (NoGapps), MultiROM, XDA Legacy
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Kurumito:
Ocure un error al instalarlo

no se puede instalar el twrp en android stock ya que me aparece que que alamcenamiento interno (0) adicional le cambio el formato de Datos internos a EXT4 donde si lo acepta pero el celular me aparece desencriptado y no deja continuar alguna solucion?;)
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Damage1972:
I was full of it. I'm sorry.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Souravskrba:
if any senior can help

fastboot flash recovery twrp-sanders-r20 DOES NOT WORK

fastboot boot twrp-sanders-r20.img WORKS

why??
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] gewe:
Because you forgot .img in the file name in the first command?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Souravskrba:
Okay I will give it a try again and see how it behaves.

Sharing my experience on this - I was able to root my phone and understand the importance of busy box as well.

But I feel like I am ready for installing some latest rom in my phones. If Seniors can help me decide which ROM I should try it would be wonderful. I am using Moto G5s Sanders India Variant ROM currently.

Although its worth mentioning I originally wanted to transfer my whats app messages from Android to Apple IOS any help in that regard would be great.

(Excuse my Ignorance I am still learning :D )
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] andregregorio:
File not available :/

"The file you are trying to download is no longer available."

Is it possible to upload it in another server?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] rmendez011:
Can you guys fix the link please?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] dlewando:
it seems that the thread is dead :(
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Ricardo 182:
This is the ultimate twrp recovery 4 this model https://mega.nz/#!3R83VK5I!RY-HdRVEpYU2XKaaUMmryxuTPGOMN03Ul0pf4vqqEeA
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Premkrishna:
Hopefully! Thanks man.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] shu006:
Can anyone provide twrp backup of boot partition? I really need that ?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] GeneticEnginer:
Here, just flash img on boot partition

https://www.androidfilehost.com/?fid=817550096634798326
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] shu006:
Thank worked... Thank you soo much :victory::victory::victory::victory::victory:

Installed magisk successfully.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] subhi:
Will I get OTA updates after flashing this and rooting with magisk? Also, is there a way to re-lock bootloader?

from the first post: What if I choose not to allow it? Can I still install magisk?

Sorry for the questions. Haven't done this in a long while, kinda forgot everything.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Gravemind2015:
OTAs require a completely unmodified system. So no, rooting will break OTA. Dunno about the relocking the bootloader, but if a fastboot flashable firmware becomes available in the future (keep an eye here), then it might be possible. We can lock the bootloader on Osprey & Merlin (3rd gen) and that requires flashing of complete firmware, so it might be the same for sanders.

As for the TWRP, you can select read-only and then flash magisk. But you'll lose OTA either way.

Broadcasted from Zeta Reticuli
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] subhi:
Thanks you for replying. Unlocking the bootloader doesn't effect the OTAs, right?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] siderorb:
Can this method be used for Moto G5S? Model number is XT1794, codename is montana.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] GeneticEnginer:
Youll need to relock bl, and flash stock firmware, then OTAS will be fine
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Gravemind2015:
Well I am not sure about that, sorry. Unlocked bootloader didn't effect ota on the 3rd gen at least, guess we'll have to wait until someone tries to do so.

Broadcasted from Zeta Reticuli
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] shu006:
successfully removed unlock bootloader warning.

https://xdaforums.com/moto-g5s-plus/development/remove-unlocked-bootloader-message-moto-t3672419

See this if anyone want to remove unlocked bootloader warning.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] kishorejm:
Moto G5S Plus bricked while rooting !!!!

Hi Guys, I unknowingly bricked my Moto G5S Plus need stock rom to fix. I wiped it using TWRP recovery and here i am not sure even if the IMEI is wiped out. Please share a TWRP back or a stock rom to restore my phone. I dont seem to find a way to restore the stock rom. Please help
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] CasinovaRoyale:
Backup Moto g5s plus

I'm about to root my phone today. Got the bootloader unlocked. I'll make twrp backup and shall give Google drive link.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] rasik107:
:good: for "Gdrive link posting" lol :laugh: :p
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] kishorejm:
Hi All, I found the rom image after search in different website. Finally restored the Stock firmware & rooted the phone again. Luckily the IMEI info was still present in the rom.

---------- Post added at 05:53 PM ---------- Previous post was at 05:26 PM ----------

link : drive google com/open?id=0B9VEaFoqTCkLX2JUd0lVdzZLUUk

Add https before drive & . after drive & google unable to paste link so had to do it this way
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Premkrishna:
hi there, how did you restore the stock image.?

From twrp? Or any other way ? Like fastboot mode or something.

Can you tell me how. Can you write down the steps plz.

---------- Post added at 10:28 PM ---------- Previous post was at 10:26 PM ----------

So i can just go ahead and flash this just like flashing a rom in twrp and my boot partition will get fixed so that o can install magisk?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] kishorejm:
Hi here are the steps.

We need to use fastboot method since this is not a twrp back.

Download Moto G5s Plus Stock Firmware

Install Motorola Driver and ADB Fastboot Driver on your PC.

Now extract stock firmware in ADB Fastboot folder.

Now, turn off your device and boot into bootloader by pressing volume down button +power button simultaneously.

Now, connect your device to your PC via a USB Cable.

Open a command prompt window and type the following commands:

fastboot oem fb_mode_set

fastboot flash partition gpt.bin

fastboot flash bootloader bootloader.img

fastboot flash logo logo.bin

fastboot flash boot boot.img

fastboot flash recovery recovery.img

fastboot flash dsp adspso.bin

fastboot flash oem oem.img

fastboot flash system system.img_sparsechunk.0

fastboot flash system system.img_sparsechunk.1

fastboot flash system system.img_sparsechunk.2

fastboot flash system system.img_sparsechunk.3

fastboot flash system system.img_sparsechunk.4

fastboot flash system system.img_sparsechunk.5

fastboot flash system system.img_sparsechunk.6

fastboot flash system system.img_sparsechunk.7

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

fastboot erase cache

fastboot erase userdata

fastboot erase customize

fastboot erase clogo

fastboot oem fb_mode_clear

fastboot reboot

So the phone should be booting now.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Premkrishna:
i am gonna try this as soon as i get home.

Just one more clarification. Do i just need to type in the first line fastboot command and the rest appears automatically or i should type in each and every line one by one.?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Manan44:
One by One.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] ashish_zarekar:
and may be there is another way, you can put all commands in .bat file, connect your mobile and run that bat file,

i prefer "one by one step", i am not sure how to create bat file using these commands, just goto 'YU YUREKA' section there you can find thread where somebody has created a single executable file.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] kishorejm:
It's easy to create a .bat file but I recommend to run the command one after another.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Premkrishna:
Dude...it totally worked. I followed as per your instruction. One by one each. It totally worked. Then I rooted my phone again with magisk this time. I am very happy already. Thanks for everything bro. However, I got to ask you something and [MENTION=7792500]GeneticEnginer[/MENTION] too.

Since I am pretty new to magisk and it's UI or terms...I installed it and root seems to work fine, it has it's inbuild SU and it's cool too. However, there are two options that is showing as FALSE.

Safety Check was successful:

ctsProfile: False

basicIntegrity: False.

Does the above mean anything in specific. Is that the way it is supposed to be or am I incomplete.?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] sumeshd:
Hello everyone. I am quiet old in XDA community and I have bought this phone after using oneplus one for years. I was kinda underground for significant amount of time. Happy to be back.

So has anyone who have rooted their G5s tried to activate the notification light? There are apps in playstore you can try and see if it works. BTW, there IS a notification led on top left corner of the screen just to the left of camera.

Just try out and let everyone know.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] shu006:
Yes I seen that LED. Its working. But I disabled again cos it looks ugly :rolleyes:

---------- Post added at 04:09 PM ---------- Previous post was at 04:07 PM ----------

Yes magisk is also not fully working with our G5s plus. Magisk modules are not working. But magisk Supersu is working fine.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] GeneticEnginer:
Magisk v12.0 modules works, but you need to install modules throught twrp only, for removing modules you need to mount /data/magisk.img to any empty folder like /oem in twrp and delete the module folder; before flashing this v12, flash the magisk uninstaller zip found on magisks official thread and then flash this v12

https://www.androidfilehost.com/?fid=673368273298986159
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Raj.S:
Hey bro.... how did you enable the notification light?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] shu006:
Download moto led enabler app from play store.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Raj.S:
It asks for root! Is there any other way?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Raj.S:
Is there any way to relock the bootloader?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Manan44:
Flash stock rom through fastboot.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Premkrishna:
Mod Edit: removed external link quote

Now Magisk will be working fine.

I tried Supersu & Magisk & i feel Magisk is better.[/QUOTE]

You are right! Magisk worked fine on my phone than Supersu. For some reason, Supersu's un-roots the device automatically. Although Magisk is not 100% working, it still covers the rooting part.

I would recommend magisk too for the people who is rooting their G5S now. Hopefully, supersu will get better.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] siderorb:
I have a G5S but I can't find a rooting and/or flashing (can't install TWRP) method. Can someone help me? I want to root and install Xposed (I know it's not really out, I can do with the version some guys put out last month here on XDA).

---------- Post added at 07:43 PM ---------- Previous post was at 07:35 PM ----------

How did you manage to get TWRP working on the G5S?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] alexguna:
You can't install xposed on nagout android.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] siderorb:
Yes you can, there's an unofficial version around I have on my tablet. I just need TWRP and root but haven't found any method for G5S yet...
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Premkrishna:
Just follow the instruction given by [MENTION=7792500]GeneticEnginer[/MENTION] at page 1 in this thread.

Did you unlock the bootloader yet?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] siderorb:
Yeah, I unlocked the bootloader but when I try to flash the TWRP .img file through fastboot I get the error "(bootloader) Image not signed or corrupt". Probably it has to do with my phone not being a Moto G5S Plus (sanders), just a Moto G5S (montana).
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Premkrishna:
It does shows the error, however if you go to the recovery mode. TWRP works just fine. Ignore the error !

---------- Post added at 01:19 AM ---------- Previous post was at 01:17 AM ----------

I see, so yours is not Sanders huh? I am not sure about montana. However, when i flashed TWRP, it showed me the same error but when i went into the recovery mode, TWRP worked just fine.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] siderorb:
When I try to go to recovery mode after flashing TWRP, it gives me some kind of kernel error. I tried the temporary boot solution but I get stuck at TWRP's splash screen...
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Premkrishna:
May be because sanders twrp might not be supporting montana. I will search the internet and let you know when i find something for you.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Gravemind2015:
Both sanders and montana have different processors, Snapdragon 625 and 430 respectively. Hence, they have different kernels. You can't use TWRP built for sanders in montana, a kernel related error is natural.

Although I wonder if someone tried to port for montana using stock kernel of it, it could be possible to get a working build.

Once kernel sources are released though, a working TWRP xan be built from source.

Broadcasted from Zeta Reticuli
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] CheckYourScreen:
Afaik bootloader status has nothing to do with OTAs, you just need untouched system partition which can be achieved by flashing stock firmware via fastboot without locking bootloader.

By the way did you compile this twrp or just swapped zimage and dt from potter's precompiled twrp img..? :)

Sanders's TWRP wont work on Montana.

Euhm, Nope.

Montana's stock firmware is available and TWRP can be compiled with the prebuilt stock kernel.

I can compile a blind build of twrp for montana with decryption support but i usually avoid blind builds :p
[MENTION=5315440]Framboesa96[/MENTION] Here's Montana stock firmware: https://www.androidfilehost.com/?w=files&flid=215020

Download it and keep it handy, you might need it future :)

Oh and dont forget to keep an eye on bootloader version after each update, downgrading bootloader(by flashing bootloader.img from old firmware) will hardbrick your device, so avoid flashing bootloader.img.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Manan44:
He ported it. (Swapped)
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] siderorb:
What if I try with the version for the Moto G5? It has the same processor...

UPDATE: Ok I was able to boot TWRP for Moto G5 (still same kernel error after flashing, had to do it with temporary boot) but even after wiping data the SuperSU zip didn't work.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Gravemind2015:
I wasn't aware of the stock firmware being available. Thanks for the heads up!

BTW if you have tried this - does flashing an older bootloader over a new one throw a 'Preflash Validation' error? Or it simply flashes the file and sends the phone into oblivion?

Broadcasted from Zeta Reticuli
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] CheckYourScreen:
It will give you an error and in most cases ends up with a new paper weight.

Better avoid flashing old bootloader over newer firmware, best way to keep a track is to check what's your current bootloader version with the build number, it isnt necessary that bootloader will be upgraded with each new OTA released by moto, if by chance its updated and you are in need to recover device from a brick and newer flashable imgs arent available, then flash the old firmware without bootloader.img and flash any custom rom or a flashable zip of newer firmware.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] GeneticEnginer:
Custom kernel coming..
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Gravemind2015:
That was fast :) Good luck.

Broadcasted from Zeta Reticuli
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] tanx:
good luck! :good:
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] yograjfire18:
Did Anyone take Stock recovery Backup.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] robin7ying:
Hi, all! Is there exist the download link of Official Roms of G5S PLUS. I need it urgently. Thanks!:):):)
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] GeneticEnginer:
Extreme Plus Kernel test build, its working good, also you can use magisk v14, modules are working

https://www.androidfilehost.com/?fid=745425885120765462

Tell me if you liked it

Edit: Compiled with linaromod 4.9 toolchain, bfq iosched v8.10 and set by default, O2 optimization, linux kernel updated to v3.18.71. Ive seen an increased overall performance, if you have any suggestions for what would you like to see on kernel, you can tell me
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] sumeshd:
Great work mate. IMO you should open a saperate thread for the kernel.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] yograjfire18:
What about stock kernel, what if i want to restore stock kernel:D
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] robin7ying:
Hi, the stock firmware of Moto G5S PLUS, you can see #36,#37..., now in-test, hope it works
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Gravemind2015:
A download link is available in this thread. Not tested by me though.

Broadcasted from Zeta Reticuli
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Manan44:
No bug. Magisk works fine with safety net pass and modules working too.

For next update :- A battery focused kernel will be welcomed too :laugh:
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] BlackAxiom:
Didnt know you had G5S Plus.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] siderorb:
It would be so awesome if you could to that but I understand your caution. Anyway I tried the TWRP for G5 and while it opened, I couldn't flash anything. Meanwhile I was able to install Magisk (Root Checker confirms root) but I can't install systemless Xposed for some reason, it always returns a magisk_merge.img mount failed (and in G5's TWRP it gives me another mount error also). And every search I make about the G5S it seems that the phone doesn't exist, there's nothing for it anywhere, just G5, G5 Plus and G5S Plus. Oh well, I guess I just have to wait longer.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] CheckYourScreen:
Ping me on telegram https://t.me/CheckYourScreen

I'll compile a blind build of TRWP for G5S(montana) and send you for testing.

Stock firmware is available for it so yeah it does exist, a separate forum section is available too on xda but its kinda dead..

You can open an issue on moto's git for Montana's source, they'll release it in few days so you can expect few roms if anyone would like to do the bringup for it.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] unos21:
Will u be developing any kernel in future for this device?
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] fikar96:
twrp not signed or corrupt

twrp are not signet or corrupt at flashing,there any solution?:confused:
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] CheckYourScreen:
For sanders only.. :silly:

Its wip right now.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Sachi315:
I'm getting the error that the file is corrupt or not signed and twrp is not installing
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] CheckYourScreen:
Try this one: https://androidfilehost.com/?fid=889764386195932646

I'll make a new thread from next build.

Edit: Grab latest one from here: https://xdaforums.com/moto-g5s-plus/development/recovery-twrp-3-1-1-r7-t3694910
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Sachi315:
It worked but i messed up lol

Well the good thing is TWRP worked the bad news is my stupid ass wiped the whole system being check box happy and there are no recovery files yet for our device so im screwed. Unless you know of a way possibly a modified .boot from the G5 plus software im gonna try and give it back to best buy tomorrow oh how i hope they take it back lol
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] CheckYourScreen:
Fastboot flashable stock firmware is available for Sanders, you need to flash stock first. https://androidfilehost.com/?fid=817550096634799719

Dont use G5 plus's stuff, everything is available for our device, moreover G5 plus's stuff might leave you with a hardbrick so be careful :)
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Sachi315:
Thanks man! I'm back to stock, the only thing is rsd lite didn't work for me I had to type all the commands individually. There is a tutorial to modify the servicefile.xml to serve as a flash-all command I'm going to modify mine that took effort! Lol
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Sachi315:
I made the servicefile.bat including a device wipe if you want to have it i can send it to you it saved me typing all the commands.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Schrotty35:
Can you send me please.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] deboyz1014:
can't download the r2.img from androidfilehost, it kept going to standby and never download.
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Manan44:
Try to use a vpn while opening the site
[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] Sachi315:
Flash- all file

All you have to do is put the servicefile.bat in your ADB folder and double click to flash.

I took the wipe code out if you want to add it before the first command in the file add the lines:

fastboot erase system -w

fastboot erase boot

or just do it manually before you flash. It will erase and format data/cache and erase your boot.img if its corrupted.

https://mega.nz/#!VmxlCKJC

here is the key:

!I_bK5JjMMk3wZyN1bXkS6uLuKNmThlRAznsSIVSDYKgf