yashsingh1/xdaforums huggingface dataset:
[X 2014 General] SamuriHL:
There is another way...but you should make sure to read this a few times before attempting it so you don't make a mistake. :)

In theory, you can BOOT (NOT FLASH) TWRP and run the dd commands from the built in terminal. That'll extract the images. Then boot up normal and pull them with adb. To BOOT with TWRP (rather than flashing it) you'd grab the TWRP image for your phone then put your phone in Fastboot mode, connect it to USB, and run the following fastboot command:

fastboot boot recovery.img

Where recovery.img is the fiilename for your TWRP image you downloaded. Once TWRP boots up, you get to the terminal, run the dd commands, and then boot normal and pull them off the device with the adb pull commands.
[X 2014 General] graffixnyc:
The modem was posted for people who had I believe the Brazilian modem installed and the OTA was failing on the radio and it was discovered it wouldn't fail with the AT&T modem (we didn't have any other one that it wouldn't fail on). I get my new pure edition this week (XT1095) and will make sure to pull the radio, unrooted system img and things like that
[X 2014 General] BrokenWall:
Awesome, I had no issues at all with the flash. I was just curious why there was some people claiming ATT ROM on XT1095. Phone has been running stable for me and I do appreciate you providing the OTA. As well as working with Chainfire to try to get CFAR for our phones.

If I do remember correctly from what he said in his G+ post and XDA, that if someone is able to build a kernel that allows for the .install-recovery script to still be used and executed then Root will work fine on 5.0 Then again I would rather wait til we get a final release from Moto, just in case it has a later build date. But I am loving the Lollipop on the Moto X.
[X 2014 General] graffixnyc:
I'm not sure as I haven't kept up on what he has been posting about root. I do know with the N9 we have to boot a boot.img that he calls "injector" then we have to flash a modified boot.img an we have root. I'm guessing it's the same type of thing for us.. And you're making me jealous although I have 5.0 on my N9.. I had sold my Moto X and shipped it out last Thursday but had ordered another on friday before all the lollipop stuff dropped :) I had a wood back, but this time went with the standard Navy soft touch.. figure it will truly look like a Nexus 6 mini then :P

It's going to be hard though for me to give up my current DD which is a Z3 Compact(not sure I'll be able to). The battery life I get on that thing is amazing. Only other phone I've had that compared to the battery life on that was the OPO which is a much bigger phone. But honestly I think the Z3c battery life is better than I use to get on my OPO.
[X 2014 General] BrokenWall:
Yeah when he was discussing the Root on the latest Developer Preview for the Nexus 7 (2013). He mentioned having to use a custom boot.img that had a new kernel that had been modified to allow for SU to boot at startup.

Reason I bought my new Moto X outright is because I wanted my unlocked bootloader. And previous Nexus phones were notorious for having smaller batteries compared to their normal release counterparts. This time I am glad because the 5.2" Screen on the X is just a big as I would ever need and the Nexus 6 is way to be for me. My buddy's Note 3 is too much.

I got the Navy Blue Leather Back, Black Front, Blue accents.

If you ever need assistance with XT1095 stuff, I am happy to assist as needed (on the testing front)
[X 2014 General] Slorks:
thank you for tutorial but i'm having problems from the first step. i'm already rooted and when i try to back using the commands, it says error device not found. i have my drivers up to date i could do other commands my xt1092 is already rooted and i have twrp recovery i backed up the efs and the whole rom basically.

i figured i should wipe and flash from recovery the zip file but it wont work since its for the 1095 variant. any suggestions?

thanks
[X 2014 General] nerotix:
Right click computer, manager, device manager, right click on ur phone, update driver software, browse my computer for driver software, let me pick from a list of device drivers on my computer, android device, select ANdroid ADB Interface, next, voila done and now ur ADB should find ur phone.
[X 2014 General] Slorks:
okay i'm fine until "let me pick from a list of devices drivers on my computer" then it shows me MTP USB Device
[X 2014 General] nerotix:
Screenshot plz? After u click to pick from list, u must click show all devices.. then ull see android device.
[X 2014 General] steff999:
Hi!

I installed the update step for step by your instructions. Everything went well, expect i can't restore the PDS file. When i try all I get is:

writing 'pds'
(bootloader) Permission denied
FAILED (remote failure)

Bootloader was and is still unlocked. Flashing the other two files was no problem. Anyone with a possible solution?

Greetings from Switzerland

Sorry for my bad english
[X 2014 General] nerotix:
You only have to restore if your IMEI isnt visible. First check if its gone in ur about phone settings.
[X 2014 General] graffixnyc:
It's really bugging me why some are able to update and others are not..

Another one that was able to: https://plus.google.com/100018939840735779447/posts/6j55PphUiTg
[X 2014 General] kaioziro:
Could someone tell me if it works on moto x xt1097 Brazilian?
[X 2014 General] 0.0:
was he rooted before? i am thinking that those who only unrooted will have it fail. there is more to it. any root app that made modifications have to be erased as well. every single thing that a rooted app modified has to be removed
[X 2014 General] beelzebu:
I tried, no luck
[X 2014 General] nexus15:
Ok so here is how I did it. I deleted my superuser apk because I didn't have the unroot option as I was using Koush's SU not superSU. I just went into file explorer and deleted it. Then the sideload and it worked. In fact it even ignored my kitkat Google dialer (so I could have the reverse lookup on businesses) and I am about to copy the one from the final developer preview to my moto x except one tiny problem

need to get root again... anyone got a method?
[X 2014 General] fairct:
I really wish there was a recovery zip that I could sideload. Or stock rom. Either one. Because right now... I don't know how to get it into bootloader.
[X 2014 General] 0.0:
for root, have you tried flashing the SuperSU v2.19 beta? I asked before, but no one replied, so you'll be the first to answer :p

http://xdaforums.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133

and for unrooting, I have a feeling that you didn't have root apps that modified anything to the /system. that is why it probably worked. a lot of rooted users have problems. i could be very wrong though lol
[X 2014 General] rayfin:
Confirmed my man. Working great here.
[X 2014 General] rajivgupta96:
Moto G 2014 5.0 OTA

Can anyone upload the soak ota image of the moto G 2014 android 5.0?:confused:
[X 2014 General] nexus15:
should have mentioned I did have xposed (going to miss it) and turned it off and rebooted back to 4.4.4 once before applying the soaktest OTA. that and adaway (need that working again stat) Thats about it.

Also should mention you get the new watchfaces if you have a moto 360 with the included moto connect app! :D
[X 2014 General] _MetalHead_:
No.

This thread (and subforum) is for the Moto X, not the Moto G. Is there even a soak test going on for the Moto G? Or are you just assuming that since the X has one the G does as well?
[X 2014 General] 0.0:
OT: the Moto G Lollipop release notes did pop up online (accidentally probably) so maybe they'll receive a soak test, but who knows when

---------- Post added at 08:07 PM ---------- Previous post was at 08:06 PM ----------

try flashing the beta SuperSU and report back. also, I have a Moto 360 so now I need to update :p
[X 2014 General] crawlgsx:
What drivers did you use to get the Moto X seen by ADB? (Windows)

Mine is showing up as Fastboot victara s with an exclamation.

Edit: Oops forgot sideload. Now it shows up as XT1095 with exclamation. Still cant find device.
[X 2014 General] BRYCEFISHER:
Once i am in recovery and type the command for adb sideload the device is no longer recognized says device not found. what am i doing wrong?
[X 2014 General] graffixnyc:
I doubt the super su zip will work. Chainfire posted something legnthy about root being really hard to accomplish on 5.0 in it's current state. For the Nexus 9 you ha to boot a special boot.img then flash another boot.img for root. Root will have to be done in the kernel
[X 2014 General] SurlyDuff:
Hold volume up+power for a second when in recovery to bring up the menu, then select ADB sideload.
[X 2014 General] antnyhills:
You were able to get the OTA working?
[X 2014 General] BRYCEFISHER:
got that far but after that when i type the command it just says device not found... when it was recognized before entering recovery.
[X 2014 General] kaioziro:
Thanks man
[X 2014 General] crawlgsx:
Same here. Shows in device manager as XT1095 with exclamation point, device not found. Windows 8 here.

Update: Manually set driver to Android ABD and it worked fine. Manually choose driver and pick "Android Device" then pick Android ADB. Get some warning about it not being compatible but do it anyway.
[X 2014 General] steff999:
Thanks for fast reply. I checked, they're gone.
[X 2014 General] Slorks:
sure attached it, when it shows all teh devices i cant find android devices.

