[One (M7) General] yahya.hamid:
Alright.

Let me first give an overview of where it all begins. If this is the state you are currently in then this guide is for you. To make this guide, I have benefitted heavily from various threads all across the web. So I decided to put it all at one place. This guide would not have been possible without a very comprehensive thread started by "kiwiandy" in the same forum and many others. Ok, so here it is. Please read below, if any of the situations resemble yours, this guide is for you.

ALL CREDITS OF BELOW FILES GOES TO THEIR OWNERS. I AM MERELY REPLICATING THE INFORMATION WITH A GUIDE AND TWEAKS FOR 802W. IF ANY VIOLATION OF ANY RIGHTS TAKES PLACE, PLEASE PMA ND FILE WILL BE REMOVED.

You have purchased HTC Dual SIM from China which is the UNICOM version

You have purchased HTC Dual Sim 802w from the web or any other place and have the chinese phone shipped to you. However you are not sure if its China UNICOM version.

When you go into settings and "About" there is an option of "Software Updates"

When you go into settings and "About" there is NO Software Update option in your 802w HTC dual sim

You want to get rid of Chinese bloatware and are looking for a straightforward Cleaning program that DOES NOT require root.

You want to be able to have custom recovery and flash updates.

You want to or DO NOT want to ROOT your device. (If its not already rooted)

You want the "LOCKED" bootloader and do not want the complications of HTCDEV or "UNLOCKED" or "TAMPERED" bootloader. (Although this guide works for both)

You want English Language and Google Services.

Let me first clear a bit of air with respect to the common terms used in HTC world. One may and may not agree to this. However, as you read through the guide there will be substantial evidence to prove this.

S-OFF: This sits at the top. If you are not Root and if you are not having an "UNLOCKED" bootloader you can stil do ANYTHING with your phone including installing custom recovery and installing images and updates. With a S-Off you dont even need custom recovery to install OTA updates via zip files that you have already downloaded. You can update via the android Stock recovery. You dont need to have root access or unlocked bootloader. S-Off is basically security off and allows unsigned zips to be flashed. With a S-OFF you can instal custom recovery like CWM or TWRP even if you are NOT rooted or even if you have a LOCKED bootloader.

Root happens once you have a locked bootloader. You may or may not have S-Off. Most work can be done if you are rooted. So you dont really need S-OFF. However, those who do not wanr "UNLOCKED" or "Tampered" bootloader written on top of their boot screen they should consider s-off rather than root. Root is basically access to system files and not certain partitions of your phone.

UNLOCKED bootloader allows you have root acces. But as we move on, this method will die and the flashign method of Hboot will rise. This guide can eb used by all the people who either have UNLOCKED Bootloader or LOCKED bootloader or Tampered.

Ok, I think that pretty much clears it. I have tried to answer issues that require a lot of searching here. One more basic thing that needs clearing.

There are two ways to flash recovery or updates if you are S-OFF. One way is to use the HTC DEV method to unlock bootloader and instal via "adb" and fastboot commands.

The second easier way is to use a "Locked" bootloader but S-OFF and No root method to instal ROMS and custom recovery bia "HBOOT" method.

For HBOOT method you need flashable ZIPS. To instal via fastboot requires IMG files. Benefit of this method is that you can do factory reset from the phone and phone will revert to its factory position. No need for doing ti from clockwork mod.

Now Over to the GUIDE. I AM NOT RESPONSIBLE FOR ANY DAMAGE DONE TO YOUR PHONE. IF YOU DONT UNDERSTAND ASK. IF YOU AR ENOT SURE AND DO NOT OWN YOUR OWN ACTIONS DONT TRY THIS.

Please read the whole thread. Reading one part wont help. Poeple with already unlocked bootloaders need to Relock bootloader first. I WILL NOT BE RESPONSIBLE.

Download the Stock 802w firmware RUU file from the following link http://d-h.st/aj4.

This will be a zip format. If you are on Windows, Rename the file as "PN07IMG". If you are on MAC rename the file as "PN07IMG". There is no need to add ".zip" since the downloaded file already has the extension of zip. Save this file in a folder on your PC named "Stock"

However, if after applying the procedure below, you get stuck at "verifying image" or "image not found" please remove the ".zip" exptension from the file. Just rename it. Do not UNZIP.

Download the drivers for your phone. You can google it. Its available easily for download. Even if your phone is recognized by your PC as storage device stil you need to download the drivers for effective adb push if required ever.

