yashsingh1/xdaforums huggingface dataset:
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] norrrmalny:
OTA UPDATE NOT WORKING ?

THIS IS SOLUTION

Here you have all 101% working commands for udpating to OREO without unlocking bootloader.

XT1900-1_PAYTON_RETAIL_8.0.0_OPW27.57-40_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

fastboot getvar max-sparse-size

fastboot oem fb_mode_set

fastboot flash partition gpt.bin

fastboot flash bootloader bootloader.img

fastboot flash modem NON-HLOS.bin

fastboot flash fsg fsg.mbn

fastboot erase modemst1

fastboot erase modemst2

fastboot flash bluetooth BTFM.bin

fastboot flash dsp dspso.bin

fastboot flash boot boot.img

fastboot flash logo logo.bin

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 system_b system_other.img

fastboot flash oem oem.img

fastboot erase carrier

fastboot erase userdata

fastboot erase ddr

fastboot oem fb_mode_clear

after loading oreo with these commands, OTA started working succesfully and updated to OREO build number OPWS27.2.1 (motorola version OPWS27.57.-40-6)(android security patch level february 1, 2018)

Have a nice day !
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] RockinAmigo14:
Have you gotten the March ota with this method?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Calrez:
Dzięki ziomuś poszło! :good: :cool:
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] winpooh:
Sorry, I forgot to reply. I'm on Verizon
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] RockinAmigo14:
thanks for the reply. i still haven't gotten anything, so that kind of stinks.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] nihalgangurde:
can i install this moto x4 oreo rom on my moto g5 plus?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] winpooh:
No, Moto X4 is not Moto G5 plus!!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] timenewton:
Can anyone who already has the x4 fi version verify if it will work with tmobile wifi calling. Im was planning on getting the fi versions then going back to tmobile.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] TheBassDude:
I can confirm that WiFi calling works on my Project Fi X4
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] DarkLara:
new version PAYTON_OPWS27.57-25-6-10_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

https://androidfilehost.com/?fid=818070582850507203
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] olive23:
Is there an April security patch?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jsis83:
March

Enviado desde mi moto x4 mediante Tapatalk
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mujju85:
Is this for indian version
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Ritesh Mhatre:
Yes, It is Retail Version
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Psycake:
Will this work for XT1900-4?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] DarkLara:
yes, if it works, I have the same version.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Psycake:
Cool, thank you very much!

---------- Post added at 04:10 PM ---------- Previous post was at 03:58 PM ----------

Hey, sorry to bother you again. I have a question: if I have an incomplete system partition (most of the files are missing, so the phone doesn't boot), do I have to wipe the system partition first (I can boot to TWRP) or do I just flash it using the commands?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
Yes, if I understood correctly, just flash everything you want with the commands above. And if you need the commands then just ask.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] rekids:
Flashed this to a locked bootloader 1900-1 Android one X4 on File, and this is NOT identical to what was one there. Fully works but different boot logo and wallpaper.

Not sure if it is just a portion of firmware (like the logo.bin) or what. This is a backup phone for us since we both have Pixel 2s.

Any breakdown of the firmware files may prove to be helpful.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mujju85:
This is not the correct firmware for your phone this one for retail version not for project fi
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] rekids:
Yeah figured that after the fact lol. Anyhow now since I flashed it can't get it to allow any flashing including the correct firmware. Get errors from the bootloader requesting max sparse size, set own fastboot mode as well as not knowing what partition location is being requested. Phone boots fine and works as normal, just different boot logo and different wallpapers now. Any ideas as to how to get it back to the correct firmware short of unlocking the bootloader?

Will twrp flash a full image in it's zip format?

Never had an issue with the bootloader acting this way. Have a few Nexus devices as well as a couple of unlocked older Motorola phone prior to Lenovo taking over.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mujju85:
Try the below firmware https://drive.google.com/file/d/1XP3dG01sC27MIaCtE5lhQmez2yGuiRfL/view
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] rekids:
Thank you, I have the firmware already that is for Fi and the March update already. My issue is the phone with this other software in FB mode is not responding in a way to allow flashing of any firmware at the moment. Got to look into after work tonight and can give some more details. Will probably open another thread on switch to another thread as to keep this one on topic.

Thanks, will let you know when I do that.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Mistake95:
Hello everyone, sorry to bother you.

Can you please update the minimal adb fastboot driver link?

Thank you.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
Here is everything you need for the x4.

https://drive.google.com/file/d/1JQvLs_Mx9gNZxXkKcj1d0f-Ai_BA99WA/view?usp=drivesdk
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] rekids:
Hey just wanted give you an update and perhaps help someone else later.

