yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M] amod_xmd:
Thanks for replying bro..!!

But my mobile is in warranty period, so i have to wait till june ;) after that i will unlock.. !!
[Sony Xperia M] Nicklas Van Dam:
Yap you're welcome bro:D
[Sony Xperia M] amod_xmd:
by the way do you know how to exclude an app from closing recent apps??
[Sony Xperia M] Nicklas Van Dam:
I dont know bro, but may be you can try screen pining feature on android 5.0 almost same like what you want it I think ;)
[Sony Xperia M] amod_xmd:
No bro..., let me explain,

suppose I'm listening songs with walkman running in background with all other apps,

when i press recent apps button there all apps are shown to me after that i press close all button all apps are closed with walkman, so i want to close all without walkman app.. :)
[Sony Xperia M] Nicklas Van Dam:
Hmmm I don't know about that bro, sometimes I want to do clear all app without walkman because when walkman clear too. Song directly stop right? I'm sorry bro I don't know about that still my mystery :D
[Sony Xperia M] amod_xmd:
Right..!! Its ok, mystery let be remain as it is :D
[Sony Xperia M] Remorcer:
If you are on stock, and are using xposed for that feature, IIRC modules such as Gravity box and XBlast have the feature to close all apps but the one currently open, so you could try that, since it's the closest to your goal
[Sony Xperia M] amod_xmd:
Thnx for suggestion bro...!!But suppose I'm listening songs and also chatting, hence if i close all walkman also closes, btw I'm using gravity box..
[Huawei Ascend Mate 2] medwatt:
Hello,

It seems that many of HAM2 users have the consumer cellular variant and are irked by several modifications done on the stock ROM that one gets when he buys the phone unlocked. Many of us, including myself, would like to flash the stock ROM if possible but maybe are not brave enough to try :o.

Someone uploaded several versions of different ROMS on https://drive.google.com/folderview?...0&usp=sharing. So, the question is can we flash any of these ROMS on our consumer cellular variant and if so, how ? I used to have a samsung galaxy young and flash different countries ROM using ODIN so many times that I can't remember how much. I tried that because it was confirmed to work. So, can the same be done on our HAM2 ?

Thanks.
[Huawei Ascend Mate 2] mtyler7807:
The problem with flashing oem firmware

The 126 firmware in that folder is the original firmware that came on the consumer cellular version. The problem with flashing the complete 148 firmware is inside udate.app file there is a file named oem_verlist.img. The is a partition in the root directory of the phone for that img file to be flashed. when you go to update with the 148 firmware that img file realizes that it does not match the phone that you are trying to flash to and bring up a error and fails. I have tried to fastboot that img file to its partition but it will not go. Maybe I am using the wrong parition name but with out updating that partition before trying to flash it will fail.
[Huawei Ascend Mate 2] medwatt:
When you say "update", do you mean clearing the OS and installing a new one from scratch ? Does that mean after the update all the consumer cellular additions will go away and there will be no trace of it ?

If updating seems difficult now for the consumer cellular versions, what will we do when they release Lollipop ?
[Huawei Ascend Mate 2] mtyler7807:
If they do not release a cc version then I would have to extract the OEM update.app file from the huawei site to all the IMG files and fastboot flash one at a time(force flash if you want to call it). Inside the update file there will be a system.IMG, data.IMG, cache.IMG,etc
[Huawei Ascend Mate 2] medwatt:
Assuming they release the CC version of lollipop, will there be any problem if some of the system files have been changed? For example, I've deleted some system apps that I never use and changed the boot- and flash-screen files. Will the update fail because of that ? I'm asking this because I saw a video made by one of the forum members here when he was trying to install the v148 update. He had to uninstall everything and return the system to default before updating. If that is so, then I guess no Lollipop (:crying::crying:) for me !!

Given that Lollipop is still some months away and the lack of any meaningful activity on the HAM2, why don't we prepare our HAM2 for who-knows-what. I'd like to get a grip on a my phone now instead of getting swamped by error messages when Lollipop gets released or we get custom firmware.

There's this thread [http://xdaforums.com/showthread.php?t=2315547] which explains how to extract the individual image files from the huawei update app.