Link is : https://dl.dropboxusercontent.com/u/3372901/HTC_drivers_Win7_x64.zip

Unzip to a folder

On your PC goto device manager in the control panel or by right clicking on the my computer icon and selecting properties.

In the device manager, please see if your HTC is listed under android devices. If it is then you dont need drivers.

If however there is an item in the list mentioned UNKNOWN then you need to instal the dirvers provided herewith. These work for both Windows 8 and Windows 7.

These drivers have to be added in manually by selecting location of driver and browsing to that folder.

Once the drivers are installed. Proceed to the next step.

Download the 4.2.2 update to any folder of your PC. Link to Official 4.2.2 OTA update is

https://dl.dropboxusercontent.com/u/3372901/update.zip

Save this file and do not rename it.

Next proceed to download the "ZIP" version of CWM clockwork mod recovery for 802w. This is a special file and has to be like that. Special since it is custom to every version of HTC one. This is for HTC 802w.

Usual CWM recovery files are in IMG format. This one is in ZIP since we are bootloader locked. And we want to keep the botloader lcoked and stil flash recovery via HBOOT.

CWM recovery download page has an IMG for HTC ONE. This DOES NOT work with 802w Dual Sim. You have to use my version below.

For 802 t and 802 d, I can upload another version of CWM but for that Please download a small file called "CID" for google play store.

Run CID on your HTC One phone. and a list of values will appear. Carefullt jot down "cidnum" "mainversion" "bootloader" and "firmware" numbers. Please note this is the method you must use. I found out that using adb command to get all variants gives incorrect values.

My Zip version of CWM is:https://dl.dropboxusercontent.com/u/3372901/PN07IMG.zip

Please save this file in a different location form the previous stock RUU file you downloaded in the beginning of this thread. They both have same names. Hence store this file in a folder on your PC called "cwm". If you need recovery for 802t 802d please mention the values stated above and i can tweak the recovery file to work that way.

TWRP recovery for 802w I stil do not have. if any one has it I fill be willing to make a ZIP version.

Alright, Now off to flashing. Follow these steps CAREFULLY. Every word has a consequence. Please follow it as is. This works for all LOCKED AND UNLOCKED bootloaders with or without root. For LOCKED bootloaders you need to be s-off. Now first we got to know if you are S-off or not. To check this,

Restart your phone. Shut down doesnot work sometimes due to fastboot. SO restart your phone.

When your screen goes blank during the restart, immediately press the VOL DOWN KEY and the Power KEY simultaneously and keep them pressed down. Until the phone goes int a white colous Boot screen with text.

ON the top of the screen will be written : LOCKED or UNLOCKED or TAMPERED. and after that in the next line will be either "S-off" or "S-on"

If you are S-on you need to unlock your device via htc dev and there are tons of threads on it. So unlock your phone and then follow this guide below.

However, if you are S-off you dont need to do anything except follow the guide.

Now the flashing part.

Format your sd card from your phone. Thats the best way to avoid file errors. Just format it within the phone. The command should be in settings under storage.

Once the sd card is formatted, connect your phone to PC. Make sure USB debugging is on.

Copy the PN07IMG.zip file (size approx 870MB) that you downloaded in the folder named "stock" and paste it on the sd card. Do not create any folder on the SD card. Just copy the file to the root of the sd card.

Make sure the file you copied is on the root of sd card. Root fo sd card means when you open the card from your PC the file is right there and not inside any folder.

Also make sure that you copy the file and paste it to your sd card and you DO NOT "send the file to" sd card. Sending the file just creates shortcut and not the original file.

Recheck that the file name is "PN07IMG"

if all is good, then unplug your phone from your pc and reboot.

When you see the blank screen during restart press the VOL DOWN key and the power key simultaneously and keep pressing till the whote screen with text shows up.

Your phone will automatically start searchign for file named "PN07IMG" and will find it and start loading it. Stay calm and let it do what it wants.

If however, the screen shows an error like "IMG file not found" or file misisng and takes you back to the white screen with text on it and options like "Fastboot" and "recovery" etc… that means the file name is incorrect. Remember the file we need is PN07IMG in a zipped format.

A simple check for this is that the file should be zipped but there should be no ".zip" in the name. If thats the case you are good. But if you see the file zipped and also with a ".zip" in the name that means its named incorrectly. Correct file is "PN07IMG" and it should be zipped.

Do not zip the file yourself. The file in the link i provided is already zipped. Just rename it.

If however, your phone system detects the file and starts uploading it and later gives an error while verifying that means the file you downloaded is corrupt. Re download the file.

