yashsingh1/xdaforums huggingface dataset:
[Huawei Mate 10  Guides, News, & Discussion] curtricias:
My P20 is unbricked!!

Thnx to help of a great man [MENTION=2247733]ante0[/MENTION] .

After trying around and around and.......... this was my solution.

Downloaded dload firmware from androidhost.ru (8.1.0.165 C432)

Extracted update.zip + update.zip (customisation file).

Flashed bootloader with test point. Flashed oeminfo (modified by [MENTION=2247733]ante0[/MENTION] to C432).

Put phone in upgrade mode.

Load files in in dc Phoenix

Installed files. Everyting went well execpt i had a error at the end of the installation of the first update.zip. 2 files were'nt installed (odm and product).

Installation went further without problems.

After reboot entered recovery and did factory reset.

Factory reset aborted at about 40 %....

Reboot ...... to erecovery......

Booted the phone to bootloader.

Flashed manually extracted ODM.img an PRODUCT.img.

Did factory reset 100%!

Reboot ...... ->>>> system!!!!!!

After complete setup automatic OTA update's recieved.

Now on 9.0.0.197

I want to thank the makers of DCPhoenix! Thank you for your great program. Without this and the help of [MENTION=2247733]ante0[/MENTION] this would never had an succesfull end!
[Huawei Mate 10  Guides, News, & Discussion] ante0:
Adding to this, keep a backup of your oeminfo. Just in case. If your phone has board firmware it's no problem as you can use HCU from board to get an unlock code. If you have no board and only Huaweis unlock code, keep a backup of oeminfo.
[Huawei Mate 10  Guides, News, & Discussion] QuazIqbal:
I'm glad to know you have successfully unbricked. Is your bootloader unlocked? Is the old bootloader unlock code working after the brick?
[Huawei Mate 10  Guides, News, & Discussion] curtricias:
I followed a tutorial on DC Phoenix. That tutorial started with a flash of oeminfo. But stupid me choosed a oeminfo from the Phoenix server. That changed my imei's.... so my bootloader code is useless now ?....
[Huawei Mate 10  Guides, News, & Discussion] QuazIqbal:
We both did the same mistake...

I have an idea, I would like to confirm that suppose if I flash somebody's oeminfo img of same model and same build, then it will change my imeis too, right? So in that case will the bootloader unlock code of that person will also work on mine? And after unlocking bl I can flash my modified oeminfo again and remain unlocked?
[Huawei Mate 10  Guides, News, & Discussion] revjamescarver:
Kernel

It's not that Huawei "disabled" the ability to use a custom kernel, the Kernel for Pie is different than the kernel for Oreo which makes it unbootable. Since Huawei hasn't released their current kernel sources as of yet who knows when any custom kernels will be developed
[Huawei Mate 10  Guides, News, & Discussion] ante0:
Uh. On C432B161 kernel was fine. I used COL Pie source. On B179 it doesn't get past "Your phone has been unlocked" screen.

So they did something. Configs aren't different either (apart from signing keys).
[Huawei Mate 10  Guides, News, & Discussion] curtricias:
In theory that should work ?
[Huawei Mate 10  Guides, News, & Discussion] ante0:
It will not.

OEMINFO contains IMEI/IMEI2 and MEID.

BUT it also contains some check values or something, on offset 0001B302, 0201B302 and 02062220. (This from my oeminfo after using HCU)

This value is changed from it's original value to "DC-UNLOC" when you use HCU to read bootloader code. So that value is most likely used when it calculates bootloader code.

It will use IMEI, that value and Serial. Serial is not part of OEMINFO. So even if use someone elses oeminfo and their code it will not work due to Serial being different on your device.

And even changing someone elses oeminfo to match your IMEI/IMEI2 and MEID, it will not work due to the check value.
[Huawei Mate 10  Guides, News, & Discussion] freeza:
Can confirm this
[Huawei Mate 10  Guides, News, & Discussion] brilljohn:
Hi,

