Showing posts with label Qtek. Show all posts
Showing posts with label Qtek. Show all posts

Sunday, 28 July 2013

HTC Root, Unlock, Recovery and flashing a Custom ROM



Just a quick step by step tutorial to get a Custom ROM working on your HTC One or if you just want to unlock and root!

This guide is especially for the new users, experienced HTC users should already be familiar with this process.

Step 1: Unlock
  • Go on http://www.htcdev.com and create yourself an account on HTCDEV.
  • Download these adb/fastboot files
  • Make a new folder on your C:/ drive called fastboot for example.
  • Extract the zip downloaded in step 2 to the new folder
  • Go Here http://www.htcdev.com/bootloader/ and select "All Other Supported Models" and "then begin unlock bootloader"
  • Yes, Tick both Boxes, Proceed
  • Skip up to step 8 as we have all we need for the first 7 steps
  • Power off your phone by holding the power button down for 10 seconds
  • Power your phone on by holding power and volume down
  • Highlight Fastboot With Volume+or- then press Power
  • Plug your phone into your PC and open a Command Prompt.
  • (windows XP - Click Start > Run > type CMD in box then press OK
  • (Windows 7 - Click Start > type CMD in search box then press Enter)
  • Change directory to your folder where we put fastboot files cd c:\fastboot
  • Type this into your command prompt window fastboot oem get_identifier_token
  • Select & copy the text as per step 9 on the HTCDev website
  • Paste your identifier token into the box at the bottom and submit
  • You Will Very Shortly Receive an email from HTCDev with a link to the second part of the instructions and your "Unlock_code.bin" attached
  • Download the "Unlock_code.bin" from the email and save it to the same folder that we extracted fastboot files to in step 2
  • Type this into your command prompt window fastboot flash unlocktoken Unlock_code.bin
  • The Display Will change on your phone, press Vol + to accept and power to confirm.

Step 2: Recovery
  • Download the Android SDK (optional)
  • Download the recovery of your choice, here a few links:

    CWM

    CWM 2

    TWRP
  • Place the Recovery file you downloaded where the fastboot.exe is (Either in the location of your downloaded fastboot drivers or in the Android SDK directory)
  • Now open the cmd and navigate to the folder where the Recovery File is located or just open a cmd with shift and right click at the correct directory
  • Now type:

    fastboot flash recovery name_of_the_recovery.img

    For example:

    fastboot flash recovery recovery-clockwork-touch-6.0.2.8-m7.img

Now your recovery is installed

Step 3: Root

This step is only needed if you want a stock rooted ROM, if you want a custom ROM, skip this step.
  • Now root your phone with SuperSU by Chainfire or SuperUser by koush
  • Download SuperSU from this link or SuperUser from this link
  • Flash it with the Recovery:
  • Power off your device and then hold the VOL DOWN + Power to boot into the Bootloader
  • Navigate with VOL and Power to Recovery
  • Now flash the .zip:

    - install zip from sdcard
    - choose zip from sdcard
    - select the downloaded SuperSU/SuperUser zip file and flash it
    - Reboot now

Now you are able to flash any Custom ROM.

Step 4: Custom ROM

With htcdev unlock you need to flash the boot.img after every ROM installation

Note: Most of the custom ROMs have a script which lets the boot.img flash automatically with the ROM, so probably the steps after flashing the ROM are not needed.
If you are in a bootlop though, I recommend you to perform these steps and flash the boot.img with fastboot

  • Download the ROM you want to flash
  • Open the ROM zip with an archive manager and extract the boot.img out of it and place it in your fastboot directory
  • Copy the ROM to your sdcard
  • Now boot into bootloader again (explained above) and choose recovery with your volume keys and power button
  • In recovery wipe data and cache aka fullwipe before flashing your ROM if you are moving to a new base (for example from CyanogenMod to a Sense ROM, don't forget to backup your data files, like apps) (Often ROM chefs leave a note in their thread if a fullwipe is needed or not, just follow their advices)
  • Now flash your ROM by installing zip from sdcard
  • If this is finished, reboot and reboot into bootloader again
  • Connect your phone to your PC in fasboot mode (choose in bootloader with power button)
  • Open a cmd in your fastboot folder with your boot.img and type these two commands:

fastboot flash boot boot.img

fastboot erase cache

  • Then reboot your phone and wait some minutes to see your ROM booted
  • Enjoy

Monday, 22 July 2013

LG Hardware And Software Repairing


I see almost everyone in L9 forum is giving reference link to this flashing guide in their threads, but almost no one is mentioning any credit to this. They are just putting links. What do you all think, pals? Do I deserve a credit or not
Thanks to all developers and contributors: Bin4ry , adixtra ,unknown_world. I thank to all the users of this thread who gave feedback and reported issues time to time, which helped "us" to make this guide better and perfect.

First thing first, this is not my original work, I have just tried to consolidate all the scattered things together for SAFE and EASY flashing and rooting of L9 variants. Written this guide as many pals were having issues with OFFLINE KDZ FLASHING and help was scattered in many pages creating more confusion. 
Wow! After so much of followup with xda mods, finally we got Home (Sub-Forum) for LG L9 series. 

  1. PLEASE, USE INFO AT YOUR OWN RISK & INTELLIGENCE.
  2. Flashing KDZ removes Root and CWM, so you will need to root again.
  3. Flashing KDZ does not wipe your data, but if you get bootloops you need to hard-reset it, so please backup data first.
LG Update Tool works on all versions of windows (xp/w7/w8-32/64bit) for flashing any version of Android (GB/ICS/JB). If it does not work on your windows, something is missing on your system and if anyone here cannot help you then, you have find your own ways. Don't expect Spoon-feeding for everything.

DEVICES FLASHED WITH THIS GUIDE AND TESTED OK: LG Optimus 2x (P990) and LG Optimus L9 (P76?)

This thread contains two "MAIN" separate parts. 
[GUIDE] FLASH L9 Factory ICS/JB ROM WITH OFFLINE FIX + UNBRICKWorks perfect on Win-XP/W7/W8 32bit/64bitUNBRICKS ALL SOFT-BRICKED L9 (P760/765/P768/P769) 

TRUST ME THIS IS NOT LENGTHY PROCESS, I JUST HAVE PUT THEM IN EASY STEPS FOR COMPLETE NOOB PERSON. EXPERTS PLEASE STAY AWAY FROM COMMENTING HARSH ON ME. 

THIS METHOD IS ALWAYS FASTER THAN ONLINE WITH PC SUITE, WHICH DOWNLOADS HUGE FILE ONLINE AND YOU NEED TO WAIT UNTIL IT FINISHES DOWNLOADING IN THE MIDDLE OF FLASHING. 

In first part of this Guide, we are creating a Local Web-Server for LG Support Tool and will try everything which will PREVENT the tool to connect to real LG server over internet. We have to create SMALL SERVER on our own system and redirect tool to this webpage.

FIRST DOWNLOAD YOUR OWN OFFICIAL KDZ (LG ROM) FILE FROM MY ROM COLLECTION PAGE or from anywhere and proceed... 

0) Precautions
___A) Select "Debugging Mode" as ON (Ticked) in Phone Settings (Developer Section)
___B) Select "Install from Unknown Sources" as ON (Ticked) in Phone Settings (Security Section)
___C) Indian version of L9 does not come with "Lookout Security Antivirus" already installed. But KDZ from other countries may have it already installed, FORCE CLOSE AND UNINSTALL it from app manager. If you cannot uninstall, at leastDISABLE it. This program is known to be preventing connection and rooting of device.
___D) Remove all other USB devices (external hdd, backup drives, other phones, etc) and cables connected to PC to avoid issued due to voltage loss. (example)
___E) OFFLINE KDZ FLASHING DOES NOT LOOSE PHONE DATA, BUT YOU MUST BACKUP YOUR PHONE IN ANY CASE.

