[Moto X Q&A] no_un_bot:
Boy oh boy was I wrong.

I fixed it, going to post what I did.

Turns out the /persist folder was not empty, root explorer showed everything was ok. he I thought, "Hey, XPosed + GravityBox caused (afaik) this mess, maybe it will get me out of it too. Maybe, as pointed out, xosed touched some partitions not normally accessible, lets see if they can do it again". So I installed those apps again, did the very same I did las time, and then uninstalled using the Xposed disabler .zip. Didnt work.

It was time to try and flash another stock ROM.

As Ive said before, I originally got into 4.4.4 with TMobiles ROM (my keyboard tilde key is broken, so bear with me), and attempting to flash AT&T/Verizon/BR Retail etc 4.4.4 stock ROMs would fail because of a security downgrade as far as gpt.bin goes.

I "fixed" this taking the gpt.bin file out of TMobiles OTA zip (the one that upgrades 4.4.3 to 4.4.4) and replacing the one on the ROM I was trying to flash with this. Meaning, I flashed the BR Retail 4.4.4 having replace gpt.bin with TMobiles OTA one.

Everything flashed ok, and, at the very last step, instead of using the command

fastboot oem config carrier vzw

like every guide out there says, I went for

fastboot oem config carrier ghost_retail

as per this page: https://github.com/CyanogenMod/android_device_motorola_ghost .

Phone rebooted with his Brazilian version and lo and behold, it was NOT working. Same symptoms.

I dug deeper, and the I remembered how someone with the same issues on another phone model fixed it by swapping his SIM for a friends, then using his again. I had already tried this, I even bough a SIM (because no one close to me uses a nano SIM) and it hadnt worked, but it did gave me some insight, maybe some sort of registration was not getting done.

Looking up stuff, I stumbled upon the "secret" testing menu on our Moto X, accessible by dialing *#*#4636#*#*

There I saw, to my horror, how my IMEI was 0.

Before giving up, I looked up how to fix this, turns out the BR modem was not quite right for Mexico. I flashed my country modem, getting he files from this video description (its in spanish, and the files are for Mexicos bands, but someone might find it useful): https://www.youtube.com/watch?v=oNSVRGvaKfY .

Rebooted, and to my relief, I had an IMEI again, though still no service, no wifi and no bluetooth.

Now, this special menu had some toggles that intrigued me, for they referenced to a possible registration, so I decided I should give it a go.

The toggles are pictured on the attached screenshot. These toggles, minus the CellInfoListRate, are only on and off.

I switched them so they would read "Turn radio off" (meaning it was on), "Turn off IMS regisration required" (meaning it was on, and my #1 suspect), "Turn off SMS over IMS" (seemed logical). I didnt play with the other 2 toggles.

Since I was cleaning, I left my phone on a table while I was sweeping, when suddenly the notification ringtone, one I hadnt heard in th past 2 days, sounded. I ran to my phone, and as angelic choirs played somewhere, I finally had signal bars, and an SMS had just gotten in.

Feeling relief, I was a bit let down when I still wasnt able to turn neither WiFi nor Bluetooth services. I called my brother, and when the call actually connected, I decided I might as well set my google account before anything else happened.

Now I had my contacts and data connection. I decided to turn the toggles that fixed this whole ordeal back to what I thought should be (thus now being as pictured on my screenshot) before rebooting.

Holding my breath, I rebooted and guess what: WiFi and bluetooth ould now be turned on, and connect.

This is the story of how I fixed this, hoping to help somebody out there.

Thanks to everyone who tried to help.

Moto X, you are a wild ride, but I love you.