If however, all goes well, the system will autoflash your phone with the STOCK RUU file of 802w from China Unicom.

System will reboot. and then reboot again. and then finally you will see the welcome screen of HTC

You will be greeted in a chinese language. Just click on the sceen at the language and you can choose english US.

You can skip the settings and accounts and simply skip through to the homescreen of the phone.

Go into Apps. There is a app called "File Manager". run it

GOTO your esternal sd card from the phone and delete the PN07IMG file there. We dont need it any more.

Conenct your phoen via wifi or 3g. There is an app called htc marketplace in your appdrawer.

Run it. Swipe on the first two pages and you come to the main screen of the app.

in the search box above type "GMS" and click search

The apps listing will show "GMS" app and some words in chinese. click on that to download.

Let the download finish. Once the download finishes. Do NOT CLICK ON THE APP.

Remove you external sd card from the phone. Just remove it.

Now RUN the downloaded GMS app. Its in your app drawer.

Click ok in the dialogue that appears. OK is the right button option.

A file will start downloading. It will be of 150 MB approx. Let it download. Dont use the phone this time.

Once the file is downloaded click on it and you will be presented with the Dialer in the HTC phone. There is a code writen on the screen somethign like *#42*…… . Type the whole code as is int he phone and VOILA the phone will restart. If it doesnot, you typed the code incorrectly.

Phone will restart and again restart and then the phone boots into the normal mode but this time you have the Google Play store and all google accounts available wiht you.

Now put back the external sd card in your phone.

Connect yoiur phone to PC. Copy the file downloaded above called "update.zip" onto the root of the folder. Remember sd card should have no folder. THe file update has to be on the main root of the sd card.

Reboot your system and again hold the VOL down and Power key. Release the keys when the phone boots into whote screen with text.

The phone will try to search for an image which it will not find. Now it will present you with a menu stating " FastBoot" and "recovery" and few other options.

Select Recovery. Do this by pressing the VOL Down key once. and then to select press "Power key". dont press both keys together.

Your phoen will now boot into somehting with a red or grene triangle with exclamation mark or sync mark.

Carefully, press the VOL UP key and while pressing it press the Power key and release both.

The phone will now show options and one of them is "Instal zip from sd card"

If no options are shown, repeat the VOL UP and power key thing again.

Choose instal zip from sd card and choose the "update" file you copied to root of sd card.

The system will verify the image. If verification fails, the file downloaded was not correct or the name is not correct. If all goes well, the system will reboot twice and then you are back into your homescreen. Only this time you have the 4.2.2 update Stock.

Stil do not setup your phone. Reconnect it to your PC.

Copy the "PN07IMG" file that you downloaded in the folder named "cwm" on your pc to the root of your sd card. Please make sure the file is copied as is to the root of the sd card.

Reboot your phone and as always hold VOL down and POWER key. until you see the white screen.

Your phoen will autodetect the file and start flashing it. This the CWM recovery file.

System will reboot. and you will come back to your homescreen.

Download the "ROMCLEANER" file. Link is at the end of this post. All credits goto the team of ROM CLeaner. However, the 802w text file has been edited by me to make sure that HTC works and only the chinese bloatware is removed. The file is edited so that common problems like Smart dial not working after romcleaner flash do not occur.

Copy the ROMCLeaner zip file to the root of your sd card again. Also delete the PN07IMG file form your sd card. This is important.

Reboot. and again hold down the VOL DOWN and POWER key until you go into the white screen.

Now choose "Recovery" option by pressing VOl down and then selecting wiht power key.

You are now into Clockwork recovery. LOCKED BOOTLOADER NOT ROOTED. and stil in cwm recovery.!!!

choose flash zip from "external sd card" option and select the ROMCleaner zip file.

Just keep pressing next, or if touchscreen not working, use vol up key select and power key to choose NEXT. However, make sure in one of the options you choose "Sense"

In the last dialogue it asks for ROMCLEANER.. its the second option. Choose it.

Finish the task and your job is done. Chinese bloatware removed. Reboot phone.

You are now into your homescreen.

Setup your phone. If need be back it up with nandroid using your CWM recovery partition.

For those who have unlocked bootloaders and rooted. You may need to RELOCK your Bootloader before the flashing of the STOCK RUU ROM. Instructions to relock are easily available via google.

Cheers.

Link of customized ROMCleaner for 802w : https://dl.dropboxusercontent.com/u/3372901/ROM_Cleaner_v1.6_CWM.zip