What is the cause to all those downgrade-bricks in huawei?

I thought it is an xloader version problem, but now I am starting to understand that maybe it's not only that?

I would like to downgrade my P20 Pro (CLT-L29) from 9.0.0.195 to Oreo, but don't want to hard-brick my device.

Any explanation (or maybe solution to my situation?) would be very appreciated.

thanks!
[Huawei Mate 10  Guides, News, & Discussion] Pretoriano80:
For the Mate 10 Pro it was a certain combo that triggered that kind of brick while downgrading from latest EMUI 9 firmware (latest but unapproved, to be precise).

Initially on Mate 10 Pro we had roll-back firmwares, B150 and B157.Later, after this bricking issue was discovered, a new roll-back firmware was added.

So our findings (mostly tested by ante0 ) observed these patterns on Mate 10 Pro :

- Downgrading from B161 ( EMUI 9) to "old" B150 or B157 (both EMUI8.0) roll-back firmwares was successful.

- Downgrading from B197 (at the time unapproved EMUI 9 firmware) to either B150 or B157 (EMUI8.0) caused bricking.

-Downgrading from B161 or B197 (both EMUI 9) to B157 (latest and newest EMUI8.0 firmware) was successful.

Most people used the no_check recovery, but i saw reports from people with locked bootloader, that also bricked after using HiSuite roll-back option.

So considering that and the fact that Huawei added a new roll-back which does not cause bricks (at least on Mate 10 Pro), we can only assume that some changes Huawei did on firmwares from B179 and up are the culprit for those bricks.

The bricks are different from what we saw with the xloader02 situation, but under certain circumstances i would prefer an xloader02 brick, even if i hope that none will ever happen ?

P. S. No matter the cause, with Huawei this is how it works, early adopters might face a brick anytime.

P. S. 2 : Regarding P20Pro, a friend bricked his unit when downgrading from B163 to latest roll-back Oreo firmware available at that time (it was from 21/01/2019 if i remember correctly). And that, according to the tests made on Mate 10 Pro it shouldn't happen, but it did.
[Huawei Mate 10  Guides, News, & Discussion] brilljohn:
Thank you for this explanation:)

So, the behaviour is as follow:

- Huawei releases a roll-back firmware

- This firmware cause bricks when downgrading

- Huawei releases a new, working, roll-back firmware with the same version

Regarding P20 PRO:

I see here:

https://pro-teammt.ru/firmware-database/?firmware_model=CLT-L29C432&firmware_page=0/

That after the releasing of 9.0.0.195 (11.1.19) Huawei published a roll-back version CLT-L29C432B161. (21.1.19). Than, they released a new roll-back firmware in the same version CLT-L29C432B161 (24.1.19).

Maybe this new version was released to fix the roll-back from 21.1.19?
[Huawei Mate 10  Guides, News, & Discussion] Pretoriano80:
Maybe, but there's only one way to test! [emoji16]
[Huawei Mate 10  Guides, News, & Discussion] brilljohn:
IF it fails, the only way to get it alive is using DC-PH solutions? If i backup my OEMInfo partition, I can keep my bootloader unlock code working?

Another question: In CLT-L29C432B161 changelog it says that this is for version CLT-L09, why is that?:confused:

http://update.hicloud.com:8180/TDS/data/files/p3/s15/G2943/g1604/v219788/f1/full/changelog.xml
[Huawei Mate 10  Guides, News, & Discussion] Pretoriano80:
Use Partitions Backup and backup nvme and modems too.

Yes, you will need DC to revive it, so having backups it's a big plus.
[Huawei Mate 10  Guides, News, & Discussion] yavuzgurkan:
I am very sad i brick my phone today pc say phone in fastboot mode but i dont saw anything on my phone just black screen

tomorrow i sent my phone to technical service if they give me high repair fee i will try to testpoint method

sorry for my bad english
[Huawei Mate 10  Guides, News, & Discussion] drmxmyt:
i had the same issue and thanks to [MENTION=2247733]ante0[/MENTION] my phone is back, here i will tell what steps i did for recovering my device;

