Git Product home page Git Product logo

Comments (4)

lxgw avatar lxgw commented on June 2, 2024 1

解决方法:

  1. 卸载所有涉及 /system/fonts 的模块后重启,用 MT 管理器将模块包里的空字体文件 EmptyFont*(或 Roboto Fake位于模块包中 /system/fonts 目录)* 解压到手机系统字体文件目录 /system/fonts,然后将手机系统中 /system/fonts 目录中的 EmptyFont 空字体文件权限设置为 644。
  2. 重新安装字体模块。

红米 Note 5,Derpfest Android 12,将建设银行 APP 在 MagiskHide 中勾选并启用,建行 APP 能够正常使用。其他机型、其他 ROM 未测试,Zygisk 未测试。

按照 @拉普拉斯的小恶魔 所说,Magisk Hide 启用后,勾选的应用会在读取 fonts.xml 中所列出的字体文件时因找不到而崩溃。而按照 @宁静之雨 的说法分析,主要是因为模块首先调用的字体 (默认字体为 Roboto,而 Android 12 内置的是动态可变的 Roboto) 在默认状态的系统中找不到而发生闪退,那么把 Magisk 模块里首先调用的字体复制到默认状态下手机系统字体目录,使其成为手机默认状态下自带的字体,这样在 Magisk Hide 启用时,勾选的应用首先调用的是默认状态下系统字体文件夹中的 EmptyFont 文件,而不是字体模块中的 EmptyFont 文件。

本字体模块模板首先调用 EmptyFont 空字体 (以往的字体模块模板为 RobotoFake) ,因而需要在卸载字体模块并重启之后,把 EmptyFont (或 RobotoFake) 复制到手机系统字体文件夹。

其他字体模块需要参考字体模块中 /system/etc/fonts.xml 文件中首先调用的字体,然后需要将首先调用的字体复制手机系统字体文件夹。(不过可能需要将原机字体备份。)

from advanced-cjk-font-magisk-module-template.

lxgw avatar lxgw commented on June 2, 2024

可能我的所谓「方法」有点脱裤子放屁——多此一举了,毕竟已经动了 system 分区,干脆回归以往卡刷包的方法直接在 system 分区上替换就完事了(

不过这篇文章主要讲的是用我的「字体模块模板」所做的模块,即使是动 system 分区,也只是复制了几个空字体文件,不需要复制其他字体,也不对系统里自带的字体产生影响,换同样模板制作的模块也不需要再做改动了。当然,这也仅仅是我个人的想法。

如果不想对 system 分区作改动,就用 CJK-only 模块模板,只替换中文、日文、韩文字体,不动系统默认英文字体。

from advanced-cjk-font-magisk-module-template.

recreationx avatar recreationx commented on June 2, 2024

在Shamiko v0.2.0里已修复对字体模块崩溃的问题,已成功刷入该模块,和Shamiko一并使用最佳。

from advanced-cjk-font-magisk-module-template.

Neubulae avatar Neubulae commented on June 2, 2024

刚用最近的Magisk Alpha,发现好像有冲突?打开Zygisk就无法进入系统,卡启动…

from advanced-cjk-font-magisk-module-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.