Do you have the CC version of HAM2 ? If so, will you be trying to flash the image files because extracting the image files seem straight-forward ? I'm actually a bit nervous doing it myself because I've always flashed my other devices when it has been confirmed to work. What I'm wary of is I'm not sure that the device software in the v148 update app is 100% compatible with the CC variant that I own ! How can one be sure of that ?
[Huawei Ascend Mate 2] medwatt:
I've downloaded v148 update file and extracted the files you mentioned. Instead of taking screenshots of the contents of the image files, I've recorded a small video. I can see the boot.img and system.img but no recovery.img. There are also other files. Take a look at the video. The question now is what to do with these files and more importantly what are my chances of unbricking the phone if it bricks !!

[YOUTUBE]pRtEewqfJwc[/YOUTUBE]
[Huawei Ascend Mate 2] mtyler7807:
It will not fail because of boot animation and splash screen change. It will fail because of missing system apps. You would need to reinstall those if the package comes as a upgrade but if it is a full download then your OK.

Dealing with extracting the files from the update.app just search for my post, I have a complete instruction guide.
[Huawei Ascend Mate 2] medwatt:
Have you seen the video I uploaded ? Is it the "full download"? Can I flash it ? Will the phone brick ?
[Huawei Ascend Mate 2] medwatt:
I read your posts on the subject. But it seems you have changed some system apps and the camera is not working as it should. I have already downloaded the 148 file and extracted the system.img and boot.img files. Can I flash these or do I have to use the files you uploaded on google drive ?
[Huawei Ascend Mate 2] medwatt:
The question is why didn't you use the v148 stock ? I already have the v148 stock. Will it brick my phone if I flash the image files ? If not, why did you have to add extra files there such that the camera is 8MP instead of 13MP. Also, why is the hotspot always enabled ? Is that the case with people with the original stock ?
[Huawei Ascend Mate 2] medwatt:
Man, I'm still waiting for your reply !
[Huawei Ascend Mate 2] 290:
My understanding is it is possible to flash to stock if your bootloader is unlocked and have TWRP installed. Then its as simple as flashing a backup from a matching model with stock frimware. For whatever reason mtyler7807 is trying to reinvent the wheel.
[Huawei Ascend Mate 2] mtyler7807:
"For whatever reason mtyler7807 is trying to reinvent the wheel", Ha Ha. I spent about 2 weeks working on this phone when I first got it. With this phone it has more partitions than what is included in the backup with TWRP. TWRP is made for backup and restoring the files that get changed, the other partitions don't change. So when I first started experimenting with this phone I got a full 148 backup with no data and installed it. I had problems, the custom.bin points to a different cust/us/ folder (because it is for a different carrier) , I had to rename that folder and found I have no more 4glte only H/H+, So I had to get the original cust folder from the guy and copy it to the phone. Still and only H/H+. It was okay for then because I testing. Next Viewed my system specs and saw that pretty much half half phone was 148 and the other half was 132.

I have Redone my complete back since I posted the last one with google camera with 13mp support( rather have border transparency). I made a post asking people summit backups. You have to do a little research, did my research and got help from the forum guys. If you want 148 on your CC version you will have to extract the update and fastboot img files (ex.fastboot flash system system.img). The name of the file is the partition name.
[Huawei Ascend Mate 2] 290:
From my understanding twrp does a nand backup. Which is more like an image of nand. So restoring an image from a stock phone would also give you the stock partition table no?

It has been a while since ive played with android on such a low level. When it came time to update my HP Touchpad to JB i had to manually create the partition table manually to make it fit. Eventually a script was created that automatically made the changes to the file system. Perhaps a solution along those lines could be useful in getting the stuck firmware on the CC phones? The file system would only need to be created on initial flash to the stock firmware.
[Huawei Ascend Mate 2] medwatt:
mtyler7807, I've been trying to get an answer since I first created this thread. The only reason I want to install the original huawei stock instead of the cc version is because I want to be able to download and install updates just like regular stock huawei HAM2 users instead of waiting for the CC version. So, please can you answer these questions :

1. If I follow your steps and use the image files you uploaded, will I get rid of CC completely meaning will my phone be just like a stock HAM2 phone from Huawei ?

2. Can I install Huawei updates directly, instead of having to do what you did (extracting the image files and the rest of the process).

3. If the answers to the above questions is no and no, then whats the point of installing your images files (apart from getting the hotspot which I don't use) ?

Please answer these questions unambiguously so that I and others will get a clear understanding of the reasons to flash the image files you uploaded. In doing so, people will stop creating these threads asking boundless questions.

Thanks.
[Huawei Ascend Mate 2] 290:
Here is what k2thejx5 said after flashing a backup from a stock phone.
[Huawei Ascend Mate 2] mtyler7807:
-Do what I did makes your phone a complete oem, All that is need to be done is to flash a splash screen.

-How would I know if updates will work since 148 is the latest version for oem, can't test that tell lollipop.

-I'm not pushing anyone to install my image, I got about 30 pm's to post my recovery to enable hotspot and to get those toggles backup at the top. Alot of people messed up and lost them flashing that original twrp recovery under developer. Alot of others wanted the hotspot without the head ache of going through the research.

And for the people with problems with there phone that want 148 and updates with no problems, You should have brought a OEM and stayed away from sears or target or took it back to the store if you were not ready to take on the challenge of fabbing up your phone. Or just deal with the factory image and hope for lollipop.

---------- Post added at 02:14 PM ---------- Previous post was at 02:06 PM ----------

Me and k2thejx5 was trying to fix the problem with the twrp recovery originally posted on this site. That one is not mine. Read the post. That firmware took our toogles away. You have to read this forum a little more.
[Huawei Ascend Mate 2] medwatt:
Ok man, thanks for the reply. Two last question:

-For as long as you've been using your phone with your image files, have you been noticing problems like "unexpected crashes", trying to launch something and its unresponsive lie APN

-Is this the latest file you recommend : [https://drive.google.com/file/d/0BwnSk8BOQp3wV0JMWnJGc3RBTzQ/view]

Thanks.
[Huawei Ascend Mate 2] mtyler7807:
I have to make another one. I created a new one with epic browser and 360 deg rotation. And I added Camera JB+. Thats the best camera add out there to me, looks just like google 5 camera. I can post image of this new one. I'll Back up my phone and clear the cache and restore it with no data so none of my info will be saved that belongs to me. then i'll setup up the phone and back it up and post.
[Huawei Ascend Mate 2] medwatt:
All right then. Upload it when you're ready !
[Huawei Ascend Mate 2] medwatt:
mtyler7807, were you able to upload it ?
[Huawei Ascend Mate 2] Kostyan_nsk:
To change CC to OEM firmware completely, you have to perform the folowing steps:

Put full OEM firmware (UPDATE.APP) in /sdcard/dload folder. You should get /sdcard/dload/UPDATE.APP

Change content of your /data/custom.bin on value that is in oem phone.

Replace your oeminfo partition from oem phone. Make backup of yours necessarily.

Reboot in fastboot mode and flash via fastboot boot.img, cust.img, system.img, recovery.img. Extract these images from oem UPDATE.APP

Turn off device and switch it on by pressing vol+, vol-, power buttons simultaneously. Device will boot in recovery and start flashing oem firmware.

After this procedure you wil get completely OEM device which will recieve OEM OTA updates.

Root and unlocked bootloader required.

Backup all your personal data, it will be erased after flashing.

Ask for oeminfo partition and custom.bin file contents from someone with OEM deivce.

P.S. Do it at your own risk. If you'll do something wrong, you'll get bootloop.
[Huawei Ascend Mate 2] medwatt:
Have you tried it ?
[Huawei Ascend Mate 2] Kostyan_nsk:
Yes, I have converted my Ascend P6S from unicom/cn to hw/ru and then reverted back again successfully by this method.

P.S. I corrected my previous post: in fourth step there's only need recovery.img from OEM firmware.
[Huawei Ascend Mate 2] medwatt:
The problem is I usually follow exact tutorials about installing custom roms, flashing etc . . . This (your method) is too inexact and risk-prone for me to try. I'm no Linux or command line guru so unless there's a complete guide, I guess I wouldn't be brave enough to try. Also, must all system apps have to be present in order to use your method because update process might return an error saying something like "your system has been modified"?
[Huawei Ascend Mate 2] Kostyan_nsk:
Ok, I will try to write exact, step-by-step.

Instruction:

Download firmware for oem phone.

Put it in your /sdcard folder, you should get /sdcard/dload/UPDATE.APP. Filename should be in uppercase, it's important.

With this tool extract from oem firmware recovery image recovery.img

Save it in your ADB folder.

Check where your oeminfo partition is located. Go to /dev/block/platform/<device>.

<device> - is some folder. In my case it's "hi_mci.0", probably you have the same, but check this out. Go to this folder, inside of him there should be another one called "by-name" and in this folder you should find oeminfo.

So the full path to your oeminfo partition should looks like /dev/block/platform/<device>/by-name/oeminfo

Here and further replace <device> with your folder.

Connect your device to PC and backup your oeminfo partition with these commands:

adb shell su -c "dd if=/dev/block/platform/<device>/by-name/oeminfo of=/sdcard/oeminfo"
adb pull /sdcard/oeminfo oeminfo
adb rm -f /sdcard/oeminfo

Execute them from ADB folder. It's three commands, run them separately. Don't forget to replace <device> with your existing folder.

Now you should get oeminfo file in ADB folder with size of 33554432 bytes. Check it, if OK, then save it somewhere else.

Put in ADB folder oeminfo file from oem phone and execute these commands:

adb push oeminfo /sdcard/oeminfo
adb shell su -c "dd if=/sdcard/oeminfo of=/dev/block/platform/<device>/by-name/oeminfo"
adb rm -f /sdcard/oeminfo

Don't forget to replace <device> with your existing folder.

Replace your /data/custom.bin file contents with what is in oem phone. I suppose, it's gonna be something like "hw/us". Ask for contents from oem phone owners.

May be this step is excessive, but better accomplish.

Reboot in fastboot mode by this command:

adb reboot-bootloader

Flash recovery image saved in step #3 by this command:

fastboot flash recovery recovery.img

Turn off device by long pressing power button.

Switch it on by 3 buttons method, press power, vol+, vol- buttons simultaneously. If previous steps were accomplished right, will be run update process with OK result.

Requirements:

Unlocked bootloader

Root access

USB debug mode on

___________________________________________________________________________

Ask somebody with oem phone for oeminfo partition, they can get it as described in step #5. May be someone will upload it in this thread.

If something is not clear for you in actual instruction, you better don't try to do it.

No, it's not mandatory. In three buttons method update checks only your actual firmware version (that's why we replace recovery image) and is new update for actual device or not (that's why we replace oeminfo partition converting your device to OEM).

I was on custom B606 EMUI 3.0 firmware with root, deleted chinesse apps, etc and successfully flashed to B107 EMUI 2.3 russian firmware.

P.S. I'm not responsible if you damage your phone.

P.P.S Sorry for my poor english, I hope you understood everything right what I mean.
[Huawei Ascend Mate 2] mohlsen8:
Does anyone have a custom.bin from an unlocked US phone?

Has anyone tried this method? Seems straightforward as long as we have that piece.
[Huawei Ascend Mate 2] medwatt:
If you have been reading this thread, you would have found updates at https://drive.google.com/folderview?id=0B7lyht1oiGRRNEl4dlJhdVhnQ00&usp=sharing. v148 is the latest as far as I know. Let's see what you can do!
[Huawei Ascend Mate 2] afbcamaro:
Yeah i just saw that minutes before you posted it. I am downloading it now. Just got the consumer cellular version an hour ago and had five threads open and reading all of them at the same time. LOL. It will take a while to download. I hope they are legitimate. If they are and i will try to extract the stock recovery image from them. Will take to long i will start tomorow on it after download. If somebody is further along than me please let me know. or if you have information.. ex double check img and file sizes before i break my phone testing this.

Has anybody pulled the oeminfo from the non consumer cellular version.. Just wanted to compare size. I got 67,108,864.. custom.bin is a text file that says: normal/us.. I will pull the consumer cellular versions as well just in case.

---------- Post added at 04:08 AM ---------- Previous post was at 03:59 AM ----------

Wait then, everything is here then. And Nobody has tried it?!? :eek:
[Huawei Ascend Mate 2] afbcamaro:
Weeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

FULL CONSUMER CELLULAR OEM USA Unlocked Ascend Mate2..................................... Weeeeee. Going to bed now but if someone needs help ill walk you though it. It was fun. :D

DAAAAMN IT.... I LOST MY IMEI. EVERYTHING LOOKED GREAT until i saw that the imei is 0. does anyone have a hint.
[Huawei Ascend Mate 2] medwatt:
Do you know what you're doing or you're just following the steps from earlier posts because if that's you might brick your phone because the steps presented by Kostyan_nsk is for another Huawei phone and no one here is willing to test or has tested it including me. They say the oeminfo file contains sensitive info so no one is willing to share the file which is understandable.
[Huawei Ascend Mate 2] afbcamaro:
I got that I made a backup of the consumer cell oeminfo so hopefully i can revert with it.. meh

Was in a rush and forgot to backup imei...damn it
[Huawei Ascend Mate 2] medwatt:
Have you converted your phone now to a full OEM HAM2 V148 ? Is everything working with the exception of your IMEI ?
[Huawei Ascend Mate 2] afbcamaro:
Nobody move foward with this. If you dont know what you are doing you WILL hurt your phone. I recovered my imei but must confirm a IMEI backup method before its ok to use. I think now i understand how huawei is doing this, it is actually ingenious it more than just a block partition with imei etc. Will figure safe route shortly i believe.

medwatt, yes the phone did convert over to FULL oem v148, with everything working.. There was NO difference. (I have both the OEM phone and the consumer cellular with me) with exeption of imei. If it wasnt that i had been awake for 28 hours straight i would have remembered this from my last huawei..
[Huawei Ascend Mate 2] medwatt:
Please explain what you meant by " huawei is doing this, it is actually ingenious". What surprised you ?
[Huawei Ascend Mate 2] Kostyan_nsk:
afbcamaro, I don't get how did you loose your IMEI? It's not in OEMInfo partition, it wouldn't be affected anyhow. Have you did anything else except my instruction?
[Huawei Ascend Mate 2] afbcamaro:
The OEMinfo partion is 67MB.... around anyways. ... One the full image flashed it was perfect. All partitions. except that the IMEI was 0. Nothing was added or removed from what you wrote execpt i backed up the consumer cellular oeminfo and consumer.bin . I had a nandroid of the consumer cellular and recovered. It is not a 100 consumer cellular since the 2nd boot logo animation changed to android. Clearly TWRP doesnt back up everything but we already knew that.

I hope somebody looks at this as well since it is my wifes phone and she could get upset at the down time LOL. Ill try taking it away from her again, soon
[Huawei Ascend Mate 2] Kostyan_nsk:
My english is poor enough, so shortly: after you flashed OEM firmware your IMEI became 0, you have restored TWRP backup, but left oeminfo from oem device. Did I understand you right?

If so, then it means that Huawei has made the other encryption key for US consumers and the file containing IMEI can't be decrypted, that's why your IMEI became zero.

I suppose the difference is in some binary that contains key and decrypts imei file.

Can you compare md5-hash of '/system/bin/nvm_server' file from oem and consumer device?
[Huawei Ascend Mate 2] afbcamaro:
after OEM firmware imei became zero. so i flashed the original consumer cellular oeminfo. TWRP recovery and recovered from twrp backup (Consumer Cellular backup).. the os looks like stock android now and doesnt have some of huawei elements.. so something happened

also if you just use a nandroid recovery from oem on consumer cellular when stock it bootloops..

---------- Post added at 07:56 AM ---------- Previous post was at 07:49 AM ----------

Does anybody have the consumer cellulars update.app?
[Huawei Ascend Mate 2] Kostyan_nsk:
Check your custom.bin file content. It should correspond to your /cust directory.

Sad that you reverted back immediatly so we can't figure out where the key for IMEI is in oeminfo or in some binary of firmware.
[Huawei Ascend Mate 2] afbcamaro:
Well unless i can get the Consumer Cellulars original UPDATE.APP. it looks like something did not come back properly. possibly the cust dir..

I can go back if you can help me out a bit here. I have my imei back do you want me to do something before i take it back to the oem rom

---------- Post added at 08:27 AM ---------- Previous post was at 08:21 AM ----------

Im going back to oem and doing it again. since the phone to me is useless at the moment without factory CC update.
[Huawei Ascend Mate 2] Kostyan_nsk:
Firstly copy '/system/bin/nvm_server' file from consumer and calculate its md5-hash. Then go to oem and compare it with oem binary. If it differs, then replace it in twrp file manager to binary from your consumer. If files are identical or imei wouldn't restore after replacing binary, then try to restore in twrp boot partition - maybe it's in 'oeminfo_nvm_server' that is in ramdisk of boot image.

You have to use recovery from firmware you are trying to flash.
[Huawei Ascend Mate 2] afbcamaro:
still in consumer cellular version "system/bin/nvm_server" file is not found... did however find "oeminfo_server" in system/bin
[Huawei Ascend Mate 2] Kostyan_nsk:
Is there also oeminfo_nvm_server in /sbin directory?
[Huawei Ascend Mate 2] afbcamaro:
ignore what i wrote i am sleep deprived and not thinking right. Taking a nap