i find android devices on the device manager section before i go to portable devices but i updated that too and nothing changed
[X 2014 General] nerotix:
Left side, u have to select android interface, I said this:P
[X 2014 General] SamuriHL:
I'm not sure if PDS can be flashed....well, clearly in your case it doesn't seem to be able to be. I take no responsibility for this info so use it at your own risk as I have no idea what this'll do.

Since at this point you're not rooted and root does not yet exist, you're going to have to use the fastboot boot twrp-recovery.img concept that I explained to someone else.

Basically download twrp recovery img for your phone, and use fastboot boot recovery.img to boot to it where recovery.img is the the filename that you downloaded.

Once in twrp, open up a terminal and ensure it has root perms (should be a # prompt).

dd if=/sdcard/pds.img of=/dev/block/platform/msm_sdcc.1/by-name/pds

That's the command that should restore it. Again, I've not tested this, I have no idea what it'll do, but, it's possible it'll work. Maybe. :)
[X 2014 General] nerotix:
What he said, make sure u first copy the pds file to ur sdcard.
[X 2014 General] Slorks:
yeah you did but on the left side i dont get android interface or device i get samsung lg sony microsoft i clicked on each one of them still nothing i don't know what i'm doing wrong
[X 2014 General] nerotix:
U did install the morola drivers right? Cuz if not, installed those and select motorola in the left side and u should also see ADB something.
[X 2014 General] SamuriHL:
http://www.mediafire.com/download/twkgg59awgqgs6s/USB_Driver.6.4.0.2014-10-24.zip
[X 2014 General] steff999:
Hi.

Flashed back 4.4.4 (Pure Edition) and tried with root: no luck. Tried with TWRP (your mentioned method): also no luck. Copieng works, but don't solves the problem.

Will now try to flash the original ROM from the xr1092 an report back.
[X 2014 General] SamuriHL:
No idea then.
[X 2014 General] Slorks:
yeah i did i downloaded the motorola device manager and installed the drivers from the link from [MENTION=2812087]SamuriHL[/MENTION] still nothing. when i type adb devices to see if the phone is actually connected, it shows me that the phone is connected when its normally on. but when i'm in fastboot it says list of devices attached and it's blank
[X 2014 General] nerotix:
Yeah and u fix that with what I said, done it often.. dunno whats wrong with ur pc, only way I can help u maybe its through teamviewer.
[X 2014 General] SamuriHL:
It won't show up as a device in adb when you're in fastboot. You should use fastboot devices to see it at that point. Unless I'm missing something which is entirely possible. But fastboot mode is different than adb.
[X 2014 General] Slorks:
okay i got it lol finally now its reading the phone

i got this msg when i tried the first step

dd if=/dev/block/platform/msm_sdcc.1/by-name/pds of=/sdcard/pds

permission denied
[X 2014 General] steff999:
Found out something strange. I run the original backup file and a version after restoring trough diff. They are not the same:

0000042C: 32 94
0000042D: CE B1
00000430: 32 94
00000431: CE B1
00000434: 1D 1C
00001B8C: 32 94
00001B8D: CE B1
00001E0C: 32 94
00001E0D: CE B1
0000220C: 32 94
0000220D: CE B1
00002508: 32 94
00002509: CE B1
00002588: 32 94
00002589: CE B1
0001141B: 6C 6A
0001180B: 6C 6A
00012C0B: 6C 6A

It looks like it's not accepting the backup or something.

Thanks for your help so far. Maybe this will be my first expensive paperweight ;)

BTW: no one has to take responsibility for such modifications expect the person who try them by themself.
[X 2014 General] Slorks:
yeah its 1:30 am where i'm from and i realized i'm in fastboot mode trying to do adb

now when i didthe first step, i did adb shell then copy pasted the command "dd if=/dev/block/platform/msm_sdcc.1/by-name/pds of=/sdcard/pds" it said permission denied

any ideas?
[X 2014 General] SamuriHL:
I wish I knew what was going on there. I don't have any knowledge of the PDS partition or what it contains. I get that it's related to the iemi but how that all works is beyond my level of knowledge. I'm not sure why it would be different pre/post flashing or what that means. And I really don't know why it's not allowing you to flash it. That part's really weird. Especially when you try to DD it cause that's literally just shoving bits onto a partition. Something screwy is going on there but I'm afraid it's beyond my capability to help with.

---------- Post added at 05:35 PM ---------- Previous post was at 05:34 PM ----------

LOL, been there. I reply to posts at that hour all the time and realize that perhaps I shouldn't. :D

