yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S (4G Model)] asmarinian:
I started working on the phone with the intention of upgrading it to make it faster and unlocking the sim. The T-mobile contract has been over for a long while now, they will not unlock it themselves for whatever reason. I committed a faux pas many on here many like to bash on (for good reason), no backup. I was going to after rooting but I used ODIN to flash the Bali 3.0.2.8 cwm and the screen turned into rainbow static when I tried rebooting, so I continued on to cm7 and then cm9. Worked great, and the SIM asked for unlock code.

I tried using script methods to unlock it but it kept telling me busybox wasn't installed right, I tried other versions and eventually saw a post saying it was only meant for gingerbread, so I flashed to that. Same problem, couldn't find the file or directory, so I looked myself and discovered there was no bml3 file. Restored a stock gb version with ODIN, the bml3 was 0.00mb. OK, so I looked at the hex code method, opened the nv_data bin and found the 8 digits and put them in. Incorrect, 9 attempts remaining. Tried again in case I mistyped; incorrect, 8 attempts remaining. I read that without an image backup or backup of the original nv_data or md5 I was screwed since the one I had was corrupt/generic/etc. I found one person saying he changed the FF 01 to FF 00 part in hex editor, according to him the SIM would (and mine did) stop asking to unlock. So that was progress. Since the SIM I want to use isn't activated yet I put in an activated AT&T SIM and was able to receive a test call. But the IMEI is still zero'ed out, apparently due to efs corruption.

So I have no efs or nv_data backups. I've been reading on forums how to restore the IMEI (I know it since it's right under the battery), one that can show you what I've been looking into is the article "Backup and Restore Lost IMEI on Samsung Galaxy Devices without Root" (I wrote the title because idk if url posting is allowed). Only problem: that's for the galaxy s3, when I type *#7284# I only have options for UART: PDA and MODEM and the same two options for USB. So I don't know how to use the NV-items_reader_writer tool to copy the corrupt nv_data.bin and rewrite the IMEI in the form it understands to get it back to the original state.

Can anyone help, or just pm others that can? Am I going in the right direction? I know there are lots of forums with similar posts but it's taking a lot of time to read and sort through them all
[Samsung Galaxy S (4G Model)] Rebel_X:
Try and search for 1-Click Gremlin remover in this forum. Or use Heimdall or Odin to go back to stock it might help.

If and only If, all fail, try the following tools at your own risk, they are meant to S3 but galaxy phones are similar (also make a backup of the efs directory, even if it is corrupted just in case):

First you have to use NV generator by putting your IMEI number and generate a text file contains hexadecimal numbers for NV data.

Then use the NV writer tool and flash the text file you generated using your IMEI.

I hope it works. Good luck :good:

Edit: Replaced SGS3 NV IMEI with the safer one per FB suggestion :)

Note that you need the 'nv.txt' to be able to generate hex numbers, otherwise it will crash.
[Samsung Galaxy S (4G Model)] asmarinian:
I was able to generate the IMEI text file. The nv writer tool kept saying connected or does not exist depending on which com I used and if it was in download mode or not, if it connected I tried writing and it said "phone does not answer". Booted up normally (not download mode), double checked debugging mode was enabled, and I finally got it to connect to one- COM6- and it began writing, with the response:

Writing NV-items from a file:

Unsuccessfully written NV-items:

00550 (0x0226) - Unknown error

Done.

Realized I was on a stock gingerbread without root again since stock froyo flashback booted to S logo, vibrated, and looped again. Used superoneclick to root successfully. Clicked write again, phone does not answer, disconnect and connected, clicked write, received same unsuccessful write message from above. Reading more forums. Can this be placed manually or pushed by adb/terminal? Where in the efs folder or nv_data is this being written?
[Samsung Galaxy S (4G Model)] Rebel_X:
You can do it manually using hex editor if you know the memory offset, but I don't suggest it. If you wanna try anyway make backup. Sorry I can't think of something else to help you. I only tried this on S2 and S3. My S4G never had imei problems. But I recall that I unlocked it using hex editor by modifying the nv_data. Most likely the imei number is stored in the same file.

Edit: Besides, although it might be illegal to use a phone with empty IMEI number. Think of it as an advantage, the phone still works, receive and send calls, and the NSA wont be able to track you nor google :> The only problem with empty IMEI is intermittent 4g/3g connection.
[Samsung Galaxy S (4G Model)] champ1919:
Fbis251 had a nefty little app in playstore that will unlock for ya.

