yashsingh1/xdaforums huggingface dataset:
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Psycake:
Damn, why didn't you tell me :(

I had March update. So what do I do after I get everything working again? How do I decrypt?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
Unfortunately, I only knew that for about 3-4 hours. The device will just boot to Twrp (Official) and then install the twrp zip and then restart twrp. Finally, install magisk v16 (I use 16.2). Unfortunately, I do not know any more.

---------- Post added at 02:16 AM ---------- Previous post was at 02:15 AM ----------

Unfortunately, I only knew that for about 3-4 hours. The device will just boot to Twrp (Official) and then install the twrp zip and then restart twrp. Finally, install magisk v16 (I use 16.2). Unfortunately, I do not know any more.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Psycake:
Cool, thank you very much for your help.. Will give it a try tomorrow and tell you how it goes :D
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] alexknop:
March

Does anyone have a solution for me being on the March update? I can't get TWRP to install.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
In fastboot please enter this. (Bootloader must be unlocked).

fastboot boot TWRPNAME.img

Then install the TWRP zip file. Restart TWRP and then install Magisk.

https://twrp.me/motorola/motorolamotox4.html
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] alexknop:
Which I can do right from Motorola's website, correct? https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
Yes, Just do what the website requires.

Please save the received code well. It is always the same and therefore it would be otherwise unnecessary to make this new on the website.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] LionLorena:
Is it possible to decrypt to use Adoptable Storage?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] chiwiu:
Help! I did try to root my X4 with Oreo and it does not boot now! :/

I have done this before with other phones and not sure what went wrong... I did unlock the bootloader and installed successfully TWP, then installed the sudo app in this post and did not manage to start the phone again. :(

it says:

No bootable A/B slot

Failed to boot Linux, falling back to fastboot

Fastboot Reason: fall-throught from normal boot mode.

Does anybody have any ideas? Can anybody here pass me a fresh OREO image to try to start over again?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
Do you have an Android One or Amazon device? Which version number do you have (for example xt1900-7)? This you need to put your device back in the right version.

Please download everything.

https://drive.google.com/folderview?id=1k9KMbV9q414diKcw84mdhgDNFKtRgSRF

And last but not least, which country are you from? This is important so that I can find out the right Rome for you. And now to the root right. After installing TWRP, just download and install Magisk v16.2 and it works.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] chiwiu:
I am from Spain, but bought an Italian version of the Moto X4 through amazon, as there is no 64GB version in my country. I dont think it was an amazon special device...

I think the number was xt1900-7, but I'll triple check with my box back home :D

Thanks a lot for your reply!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
https://androidfilehost.com/?fid=818070582850507203

Since I also use the XT1900-7, I know which version you need and unfortunately there are no European Roms here therefore the Retial version with March update. I also use this version. The bootloader has to be open when flashing.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] chiwiu:
Yes, I found that rom this morning, but wanted to double check here before messing it up more...

Thanks for the advices, fortunately the bootloader is open already as I was trying to root it :P

One last small question... for flashing the rom the steps are the same as in this tutorial?: https://www.thecusto mdroid.com/download-install-moto-x4-oreo-update/
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
The link does not work.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] chiwiu:
:p

I updated the link with a space in the middle... this forum does not allow me to put links yet I think :o :rolleyes:
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
Yes, this should work.

---------- Post added at 02:04 PM ---------- Previous post was at 02:04 PM ----------

sorry the wrong quotes
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Psycake:
Hey, I got a question.

I want to decrypt /data, but seeing as this only works for the February patch, I'm looking for other ways to do it.

Can I follow the Oreo root method #1 in the first post of this thread (flashing the custom Magisk 15.3 boot image) in March update? Will this decrypt /data?

Thanks
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
Sorry, that is not possible. And I have not yet figured out how to do that. And you can try out the root method, but I do not think it works. I have not tested this on the March update yet. And in TWRP, I've always been able to flash everything. Xposed is only about the system itself.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Psycake:
So in TWRP you can even flash Magisk modules that require access to the /data partition?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
Unfortunately, I have not tested this, but I can say that it is possible via the Magisk App.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Psycake:
Really? The other day I tried to flash a module that wrote to /data, and it failed
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
I have just seen that the camera mod for the X4 is also a Magisk module and I have even installed this over TWRP and this works great.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Psycake:
Let me ask you another question if you can. If I'm trying to install this module right in my Moto G5 Plus, like all the other modules, it looks for magisk_merge.img (or something like that) inside /data.