i opened my phone's back and unscrewd the 8 screw, then take out the black foil and black plastic cover thingy,

you will need the 19euro dc unlocker + limited time hcu licence, then open the dc and take a look at the test point picture, shorted the test point and metal shield, but didnt work, only thing that worked is unplug the battery and usb cable, then while shorting tp, plug the usb and my device showed as "usb ser" finally but still dont plug the battery yet

then used this driver and had to disable driver signatures from a bcd command on windows since other driver didnt work (on windows 7 64bit) http://www.mediafire.com/file/ob6ii95ybktzb5n/HUAWEI_USB_COM_1.0_driver.zip

then it showed huawei usb com 1,0 finally

then opened the dc, loaded update.app, also extras,app(from update_all_hw) used EML-L29 8.1.0.168(C432) from firmware finder

then go to oeminfo tab, checked use bootlaoder, uncheck oeminfo, then the loaded the kirin970 bootloader (only the last one from the list worked) and while flashing it plugged the battery connection, otherwise it showed an error if battery alreaddy connected,

then go to first tab and flash the update.app, it finished without any error, flashed all partitions. but showed something about extras.app didnt flashed and i need to put it upgrade mode again, but i didnt proceed any further.

then fastboot reboot command opened my device and it went to erecovery. first light on the screen!!

tried to factory reset, opened recovery but it showed an error. tried to flashing twrp but touchscreen wasnt woking (like on pie)

then used downy and its script to flash EML-L29 8.1.0.168(C432) (all 3 zips, update.zip, update_all_hw.zip, update_data_public.zip)

it automaticly flashed twrp, send the firmware, flashed nocheck recovery and proceed to recovery and finished without any error, and finally my phone survived!!

thank you guys, i couldnt do it without your help.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] AlexXYX:
flashlight from the curtain - it turns on after 5-6 seconds after pressing, and turns off immediately - but the tile goes out after 5 seconds, press the button every time, then hold it for 1-2 seconds, it does not turn off

upd: after reboot passed, after the second reboot again with glitches.

the phone is unlocked the second time (with the second click) with the button

upd: if you unblock it - and immediately block it, then only from the second press you can unblock it again, and once - then immediately, then you must press twice

The voice in the BT-ears is not going, the BT icon on the dialer screen shows the BT icon, and the voice goes to the speaker of the phone.

Google search in the dock can not be removed in any way
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zasnizas:
Downloading... Thank you very much dev
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] dungphp:
You are must learn from Nijel8 how to build hydrokium. Haha Good job and when to make it to office ?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jambrong2:
what is the difference of havoc by Dungphp with havoc by AlexandraV?

Thank you for both of you.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] AlexandraV:
Thanks. Soon will going office. Test this already?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] AlexandraV:
Source. Or you may found different bug
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jambrong2:
First boot the camera can't connect, after wipe dalvik, cache the camera runs normally. First toggle from the back camera to the front camera cannot be connected, next load has been running normally again. Double tap to wake work normally.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] AlexandraV:
Good to hear that. Will fix something on next Update.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jambrong2:
Dev, WA can send/receive message, can connect to google play but web browser can't connect to the web (xda & google). Now back to aospx.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] AlexandraV:
Did you flash gapps?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jambrong2:
Yes, I flashed pico
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] AlexandraV:
Use Nano and latest firmware
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] AlexandraV:
It's now going Official. Update link on main thread. Thanks ?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] raikko5:
good move..... :D
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] AlexandraV:
Thanks for your support ?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mirrr46:
Nice, thanks.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pawar21:
Developer please add kcal display control under device specific features

Overall a wonderful rom thanks for your wonderful effort
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] JulianJenner:
Congratulations on your work becoming official! I hope we can enjoy your products for a long time! Thanks in advance!