Sgs4g unlocker if I recall correctly.
[Samsung Galaxy S (4G Model)] asmarinian:
Lol. True. I didn't know about the nv_gen tool though so I did make progress, thanks Rebel_X. I'll see if I can replace the hex formatted IMEI in the nv_data manually. That is where I manually changed 01 to 00 to unlock it.

[MENTION=3143394]champ1919[/MENTION] it is technically unlocked now, an AT&T SIM worked. It's simply that the IMEI is zero'ed out and I've read some carriers don't like this/ data works intermittently as Rebel mentioned.
[Samsung Galaxy S (4G Model)] champ1919:
Once unlocked, always unlocked. Flash stock gb and see if it comes back. That has worked for others.
[Samsung Galaxy S (4G Model)] asmarinian:
Holy carp I fixed it! Manual editing the nt_data.bin works.

I read that line 550 is where the IMEI hex is, when I viewed it in one editor (named HxD) it said line 00005500, so I clicked view>offset base>hexadecimal and it turns into 00000550. It's all FF FF FF... no zeros. Replaced it with my original IMEI (remember future readers, this can't change it to a different one) in hex format calculated form the sgs3_nv_gen tool. The NV-item_reader_writer tool would not push it successfully as noted before. Deleted nt_data.bin and nt_data.bin.bak under efs/root/afs/settings using root explorer (directory may be different in ics and up), placed my version of edited nt_data.bin, rebooted. IMEI restored. Backing this sucker up now...

http://imgur.com/wKO5Cjm

All hex IMEI starts with 08 #A apparently. Rest of personal data is marked out.
[Samsung Galaxy S (4G Model)] asmarinian:
Upgraded to CM9. IMEI still correct, SIM still unlocked.
[Samsung Galaxy S (4G Model)] Rebel_X:
[MENTION=4500804]asmarinian[/MENTION]: I am happy for you :)
[Samsung Galaxy S (4G Model)] FBis251:
I have a few nv_data files from previous SGS4G phones I had and had been wondering what the offset was. I'll have to look into this too since I finally wound up finding the offset to the Unlock code (0x146E).

You can read more about it here:

https://github.com/fbis251/sgs4g-unlock-code-finder

Wouldn't be a bad idea to modify the program to add an IMEI number reader.

Thanks for the information!

---------- Post added at 06:41 PM ---------- Previous post was at 06:15 PM ----------

I checked SGS3-IMEI-NV-Gen.exe with VirusTotal and 40/50 antivirus programs flagged it as a virus. I'd be very wary about running this on your computer.

https://www.virustotal.com/en/file/...126102bb576a5d7d7800b049/analysis/1393510440/
[Samsung Galaxy S (4G Model)] Rebel_X:
I have this file for quite for a long time, ESET never complained about it. If anything, other AV reports it as most probably a false positive. But nothing prevents you from running it in a sand box. ;)
[Samsung Galaxy S (4G Model)] banziitox24:
Can you please help me with this problem im working on a client phone and the IMEI turn to all zeros and don't find a way to fix it, how did you get your IMEI number back
[Samsung Galaxy S (4G Model)] asmarinian:
Check on the sticker under the battery, that's where mine was. Just fyi don't post it on here for the world to see. If you find it, write it down or type it in a text editor, then let me know you've got it. I'll write up what I did step by step for you to follow.
[Samsung Galaxy S (4G Model)] banziitox24:
Ok I wrote it down already what's next?
[Samsung Galaxy S (4G Model)] asmarinian:
Credit goes out to lots of knowledgeable people all over the internets.

1. Once you know your IMEI you have to rearrange it into hexadecimal format. EXAMPLE: Say your IMEI is 954091051099226, break it up into two digit groupings. The start of an IMEI is always 08, and your first number will be followed by an 'A'. Each subsequent group of two digits is then reversed. The example IMEI in hexadecimal will be 08 9A 45 90 01 15 90 29 62.

2. Using a root explorer, go to efs/root/afs/settings and copy nv_data.bin to your computer for editing.

3. Download and install a hex editor. I used HxD and found it easiest to use. The link from cnet is http://download.cnet.com/HxD-Hex-Editor/3000-2352-10891068.html

4. Open nv_data.bin in HxD. On the top menu toolbar click view>offset base>hexadecimal. Scroll down through the file until you find offset 550, which will appear as 00000550. Type your IMEI in hexadecimal format into this line, overwriting the FF's. Fill in the remaining FF's in the line with zeros. Using the example IMEI, this would appear as [08 9A 45 90 01 15 90 29 62 00 00 00 00 00 00 00]. Fill in 7 lines of FF's below the line with your IMEI with all zeros. It should now appear like this:

