{"id":1907,"date":"2018-11-18T14:54:04","date_gmt":"2018-11-18T13:54:04","guid":{"rendered":"http:\/\/labalec.fr\/erwan\/?p=1907"},"modified":"2019-03-10T21:35:11","modified_gmt":"2019-03-10T20:35:11","slug":"xiaomi-adventures-episode-2","status":"publish","type":"post","link":"https:\/\/labalec.fr\/erwan\/?p=1907","title":{"rendered":"Xiaomi adventures, episode 2"},"content":{"rendered":"<p>2 years ago for Christmas, I bought a Xiaomi Mi4c android phone.<br \/>\nCheap (about 130\u20ac), well performing (Snapdragon 808, quad core, etc), well designed (looks like new 2 years later), etc.<br \/>\nBut as most chinese phones, you are \u00ab\u00a0on your own\u00a0\u00bb and the OS may not be the one you want : see a previous article <a href=\"https:\/\/labalec.fr\/erwan\/?p=1709\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n<p>Now, lately my son reported that the phone had stopped working all of sudden (a month after changing the battery) : not booting or powering up anymore, a led blinking red.<br \/>\nI first thouht the issue was the battery, left it charged for 2 days but still no luck.<\/p>\n<p>I removed the battery, plug it to USB : this time phone was powering up but ended up in a \u00ab\u00a0boot loop\u00a0\u00bb i.e the Mi logo appearing, then black screen, then mi logo again, etc.<br \/>\nAnd still no FASTBOOT, or RECOVERY.<\/p>\n<p>I therefore decided to apply the \u00ab\u00a0test point\u00a0\u00bb trick : connecting two points on the motherboard.<br \/>\nThis time, the phone went into <strong>EDL<\/strong> mode (emergency download load) which mean I could flash it.<br \/>\nI first then used miflash to flash an old fastboot MIUI 6.1.7 image (old=no locked bootloader) but still no luck : no FASTBOOT or RECOVERY, and still \u00ab\u00a0boot loop\u00a0\u00bb&#8230;<br \/>\nI then used QFIL (Qualcomm Flash Image Loader 2.0.1.7) to flash the old fastboot image again.<br \/>\nI was still getting a \u00ab\u00a0boot loop\u00a0\u00bb BUT this time could get into <strong>FASTBOOT<\/strong> ! (not sure why miflash did not work the first time).<br \/>\nI was getting some progress and hope at this time as I was slowly getting some phone features back.<\/p>\n<p>I then flashed an early TWRP (since i was using an old rom) but still no luck : no RECOVERY.<br \/>\nI then decided to test booting with old (but truly original) battery and to my (good) surprise : i could get into <strong>RECOVERY<\/strong> and even boot to the O.S !<br \/>\nThat would mean that my Xiaomi Mi4c will not enter recovery or boot the O.S without a (good) battery ?<br \/>\nAt this stage I then decided to flash a fresh Xiaomi.eu MIUI recovery rom (10.x) and to flash a newer compatible TWRP (for android 7.x nougat).<\/p>\n<p>And here I come with a revived \/ debricked phone! (and a second new battery to buy in a month time&#8230;).<\/p>\n<p>Conclusion !?<br \/>\nI believe the so called \u00ab\u00a0original \/ MI branded\u00a0\u00bb batteries you can find out there (ebay, etc) are crap copies (I am not even sure Xiaomi actually sells batteries?).<br \/>\nAnd that new battery actually messed up the phone (the storage part) up to a point that I no longer had a proper bootloader.<br \/>\nThe (second) new battery I bought this time is from \u00ab\u00a0green cell\u00a0\u00bb which seems to be a leggit brand out there who cares about its reputation : lets see how it goes&#8230; (i believe \u00ab\u00a0nohon\u00a0\u00bb and\/or \u00ab\u00a0pisen\u00a0\u00bb brand batteries are also a good alternative).<\/p>\n<p>Some useful commands :<br \/>\n&#8211;<em>fastboot oem edl<\/em> to leave fastboot and enter edl<br \/>\n&#8211;<em>fastboot oem device-info<\/em> to check that your phone bootloader is not locked (preventing further image flash)<br \/>\n&#8211;<em>fastboot oem unlock<\/em> to unlock your phone<br \/>\n&#8211;<em>fastboot reboot<\/em> to reboot to the OS<br \/>\n&#8211;<em>fastboot flash recovery recovery.img<\/em> to flash a recovery<br \/>\n&#8211;<em>fastboot boot recovery.img<\/em> to boot to a recovery<br \/>\n&#8211;<em>adb reboot bootloader<\/em> to boot to fastboot (from the O.S or recovery)<br \/>\n&#8211;<em>adb reboot recovery<\/em> to boot to recovery (from the O.S or recovery)<br \/>\n&#8211;<em>adb reboot<\/em> to reboot to the OS (from the O.S or recovery)<\/p>\n<p>Some usefull links to understand a bit more the android phone boot process :<br \/>\n&#8211;<a href=\"https:\/\/community.nxp.com\/docs\/DOC-102546\" target=\"_blank\" rel=\"noopener\">https:\/\/community.nxp.com\/docs\/DOC-102546<\/a><br \/>\n&#8211;<a href=\"https:\/\/elinux.org\/Android_Booting\" target=\"_blank\" rel=\"noopener\">https:\/\/elinux.org\/Android_Booting<\/a><br \/>\nReading the above, it appears I was initially not making it to the bootloader (first stage) as this is the bootloader which is handling key presses and eventually taking you into fastboot or recovery.<\/p>\n<p>Side note : drivers can be a pain (FASTBOOT mode, ADB mode, EDL mode, &#8230;) and I had to use two different windows : one win7x64 for the adb\/fastboot part and another win10x64 for the edl mode (qfil software would not work on my win7x64).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2 years ago for Christmas, I bought a Xiaomi Mi4c android phone. Cheap (about 130\u20ac), well performing (Snapdragon 808, quad core, etc), well designed (looks like new 2 years later), etc. But as most chinese phones, you are \u00ab\u00a0on your own\u00a0\u00bb and the OS may not be the one you want : see a previous <a href='https:\/\/labalec.fr\/erwan\/?p=1907' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[87],"tags":[],"class_list":["post-1907","post","type-post","status-publish","format-standard","hentry","category-xiaomi","category-87-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/1907","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1907"}],"version-history":[{"count":12,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/1907\/revisions"}],"predecessor-version":[{"id":2108,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/1907\/revisions\/2108"}],"wp:attachment":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}