Now, if /data is encrypted, can that file be there, therefore allowing for a correct installation? If some module doesn't install using the Manager because of the /data encryption, could it be installed using TWRP?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
It may be that if something is not installed in Magisk then it works in TWRP. Because it also depends on how the developer of this module has developed. So I would just try it. Since I gave away my G5, I can not test this. And the X4 is funny anyway with installing root stuff. I explain the time more exactly. If I want to install Xposed (just an example) then this is not about TWRP but only about the app but not about Magisk but purely on the Xposed app and the uninstaller does not work on TWRP. But as already seen, the camera module works via TWRP. So I do not understand what the X4 does with the stuff. I always test out whenever I want to do something. Otherwise I have no idea how to do it.

If you have any questions about understanding please write. I am German and translate everything with the Google translator
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] LionLorena:
Does anyone knows if it's possible to remove the forced encryption? Or at least change from FBE to FDE?

The forced FBE won't let us use Adoptable Storage.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Psycake:
Okay, so conclusion is: neither you or I know what the phone does.

So, I'll try installing the modules in TWRP if they fail in the Magisk Manager.

I also want to try decrypting again using the fstab.qcom, but without flashing TWRP first (only booting into it) to see if that could decrypt it. Are you really sure it doesn't work in the March update? Do you have any proof?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dimdom1919:
Although I have no evidence but whether I do it in Android One or in the Motorola Rome my X4 does not start anymore and I can reinstall the whole Rome. The device does not bootlope but it just hangs when starting and that also after 30 minutes
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Psycake:
So like what happened to me? Okay, guess I'll have to find other ways or just deal with it.

Thanks!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Zarxrax:
I want to root my android one moto x4, but the instructions are a little unclear. I have my device currently on stock, updated to the march update of oreo.

The first root method involves flashing a custom magisk boot image. Is this safe for all versions of moto x4 including the android one version? Are are there different versions of the boot image that I might need?

If I flash that boot image, how do I get back to the original boot image?

That method doesn't talk about installing twrp, is that really not necessary at all? Should I still install it anyways? Or is it included in the magisk boot image?

I want to be able to flash my phone back to unrooted later so I can take updates, and I don't want to screw anything up that might prevent that. Is there anything else I need to know?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] LionLorena:
No one?

---------- Post added at 10:58 PM ---------- Previous post was at 10:56 PM ----------

is it said that if you backup the /data, then factory restore than restore the /data (all in TWRP) it will skip the first boot with the setup and everything, which is the part where the encryption is made.

Can Anyone confirm this?

I can't test this until my warranty expires.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
This is extensively discussed previously in this thread...in fact one of the main issues from the early posts (November 2017) onward.

You can *remove* encryption altogether, but changing from FBE to another form of encryption is something beyond rooting. Maybe start a thread?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
*delete* wrong thread ')
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] LionLorena:
but in this case removing the encryption seems enough.

Says here:

https://source.android.com/devices/storage/adoptable

That It is not compatible with FBE, but if you are not using it, you should be able to use.

Do you currently have it decrypted ?

Could you please test this?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Slickademo:
I have been trying to update to 8.1 and my ota is failing. I have un-rooted, flashed firmware and even re locked my bootloader. Adb sideload hasn't worked for me either. I'm out of ideas. Do I have to wait for the 8.1 files to be released to flash in Fastboot mode? My A1 device is pretty much stuck right now on the March update....
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] azazelcrey:
Update to OTA

Im Not a dev by any means but have been rooting phones/installing customs roms and modding various devices since the days of the original xbox. I just got a Project Fi Moto x4 a few days ago and have been playing around with it and

decided to install -

TWRP (3.2.1-0) and Root (superSU v2.82-SR5) Kernel is 4.4.78perf, Baseband is M6607036 Payton_NA_CUST, Build OPWS27.1.3, Moto Ver OPWS27.57-25-6-10 Android ver 8.0.0.

Everything is working great however, Moto is asking me to install the latest OPW28.1 Update and would very much like to do so. From everything I've gathered reading various forums and the info from the TWRP website is that you cannot flash stock OTA updates in TWRP, (I believe this has has been covered in this thread) but, its still unclear to me. my questions are: is if I go back to a stock recovery and remove TWRP/Root/ROM can i do the 8.1 update and than get root back or will reinstalling the recovery/root revert me back to 8.0 and or brick? What is the best/safest method to the the 8.1 update when TWRP/ROOT has been applied?

