[Q] Help Please With G2 Unlocking - G2 and Desire Z Q&A, Help & Troubleshooting

Hi,
I just got a new g2 i bought it from someone and they have already rooted it and put cyanogen mod 7 on it already but the problem is my friend has att so he cant use the phone unless its unlocked i thought it would already be unlocked since the gfree method unlocks it for you but its apparently asking for the sim code so if you can please help me out on how to take the sim lock off it would be much appreciated.
Thank,
XDA ROCKS!!!

Re-run GFree following the instructions from the WIKI HERE, and use the following option of -S:
Code:
gfree [-h|-?|--help] [-v|--version] [-s|--secu_flag on|off]
-h | -? | --help: display this message
-v | --version: display program version
-s | --secu_flag on|off: turn secu_flag on or off
-c | --cid <CID>: set the CID to the 8-char long CID
[COLOR="Red"][B]-S | --sim_unlock: remove the SIMLOCK[/B][/COLOR]
-f | --free_all: same as --secu_flag off --sim_unlock --cid 11111111
When you run the following code in the GFree Process:
Code:
su
cd /data/local
chmod 777 gfree
./gfree[COLOR="red"] -S[/COLOR]
sync

Related

[Q] Unrooting for warranty return

I rooted my phone using the gfree method outlined in the wiki, but made a Nandroid backup of stock before I started anything. I restored the backup; is there anything else I need to do before sending it back?
I noticed that still have the Superuser app in my app drawer, and I wasn't able to follow the instructions for S-OFF here (http://forum.xda-developers.com/wiki/index.php?title=HTC_Vision#Turning_S-On) as it said "Permission denied" when I type cd /data/local (I also noticed that I don't have the /data/local folder anymore on my sd card).
Gfree gives you an option to turn S-off or S-on, go back to the wiki and re-read it, the code below is copied from the Wiki and I highlighted the options in red for you, just run gfree again with the -s option
Code:
gfree usage:
gfree [-h|-?|--help] [-v|--version] [-s|--secu_flag on|off]
-h | -? | --help: display this message
-v | --version: display program version
-s | --secu_flag[COLOR="red"] on|off[/COLOR]: turn secu_flag [COLOR="Red"]on[/COLOR] or [COLOR="red"]off[/COLOR]
-c | --cid <CID>: set the CID to the 8-char long CID
-S | --sim_unlock: remove the SIMLOCK
-f | --free_all: same as --secu_flag off --sim_unlock --cid 11111111
As far as superusers app, just go into the app manager and remove it.
Sorry, I should've clarified that I don't have gfree anymore. I tried again and this is the prompt I get:
$ su
su
# cd data/local
cd data/local
# chmod 777 gfree
chmod 777 gfree
Unable to chmod gfree: No such file or directory
# ./gfree
./gfree
./gfree: not found
#
Push the gfree file back to data/local and rerun the commands except with -s option read the wiki again and use the right commands.
Sent from my HTC Vision using XDA App
All right, got my phone back to stock unrooted and with S-ON. Here's what I did (note that my circumstances my be different than yours so try this at your own risk):
I rooted and S-OFFed using the rage (v 0.03-this will come into play later) method on the wiki (http://forum.xda-developers.com/wik...sion#Rooting_the_Vision_.28G2.2FDZ.29_and_DHD). I did this right when I got the phone, so no OTA update (I had 1.19). Downloaded ROM Manager and did a Nandroid backup at this point (in my above post I said I made a backup right at the beginning which I was mistaken on). Then I went ahead and flashed CyanMod.
Phone earpiece broke, so I had to get the phone back to stock. First I restored my backup ROM (so back to 1.19 again). Used the unroot guide (http://forum.xda-developers.com/showthread.php?t=835971), and during step one, I got the following error:
E:Board does not support mtd utils.E:Failure at line 344:
write_raw_image PACKAGE:boot.img BOOT:
Installation aborted.
Failure at line 6:
install_zip SDCARD:/stock_root.zip​Some others seemed to get this error as well and it looked benign. Continued and rebooted the phone. Figured this would be a failure, so I followed the HexEditor steps. Turns out the misc.img file was already the right version, but I renamed it and ran dd if=/sdcard/miscnew.img of=/dev/block/mmcblk0p17 just in case.
Step 2 ran without any problems, so now I had a stock phone with S-OFF. To turn it back on, I temp rooted the phone (just follow the TEMP Root steps in the wiki). I then tried to follow the S-ON directions on the wiki (http://forum.xda-developers.com/wiki/index.php?title=HTC_Vision#Turning_S-On), but the phone would automatically reboot after the dd line while not changing S-OFF.
Then I realized that I could use ./gfree -s on to turn S-ON since I was using 0.03, which worked perfectly. Rebooted to remove the temp root, and did a factory restore for good measure, and I believe I have a fairly pristine G2 ready for replacement.
Thanks to all the wikis and threads for their help!
I have a question about restoring to factory settings. Cant you just use the RUU from HTC (if you have a Desire Z that is) and just run that? Wont that just put it back to factory settings?

[Q] gfree -y: unknown operation... why?

Hi,
I had to return to stock rom for warranty and now i am trying to root it again. i have completed root and s-off operations but i can't enter recovery. when i select recovery from bootloader menu, i only see exclamation mark with black screen...
i entered these commands but second command gave me "gfree -y: unknown operation". how can i solve this?
Code:
4.a.2. gfree, install hboot and clockworkmod recovery
In the root shell (indicated by the #) that you got in the Temporary root section execute the following commands:
# cd /data/local/tmp
[B][U]# ./gfree -f -b hboot-eng.img -y recovery.img[/U][/B]
# ./root_psn
# sync
Means you are running an older version of gfree.
Only gfree 0.7 supports the -y arg.
You can find it here
(to find out what version of gfree you have, use ./gfree -v )
-Nipqer
Nipqer said:
Means you are running an older version of gfree.
Only gfree 0.7 supports the -y arg.
You can find it here
(to find out what version of gfree you have, use ./gfree -v )
-Nipqer
Click to expand...
Click to collapse
Thank you for your help but now the same command is giving me "./gfree: permission denied". why should it be?
Did you use the chmod command? Check the wiki, but it will probably be something like "chmod 755 /path/to/gfree"
chmod 755 /data/local/tmp/*
Also the command might have to be:
/data/local/tmp/gfree -v
to run gfree, unless you cd to /data/local/tmp (or wherever you pushed gfree to), in which case the '.' in './gfree' means 'this directory'
-Nipqer
Thank you all for help. Everyday i had another error. For example today i got psneuter error but i finally installed recovery...
Sent from my HTC Vision using xda premium

S-OFF HTC One problems

Apologies if I'm writing this in the wrong place, or if it's been answered somewhere else. Please point me in the right direction if so...
Ok,
Trying to S-OFF my UK Three Sense One (bought as sense, flashed to gpe 4.2.2). Unlocked and rooted.
HBOOT 1.44.0000
modelid: PN0710000
cid: HTC__001
cd /data/local/tmp
[email protected]:/data/local/tmp # ls -la revone
ls -la revone
127|[email protected]:/data/local/tmp # ./revone -P
./revone -P
revone v0.2.1
revone successful - please reboot to continue.
{repeat several times, with and without rebooting}
[email protected]:/data/local/tmp # ./revone -s 0 -u
./revone -s 0 -u
revone v0.2.1
revone failed (error code = -1)
255|[email protected]:/data/local/tmp #
Recovery: CWM
Rom: GPE 4.2.2
NOOB apologies, I have been searching all night through these forums and haven't found anything relevant.

Trouble (accidentally locked dev edition device)

I accidentally locked the bootloader on my developer edition one M8. I was returning it to stock for a warranty exchange (I already have the replacement device and I need to ship the old one back within the next few days).
I need to get this thing back to stock ASAP
Right now my bootloader is locked (laugh all you want. I'm an idiot.) but I'm S-OFF. Where do I go from here? I need to make sure I'm S-ON and have the tampered flag removed before I send it back, otherwise I'm sure they will bill me for a replacement motherboard and not allow me to have any say in that.
This is basically what I need to undo (I was in a hurry and copy/pasted the wrong text from a tutorial)
adb shell
su
echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
exit
exit
Code:
to UNLOCK your bootloader,enter the following:
adb devices
adb shell
su (if needed to get a # prompt)
echo -ne "HTCU" | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
(i would very strongly recomend you copy/paste this)
exit
(exit a second time if you need to to get back to a normal > prompt)
adb reboot bootloader
verify you are now unlocked
This is from this thread -
http://forum.xda-developers.com/showthread.php?t=2708571
Thanks a million! It worked like a charm!

Reset Warning Flags for E9+

Hello all,
Please help me to reset warning flags for my E9+, in order to send it to HTC. My battery is overheating and the phones turns off, despite the fact it is not warm outside. I presume a temperature sensor is not functioning correctly or a faulty battery cell...
I have S-off, I changed the SuperCID in HTC__621, the original one, I flashed the proper TW RUU, but I need the commands to get rid of "UNLOCKED" and "Status software:Modified" things...
I found the adb commands for M8, M9, M7, but not for E9+...
Can somebody share these to me, please?
Thanks
After a sleepless night, I found the command on a chinese forum. I share it with you now:
adb shell
su
echo -ne '\x00' | dd of=/dev/block/mmcblk0p11 bs=1 seek=39940
Worked perfect for me! I'm back to status "official"!
And for locking/unlocking bootloader (not tested yet) :
adb shell
su
Locked
echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p9 bs=1 seek=33796
Unlock
echo -ne 'HTCU' | dd of=/dev/block/mmcblk0p9 bs=1 seek=33796
Relock
echo -ne 'HTCL' | dd of=/dev/block/mmcblk0p9 bs=1 seek=33796

Categories

Resources