yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] ferris2375:
haha wtf How much? :)
[Samsung Galaxy Nexus] Utopia73:
Ha I know it's an odd request. How does $5 sound?
[Samsung Galaxy Nexus] zephiK:
Definitely not worth $5 lol. It reduces the resell value of the phone.

Not to mention the GSM box looks SO much better than the Verizon box.

Verizon box is just lame, it's pure white then red. Not sure what they were thinking.
[Samsung Galaxy Nexus] sn0warmy:
I could be mistaken, and I am sorry if I am, but I can't help but think something fishy is going on here...

How would having a GSM box help you play a joke on a friend? Is yours GSM? If so, why not just use your own box? If you have the VZW version, how would having the GSM box benefit you in any way?
[Samsung Galaxy Nexus] tsekh501:
Be nice to your friend and don't give him an empty box. At least put a G1 in there.
[Samsung Galaxy Nexus] Utopia73:
I have the VZW version of the Gnex and his carrier is T-Mobile and the GSM version would work for his carrier. I'm not going to give him an empty box I have everything planned out I just need the box for the last piece of the puzzle. I you are willing to sell me the box PM with an offer.
[Samsung Galaxy Nexus] mysterioustko:
I agree. This sounds incredibly suspect. OP what exactly is your "plan". Up to this point, you've been extremely vague about it. So tell us specifically what your plan is because honestly at this point what you're saying doesn't quite sound right. Almost sounds like you're trying to get an IMEI.
[Samsung Galaxy Nexus] Tjotte:
Or try to sell his vzw as a gsm... hmm..
[Samsung Galaxy Nexus] Utopia73:
My best friend for lack of a better word is envious of the fact that I have the GNex and he doesn't. As of I envious of him because he has Skyrim and I do not, I spent all my money on the phone and a trip to New York for my fathers birthday, so I could not purchase the game. And for Christmas he got an empty Skyrim box... and as return I plan to give him a fake GNex that my grandfather made out of wood. I got his mother to be in on it as well and before he opens the actual box he mom says something along the lines of we already have it activated.

And as for selling a VZW as a GSM well that doesn't even really make sense, because then I wouldn't have my wonderful phone. Plus it would probably end up in a lawsuit with my luck.
[Samsung Galaxy Nexus] ChongoDroid:
Tin hats
[T-Mobile Samsung Galaxy S II SGH-T989] pyraxiate:
New Update: Icenight89 made this into a cwm flashable fix. Great work bro :-)

Check out his thread here:

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

--- Old Post ---

Update. I fixed it !!

I was goofing with chroot / Linux in the loop which apparently caused my issue. Random things appear to cause it as any root application can modify this partition ( I'd bet to keep the screen from locking with the screen timing out as it could interrupt a long install ). Neither Nandroid backups , Odining to stock, or factory resets touch the /efs partition. I would absolutely reccommend manually copying the contents somewhere using a root explorer (making a safe backup)!!! We need to talk to the creater of our cwm to see if they can add /efs in the nandroid backup process.

Here is how to fix power menu on long press :

Use a root explorer and paste this file to /efs/imei

( don't worry its just a string and a value )

http://db.tt/Pk2U8Nws

This file also fixes lock screen. Just reboot!!

Hope this helps a few of you out ! If so please drop me a thanks ! :-D Also go to the Dewizzed thread under android development and thank RK ( RoyalKnight ). I couldn't have figured this out without him giving me a dump of his good efs partition to compare it to !!

--Original Post --

Hello,

I seldom post looking for assistance or guidance, however im at my wits end with this phone. I was using the linux installer on the market ( Chrooted Linux subsystem ) and in the process borked my rom. I reinstalled from backup and I have no power button pop up menu for shutting down. It immediately kills / shuts off the phone without a confirmation if you hold the power button for a second.

What i have tried:

Nandroid backups ( Both stock and prior custom installs )

I Odin'd to stock

I Odin'd CWM

I reinstalled the radio via cwm

Installed fresh roms to test

Ive looked all over the web and it looks like some others had the same problem and fixed it by taking a photo ( yes its odd but its fixed others ) and enable/disable secure credentials. Neither of those have resolved the issue.

Does anyone else have any ideas? The phone runs fine aside from the power button no longer having a menu. I put my phone in my pocket and have had it pop up to shut down in the past.... im positive it will get turned off if i dont constantly check to see if its on.

Any ideas? I saw somewhere where another dev created an advanced power menu adding recovery / reboot to the menu. There has to be a way to re-bind it to the power button!

Oh, and i just checked. I have no lock screen either! Ugh!
[T-Mobile Samsung Galaxy S II SGH-T989] ApexZeph:
Ive had this same issue, you must have used one of the "secret codes" for the phone to disable it.

Type *#*#7594#*#* from dialer and hit dial then uncheck the only option that appears...to re enable lockscreen and power menu

I tried to test but it doesn't work for me anymore I'm guessing cause I'm now running juggs and the dev removed that particular option but I had the EXACT same problem the first month I had the phone and was on stock rom it had me frustrated beyond reason I'm a very security conscious person and lock screen not functioning is simply unacceptable.

If the code doesn't work try searching "7594 t989" or something as im positive this is your issue and that is the right code but I'm not positive of the "#*" order in the code. Try it, and if it actually dials out instead of taking you to a hidden menu its wrong.

Please hit thanks if I've helped you! =]

Sent from my SGH-T989
[T-Mobile Samsung Galaxy S II SGH-T989] pyraxiate:
Well, It was already unchecked sadly. What part of the firmware controls this? I thought it would be radio but ive already flashed a new radio....... it shouldnt be persistant.

I checked it, rebooted, unchecked it rebooted.... still the same. ugh. I gave you a thanks anyway. Any other ideas?

My last shot will be to flast an ATT kernel/radio/rom via Odin if i dont have any other options. Im hoping it should wipe out this issue

The interesting thing is Golocker will work with golauncher installed :/
[T-Mobile Samsung Galaxy S II SGH-T989] ApexZeph:
Well I'm completely befuddled man I appreciate the thanks but when I heard you describe the literal EXACT same problem I had I was certain it was the same thing. Perhaps its the fault of the custom rom that the option is unticked but actually on? I suppose the issue could be originating from another source but with symptoms as specific as yours (both lock screen and power menu gone) it makes me think it may still be connected to what I mentioned. I'm no dev tho so I can't give you much technical support. Hopefully others see this thread and can go on what we have discussed. I have to say I'm a bit disappointed the fix didn't work since we had the same issue that obviously is a deal breaker.

Your saying its the radio cause you flashed nandroid and didn't fix issue?

I remember flashing a nandroid as well and it didn't help at all.

Sent from my SGH-T989
[T-Mobile Samsung Galaxy S II SGH-T989] pyraxiate:
Unfortunately this isnt a rom related issue. I was thinking that MAYBE the radio controlled it but even that im not so sure of anymore. I even had the exact same issue when I reverted back to stock via Odin...... Sigh

I actually flashed everything possible via Odin ( recovery , stock image , stock kernel , stock radio )

Looks like im stuck using Go Launcher + Go Locker until i can figure this out ( yes i am a security conscious person too )

Here is what i installed https://market.android.com/details?id=com.galoula.LinuxInstall&hl=en

I may need an expert on what exactly the linux installer does to our devices >.> I was under the impression that it used the loop interface and ran the guest OS off of /data. Apparently something deeper went on there :(
[T-Mobile Samsung Galaxy S II SGH-T989] zender2k:
Factory reset will fix it.
[T-Mobile Samsung Galaxy S II SGH-T989] pyraxiate:
Hmmmmmmm did you read my OP?

I appreciate the input but im well beyond just factory resetting it. Ive already reverted to backups via CWM, Ive flashed new roms via CWM, Ive used Odin and flashed back to stock kernels / OS, Ive flashed a new CWM. Ive flashed new radios via CWM, And of course wiped data/cache/dalvik/system/ext-sd. My partitions were wiped, ( All to include my data storage and SD card )

Any other possible suggestions?
[T-Mobile Samsung Galaxy S II SGH-T989] pyraxiate:
Research shows that /efs Might have something to do with the lock screen. Playing around with it now :-) ( its the 1 partition which doesn't get touched during Odin / cwm flashes )
[T-Mobile Samsung Galaxy S II SGH-T989] zender2k:
I've read your post. The same thing happened to me. After a fresh flash, no power menu, no lockscreen, reboot after touching power button. Again, factory reset fixed it.
[T-Mobile Samsung Galaxy S II SGH-T989] fg:
FWIW, I have the same symptoms (no lock screen, no power menu) running on rooted stock rom and can say that factory reset has not fixed it, nor has any of the other fixes in threads discussing this issue (*# codes, etc). Still looking for a solution, but wanted to clarify that there doesn't seem to be "one master fix" for people experiencing the issue
[T-Mobile Samsung Galaxy S II SGH-T989] pyraxiate:
Are you referring to the factory reset within the settings menu ? I haven't tried that yet but I have used cwm's factory reset to no avail. I've odin'd back to stock which should be better than a factory reset as it rewrites all partitions ( efs aside ). Ill try it now and report back
[T-Mobile Samsung Galaxy S II SGH-T989] pyraxiate:
Hi there, I'm looking into it but I think we suffer from a corrupt efs partition. I know our phone isn't the 9100 but it appears to be common there. I have someone dumping their efs for me and I'm going to wipe mine and replace it with his. I've researched and there are only two files I'd need to rewrite ( and nv data doesn't appear to be there...odd )

I'm going to get creative and see if i can't figure this out for us. I've used an efs backup tool to back mine up, format and restore mine already so I know we have access to the partition.

We do have a ton of memory blocks / partitions so I'm hoping the issue isn't with one of the others. If the efs isn't it, I'm going to look at the dump someone posted to try to figure this out ( replacing mine one by one after creating a dump of mine first )
[T-Mobile Samsung Galaxy S II SGH-T989] fg:
Funny you should mention efs and post about it so quickly. After my post, i started reading through some of the other threads on the subject during lunch and found this post which talks about a missing file in the /efs directory which i hadn't noticed before:

http://xdaforums.com/showpost.php?p=19388122&postcount=19

All the other threads were talking about test modes and other random things which I *may* have done, but had no memory of. The post about efs struck a cord and I do remember messing with the files there for no good reason when I first got the phone and having made a backup of the directory.

Looking through my backup, I saw a number of files that were no longer in /efs, including the /efs/imei/keystr file containing nothing but the word ON. I quickly copied over the missing files from my backup to /efs using Total Commander (my favorite file manager) and without even a reboot, both the lock screen and power menu have returned.

Coming back to this thread to update my previous message, you were already going down the same path. I have a feeling only the keystr file was needed in my case, but I restored everything to be a) safe and b) if I can't remember what I was doing in /egs, it obviously wasn't useful or important.

This fixed my problem, hopefully it will fix yours as well. I will post a listing of what was in my working and non-working /efs later today for further reference
[T-Mobile Samsung Galaxy S II SGH-T989] zender2k:
Yes! "factory data reset" under settings > privacy
[T-Mobile Samsung Galaxy S II SGH-T989] fg:
/efs differences

Reviewing the contents of /efs between my original copy and what was currently on my phone, the following 4 files were missing from my /efs directory:

/efs/cryptprop_rebootMode : 1 byte file, empty

/efs/cryptprop_sdcard : 5 byte file with the word NULL

/efs/imei/bt.txt - 23 byte file with the word bt_macaddr:HEXBTMACADDR

/efs/imei/keystr - 2 byte file with the word ON

If someone can create a sticky master thread for known lockscreen & power menu causes and tested solutions, it would be AMAZING! :)

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

Doesn't work for everyone!
[T-Mobile Samsung Galaxy S II SGH-T989] pyraxiate:
A factory reset only wipes /data /cache /sd-ext. When you install a new rom generally those are replaced as well as /system. Using Odin , those plus the radio are wiped clean and replaced.

My friend just copied his /efs for me. He used a tool to create a backup ( efs.img ) and just by creating the backup, it created the no lockscreen / power menu symptom. /Efs absolutely has something to do with this problem. He fixed his issue by copying the backup from his sd card to the /efs partition so this is looking promising. I'm copying files back and forth testing as I write this.

I may have found the cause and solution ! :-D
[T-Mobile Samsung Galaxy S II SGH-T989] GuestK00468:
I'm pretty sure your issue was due to a borked install of a program or the rom. Since you noted your lockscreen disappeared as well. Also your power button causes a reboot while ops is a power down. the factory reset is already what op did by wiping data and cache from recovery. Nice input though, all ideas are welcomed on these types of threads!!!
[T-Mobile Samsung Galaxy S II SGH-T989] GuestK00468:
Have you figured out the cause thay may have started this?
[T-Mobile Samsung Galaxy S II SGH-T989] pyraxiate:
I was goofing with chroot / Linux in the loop. Random things appear to cause it.

Here is how to fix power menu on long press :

Use a root explorer and paste this file to /efs/imei

http://db.tt/Pk2U8Nws

I'm working on the lock screen now.

Edit :

This file also fixes lock screen. Just reboot ! ;-)

Hope this helps a few of you out ! If so please drop me a thanks ! :-D Also go to the Dewizzed thread and thank RK ( RoyalKnight ) I couldn't have figured this out without him giving me a dump of his good efs partition to compare it to !!
[T-Mobile Samsung Galaxy S II SGH-T989] pyraxiate:
MODS

Please sticky this as its a fix and please change the post title to [Fixed] No Power Button Or Lockscreen

Thanks RoyalKnight. Couldn't have done this without your efs dump bro :-)

First post updated with fix :-)
[T-Mobile Samsung Galaxy S II SGH-T989] eweo911:
I just bought a SGSII from craigslist and it is messed up too. It is having the no power menu, no lockscreen problem. I am able to fix it by copying the file you provided and pasting it into the efs/imei folder (

and then removing the .txt from the file

). Once I reboot, the file is gone from the folder and the same thing happens over again.

I am having a problem too where it is not seeing the sd card and sim unless I shutdown, remove battery, sim and sd card then replace them and reboot. I'm not sure if it is related tho. That's probably a whole nother story?

I guess my question is, why would the file keep getting erased upon a reboot? Did this guy really mess up the phone that bad??
[T-Mobile Samsung Galaxy S II SGH-T989] pyraxiate:
Do you have CWM installed? If so, try flashing a different Rom. First wipe system,dalvik,data, and cache 3 times.

After the new rom is installed, then copy the file back. I suspect you have an app wiping the file on boot on your current rom.

As far as your sim having an issue, I also suspect maybe its an efs issue. Can you copy your current /efs partition and drop box it to me ?ill compare it against mine and hopefully ill be able to track it down
[T-Mobile Samsung Galaxy S II SGH-T989] Chaos5429:
I also tried the method of pasting the .txt file into the /efs/imei folder however, I cannot get my lockscreen to work nor will the long press of the power button gave any options; the phone just shut down as usual.

edit: using stock 2.3.6 but rooted
[T-Mobile Samsung Galaxy S II SGH-T989] eweo911:
How do you copy the efs partition? I have CWM installed and I have wiped system,dalvick,data and cache and performed a factory reset both from CWM and through the settings option in the rom. I have also tried this on two different roms.

---------- Post added at 02:33 PM ---------- Previous post was at 02:31 PM ----------

did you remove the .txt from the file once copied over? It wouldn't work for me unless I removed it.
[T-Mobile Samsung Galaxy S II SGH-T989] Chaos5429:
Yup I had to remove the original keystr file from the imei folder then pasted the one from that site. Nothing changed so yea.......
[T-Mobile Samsung Galaxy S II SGH-T989] eweo911:
Ok I think I got the backup made. Do you need the efs.img or the efs.tar.gz?
[T-Mobile Samsung Galaxy S II SGH-T989] Chaos5429:
The img is flashed in the recovery? Not sure how they work.
[T-Mobile Samsung Galaxy S II SGH-T989] eweo911:
PM sent with efs backup :)

---------- Post added at 05:03 PM ---------- Previous post was at 04:40 PM ----------

My backup shows files that are not listed on the phone when I compare them.

Can anyone please post their efs folder permissions?
[T-Mobile Samsung Galaxy S II SGH-T989] eweo911:
I forgot that to get the lockscreen back I have to go into settings and set it up like new. I just test with a simple pattern and then shut the screen off and then back on and the lockscreen is there. It also gives me the power menu then also.

I am using Juggernaut rom and I have to do the original lock screen setup in location and security, then disable it by choosing "none" for the location and settings lockscreen and then I can go into the Juggernaut "rom settings/lockscreen" settings and choose from there also.

It says you are on a stock rooted Rom so I'm not sure if the same process applies to you. Just giving back what I have figured out in my situation.
[T-Mobile Samsung Galaxy S II SGH-T989] alugava:
this problem happens to me too but only with ics, xxkp4-xxxp8-xxkpa-xxLp1 and xxLp2 with 2.3.6 no problem.
[T-Mobile Samsung Galaxy S II SGH-T989] jasontx:
Have you tried to ODIN back to stock?
[T-Mobile Samsung Galaxy S II SGH-T989] alugava:
keystr the fix works or not?
[T-Mobile Samsung Galaxy S II SGH-T989] koyanishi:
simple fix for this problem

http://xdaforums.com/showpost.php?p=20506622&postcount=2

at least it worked for me on my mostly pristine stock sgh-t898.

make sure you leave the box unchecked.
[T-Mobile Samsung Galaxy S II SGH-T989] alugava:
this was already done with * # * # 7594 # * # * uncheck box and did not work, putting in capeta keystr imei work?
[T-Mobile Samsung Galaxy S II SGH-T989] jasontx:
Glad you figured it out, now life can return to normal lol
[T-Mobile Samsung Galaxy S II SGH-T989] koyanishi:
*#*#7594#*#* did not work for me. all I got was dial tone and voice saying " sorry, all circuits are busy now"

whereas the app linked in my previous post did work

https://market.android.com/details?id=com.widgapp.HiddenFeaturesFREE&hl=en
[T-Mobile Samsung Galaxy S II SGH-T989] Flare106:
hey there, i too have lost the lock screen and power options. I am rooted on 2.3.5 and it will not let me create a new file in the imei folder i just get a message displayed at the bottom of the screen saying "new file failed to create" what would be causing this?
[T-Mobile Samsung Galaxy S II SGH-T989] pyraxiate:
Your file explorer. Root isn't enabled. Download es file explorer on the market ( its free ). In its settings are check boxes for "root", and "mount system as rw ". Enable both and you will be good to go :-)
[T-Mobile Samsung Galaxy S II SGH-T989] Flare106:
Awesome, got er fixed! Thank you and everyone else. I was searching high and low how to fix this annoyance!

And a question for the road... should this method work if this happens again when flashing rom to rom?
[T-Mobile Samsung Galaxy S II SGH-T989] eweo911:
I wish any of these fixes worked for me. It looks like nobody knows how to fix the "failed to mount /efs" problem, nor does anyone know how to write a script to use as a bandaid.
[T-Mobile Samsung Galaxy S II SGH-T989] Flare106:
Well, this fix works for me on gingersnap rom but it does not work for me on juggernaut 4.x,

however on juggernaut i was able to get to the lock screen by adding and editing keystr but as i soon as i reboot and swype to unlock, it throws non stop force closes for 4/5 different items and they keep popping up so quick that i cant read what they are. One of the force closes is TW Launcher.

There is also a new file in efs/imei that was not on gingersnap mps_code.dat
[T-Mobile Samsung Galaxy S II SGH-T989] eweo911:
I have the file in my imei folder as well. Do you have the files in /efs/sett/system? I have 9 other files there that I copy back to get the temporary lockscreen/power menu working. Do you also have the essiv file in efs?
[T-Mobile Samsung Galaxy S II SGH-T989] Flare106:
I found a fix that worked on my device and flashed back to juggernaut and booted right up to the initial setup screen. Everything is now working how it should be.

What i did was:

1. flash SGH-T989-UnRoot_ROM_Zedomax.zip using recovery http://galaxys2root.com/t-mobile-galaxy-s2/how-to-unroot-t-mobile-galaxy-s2-sgh-t989/ should be able to download the file there. The link for download is posted down by the 2nd video

2. I then downloaded samsung kies on the computer, plugged my phone in via usb cable. After everything synced up it pushed an OTA update (2.3.6) getting everything back to stock, it booted right up to the initial setup screen.

=============================================

I was able to flash 2 different roms after this without any issue!
[T-Mobile Samsung Galaxy S II SGH-T989] fmartine:
No luck for me

I had your same issue, the home button did not work at all (i'd still feel it vibrate) and the power button only shows a screen shot option but it fails to take a screen shot

I played around with flashing the rom and basically did the steps you described in the first post before i found this thread,

I tried your fix but when I use any root explorers none of them are able to see the imei folder inside the efs folder.

I pasted an imei folder which had your keystri file in it but unfortunately it fails to copy the file into the folder no matter what I try

I just get a notification which says that it cannot find oi_java or something

... any one else find a legitimate fix for this?:(

---------- Post added at 02:24 AM ---------- Previous post was at 01:58 AM ----------

This was the only thing that worked for me. Should definitely be stickied it took me awhile before i found this thread:D
[T-Mobile Samsung Galaxy S II SGH-T989] pyraxiate:
Glad it worked for you :-) It seems as though we are getting mixed results. Its at least worth a shot i suppose :-)

Also I saw someone again mention using odin to fix it..... ill say this one more time. Odin nor CWM write to the emmcblk that contains /efs. If your issue was the same as mine or flares, reflashing will not fix it unfortunately.

Good luck and hopefully I've helped at least some of ya out there :-)

One more thing to note.... its not keystr.txt ..... its a string value and not a document ( although you could use a text app to recreate it).

Make sure there is NO file extention at the end !

Sent by my SGH-T989 from the Darkside ©
[T-Mobile Samsung Galaxy S II SGH-T989] YourAntic:
Thank youu! This helped me!
[T-Mobile Samsung Galaxy S II SGH-T989] deadbeatcocoa:
Maybe I missed something, but when I paste this file in the folder, as you said, using root explorer and I reboot, the file is deleted or something during this action.

Thank you