1) Find NOTEPAD program from StartMenu of Windows and Right Click on it and run it with "Run as Administrator" option. Remember use "Run as Administrator" while opening, otherwise you will not be able to save it after changes. 

Now you need to open "HOSTS" file located in folder "C:\Windows\System32\drivers\etc\" with following method. 

Click File Menu >>> Open File >>> Now copy-paste following in "Open File" Box. 


Quote:
C:\Windows\System32\drivers\etc\hosts
Please note the opened file name is only "hosts" and does not have file-extension like txt or anything.

When file is opened, add following lines at bottom of "hosts" file, a file with no extension like txt/doc/xls.

Quote:
127.0.0.1 csmg.lgmobile.com
127.0.0.1 csmgdl.lgmobile.com
Now SAVE file and Close it. 


Content of Hosts file looks like this sample file. Close this file , because we may not need it after this point. 
AND RESTART PC NOW (check if lines are still there after Restart. They should be there.)


2INSTALLING SMALL SERVER: Download "shttps.zip" (attached below) and Extract the Zipped folder "shttps" in root ofC-drive of your computer. 
Now Right click on "C:\shttps\http.exe" file and "Run As Administrator" and in Windows Compatibility Mode with "WindowsXP SP3" (must for Win7/8) , a server status window will open "MINIMIZE IT BUT DONT CLOSE IT" and you will also see a SMALL SERVER icon in TASKBAR, like mentioned below.




WEBSERVER TESTING: If webserver is running correct, YOU SHOULD SEE A SWEET GIRL WITH L9 WHEN YOU CLICK THIS >>> http://127.0.0.1:9002
If you don't see a GIRL, something is wrong. Start again.


COMING TO ACTUAL FLASH PROCESS.

3) Download (attached) and Extract "KDZ_FW_UPD_EN.zip" and save the folder on desktop or any suitable place on your hard-disk.

4) Optional if "MSXML 4.0 SP3 Parser" is already installed before: Install it by finding and installing "msxml.msi" file in flash folder.

5A) Optional if "B2CAppClient" is already installed before: Internet Must be ON and Right-Click onB2CAppSetup.exe and Run As Administrator. If not installed before, it will download a setup file, will install it and open "LGMOBILE SUPPORT TOOL" box as shown below. Without doing anything just close this box because we will install latest LG Universal Android driver manually in next step.



5B) Optional if "LG USB Driver" is already installed before: Install latest "LG USB Driver (Download 3.8.1 here)" (Ver 3.7.2) Remember your Phone is not connected yet. 

NOW YOU ARE ALL SET AND READY TO FLASH

6Never installed JellyBean before and with Locked Bootloader? Then Connect Phone in Software Upgrade Mode: Switch OFF the phone and Press VolumeUP button and insert USB cable into phone, Now phone should show SW Upgrade Mode. 

Let windows load any drivers, wait until it finishes. TWO ENTRIES SHOULD APPEAR IN DEVICE MANAGER IF DRIVERS ARE PROPERLY INSTALLED, LIKE THIS SCREENSHOT or this screenshot. (ignore detected entries in following screenshot, they will be different every time)

Quote:
Post-JB issue: If you have installed JellyBean before, Phone may not go in "Software Upgrade Mode" or Flashing stops at 14% in 11th step. 
Then do this 
WORKAROUND: Keep the Phone POWERED ON with USB connected and on "LG Software" mode and do next step of flashing KDZ with Update tool and the phone will automatically go in software upgrade mode.
7) Execute "UpTestEX_mod2_marwin.exe" with "Run As Administrator" option and in Windows Compatibility Mode with "WindowsXP SP3" (must for Win7/8) >> and Select your KDZ file. Select "3GQCT" in Type of Flash and select "EMERGENCY" for PhoneMode. Ignore all other options and press "NORMAL WEB UPGRADE TEST" at bottom. This button is very light and hard to see at first attempt. 



IMPORTANT: Do not change names of the KDZ files from LG server or downloaded from my this and this page.(They should look like.... "V10G_00.kdz" or other version in same style.)

8) Now "Read Phone Information" box will open with blank information, Just press "Upgrade Start"



9) A small box at bottom-right side may appear like below, which you may "ignore" or "cancel"



10) Now "Select country and language" small box will open. Here select "Different Country" and "English" and press "OK".




11) Now actual flashing will start and PHONE UPDATE TOOL (shown below) will appear, and if your KDZ file is good flashing will end without any issue. 

JUST RELAX!! SIT BACK WITH HANDS FOLDED BEHIND HEAD AND WATCH IT HAPPENING. 

When it finishes full flashing and phone will start rebooting. 

YOU CAN REMOVE CABLE AFTER 100%, AND FLASHING IS FINISHED!!!
 Close all programs.

Quote:
FLASHING ERROR AT THIS POINT? If you have installed JB before then your flashing may stop at 4% to 14%.This may be due JB rom already installed before or due to driver not completely installed for "SW Upgrade Mode".

WORKAROUND: Cancel flashing by exiting LG Update Tool. Phone should be still in SW Upgrade Mode, Remove USB Cable, wait 10 seconds, Insert USB cable again and let all drivers install for this mode. The device manager should look LIKE THIS SCREENSHOTSTART AGAIN FROM STEP 6 (Read about Post-JB Issue)


BOOTLOOPS? STUCK AT LG LOGO? : Dont worry!!! If you were on CM and flashed JB or vice versa or your data partition is not matching with new partitions, then your phone may get BOOTLOOPS on LG Logo.

HARD-RESET to solve it (Press VolDown, Home and Power all together) You will loose data, dont worry, before starting you took BACKUP and I am sure about it.  Phone should start normally. (Click for correct method of HARDRESET)

You're done!!! Phone is FLASHED!!!


12) Remove lines we added from HOSTS file mentioned above. Do it now!!! Dont complaint later that LG KDZ download links are not working. LOLZ 

IMP NOTE: This is also called OFFLINE FOTA and all your Phone Settings, DATA on internal card and external card and also the installed APPLICATIONS will remain as it is. Enjoy!!

TROUBLESHOOTING, IN CASE OF ANY ISSUES: Check following workarounds.
  1. Uninstall LG Driver, RESTART PC and then REINSTALL DRIVER before connecting phone to pc.
  2. Run B2CAppSetup.exe and let it download and install LG Support Tool. After it opens just close it because it will not be needed later.
  3. After Adding lines in HOSTS file, confirm if file is saved or not and then RESTART PC to see the added lines are there or not. This is to be done after first step is done.
  4. Sometimes the downloaded file could be corrupted too. Do fresh download when your internet connection is good.
  5. "Microsoft Security Essential" (Antivirus+Firewall) falsely recognizes "C:\shttps\http.exe" as virus (false alarm) and blocks it. Either allow it to execute or Get RID of this Antivirus.
....and try again with next procedure.


B) Root Rootable KDZ with OLD Bin4ry method.

Second Post (see below) ...
ATTACHED FILES
File Type: zipKDZ_FW_UPD_EN.zip - [Click for QR Code] (3.05 MB, 9232 views)
File Type: zipshttps.zip - [Click for QR Code] (3.00 MB, 4742 views)

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by MUHAMMAD WALI KHAN SEO/SEM | WEB DEVELOPER / DESIGNER Also Online Internet BUSINESS And Marketing Consultant. OR IT HARDWARE AND SOFTWARE ENGINEER