Posted in Xiaomi&MIUI

小米、红米手机卡刷xiaomi.eu(Lineage OS)简要指南

最后更新时间:2022年12月23日

  1. 重要提醒
  2. 准备篇
    1. 刷机前一定要做的准备工作
    2. xiaomi.eu和MIUI国际版的区别
    3. 正确选择你的ROM
    4. 下载xiaomi.eu
    5. 联发科的手机不建议折腾
  3. 下面正式开始刷机之旅!
    1. 解锁你的手机
    2. 刷入TWRP或者其他第三方recovery
    3. 在TWRP中要执行的操作
      1. 格式化内置存储空间
      2. 确认磁盘文件系统
      3. 双清操作
      4. 将ROM发送到手机中
      5. 开始刷写
      6. 刷写成功
  4. 与刷写Lineage OS的区别
  5. 更新系统
  6. Lineage OS刷机官方教程
  7. MIUI 13 (Android 12) 特别篇
Continue reading “小米、红米手机卡刷xiaomi.eu(Lineage OS)简要指南”
Advertisement
Posted in Xiaomi&MIUI

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

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. For example, 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 model)

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 developers 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包,实在是可耻。小米作为一个全球化还算可以的中国手机厂商,如此作为赢得一片骂名,丢失了多少口碑和信誉。然而,我在中文论坛里却少见对此问题的发声,我想,大家便也是习以为然了,以为小米出了什么问题都不稀奇了,亦或者小米卖得便宜,便也无所谓了。

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

后续更新:

我基本断定并非软件问题而是硬件问题,去小米售后只能换主板解决,但是新的主板也只能继续用几个月而已,属于严重的设计缺陷。大概是因为与天线连接的主板电路极其容易烧断,所以手机的3G和4G信号便不再可以正常使用。

Posted in Xiaomi&MIUI

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

最后更新时间:2023年1月24日

卡刷xiaomi.eu的教程参见:https://jaylinwu.wordpress.com/2021/06/10/flash-xiaomi-eu/

拖更几年后,终于完成了重新排版。目前的可读性大大提高,还添加了目录。几年来文章的内容不断推陈出新,几经删改,常看常新,才有了今天这个面貌。希望本文能给更多的朋友带来帮助,发现不一样的乐趣

如今深知维护一篇文章要比创作一篇文章更费心费力,因为这意味着一份责任。在此也呼吁各位教程创作者,如果无力维护文章,不如直接下架,休要留着误人子弟


目录

  1. 目录
  2. 版权申明
  3.  紧急情况解除
  4.  开篇特别警示
  5. 前言
    1. 为什么一定要掌握线刷的办法?卡刷难道不行吗?
  6.  准备工作
    1. 备份
    2. 了解你手机的codename
    3. 解锁
    4. Win8及以上系统安装好.net framework 3.5
    5. 下载MIUI国际版的ROM
    6. 解压ROM压缩包
    7. 下载MiFlash并安装(或者解压)
    8. 安装Google官方出品的安卓USB驱动
    9. 安装ADB软件包并测试ADB是否在电脑上成功安装
    10. 学习如何进入小米手机Fastboot模式
  7. 具体操作步骤及注意事项
    1. Fastboot模式下通过USB线连接至电脑
    2. 检测手机是否成功连接电脑
    3. 解锁bootloader
    4. 使用MiFlash
    5. 开始刷机
    6. 刷机完成
  8. 疑难解答
    1. 为什么要先解锁?解锁失败提示“验证失败,未连接小米手机”怎么办?
    2. 为什么一定要进入Fastboot模式?Fastboot自动重启怎么办?Fastboot模式下怎么关机?
    3. 为什么一定要安装使用ADB呢?看起来很麻烦、很难,我可以选择跳过吗?
    4. 为什么手机会出现未连接的问题?
    5. MiFlash和MiPhone是什么?有什么不同?为什么更建议用MiFlash?
    6. 线刷包文件夹是什么?线刷包文件夹不能带有空格是什么意思?为什么?
  9. 特别鸣谢
Continue reading “小米红米手机线刷MIUI国际版不完全指南”