小米MIX标准版4GB128GB银色MIUI10中国开发者9.1.16
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zasnizas:
congratulations :good:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nayaktuhin:
Thanks a lot for the update! :E
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] tonde4jc:
Can you share link of gcam thats working on yours. I have helium.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] enyx.es:
https://www.celsoazevedo.com/files/android/google-camera/dev-suggested/#apk195

Working on hydrogen, should work for helium also.

Also thanks dev for the updating

Enviado desde mi Redmi 5 Plus mediante Tapatalk
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jambrong2:
can anyone tell me where the "pocket detection" setting is located?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] p..OkS..n:
Settings - Ambient Display - Ambient options - Pocket

or

Search in settings "Pocket" if you want to find another option
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mayank88288:
thanks for the rom!

i am using it and i have found wired bug

bluetooth call is not working

audio routing of call in bluetooth just dead, always calls played in earpieces only also can not switch to speakerphone too,

however everything is so good!
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pranavaryans:
Which version?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] tekpun:
I like this rom but every custom rom for mi max that i try all of them booted without camera in some rom no browsers either camera option is in the gallery but when i try to open camera its crash i can see the camera app is installed but can't find it in home screen or in apo drawer i have checked all of the pie rom but no luck on camera however camera is working linage os and stock rom but i like havoc os most . It seems everyone else camera is working only i have problem with camera can anybody help me to get thru this
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Cocoyg:
Experienced this too. What I did is just uninstall it then install a different camera app. Just install your preferred browser too.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] tekpun:
Same thing happened to the other camera app or moded camera too
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Kuronopro:
I also experienced this. What I do is install latest miui global developer via fastboot, ubl, install twrp, then install havoc os. Camera working normally now.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] tonriel:
camara

porfavor que version exactamente de camara usas?

porque instalo algunas versiones de la camara google del link que pasaste y me fallan todas :'(

ayudame porfavor
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pranavaryans:
Wow!
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ZainBilq:
Translation for his message:

Please what exactly camera version do you use?

because I install some versions of the google camera of the link that you passed and all fail me: '(

please help me
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] tekpun:
Actually what is ubl ? Bootloader ?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nayaktuhin:
Format Data under Wipe in TWRP.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zasnizas:
search for that one, gcam pixel3mod_1.1 build 6.10.13 apk, it worked flawlessly on my hydrogen, hope it's will work on yours too, good luck
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] tl90:
fsync off and f2fs optimization

Could you please add a fsync on/off toggle into the kernel because turning off the fsync can increase much perfomance of I/O especially on random rd/wr.And I'm using f2fs on /data and /cache ,it can lift the data safety while the fsync is turned off.

But in the same time,I find that the random read/write speed(about 20m/s,f2fs,fsync on) is about 1/3 slower than that on los14.1 by nijel8(about 30m/s,also use f2fs,fsync on) tested by AndroBench.It seems that this pie kernel supports f2fs not so well.Wish a good f2fs optimization can be added to the pie kernel~As I know arter97 has down much on f2fs optimization on android:cowboy:.