08 9A 45 90 01 15 90 29 62 00 00 00 00 00 00 00

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Save the file. Make a copy on your phone storage.

5. Navigate back to efs/root/afs/settings and delete the existing nv_data.bin and nv_data.bin.bak.

6. Copy your modified nv_data.bin into efs/root/afs/settings.

7. Reboot and check under phone information if your IMEI has been reset.
[Samsung Galaxy S (4G Model)] FBis251:
I wound up running the program in a sandbox.

The file you uploaded attempts to run a .bat file in a temp directory by calling cmd.exe to run it.

The bat file

@echo off
set ztmp=C:\Users\<USERNAME>\AppData\Local\Temp\ztmp
set MYFILES=C:\Users\<USERNAME>\AppData\Local\Temp\afolder
set bfcec=t17061.exe
attrib +h C:\Users\<USERNAME>\AppData\Local\Temp\ztmp
@echo off
CLS
cd %MYFILES%
"SGS3 IMEI.exe"
CLS

The EXE file created along with the .bat file is actually an ASCII file which contains the following text

RCHELICOPTERFTW

It also creates a new folder under

C:\Users\<USERNAME>\AppData\Local\Temp\afolder

which contains the SGS3 IMEI.exe program and a text file which contains:

[NV items]
[Complete items - 1, Items size - 128]

00550 (0x0226) - OK
XX XX XX XX XX XX XX XX XX00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

When I ran THAT exe through virustotal I got these results, which DO seem like false positives, unlike the EXE you uploaded which triggered 80% of the virus scanners, this one only triggers 2/45.

https://www.virustotal.com/en/file/...f7c17482773d478539e99148/analysis/1377777759/

I guess I can send the SGS3 IMEI.exe file to you so you can post a link to that one instead?
[Samsung Galaxy S (4G Model)] asmarinian:
It's easier/faster than the manual method. I'm sure some people just get spooked by false positives so I wanted the manual method for turning their IMEI into hexadecimal formal laid out. I just ignored the false positive on mine it since I know a lot of exe's and bat's that edit files get flagged more often. I do appreciate having someone who knows what they're doing analyzing it in sandbox mode though, thanks!
[Samsung Galaxy S (4G Model)] asmarinian:
If I actually knew more about what I was doing I probably would have set the com ports up properly and just used qpst the right way or the nv-item rw program. 550 appears to be an offset used in at least some other models and brands, could be whichever contain the ability to use the qualcomm tool. I'm sure they all exist in company documentation and manuals. Being only a user, and not even a programmer at that, I don't have the knowledge or means to reliably find certain information and first hand sources very often. That said if you download and install the qpst tool (I searched for QPST v2.7.378.zip), open RF NV Manager 1.4.32, click Option>Customized NV Item List you will see every offset value and what they are for.

Also, I glanced over the last sentence about the false positive too quickly, if you want to upload the edited version without the false positive trigger that'd be great!
[Samsung Galaxy S (4G Model)] banziitox24:
Tried all this Step-By-Step and IMEI Number stills all zeros

IMEI: 000000000000000/04

Device: Samsung Galaxy S 4G T959V T-Mobile Variant

Android Version: 2.3.5

Baseband Version: T959VUVKJ1

Kernel Version: 2.6.35.7-T959VUVKJ1-CL611444

PLEASE HELP ME WITH THIS PROBLEM!!!!
[8125, K-JAM, P4300, MDA Vario General] jose_v:
It's my first time hard-resetting my wizard (random resets are finally getting to me), but I was wondering how on earth am I supposed to do this. I follow all the procedure, and all that appears is a screen filled with the colors red green and blue. I hold for about a minute more after that screen shows up and nothing more appears. I know i'm supposed to see some dialog box that asks if I want to clear it, but I'm just not seeing it.
[8125, K-JAM, P4300, MDA Vario General] meschle:
Hi - this is the way i do it.

Turn device off.

Hold comm button (top left) and record button (top right) together.

Turn device on - keep fingers on two buttons above.

Black screen should come up with some writing (take fingers off buttons above) - press call button (green)

and it will hard reset.
[8125, K-JAM, P4300, MDA Vario General] jschaff:
This may work. But that is NOT what the manual says to do. It says to hold the top side left and top side right buttons and use the stylus to push in the reset button on the right side. But I did this and it did nothing.

HTC Wizard, i-mate K-JAM, Cingular 8125:

While holding the Comm manager button and the Voice Command button, push in on the soft reset button (reset hole) once. Keep holding the Comm Manager and Voice Command buttons until there is a screen asking you if you want to clear all data. To commit, press the green send key.

Note: The Cingular 8125 also has a software hard reset option. You can find this application in the Settings folder under "Clear Storage."

http://pocketpccentral.net/help/cingular/8125reset.htm
[8125, K-JAM, P4300, MDA Vario General] jose_v:
I've tried the hardware button method several times (camera button, comm button, and turn on) and I even tried the other method (which did nothing) but when I perform the comm and camera method, all I get is a multi-colored screen that has two strings of numbers on it. So the next question I got to ask is, is a clear storage for the 8125 as effective as the hardware reset?
[8125, K-JAM, P4300, MDA Vario General] meschle:
Some people think it is, some don't - I think it's pretty close give it a shot ;)
[8125, K-JAM, P4300, MDA Vario General] Danny-B-:
Just navigate to clear storage its easier.

Start > Settings > "System" tab > clear storage

It will ask if you really want to, tap yes then it should hard reset.
[8125, K-JAM, P4300, MDA Vario General] keitht:
This is how I hard reset to UPGRADE or RELOAD the ROM from my PC:

I keep the device on... I hold the top left (comm mgr button) and top right (voice command button) then I press the reset button on the right side with my stylus. ONce the device goes to black screen, I release the top left button while still holding the right... wait 3 seconds then release the top right button. At this point you should be to a DOS like screen with a USB label in the lower left. You can then load the ROM from your PC to the device.
[Moto X Q&A] WAM_Anthony:
Can anyone make halo compatible with moto x stock ROM? Because I would love to download other Roms with halo but they don't have active notifications. And the ones that do aren't as nice. Also the flick camera launcher too
[Moto X Q&A] Schaweet:
Do you have root?

If so install xposed framework and the X window halo module. I haven't tried it, but it claims to work.

Sent from my Dev Edition Moto X
[Moto X Q&A] WAM_Anthony:
Yes I do. I've seen floating notifications but I want legit halo baked in
[Moto X Q&A] _MetalHead_:
That's kinda what Xposed does. It bakes the features you want into the framework of your ROM. I'm gonna try this mod when I get home from work today, I'll report back.

Sent from my Moto X
[Moto X Q&A] NLCMOBSTA183:
I was hoping when I got the moto x there would be a stock rom with halo built in
[G2 Q&A, Help & Troubleshooting] roleohibachi:
I feel like this is a stupid question, but here we go anyway. I'm on an LS980 with TWRP 2.6.3.4.

I can boot into recovery just fine, as long as I use adb reboot recovery, or any of the methods to do a reboot to recovery from software. For the life of me, I can't get the volume down + power key combination to work. This would be no problem, except I'm stuck in a bootloop (my own fault), and can't get to either the software solution or ADB.

Yes, I've followed the directions in which you hold the two buttons, and when the LG logo appears, release and repress them both. I've done this about a million times now, in every different pattern and length of delay I can think of.

If I hold all 3 during boot, I get the "hardware control" screen, with a barcode and my IMEI at the bottom. Download mode, using volume up + plug in USB, works as well. Both volume keys have been functioning fine for controlling volume in software, so they are mechanically sound.

Is there any reason the keys might not work during boot? Is there any other way to reboot to recovery? My only idea is to push the stock image to the phone in download mode, and re-root, etc.

Thanks in advance!
[G2 Q&A, Help & Troubleshooting] antinorm:
Start with the phone powered all the way down (if you're bootlooping, hold the power button for maybe ~10s until there's a short buzz from the vibrator and the LG logo pops up, then hold it down for a few more seconds to power off).

Hold power+voldown until the LG logo appears. Release them then immediately push them again, and hold for a few seconds.

You'll get a 'Factory hard reset' screen that tells you to press Power to confirm you want to do a factory reset. Push Power a couple of times to confirm this. If you have a custom recovery installed, it won't erase anything, it'll just boot into recovery.

I just tried this, and it worked the first time.
[G2 Q&A, Help & Troubleshooting] roleohibachi:
Antinorm -

I'm familiar with that process, and have been trying it nonstop! Here's a video; maybe you could critique my technique?