So after flashing the retail version of the firmware over a locked bootloader, system_b didn't flash correctly and when it rebooted got an error saying the system was corrupt, and rebooted a couple of times before it bored normally. The OEM unlocking and USB debugging switched turned off sometime during the process unknown to me. When I tried to reflash the correct Androidone software the bootloader responded with an unknown command errors for everything even to reboot. After a bit of research and a bunch of trial and errors after a complete wire from stuck recovery allowed me to enable OEM unlocking and USB debugging and then was able to use fastboot again to reflash the A1 software.

Guessing here maybe after flashing and forcing recovery to repair the system the bootloader goes into a protection of sorts to prevent compromising of user data, or maybe when recovery repairs system partitions the bootloader goes into a type of limp mode, or worse case it's a glitch in the whole setup and this why they have the request to wipe everything after flashing firmware in script within the firmware file.

Either way, total wipe after the bootloader becomes unresponsive to fastboot commands seams to be a definite possible answer.

Thanks all :D
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Mistake95:
Thank you very much dimdom1919
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] GolfMike7:
Any idea if this will work on 1900-7?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ziom5510:
1900-7 32gb works???
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
Yes, I have installed this version.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ziom5510:
Bootloader locked or unlocked?

I have new moto :)
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
Unlocked

Unfortunately, we only have ROMs that work with the bootloader open.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ziom5510:
uh... :( i must waiting playpl thanks for the info
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Ritesh Mhatre:
after flashing these rooms we get OTA or not ????
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] smmankad:
I have stock 7.1.1 (re-locked bootloader). Can this (PAYTON_OPW27.57-40) be sideloaded via adb over the stock image. Or only fresh-flash? Fresh-flashing this causes Google Pay to fail :( (Hence, for now I'm stuck on 7.1.1) But if sideloading allows GPay to work, (if sideload is even possible), then I'd be willing to try it.

---------- Post added at 04:05 AM ---------- Previous post was at 03:55 AM ----------

So, you were able to do an "adb sideload" over stock 7.1.1 successfully?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] hdkamble:
I'm on it 1900-2 too... Do I need to unlock bootloader, root my phone to install the security patches? As I haven't received any OTA after December security patch...

Will I still be receiving further OTA updates?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mujju85:
Bro there is no update for indian Moto x4 since December so don't do anything untill Moto push any new updates for us
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Siddhesh K:
Yes, we would directly receive April update now, it'll be better to wait for official update from Motorola India.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mujju85:
April is already over don't keep any hopes on Motorola India they are just making fool to people just to make ?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jsis83:
Xt1900-7 reteu february security patch... [emoji850]

Enviado desde mi moto x4 mediante Tapatalk
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] squanchy:
God damnit, I flashed the older project FI image, and now i get the message "your device has loaded a different operating system"

Now I can't even return this phone because I voided my warranty.

I just want to smash this phone, and forget it exists.

I've had nothing but problems with it ever since I updated it to the March update.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] leogeeko:
Flash the one I uploaded with April update and you will have your phone back. I had the same error as you.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] squanchy:
No it's the same deal, I wasn't able to flash without unlocking my bootloader, so I'm always going to be flagged with that error no matter what image I use.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] JoaoMarcos:
Hey guy. I'm looking for image files with April update. Can you provide us please? I can't find any link in thread.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] leogeeko:
https://xdaforums.com/moto-x4/development/official-firmware-xt1900-06-april-patch-t3785494
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Slickademo:
Anyone having troubles updating? I unlocked my bootloader and was rooted. I unrooted my phone, flashed firmware and even relocked my bootloader. Newest (A1) ota update is failing. I'm stuck!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] SchmilK:
I've been going at this for the past 24 hours. This morning I started again and now I'm on 8.1 still with unlocked bootloader!

Wiped system with TWRP

Flashed PAYTON_FI_OPWS27.57-25-6-10_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml using all erase commands recommended

Skipped all google setup (after a few failures later I had to sign in to make a phone call)

Got on WIFI

Update prompted to install 8.1

Enabled debugging and ran adb logcat

Started upgrade - then it failed, but each time it got further % on step 3 only AFTER rebooting!

Upgrade has failed 10 or 11 times - I have rebooted after every fail otherwise the next attempt fails at 0% after downloading 100%

Now I am prompted to restart "Your system installation is almost complete"

Now I am on 8.1!!

Kernel Version

4.4.78-perf-g1828778-00013-g70d6863-dirty (gcc version 4.9.x.20150123 (prerelease) (GCC) ) hudsoncm@ilclbld34 #1 Sat Apr 7 05:06:47 CDT 2018

Build number

OPW28.1

Motorola version

OPW28.46-13
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Slickademo:
Looks like I need to reinstall TWRP and try again ? All you wiped was system?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] SchmilK:
I did the standard wipe (which doesnt' work \data\media), then went to advanced wiped data...which probably wasn't necessary.

I think the only trick was "reboot and retry after fail", I saw someone else post those same words but never came back to give more details. I just wanted to write down my exact steps.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jsis83:
What is your model? xt1900-?

Enviado desde mi moto x4 mediante Tapatalk
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Slickademo:
Reboot and retry worked for me! Took several reboots but I'm finally on 8.1 lol thanks

---------- Post added at 10:48 PM ---------- Previous post was at 09:51 PM ----------

Ever since I updated I get a message saying "verity mode is set to logging" at my boot screen. Anyone know what or why I got this?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] onurd:
Same here with the “verity mode ...”. Any idea?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] QWZR II:
Try *#*#checkin#*#* in dialer.

Do you have to erase data to relock? I've been thinking about it so Google Pay and Netflix will work.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] azazelcrey:
Locking cleared my data, but not sure if unlocking did because I flashed directly after unlocking, I'm almost certain it did but if you have allowed google to backup/sync it'll just re download everything once you do the initial setup again you'll just have log back in to your apps and reconfigure any. not a big deal for me.

P.s after the lock I had trouble with ADB not connecting even after usb debug/screenlock/oem unlock I attempted to flash 8.0.0 OPW27.57-25-2 2 and it got to the modem flash and failed, i lost the recovery menu completly, had trouble with adb connecting and was sweating it for a bit (thought I screwd something up) I slept on it and this am adb connected fine let me unlock and install 8.0.0 OPW27.57-25-2 2, its updating security patches now. hopefully i can get the the 8.1 update eventually. I keep getting stuck on march 1 update.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] azazelcrey:
Ap mode secure

Project Fi MOTO x4

anybody know to to unsecure flashboot flashmode?

installed TWRP/Root

reverted to stock

downloaded OTA up to March 1st

adb doesnt work in recovery to update OTA manually

Flashed Payton_fi 8.0.0 again

updated to March 1st Again

now adb commands wont work but fastboot commands do however AP Mode is Secure.

Locked/Unclocked bootloader

Shut off lockscreen

turned ADB on/off in dev settings

turned OEM unlock on and off in dev

tried fastboot commands to set AP Mode (clear cache, set mode, etc...)

Still locked AP Mode Secure.

even ran flash stock via fastboot but almost all comands fail.

tried with 2 different pcs so ive definitly messed up something in the bootloader
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] hardbeez:
Fail to flash TWRP

Hi, I'm trying to flash twrp (in order to proceed to root my phone), but encounter error message "adb server version (32) doesn't match this client (39); killing..." follow by "(bootloader) Invalid partition name recovery FAILED (remote failure)"".. My I know what is the problem and how can I fix it?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] azazelcrey:
With your phone disconnected from your PC, try reinstalling adb drivers and make sure you have the newest adb available, reset your computer and phone and than plug it In and give it a try. I was running in to the same issue and I'm pretty sure reinstall/reboot fixed it.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] BillyTheBull:
Hi all ... I'm having an odd issue here that I'm hoping someone can help me resolve:

I've used the OP's method to flash PAYTON_FI_OPW27.57-25-2... a while back and the process worked perfectly. (My bootloader is unlocked, of course, and I'm also rooted.) Now I'm trying to repeat the process to flash the March update PAYTON_FI_OPWS27.57-25-6-10, but I keep getting stuck at "mfastboot flash partition gpt.bin", which results in the following output:

target max-sparse-size: 256MB

sending 'partition' (37 KB)...

... and from there absolutely nothing happens. PowerShell just kind of stops there (with a blinking cursor) no matter how long I wait. I can close it and try again, with the same problem, and (luckily, at least) the phone continues to work just fine after these failed attempts. I have tried Command Prompt and PowerShell, in both regular and administrator modes, but in either cases I get the same result -- ALTHOUGH, sometimes I do get an outright "FAILED (remote: unknown command)" message. (??)

Either way, I can't get past the first step of the flashing process and I don't get what's going on. I'm on the latest version of Windows 10 and Motorola Device Manager v2.5.4 (freshly un- and re-installed, just in case). Any ideas/help will be greatly appreciated!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] winnph:
A1 boot.img for April?

As an update to this thread, does anyone have the stock images for the April release (8.1) for the Android One version? I specifically need at least the boot partition. I kinda accidentally flashed the March boot image only over my stock 8.1, now all sorts of things aren't working right, and I neglected to back up the boot partition after the update to 8.1.....
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jhedfors:
I believe there are only OTA files for 8.1, and no full images yet.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] winnph:
Damn, as I feared. Well luckily my x4 is just my backup phone, so I can just wait around until someone leaks some future full images.