Sorry for my poor English and Thanks for making such a excellent pie rom for old mi max.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] tekpun:
Yes i do always when flashing new rom camera is working after miui fastboot install then recovery then havoc os but after i set my device and all the my app and reboot it again camera is not working its may be magisk root is the case for camera not working can anybody confirm root
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] dungphp:
Use pico or nano gapps only !
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] tekpun:
Used pico booted up camera is working restored my contact only using gmail thinking may be apps are causing trouble finished restore open camera it's working then I rebooted devise voila camera is gone again so I copy crash log url paste it here https://del.dog/yagonewihu hope somebody gonna help me
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] dungphp:
restored by what ?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] tekpun:
copy my data thru gmail in the beginning of the start
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] dungphp:
You test NO copy anythings from gmail then reboot somwtime and check camera ? if still cause camera then report here
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] kins299:
Even I had the same problem if I install magisk. Then I wiped data , cache n dalvik . rebooted. Again dirty flashed the ROM. This time without magisk. Installed gcam. Working flawless with night sight. I am not sure . may be problem because of magisk in first time install.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] tekpun:
this time i didnot install magisk root and still camera didn't work either always fist boot camera working if i reboot the device again camera is not working after that what ever rom i do install no camera on all rom except linage os and did you install gcam thru play store or moded one in mine no any camera from app store and moded camera are working after second boot of the rom
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] tekpun:
install the rom setup without my gmail open camera it's working and rebooted the device again camera is not working :(
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] dungphp:
Need some one confirm
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] migside:
I don't understand what the people have problem with the camera on this room everything works fine please don't bug reports unnecessary I am getting confused ? so here 2 difference Kamera from HavocOS and Google Mod camera both working well!
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zasnizas:
yes I agree with you, stock camera and Gcam works flawlessly no problem at all.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] tekpun:
its good that camera is working for you i have been in trouble getting camera to work that is why i am questioning here so don't be confuse. if it is working for you can you help me the rom flashing procedure that you follow if you don't mind ? mine is not working first boot camera working if i reboot the phone again camera is not working
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] kins299:
Try restarting your device and kindly let us know still camera both stock and gcam works. If it works after reboot. We are happy for you. Also people won't bug the thread if they don't have any problem and shares those here , so that some one can help them to solve those problems in their device.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] migside:
Also my phone is Helium and camera work good even a lot of time restarted the phone...

Here's the GCamera does work on this rom

https://yadi.sk/d/UWYp7v-J15eP_g

After installing don't start directly! First give all permission for the camera ? and also allows thst camera can change system
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] migside:
Here the permission setting
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] tekpun:
migside confirm camera is working on his helium but mine is hydrogen debice can any one with hydrogen device confirm that camera is working for them ?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] medozse7s:
Are this rom. Support Xposed ?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zasnizas:
Mine is hydrogen and both cameras, the stock camera and Gcam are work very well no problem at all. I don't know what wrong with your device, hope someone can help you with this problem
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] iam2luckyy:
Extreme heating issues with this rom!!!
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] kins299:
Hi thanks for this excellent ROM. Everything is working fine except camera. I tried Stock camera, gcam. Gave all necessary permission to camera.Re installed the ROM using clean flash,flashed mimax firmware. Still facing same issue. Camera force closes . kindly help me to fix this. I really like to use this Rom
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] enyx.es:
Have you tested gcam from few pages below?

Enviado desde mi ONEPLUS A6000 mediante Tapatalk
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] kins299:
Yes I tested it
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] jerrygoh389:
I think you missed your steps. Follow the guideline and flash latest firmware before you start flashing rom
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] tekpun:
Followed guidelines correctly i already mentioned that i did fastboot flash latest miui build and then twrp recovery then clean wipe dalvic cache system data internal storage then flashed rom once the rom is booted camera seems working but if i do reboot my device camera crash if i flash any rom after that all of the rom booted without camera except linage os however from gallery i can open camera but not working. I have to go all the way to beginning to first steps for camera to works .
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] kins299:
Finally I managed to fix this mysterious issue . Here are the steps I followed

1. Wipe systen,Data, Dalvik,art

2.Wipe internal SD ,remove encryption

3.flashed latest stock miui10 developer ROM

4.Wipe Data,dalvik,art

5. Booted to miui

6. Rebooted fastboot

7.flashed twrp

8. Wipe System,Data, dalvik,art

9. Flashed havoc,gapps nano arm64

10. Wipe Cache,art

11. Booted to havoc and tested default camera

12. Installed gcam and tested

13. Rebooted

14. Tested Stock and gcam and found to be working good.

15. Rebooted around 5 times to reconfirm its working good.

Observation: while flashing custom ROM from miui10, storage gets auto encrypted in most cases. Due to encryption camera can't access storage and creating issues like force close and partial install.

Hope this fix may work for you. All the best
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] dungphp:
Thank for your hardwork ! Hope others can fix this problem :good: