Posted in Xiaomi&MIUI

How to deal with Error 7 when you try to flash the Lineage OS for Xiaomi devices

中文说明:

本文分析了小米手机刷Lineage OS遇到error7的问题,并提供了解决方案。本文将只有英文版本。如果你看不懂英语,请借助网页翻页等工具。希望本文能对你有所帮助。

Error 7 or “xiaomi.verify_trustzone(“TZ.BF.4.0.6-00124″,”TZ.BF.4.0.6-00130″) == ‘1’” is very annoying. How can we fix it? Reflash TWRP? Wipe System and Data?

No, you shouldn’t do that. 

First of all, this error is not about any problems for TWRP, so don’t waste your time seeking for other versions of TWRP.

And then, we should learn about one thing: firmware.

Firmware is a low-level code to drive your phone, you can think them as drivers. When you power off your phone, the style of charging is controlled by the firmware.

Usually, firmware files are only included in the official ROMS. That’s why we always hearing people telling us to all-newly flash an official ROM. It can help us make the phone all new like just out of the factory, but also, it can help us get the right firmware.

Notice:

From now on, just all new flash an official ROM when you want to get an all new device, or you want to unbrick the phone. Only this two reasons are recommended.

Now we know what is a firmware. Let’s see how does error 7 make sense.

In the ROM of Lineage OS, there is a file named updater-script. (How to find it: ROM =>META-INF => com => google => android => updater-script ) In this file, you can see some code to check if current firmware matches the phone. If matched, flash the ROM, or will assert the error 7.

So the right way to fix it is to change the firmware. But remember one thing: don’t always try to find a newer version, maybe the ROM just needs an older one.

For Xiaomi devices, we can easily get all the firmware from this website: https://xiaomifirmwareupdater.com. It’s very convenient. (Please make sure what you download is matching your device)

Flashing firmware is very easy. Boot into TWRP => Flash firmware zip. You don’t need do any wiping. So awesome.

But just as I said before, don’t always try to use the latest firmware, for ROM may just want an older one. Because Xiaomi updates their code very frequent, third-party cannot follow them that fast.

Warning:

Some people try to edit the updater-script to skip the check of firmware. Or some people choose to flash the older firmware to cheat the check and then flash back a newer one to boot the system. These ways are totally wrong.

Why? You should think about why the developer want to check the firmware. They are only responsible for the matched firmware, not others. If you change the firmware outside the range which is defined by the developer, you will meet many strange problems. For example, the fingerprint sensor cannot work properly.

So here is the method to deal with the error 7. Enjoy it.

Posted in Xiaomi&MIUI

小米发展史上最严峻的问题——只有2G信号

今天,我突然发现我的小米手机只能使用2G信号,不能使用3G和4G信号。一开始我以为是断电的缘故,因为我住的地方几乎整个片区都断电了,会不会导致基站也不工作?后来我注意到我父亲的手机和我一样是联通卡,他的3G信号完全没问题,所以我便开始折腾我的手机。

来来回回试了很多次,尝试了各种方案,由于路由器没电加上手机2G信号也是时断时续的,所以根本没法查资料。后来经过摸索,搞清楚了一个事实:这个手机只能使用2G信号,而且只要手动把信号固定在2G频段就不会再发生信号时有时无的问题了。推断是手机会不时地轮询3G和4G信号,但由于无法接收3G和4G信号,便会处于无服务状态,几分钟后再落回2G频段,再过几分钟又会再轮询3G和4G信号,无服务,再落回2G信号,如此反复循环。然而,为什么手机无法接收3G和4G信号呢?

傍晚的时候,终于通电通网了,我便开始在互联网搜寻答案。这一搜不要紧,不但中文论坛爆炸,英文论坛更是爆炸,此问题几乎遍地都是,涵盖了小米的各个型号。这意味着这根本不是硬件问题而是纯粹的软件问题。至于什么时候修复,小米那边说是下个版本,然而上个版本已经是去年8月还是11月的事情了。

应该来说,什么都可以出问题,但是信号是绝对不能出问题的,小米竟然出现这样的低级错误,也未经测试便发布ROM包,实在是可耻。小米作为一个全球化还算可以的中国手机厂商,如此作为赢得一片骂名,丢失了多少口碑和信誉。然而,我在中文论坛里却少见对此问题的发声,我想,大家便也是习以为然了,以为小米出了什么问题都不稀奇了,亦或者小米卖得便宜,便也无所谓了。

这样是万万不行的。我不知道小米什么时候能正视这个问题,因为直到今天,仍然没有有效的办法修正这个问题,而每天都有新的顾客在突发这样的故障。如果说卡米和渣渣刷机软件还可以接受,这我是真不能接受了。希望小米官方能够重视此问题,不要重蹈覆辙。

Posted in Xiaomi&MIUI

小米红米手机线刷miui国际版不完全指南

本文始发地址:http://www.jaylinwu.com/小米红米手机线刷miui国际版不完全指南/

现已迁移至此。 


版权申明

为确保本文的准确性和及时性,本文允许带链接转载但不允许原文转载。转载无需经得本人同意。

本人不对任何第三方转载的原文、修改文、篡改文负责,同时保留依法追究相关责任的权利。

 


紧急情况解除

如果你现在正在为Fastboot模式下无法关机而苦恼,请立刻到下方“疑难解答”部分学习如何在Fastboot模式下关机。


开篇特别警示

同MIUI国内版删除小米预装APP一样,禁用(停用)任何MIUI国际版中预装的谷歌APP都可能造成开机无法进入操作系统的情况(俗称“卡米”)。也就是说,国际版MIUI很可能只是把小米全家桶换成了谷歌全家桶,而非自由选择谷歌组件(大部分人应该只是想使用Google Play而已)。因此,请确认自己能否接受这样的结果,否则还是建议使用MIUI国内版,还免去了刷机的烦恼。同时MIUI国际版没有骚扰拦截和智能短信功能,需要自行安装替代组件。

一旦出现卡米的情况,唯一办法是重新刷入MIUI。

另外,小米手机加锁极大地保证了手机的完整性和隐私数据的安全性以及真正发挥手机查找功能和远程擦除功能的作用,一旦解锁,手机将可以被第三方任意刷机,从而失去保护。关于这一点的详细说明,请阅读下方的“疑难解答”部分。

如果你清清楚楚地明白“我从哪里来、要到哪里去”,请继续往下阅读本文。否则,请关闭本页。 Continue reading “小米红米手机线刷miui国际版不完全指南”