yashsingh1/xdaforums huggingface dataset:
[P3600 Software Upgrading] dutty:
yet again a tool that makes something as easy and comfortable as it can be...this time it's:

NBH packing and unpacking

had some fun rev'ing the NBH fileformat.. code is completly new and app is totally standalone, i.e. this does not depend on anything other executable or batchfile...

as you can guess i have written this to implement it into my kitchen...

you can unpack *any* NBH file no matter what device its been made for, and you can repack NBH files for artemis/athena/trinity and hermes..

enjoy!

download: http://xdaforums.com/showthread.php?t=296311

please discuss this in it's original thread
[Moto X Q&A] RafaySid:
Hi, I just bought a used Moto X (2013). There is no carrier branding on the back and it's written Xt1058 but the ROM installed is of AT&T. When I installed WhatsApp, it said that my phone has a 'custom ROM' and that some features won't work, but otherwise the phone is working just fine. Due to this ROM I'm not getting OTAs as well and I'm stuck on 4.2.2 Jellybean.

My question is that can I flash any other ROM on the phone so that I start receiving OTAs and while making sure that my phone remains unlocked? I don't want to end up locking my phone again. Can flashing a new ROM lock my phone again? Can I revert to stock ROM somehow (maybe the set isn't originally of AT&T)? Or can I flash Rogers ROM which also of XT1058?

In need of help. Thanks.
[Moto X Q&A] nhizzat:
Flashing a ROM will not lock your bootloader.

You can only flash same firmware versions or newer, never downgrade.

Yes you can flash the stock Rogers firmware. You can find it in the going back to stock guide.
[Moto X Q&A] RafaySid:
Thanks. Sorry for bothering but I meant SIM locking. Will flashing a ROM SIM lock my phone again or is the answer still the same?

Secondly, how would I know which is the stock ROM for me? It says XT1058 and 'Assembled in China' on the back, so maybe it's from some Latin American country. Should I still go for the Rogers ROM because it's bloat-free?
[Moto X Q&A] tomoto x:
It will not SIM lock your phone.

Since your phone has already been Bootloader unlocked (because the ROM in your phone is not stock right now), it doesn't matter which ROM you choose. I'd say choosing a bloat-free ROM is great!
[Moto X Q&A] KidJoe:
First you need to know if your bootloader is unlocked or locked.

Boot the phone into Fastboot/Bootloader mode. What does it say for the status? And what is the version from the 2nd line.

Next, while the phone is in bootloader mode, hook it to the PC and do a fastboot getvar all and post what it says for the following...

(bootloader) version-bootloader:

(bootloader) revision-hardware:

(bootloader) unlocked:

(bootloader) sku:

(bootloader) cid:

(bootloader) ro.build.id:

(bootloader) ro.build.fingerprint[0]:

(bootloader) ro.build.fingerprint[1]:

(bootloader) ro.build.version.full[0]:

(bootloader) ro.build.version.full[1]:

(or copy/paste the entire output into a post and I'll pick it out).

If the bootloader is locked, you'll only be able to flash Stock ROMs signed by Moto, and made for the same "(bootloader) cid:" as your phone.

Flashing a ROM will not lock a bootloader that has been unlocked. The only time I've seen flashing a ROM re-sim lock is the Sprint XT1056 where a hack is used to sim unlock it.

Btw, ATT phones usually have the ATT carrier branding on the case, even if it was from Moto Maker.
[Moto X Q&A] RafaySid:
2nd line: 30.70 (sha-88483d6, 2013-07-02 15:32:03)

.

.

.

.

Device is UNLOCKED. Status Code: 1

Microsoft Windows [Version 6.1.7600]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Farooq>cd/

C:\>cd android

C:\Android>fastboot getvar all

(bootloader) version-bootloader: 3070

(bootloader) version: 0.5

(bootloader) cpu: MSM8960 Pro CS

(bootloader) ram: 2048MB Hynix S4 SDRAM DIE=4Gb

(bootloader) emmc: 16GB Sandisk REV=06 PRV=07 TYPE=17

(bootloader) product: ghost

(bootloader) revision-hardware: 0x8300

(bootloader) radio: 0x1

(bootloader) secure: no

(bootloader) mid: 0000

(bootloader) serialno: TA1760BS0H

(bootloader) qe: qe 0/0

(bootloader) unlocked: Not supported

(bootloader) iswarrantyvoid: Not supported

(bootloader) max-download-size: 805306368

(bootloader) uid: EF8D10040C000100000000000000

(bootloader) imei: 000000000000000

(bootloader) meid:

(bootloader) sku: 000000000000000

(bootloader) cid: 0xdead

(bootloader) iccid:

(bootloader) date: 01-01-1970

(bootloader) cust_md5:

(bootloader) reason: Key pressed

(bootloader) ro.build.date: Fri Jul 12 11:37:14 CDT 2013

(bootloader) ro.build.id: 13.9.0Q2.X_140

(bootloader) ro.build.tags: intcfg,test-keys

(bootloader) ro.build.type: userdebug

(bootloader) ro.build.user: e13522

(bootloader) ro.build.version.codename: REL

(bootloader) ro.build.version.incremental: 23546373

(bootloader) ro.build.version.release: 4.2.2

(bootloader) ro.mot.build.customerid: att

(bootloader) ro.product.name: ghost_att

(bootloader) ro.build.fingerprint[0]: motorola/ghost_att/ghost:4.2.2/1

(bootloader) ro.build.fingerprint[1]: 3.9.0Q2.X_140/23546373:userdebug

(bootloader) ro.build.fingerprint[2]: /intcfg,test-keys

(bootloader) ro.build.version.full[0]: Blur_Version.13.0.23546373.ghost

(bootloader) ro.build.version.full[1]: _att.ATT.en.US

(bootloader) kernel.version[0]: Linux version 3.4.42-xline-eng-g

(bootloader) kernel.version[1]: 66c71d4 (e13522@il93lnxdroid10)

(bootloader) kernel.version[2]: (gcc version 4.6.x-google 201201

(bootloader) kernel.version[3]: 06 (prerelease) (GCC) ) #1 SMP P

(bootloader) kernel.version[4]: REEMPT Fri Jul 12 11:55:44 CDT 2

(bootloader) kernel.version[5]: 013

all:

finished. total time: 0.122s

C:\Android>
[Moto X Q&A] KidJoe:
A few things..

With Bootloader of 30.70, that is the initial shipping bootloader. Based on the versions, it appears to also been the initial shipping ATT ROM. (i.e. the previous owner did not flash only PARTS of a ROM).

Unlocked Status 1 is good. You should be able to flash signed and unsigned roms. So if you want to switch to CM or such, you can. And you can flash 3rd party recovery and root too.

A few things that concern me from the fastboot output...

(bootloader) unlocked: Not supported

(bootloader) iswarrantyvoid: Not supported

I've only seen it say YES or NO for those. This is the first I've seen "Not Supported"

(bootloader) cid: 0xdead

I've not seen the CID listed as DEAD before. Its always been a hex value.

And I'm hoping you just removed your imei and meid, and not that they are actually missing from the output.

One last thing I missed in your other posts, that it says XT1058 on the back and MADE IN CHINA. The ATT XT1058's all said made in USA if I'm not mistaken. So chances are best that its NOT an ATT XT1058.

What carrier are you using this phone on? Do they sell the XT1058? If so, consider finding the latest XT1058 SBF for that carrier and flashing it.

RISKS of doing that: It might fail and brick your phone in the process. It might be successful but you end up having no IMEI/MEID in the process. You end up in a state where you have that SBF on there, but improper carrier settings so future OTA's fail and you have to flash them manually. Or Best case.... It works, and those variables go back to "normal" values.

Its your call if you want to take the chance.
[Moto X Q&A] RafaySid:
Thanks for the kind reply, I really appreciate it. :)

I asked Motorola's support person on live chat and he said that the previous owner most probably damaged the phone while flashing as it is not showing any IMEI number. I think the previous guy most probably flashed an AT&T ROM on it and this phone is likely to be from Latin America (XT1058). I'm interested in flashing Roger's ROM as it is bloat-free. I won't flash KitKat on it since it has battery draining issues and will wait for Lollipop.

But are the..

(bootloader) unlocked: Not supported

(bootloader) iswarrantyvoid: Not supported

(bootloader) cid: 0xdead

..things to be worried about? Will I most probably end up bricking it?
[Moto X Q&A] KidJoe:
Yes, definitely caused while screwing around and doing something that shouldn't have been done.

So the IMEI is definitely missing? I would think in that case you wont see the mobile/cellular network and only Wifi would work. But you said other than the OTA's the phone was working fine.

There were some threads about some getting into that situation (Missing IMEI). I know there were some XT1052 users trying to flash Non-XT1052 roms and running into this, but being unable to recovery. I think there was some users who ran into it for other reasons and were able to recover. Its time to start searching. Like -> http://xdaforums.com/moto-x/moto-x-qa/cdn-rogers-1058-fr-4-4-2-update-to-4-4-t2842787

As I've said, the "Not Supported" and "0xdead" values do worry me. I've not seen them before, so I can't tell you what impact they have on flashing. That is why I said bricking was a risk and that its your choice what to do.

At this point, if you have a working phone, keep with it and using it. Or you try and flash a Rogers XT1058 SBF, taking the chance of bricking it in the process. If you take this route, use Option 5 (and its pre-req's) at -> http://mark.cdmaforums.com/MotoX-ReturnToStock.html Get roms from places in this thread -> http://xdaforums.com/moto-x/general/info-tip-web-sites-official-leaked-roms-t2923347

I would really suggest flashing the LATEST SBF, in this case 4.4.4.

As for the "battery drain" reported under 4.4.4, for me anyway it seems to vary depending on installed apps. I can still get more than a day with my XT1060 running 4.4.4 with all google and moto apps updated. Occasionally after a bunch of apps update, I see less battery life, but then it seems to settle down and go back to normal.

If you want to flash Rogers 4.4.4, per this thread -> http://xdaforums.com/moto-x/moto-x-qa/xt1058-rogers-canada-4-4-4-sbf-t2905525/post56055157 it appears to be XT1058_RCI-CA_4.4.4_KXA21.12-L1.26_59_cid14_CFC_1FF.xml.zip BUT I HAVE NOT CONFIRMED THIS SO PROCEED WITH CAUTION!!!

Good Luck!!
[Moto X Q&A] RafaySid:
The cellular network is working fine. Can I at least root it? Which method should I choose?
[Moto X Q&A] KidJoe:
First, find a copy of the SBF for the rom on your phone before you do anything.

Since you have an unlocked bootloader, just follow -> http://xdaforums.com/moto-x/moto-x-qa/instructions-unlocking-rooting-dev-ed-t2649738

Because you have an older rom and bootloader, just use the versions linked in there. If you ever update the ROM on your phone, you would want to consider using newer versions of TWRP and SuperSU
[Moto X Q&A] RafaySid:
In order to root, do I need a custom recovery? I'm at 4.2.2 Jellybean atm.
[Moto X Q&A] nhizzat:
In order to root, you need to read. Seriously, just read and you'll have your answer.
[Moto X Q&A] RafaySid:
I'm being 'extra careful' because of those abnormal values.
[Moto X Q&A] KidJoe:
There are two ways to root one is for LOCKED bootloaders, the other is if your bootloader is UNLOCKED.

Unlocked bootloader is done by flashing a custom recovery like TWRP, rebooting to bootloader (so the recovery sticks), entering the recovery, and TWRP will usually ask you if you want to root so you answer yes. (sometimes manually installing SuperSU from TWRP is needed). This both roots and disables write protection.

For a LOCKED bootloader you are exploiting vulnerabilities in the roms. You need to be on a certain rom for it to work, there are extra hacks needed to disable write protection. Its a complicated process that sometimes requires flashing different roms. (I don't remember back to the original shipping 4.2.2 for locked bootloader process, I think it might be PwnMyMoto??).

Because of those values on your phone, any flashing or hacking could be risky. Doing the unlocked method (thread link I pasted earlier) of flashing twrp, is the easiest way to root.

Unless you are willing to take a chance, and risk bricking your phone, I'm not sure how to really advise you because everything at this point is unknown territory.
[Moto X Q&A] RafaySid:
Yes thank you. I had already rooted using TWRP.
[Moto X Q&A] RafaySid:
Can I install an offline update instead of flashing, to update 4.2.2?
[Moto X Q&A] :
These 2 threads have everything you need to know,

Rooting,

http://xdaforums.com/showthread.php?t=2826159

Flashing firmware, (returning to stock section)

http://xdaforums.com/showthread.php?t=2603358

I'm not sure what you are meaning by "offline" update... But how to update manually is covered in above thread. ?
[Moto X Q&A] RafaySid:
Yeah I meant manually updating. Thanks.
[Moto X Q&A] KidJoe:
there are two types of Update.

OTA update (they are incremental, only flash what changed since the last version, need to be stock recovery, and rest of phone as close to stock as possible. and you'll need a certain version on your phone)

Flashing a full SBF (as explained earlier when I mentioned about possibly flashing the Rogers XT1058 rom, and pointed you towards using Option 5 and its pre-req's at -> http://mark.cdmaforums.com/MotoX-ReturnToStock.html . It has a couple commands repeated which makes it a little more successful. )

Either way, in your situation, is risky.
[Moto X Q&A] nOvaSwiFT:
Hello.You can search for XT1058 stock ROM online.Remember only flash XT 1058 firmware.You should be on the latest software then and should receive OTAs.Hope I helped
[Moto X Q&A] RafaySid:
Yes thanks, but the problem is that I got some unusual values regarding my bootloader.
[Moto X Q&A] RafaySid:
[MENTION=1165307]KidJoe[/MENTION] Can you tell me why exactly are OTAs not available to me? Is it because I'm on 4.2.2 right now and not on the penultimate version?
[Moto X Q&A] KidJoe:
its likely because of the incorrect values on your phone.

For the 2013 X there were the following...

4.2.2 as Initially shipped on the X

4.2.2 w/camera update or 1st OTA

4.4 or 2nd OTA

4.4.2 or 3rd OTA

4.4.4 or 4th OTA

Each OTA is incremental. It requires the past version to be on there for the next version to come down.

With the state your phone is in, I don't know what the previous owner might have done.

If its rooted, you can check /system/priv-app for 3C_OTA.APK and 3C_OTA.ODEX if they are no there, that is one reason.

But accepting an OTA and flashing a full SBF has the same risks. If you're willing to take the risks updating, just do as I said earlier... get the full SBF of 4.4.4 and flash it.
[Moto X Q&A] RafaySid:
How can I backup my current ROM? I did make a backup with TWRP but I'm not sure whether it backs up your user data only or your ROM as well.

Secondly, the Rogers ROM says 'CID14' in the download link where as my bootloader CID value was '0xDEAD'. Does the CID value have to match the ROM?

Thirdly, would returning back to stock (unroot and locking bootloader) even on this new ROM help me get OTAs?

[MENTION=1165307]KidJoe[/MENTION]? Anyone?
[Moto X Q&A] KidJoe:
The only "back up" you can make is "nandroid" as part of TWRP. It does backup /system and some other parts of the ROM itself. It can only be "restored" from TWRP. It can't be used to recover your phone if you brick it, and can't be flashed via mFastboot or RSDlite tools.

Because of the storage situation (no removable SD card), I believe the backup in TWRP was twaked to NOT backup your data (i.e. the emulated SDCard). Doing so would need major amount of free space on the phone. So you need to manually copy it to your PC.

As far as the CID... I said before that 0xDEAD is NOT NORMAL. So you shouldn't expect to find any rom out there that will be for a "0xDEAD CID". Technically no Rom/SBF will ever match your phone in its current state.

Again, your phone is in a COMPLETELY UNKNOWN STATE. Now, in normal situations, relocking the bootloader and unrooting has no effect on being notified of OTA updates being available and being able to download them.

As I said before... at this point... stick with your phone working as is, or take a chance and flash an XT1058 4.4.4 SBF. (I would use mFastboot, and option 5 at -> http://mark.cdmaforums.com/MotoX-ReturnToStock.html or RSDlite per Option 3 at that same link). However if the flashing attempt fails, it could render your phone a brick with no way to recover. And Taking an OTA with your phone in its current state is risky too.

A note on Re-locking the bootloader. There are 3 states for the Moto X bootloader.... LOCKED Status:0, Unlocked Status: 3, and Locked Status: 2 (aka relocked). As users we can toggle it to either Status 2 or Status 3, but we can never set it back to Status 0. On Status 2 or 3, you'll get the Bootloader Unlocked warning (where replacing the LOGO.BIN with custom one will hide the message).

As for rooting, If you rooted via a process meant for a LOCKED bootloader, then you should still get notified for an OTA, but it may fail when trying to install. If you rooted by unlocking the bootloader and flashing a custom recovery, then you will get notified of an OTA, but it can't be installed via custom recovery, so if you try it the phone would get stuck in a bootloop (which you can get out of by booting into recovery and erasing cache.)

One other thing you NEVER ANSWERED MY QUESTION if 3C_OTA.APK and 3C_OTA.ODEX are there. I asked because if they are not, that would explain why you get no update notification. (its possible in whatever the previous owner did to mess up the CID and other values, he also removed those to prevent getting OTA's in an attempt to stay rooted).
[Moto X Q&A] RafaySid:
Sorry about that, only 3C_OTA.APK is located in system\app. But now I've frozen MotorolaOTA with Titanium Backup as it's of no use.
[Moto X Q&A] KidJoe:
Yeah, so the original owner was really playing. Missing 3C_OTA.ODEX is definitely going to impact getting an OTA.

Either way, its probably better to forget about OTA's anyway, and flash a complete rom/SBF.

OTA's are incremental... i.e... you're on the original 4.2.2, you need to take the 4.2.2 w/camera fix, then 4.4, then 4.4.2, then 4.4.4 to get to the latest. Flash an SBF, you just flash the latest SBF and you're current.
[Moto X Q&A] R3dbeaver:
quick question, hopefully not OFFTOPIC... but where can one get an XT1058 4.4.4 SBF??

I got a Rogers phone and the latest I can found is 4.4.2... ?
[Moto X Q&A] RafaySid:
Check out the first page of this thread. The filefactory link works.
[Moto X Q&A] R3dbeaver:
I checked the filefactory list and there are a few 4.4.4 but the only Rogers one is 4.4.2...

Can I use one of those Brazilians?
[Moto X Q&A] RafaySid:
This is the one: http://www.filefactory.com/file/5z0...4.4.4_KXA21.12-L1.26_59_cid14_CFC_1FF.xml.zip
[Moto X Q&A] R3dbeaver:
dude you're awesome.

THANKS!

ps: what's RCI stands for?
[Moto X Q&A] RafaySid:
Glad to be of help. Let me know how it runs once you flash it.
[Moto X Q&A] R3dbeaver:
You'll know in a couple of hours.

PS: Anybody got XT1058 that can share with me their /persist folder? My WiFi's wonky ever since I deleted it and replaced it with... others....
[Moto X Q&A] RafaySid:
Rogers Communications Inc.
[Moto X Q&A] R3dbeaver:
/facepalm
[Moto X Q&A] RafaySid:
Okay so I've flashed 4.4.4 Rogers on my phone but I'm encountering the following problems:

1. The home button is not working

2. The quick settings screen cannot be accessed

3. Active Display not working

4. Using command prompt returns 'error device offline' when phone is on and connected.

5. Security locks (e.g. pattern) won't work.

The first two problems MAY BE because of the fact that I installed Moto Xposed on Jelly Bean but I'm not sure. Any views [MENTION=1165307]KidJoe[/MENTION]?

I didn't wipe the data and apps. What should I do?
[Moto X Q&A] RafaySid:
Factory reset solved it!!!! :D

Finally on Rogers 4.4.4. Thank you [MENTION=1165307]KidJoe[/MENTION] for all your input! Really appreciate it!!
[Moto X Q&A] KidJoe:
So, if you boot into fastboot/bootloader mode now and run fastboot getvar all

What does your phone say for

(bootloader) unlocked:

(bootloader) iswarrantyvoid:

(bootloader) cid:

and does it show the proper IMEI?
[Moto X Q&A] RafaySid:
The values including IMEI are still the same but the phone works just fine. The previous owner most probably downgraded to AT&T 4.2.2 from some South American ROM.
[Moto X Q&A] RafaySid:
You... have no right to say that.
[HTC One Max] krrraska:
Hi

Well, I'm spending all of my spare time lately to s-off my international HTC One Max. I spent like 15 hours already, read many many topics and posts, tried everything I found and I just can't do it.

My hboot version is 2.49, I'm on Viper 2.0 with cwm recovery (also tried twrp), I unlocked my bootloader via htcdev. So, I already tried:

-firewater

-rumrunner

-firewater with temproot

-disabling firewall and antivir

-this guide: http://xdaforums.com/showthread.php?t=2765383

-this one: http://xdaforums.com/showpost.php?p=56488774&postcount=106

-disabling wifi

-different cables

-different drivers

-adb from MrT69 S-OFF Package

-even downloading firewater with IE :D

Both adb and fastboot can see the phone, when I'm using firewater my HTC is either entering the qhusb mode or going through all the bootles without success.

Is there anything left for me to try?

Thanks!
[HTC One Max] JBS976:
If I am not mistaken, I believe that Sunshine is the only way for hboot 2.49
[HTC One Max] krrraska:
That's what I was afraid of. Didn't anyone succeed to s-off international version with hboot 2.49 using firewater or rumrunner? Some people did it with the Sprint version.
[HTC One Max] Flyhalf205:
Unlock your bootloader

Flash TWRP from the thread and not TWRP website

BACKUP!

Flash an old rom like viperrom (preferably the first version.)

flash boot.img inside of fastboot

run firewater

should work. I see you didn't mention above flashing the boot.img in fastboot.
[HTC One Max] krrraska:
Which boot.img should I flash? The one from S-OFF Package?
[HTC One Max] Flyhalf205:
No. The boot.img from the viper rom zip
[HTC One Max] krrraska:
Okay, I flashed latest TWRP recovery, Viper 1.0.1, boot.img and run firewater 3 times. The phone enters qhusb mode everytime (after 11, 8 and 2 bootles). What am I possibly doing wrong?

Downloading Viper 1.0 now, maybe that's gonna help.
[HTC One Max] krrraska:
I'm still trying to download Viper 1.0.0, Dev-Host isn't too fast. Average download speed is ~30kB/s and my internet is always disconnecting after several hours. Is there another mirror or another soft I could try?

In the meantime I tried firewater with yet another usb cable and computer, still no result.

Edit: flashed Viper 1.0.0, phone still enters qhusb mode everytime I use firewater.

Edit2: I finally did it! I was on Viper 1.0.0, I disabled "mock location" and enabled "verify apps via usb". Not sure if it helped or it was just luck though. Thanks for help!
[Galaxy Note 3 Q&A, Help & Troubleshooting] Yatmund:
So my note 3 is having some touch issues.

When hitting space in certain spots, it register 2 taps. Either adding an extra space, or space plus b or v.

It also adds an m when tapping on the full stop.

This is not just a keyboard issue as when I tap on say an app in that area, it will register another tap just above it.

It's like there is a line across the screen that when I tap on it, it will register what's above it as well.

I've tried reflashing to a completely different rom, but the issue remained. I'm now on CM11.

Does anyone know about this issue? Or know a fix? Or can I at least maybe disable this line?
[Galaxy Note 3 Q&A, Help & Troubleshooting] Joku1981:
Do it happens in STOCK ROM too? Coz maybe is a bug in CM11 :fingers-crossed:
[Galaxy Note 3 Q&A, Help & Troubleshooting] Yatmund:
It started happening in another rom that wasn't cm
[Moto G Q&A, Help & Troubleshooting] senzacionale:
Because Slovenian language is not supported, even with MORE LOCALE 2 half of things are missing I would like to know what you suggest to do? Normally ANDROID has 90% or more support of Slovenian Language.

So what you suggest? Install any other Custom Mod? CM exists but is not stable.