It's pretty ridiculous how hard Motorola makes all this stuff, from unlocking the bootloader to flashing stock ROMs. I'm definitely sticking with Pixel/Google phones from here on out.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Slickademo:
I with ya on that. I'm ditching this x4 once th pixel 3 comes out!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] munchy_cool:
flash March factory image and then sideload OTA again
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] winnph:
Aha! The March images are for retail version, right, not A1/ProjectFi? I assume it should flash OK but I've never flashed something from another carrier before.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] munchy_cool:
yeps, for retail US version..i believe they should flash right.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] DarkLara:
new version PAYTON_OPW28.46-13

https://androidfilehost.com/?w=files&flid=229118
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] vyaskd:
is this 8.1?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jhedfors:
Yes. Build matches mine.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] granusz:
And this is for retail moto x4 or android one?

I see now. One is for fi, amazon and last for regular.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] izzyfanto:
Thank you!!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ptn107:
Thanks for this! My A1 Moto X4 would not take the OTA to 8.1 no matter what I tried. Flashing this firmware worked! It even took the next OTA to the May security patch with no problems! Running 8.1.0 just fine now.

---------- Post added at 03:38 AM ---------- Previous post was at 03:35 AM ----------

https://androidfilehost.com/?w=files&flid=229118
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mujju85:
Will this work on other x4 1900-2 ?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] abrfilho:
Works with 1900-6, but it won't receive any updates.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ehbm:
Retail x4 or Android One?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jhedfors:
Android One
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] granusz:
It works with reteu xt1900-7. Even if I skipped "erase userdata". Its oreo 8.1 with april security patch.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jubagrande:
Is it possible to re-lock?

Hi all,

I have MotoX4 xt1900-6, with version number OPWS27.2.2 and Motorola version OPWS27.57-40-14....

I unlocked my bootloader with this tutorial:

https://www.getdroidtips.com/unlock-bootloader-moto-x4/

Then, I rooted with this other tutorial:

https://www.getdroidtips.com/root-moto-x4-cf-auto-root/

This root method appears only to change this boot file.

Anyway, now, I can't install some apps, like Netflix...

If I just re-lock with this command:

fastboot oem lock

Will I unroot my cell and restore it's stock format so I can install Netflix like if I never unlocked it?

Or do I really have to do this method 2 here:

https://www.getdroidtips.com/install-stock-rom-moto-x4/
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] MotoX4:
Really curious where you obtain these? My phone has opw28.46-18 which is May's update, but in the future I may wish to flash and root my device and having the latest would be great.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jhedfors:
It appears that the OP [MENTION=4554317]lohanbarth[/MENTION] is no longer maintaining this thread. It should be closed if that is the case, as it no longer has the current official firmware.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] JaviLerma:
hi, could you fix it?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ptn107:
The verity logging message on boot also shows up when booting custom roms. I don't think we can fix it.

---------- Post added at 06:34 PM ---------- Previous post was at 06:33 PM ----------

Probably not because it's retus.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] :
[MENTION=2523474]kraa[/MENTION]tus

Friend u said it is working on xt1900-02. Are you from India..?

Will I get all xt1900-02 related patches and updates after flashing this version..? Please suggest
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Vorion:
Today, I flashed 8.1 Oreo and started getting "Verity mode is set to logging". I don't know what possible impact it is going to bring. But it's annoying to see it.

I guess it was somehow triggered when I flashed the stock 8.1 and didn't erase the userdata and ddr.

My phone was previously decrypted when it ran on 8.0. Probably this triggered it.

If anyone knows a solution, please let us know.

Magisk is also not getting installed on TWRP.

While all these frustrations mounting, my phone slipped without back case and fell down from my bed. Survived with some minor scratch and broken tempered glass.. lol Too much in a single day :eek:

:rolleyes: Certainly, I can't undo the drop but I am hoping to undo the "verity message" and installing Magisk!

Solutions, please!!! :silly:

Thanks!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] JaviLerma:
I did clean install, and messege it remains. Magisk works fine for me (maybe you should erase user data)

But i can't install xposed on 8.1 (magisk version and original version) I get bootloop :crying:
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Vorion:
I did. First time, it didn't allow me to boot. It took me to stock recovery and suggested that I erase the data and I did.

I reflashed the same ROM cleanly. Still, I couldn't install Magisk while my phone was encrypted as well as unencrypted. I downloaded Magisk file from the official thread on XDA.

Where did you get it? And which version? I used 16v
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] JaviLerma:
I use v16 from official theard, which twrp version use?

can you install xposed?