Thanks for any help.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Slickademo:
You'll have to unroot and flash factory firmware. I had to reboot and retry several times to finish update. No way to ota with root. TWRP shouldn't matter.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] k2pdx:
Now that the latest update has broken the ability to connect via USB, is there a way to unlock bootloader and root the X4 (Android One version) / XT1900-1 without having to connect it to my computer? A previous phone I could do it all via SD Card...is there a way to do this on the X4?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] azazelcrey:
After the OTA I should be able flash TWRP recovery and Supersu and be all caught up with 8.1? OR do you recommend Magisk with a different recovery or is a recovery not necessary? I think something I read said you can use magisk to gain root but not have to mess with the recovery and receive OTAs as normal as long as you unroot with Magisk. ?? Thanks in advance and thanks for the previous reply.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Slickademo:
Install twrp as normal. As far as root goes I don't know. I tried SuperSU and it didn't boot. I waited about 10-20 mins. Anyone else rooted on 8.1 ???
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ELProfeMcK:
You have to disable screen lock, reboot the phone and all of usb-to-pc connections should work. If you activate screen lock usb won't work.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Slickademo:
What root method is working for 8.1 ?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] k2pdx:
Thanks, will try this! After seeing your comment I read more and found a thread that mentioned that workaround - thanks again.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] DanghelOR:
Oreo method

for both methods you need to unlock the boot loader? , in the oreo method You do not unlock it, excuse my English, Google translate​
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] azazelcrey:
Unroot Failed

I decided to go ahead and attempt to unroot for the OTA, Full unroot doesnt work via supersu app, I downloaded a su remover tool which installed but did nothing. Next ill try to unroot by deleting the system files in the bin folder unless anyone else has better ideas?

Thanks
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] azazelcrey:
Reflashed to stock, 8.0.0 got the March 1 security patch but OTA says im up to date. Hopefully tonight ill get the 8.1 when I have time to look into it more. Hoping I dont have to do it manually.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] chuckyteets:
Edit 2: Crisis averted. Feel free not to read. Original post:

Hey guys I think I might have bricked my new x4 (Google Fi). I got it in the mail today, turned it on, updated to the March 8.0.0 patch through OTAs. Then I unlocked via the moto unlock code. Then I flashed 'x4-magisk-15.3-boot.img' using 'fastboot flash boot x4-magisk-15.3-boot.img'. It got into a boot loop so I tried going back into fastboot mode and recovery. Now I cannot see the phone with adb devices, and it won't get past the bootloader. It shows this message anytime I try to get past the bootloader "If this is a verizon device, please use the Software Repair Assistant on computer to get the Software Repair Assistant. If this is not a Verizon device or Software Repair Assistant did not help me for any reason, please contact customer care center for further assistant. AP Fastboot Flash Mode (Secure). No bootable A/B slot. Failed to boot Linux, falling back to fastboot. Fastboot Reason: Fall-through from recovery boot mode."

Am I screwed? Not a great start to my first night with the phone.

Edit: I tried running the verizon software repair assistant (even though it's for Google Fi) and some commands did show up on the screen. I also uninstalled all of my adb drivers and now there is an unknown device "Fastboot payton S" in my device manager that I cannot seem to find a driver for. Help me out please!

Edit 3: Fix was to install Ubuntu on one of my laptopts, then 'sudo fastboot' commands recognized the phone again. I was able to push each individual component of one of the latest full system installs and now it boots.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] azazelcrey:
Have you been able to update the 8.1 OTA?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] chuckyteets:
No. I fastbooted to an 8.0.0 Fi specific version of the firmware that I found on AndroidFileHost. It is the March 1, 2018 security patch. Build number OPWS27.1.3, Motorola Version OPWS27.57-25-6-10. I left it for about a day before doing any kind of rooting or modifying and it never had 8.1 available. I now rooted by fastbooting the twrp image, then installing the twrp zip from the booted twrp, then installing the SuperSU zip from the real twrp recovery. I think one of my problems before was that I had a fingerprint and pattern security on, and twrp wasn't working right. I think I have had to recover this with fastboot 20 times since getting it 2 days ago. This phone seems a lot more sensitive to small screwups than any other phone I've messed with.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Blackjesus135:
Just Wondering

I was wondering if I use the Chainfire autoroot on this phone encrypted will it work?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] k2pdx:
Has anybody had any luck rooting this device after 8.1 update?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] wanb1i:
Is this img on the Mega site the "Stock" or the Magisk "Modified" image? I ask because the files are different sizes and I flashed the original Magisk modified image and my phone bootloops...

---------- Post added at 05:32 PM ---------- Previous post was at 05:27 PM ----------

Is this img on the Mega site the "Stock" or the Magisk "Modified" image? I ask because the files are different sizes and I flashed the original Magisk modified image and my phone bootloops...
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] disleyxc:
Hey guys, I own the Amazon variant of the Moto X4 so no bootloader unlocking. Recently though an article posted on XDA (https://www.xda-developers.com/unlock-bootloader-verizon-google-pixel-xl/) has found a new way to unlock a bootloader. Do you guys think that this method could work for the Amazon variant of the X4?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] farmer bobathan:
Yeah, I used fastboot to boot into the twrp image for our phone and then sideloaded the latest magisk zip.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] munchy_cool:
try it, you wont brick your phone. just that it will give an error.

PS:- moto phones are unlocked via code from moto website.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] izzyfanto:
[MENTION=8301178]dimdom1919[/MENTION] [MENTION=3683732]mightysween[/MENTION] Thanks for your hard work and help, much appreciated!

I updated to March security, booted official TWRP and then install TWRP zip, rebooted fine. Rebooted to bootloader, flashed the patched magisk image and....bootloop. I've rooted quite a few phones, but this is a strange one. I don't understand the different ways of installing TWRP and Magisk. I'm used to flashing TWRP, and installing the Magisk zip. I've also read through the entire thread, and it's confusing to me. What am I missing?

EDIT: Did I correctly read that there is no recovery on this phone? Why is it an option in the bootloader then? I also don't understand the encryption problem that is mentioned throughout the thread.

EDIT: I manged to fix the bootloop by rebooting the TWRP img and flashing the TWRP zip. But I'm confused on how I'm exactly supposed to get Magisk root when I followed the three simple steps listed in Option #1. Excuse my ignorance :)
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] munchy_cool:
flash factory image.

boot into twrp.

flash twrp zip.

boot into android.

bot back into twrp.

flash magisk zip (https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445)

reboot into android.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] izzyfanto:
Thank you! That's how I've always done it, but this thread kept mentioning encryption and having to use the patched boot image. Very confused. Why are the instructions in the OP broken and everyone seemingly making this more complicated than it needs to be?? Thanks to you I'm rooted the usual way, thanks again!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] munchy_cool:
where in the instructions does it say to flash patched boot image via twrp?

i supposed you need to be using fastboot.

the recovery for these devices in within the bootimage.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] izzyfanto:
In says to flash the patched boot image in the first post:

And I followed the instructions above ^ using

fastboot

...

Ah, I didn't know that. So normal devices have a recovery partition, but this one packages the recovery in the boot partition? I'm a reasonable seasoned rooter but definitely not a dev so I'm unaware how the normal drive structure looks like.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] munchy_cool:
well then the boot image provided in OP must be from another build. Moto X4 has many models, not sure which one you have.

as for recovery inside boot image. well, thats a new trend and even Pixel 2 has the same structure and so do other devices. it sucks, but thats how it is.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
Need to do some more research on how this is working with A/B partitioning.

Try this with the stock boot.img I posted:
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
Looks like the root method itself supports a/b partitioning just fine, so that shouldn't be an issue, FYI.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] hotpl8:
I know I went out on a limb here. Thanks for talking about it with me anyway. In my bootloader it says that my baseband : <not found> not sure what that is but I am guessing it's a problem. Any insight?

I was able to boot my phone back up without using the wifi or sim card. Here I can seem to get adb commands to work as I have enabled usb debugging. Under 'about phone' it shows baseband info correctly.

Definitely appears to be a modem issue.

I have another device to use so I am not freaking out about this phone, but I would like to figure out how to get it back to working. The device is stable now, although each boot up nets different results. I have android studio but I dont know how to use it really. I have updated the sdk and found the proper folder for the command prompt when using flash boot.

I keep getting info like the cache size is unknown when wiping, and I feel like I have corrupted more than I should have In so way. I am not sure if this corruption happened because I was boot looping and the usb connection messed up my internal partitions, but something seems off on that front.

Again thanks for any help you give and I know I was the reason this has gotten so bad. DOHHH!!!!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
The root method in the OP doesn't actually "flash" anything... just boots a patched image. Not sure how it would bork a modem.

Did you try flashing the stock boot above?

Can't imagine how the baseband is missing... did you mess around flashing other stuff??
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] vvaibhavv:
Great work!!!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] souleman:
Let me get this right.. this doesn't actually change the bootloader, just boots from a modified version with root support?

So when you reboot the phone next time, you will be back on the normal bootloader? Will you still have root, or do you need to use the fastboot command every time you need root access?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mightysween:
Yes and no. :)

Correct, the initial boot of that modified image does not actually flash the device...just boots that patched image. This is how SuperSU is installed... it will remain installed on reboot.