You need to be rooted. So in your adb shell, you should do a su first, then the DD command.
[X 2014 General] Slorks:
lol so yeah you know how it is,

ok did the su then the dd command i granted on my phone and then i just go for the next command? but not adb shell just normal adb

but i'm suppose to save something aren't i?

---------- Post added at 11:44 PM ---------- Previous post was at 11:40 PM ----------

Okay just figured it out, i need to back it up with adb shell then pull it with normal adb and save it somewhere so i can reflash it once i'm done.

now i back it up but i cannot pull it it says error again device not found
[X 2014 General] nerotix:
Read the guide mate, after every command I tell u where to use that command.

Yeah I should have done a different order. First pull the modem,psd,fsg, then pull them... u can do this when ur phone is in android itself, no need to be in recovery or fastboot.
[X 2014 General] SamuriHL:
I'd personally run all the dd commands in the adb shell first, then after do all the adb pull commands from the command line. Much easier than bouncing back and forth. Or, cause I'm a script guy, I'd probably do something like this:

backup.bat

@echo off
adb shell "su -c 'dd if=/dev/block/platform/msm_sdcc.1/by-name/pds of=/sdcard/pds'"
adb pull /sdcard/pds
adb shell "su -c 'dd if=/dev/block/platform/msm_sdcc.1/by-name/modem of=/sdcard/NON-HLOS.bin'"
adb pull /sdcard/NON-HLOS.bin
adb shell "su -c 'dd if=/dev/block/platform/msm_sdcc.1/by-name/fsg of=/sdcard/fsg.bin'"
adb pull /sdcard/fsg.bin
[X 2014 General] ytwater:
T-Mobile Pure Edition - rooted

After reading this thread throughly, I decided to take the plunge with my previously rooted / xposed T-Mobile Pure Edition and everything worked!

I wanted to share my process (worked for me, use at your own risk), as I pulled from many posts in this thread.

Removed everything related to root:

* disabled then uninstalled all xposed modules

* uninstalled xposed installer (from the app)

* restored hosts from adaway

* put supersu in survival mode

## Backup ##
# Phone is booted normally:

adb shell (returns a $ propmpt)
su (returns # prompt)

# System and Boot
dd if=/dev/block/mmcblk0p37 of=/sdcard/system.img
dd if=/dev/block/mmcblk0p32 of=/sdcard/boot.img

# Modem and extras
dd if=/dev/block/platform/msm_sdcc.1/by-name/modem of=/sdcard/NON-HLOS.bin
dd if=/dev/block/platform/msm_sdcc.1/by-name/fsg of=/sdcard/fsg.bin
dd if=/dev/block/platform/msm_sdcc.1/by-name/pds of=/sdcard/pds.bin

exit (exit su)
exit (exit shell)

# Pull backup to PC harddrive
adb pull /sdcard/NON-HLOS.bin
adb pull /sdcard/fsg.bin
adb pull /sdcard/pds.bin
adb pull /sdcard/system.img
adb pull /sdcard/boot.img

## push OTA update.zip ##

adb push update.zip /sdcard/

# reflashed stock recovery (I had TWRP)
adb reboot bootloader
fastboot flash recovery recovery.img (downloaded from OP)

# rebooted device back to system
adb reboot recovery

# broken android shown - hold volume up and power to get a menu
# flash update
# selected update.zip

Took awhile to install / reboot / update apps, but Success!!!

What I did not do:

* I did not flash modem prior to flashing OTA update.zip

* I did not flash my backed up modem back after OTA update. I'm getting LTE and Speedtest.net app shows regular download speeds.

Quick Tests:

* Incoming phone call shows normally.

* Auto rotate button shows and works.
[X 2014 General] Slorks:
alright i did all the adb shell su dd commands one after the other now i have to unplug teh phone and re plug it to bring it back to normal adb and i dont need to go into the bootloader to pull the back ups right?

i tried that way and it said that the it doesnt exist
[X 2014 General] steff999:
Yay! Great News!

Got it back to working. Reverted to the xt1092 ROM which was posted in this thread. Then i deleted modemst1 and modemst2 again. That fixed the problem. Now i'm back on 4.4.4 an will probably wait for the official update. ;)

Thanks so much for your help!
[X 2014 General] SamuriHL:
No, you do not pull anything from fastboot. It's done with adb. If it's saying they're not there, then the commands didn't work. Look on your sdcard mount and see if they exist.

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

Sweet. Very good news.
[X 2014 General] nerotix:
I think it was a mistake on the info I got from someone else.

dd if=/dev/block/platform/msm_sdcc.1/by-name/pds of=/sdcard/pds.bin

adb pull /sdcard/pds.bin

I forgot/didnt know the .bin HAD to be added. I think this will solve ur problem.
[X 2014 General] Slorks:
okay now i backed up everything i have had such DUH moments tonight it aint funny coming around 1:57am id let it go and continue tomorrow but damn you lollipop i need you

---------- Post added 11th November 2014 at 12:20 AM ---------- Previous post was 10th November 2014 at 11:57 PM ----------

ok i reached teh 4th step where i have to sideload the update zip and when i go into recovery i only get the open chest android img i dont get to choose apply update from zip

---------- Post added at 12:24 AM ---------- Previous post was at 12:20 AM ----------

i'm sorry never midn i figured it out now its applything the update
[X 2014 General] nerotix:
It's okay, not alot of ppl know how to see the recovery text by pressing the 2 buttons. But you searched and answered ur own question which is better then 99% does ;) Good luck with the rest!
[X 2014 General] Slorks:
we have lollipop! wohooooo! done the whole thing it worked thank you soo much for putting up with me and my questions seriously.

now i have just one issue, the notifications toggle, i cant pull to see the toggles and i cannot find the auto rotate in the settings under display. any ideas?

---------- Post added at 12:49 AM ---------- Previous post was at 12:48 AM ----------

i'm hearing the notfications but i'm not get any notifications basically nothing show up in my notifiaction tray
[X 2014 General] nerotix:
Auto rotate has been answered few times already, its in settings > accesibility. U first pulldown the notification but, then from there u pull down again.. if its really not working, boot in recovery and do a factory reset. But first try a normal reboot.
[X 2014 General] Slorks:
ok doing a factory reset from recovery even the home button is not working

i'm exiting with the recents button

---------- Post added at 12:59 AM ---------- Previous post was at 12:56 AM ----------

done wow now its working great had to do a factory reset thats all

thank you soooooo much forevery thing
[X 2014 General] nerotix:
You're welcome. Don't forget to hit the thanks button for everyone that helped u, including the OP and others ;)
[X 2014 General] steff999:
Thanks for the information. I will try this maybe tomorrow.
[X 2014 General] IGoDur6:
SUCCESS!!!!!!!!! Survival mode for root saves the day lol. Liking lollipop so far with my initial fooling around.
[X 2014 General] graffixnyc:
So if you use survival mode you have root after the update?
[X 2014 General] IGoDur6:
Truthfully I forgot all about root because I was too excited that it worked lol but I just opened the SuperSU app and it tells me there is no su binary installed. So it looks like I've lost root in the update process.
[X 2014 General] jmcdonald58:
No I used survival mode no root afterwards everything is running fine here atm
[X 2014 General] nexus15:
There is one new thing I have to add. Kind of aggravating. Bluetooth audio stutters in the car, but there is a new behavior. So previously if I am listening to audio from the usb, aux or fm radio I wouldnt get navigation or audio from moto assist in my car. It would play but the sound was silent as I wasnt set to bluetooth music. Calls came though perfectly before and still do after the upgrade to lollipop. NOW with lollipop the difference is that moto assist fakes to the stereo that a call is coming in so the audio works. I get the voice telling me the person's name that texts me and i can hear the text read even if I am on another audio source and not playing music from the phone. Pretty neat, but I might turn off the driving mode in assist to see if that helps with the music stuttering. Driving mode isn't totally necessary because I have a moto 360 I can see who txt me. Not really a great idea to look at my watch and away from the road...

also got to thank graffixnyc for keeping us up to date with the status of root. Really looking forward to that and its why I keep poking back into this thread from time to time.
[X 2014 General] nineismine:
This is the exact behavior I had up until I did :

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg_gpe.img

which completely nuked my IMEI and baseband :(

I fixed my no IMEI issue here is how I did it:

if you are on ATT or Tmobile

Go here:

http://motofirmware.com/files/getdow...id1-cfcxmlzip/

Download and extract this.

Get the following two files and put them in the same directory as your Fastboot.

fsg.mbn

NON-HLOS.bin

Now just do these commands in fastboot:

fastboot flash system modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbm

fastboot reboot