[YOUTUBE]TPdLkooUsRg[/YOUTUBE]
[G2 Q&A, Help & Troubleshooting] Un4s:
You don't have to hold both buttons after the release.

1. Hold VolDn + Power until LG Logo appears.

2. Release both buttons for a few seconds

3. Hold only Power Btn

4. You get into Hard Reset

5. Push Power Btn 2 times (For executing reset)

After that the phone will boot into recovery.

Don't do this with plugged in USB cable I don't know why, but it doesn't work if you have a usb connection.
[G2 Q&A, Help & Troubleshooting] roleohibachi:
Nope, no luck using just the power button for the second press. Thank you, though! I'll write some more detail of what I see.

Initial state: the boot animation is looping.

I press and hold the power button.

The screen goes blank. I continue to hold the power button.

The LG logo reappears for a moment. If I were to release the power button before this point, the phone would restart.

I do not release the power button; I continue to hold it. The screen goes blank.

I now release the power button. This is the phone in its "off" state. If I plug it in to a power source, a battery charge icon and a percentage is displayed center-screen. Entering download mode from this state works. The phone is not plugged in.

I hold the power and VD buttons together. I've also tried pushing one first, then the other, in either combination.

The LG splash displays.

I release both buttons.

I wait an amount of time. I have tried various values from "as quick as I can move my fingers" to "a solid three-count".

I hold either both buttons (pressing them simultaneously), or just power, and wait.

Time passes.

GOTO 1

Does any of that sound wrong?
[G2 Q&A, Help & Troubleshooting] Un4s:
Weird. This method works for me. But getting into recovery was a bit of a hassle for me too at the beginning. Your doing seems to be ok... well seems like your only chance is adb right now.
[G2 Q&A, Help & Troubleshooting] roleohibachi:
Do you know of any way to ADB without an OS booted or recovery? I don't!
[G2 Q&A, Help & Troubleshooting] Be6i4:
IF your battery is low or almost gone - you can't enter in Recovery with those 2 buttons.

So just charge your battery. I'm using CWM 6.0.4.4 and phone charges battery in this mode. It's slowly, but at the end my battery was 100%.

Now I can go to Recovery with 2 button combo. No download mode for me, but I'll open a new topic for that.
[G2 Q&A, Help & Troubleshooting] Un4s:
Whelp, sorry. Would have thought you can adb while in download mode. Turns out you can't. :(

Well i don't have a better idea than you with going stock and start from the beginning.
[Desire Q&A, Help & Troubleshooting] latitude23:
Hi Mildwild,

Thank you for your rom. very nice and working very good.:good:

I just have 2 questions:

- when I write a text message, I like (like for example in this message) to go to the next line. But I can not find a "return" button on the virtual keyboard. Is it possible to change the keyboard layout so that I can have it:confused:

- When SMS is long, I like to retract the virtual keyboard (but also everywhere I need to see the whole screen). But I do not see the button that allows to do this. Do you have a solution?:o

Thanks by advance for your response

Regards

Laurent
[Desire Q&A, Help & Troubleshooting] eddiehk6:
Have a look in the keyboard settings. If it's not already built in, Mildwild won't update the ROM or keyboard just to include this. Easier solution would be to install another keyboard

I thought in most situations the back button does this already? You don't see it because it's not on the screen, try the hardware key ;)
[General Questions and Answers] abumaha:
pls how can make tis happen pattern lock

need hard reset

but found no way

medion 9516
[Nexus 5 Q&A, Help & Troubleshooting] neriamarillo:
Ok so I'm getting this spam of errors for the sensors. While the spam active my sensors do not work, first thing to notice is the auto rotate. Then I used GPS Status and Androsensor apps and they both do not get a reading from the sensors. Now I've searched almost all of the interwebz but I can't find anything related or somebody who has found or understood this Logcat. This happens with stock kernels and custom kernels, stock ROM and custom ROMs. On some customs kernels, once I flash them it never even starts working.

If somebody has the knowledge here to interpret the Logcat and help me pinpoint the issue that would be much appreciated.

Logcat: http://pastebin.com/kGpJj155
[Nexus 5 Q&A, Help & Troubleshooting] neriamarillo:
Any ideas?
[Nexus 5 Q&A, Help & Troubleshooting] Aerowinder:
How to reproduce?
[Nexus 5 Q&A, Help & Troubleshooting] neriamarillo:
I honestly have no idea. I toggle the autorotation on and off but it does nothing. If I entered in the terminal emulator:

su

stop sensors (it stops spamming)

start sensors (it starts back up)