<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans">
    <title>canxin&#x27;s blog - 景深壁纸</title>
    <subtitle>canxin 的博客</subtitle>
    <link rel="self" type="application/atom+xml" href="https://blog.cxits.cn/tags/jing-shen-bi-zhi/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://blog.cxits.cn"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2026-09-05T00:00:00+00:00</updated>
    <id>https://blog.cxits.cn/tags/jing-shen-bi-zhi/atom.xml</id>
    <entry xml:lang="zh-Hans">
        <title>ColorOSDepthMask：为 ColorOS 景深壁纸增加可编辑蒙版</title>
        <published>2026-09-05T00:00:00+00:00</published>
        <updated>2026-09-05T00:00:00+00:00</updated>
        
        <author>
          <name>
            canxin
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://blog.cxits.cn/blog/coloros-depthmask/"/>
        <id>https://blog.cxits.cn/blog/coloros-depthmask/</id>
        
        <content type="html" xml:base="https://blog.cxits.cn/blog/coloros-depthmask/">&lt;blockquote&gt;
&lt;p&gt;项目地址：&lt;a class=&quot;external&quot; rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;canxin121&#x2F;ColorOSDepthMask&quot;&gt;canxin121&#x2F;ColorOSDepthMask&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;ColorOS 的锁屏景深功能会识别壁纸中的人物或主体，并将前景、时钟和其他界面元素分层显示，从而形成较明显的空间层次。&lt;&#x2F;p&gt;
&lt;p&gt;这套效果在系统自动抠图准确时表现较好，但其可调整空间相对有限。当前景深结果主要依赖系统 AI，对头发、手部、衣物边缘或复杂背景的识别出现偏差时，用户通常无法直接修改系统生成的前景区域。&lt;&#x2F;p&gt;
&lt;p&gt;&lt;code&gt;ColorOSDepthMask&lt;&#x2F;code&gt; 针对这一限制提供了一套补充方案。它通过 LSPosed 注入 ColorOS 壁纸编辑器，在原有景深流程中加入可编辑蒙版能力。用户既可以继续调用 ColorOS 原生 AI 生成蒙版，也可以对现有结果进行手工修整，或直接导入外部 PNG 蒙版。&lt;&#x2F;p&gt;
&lt;p&gt;自定义蒙版会按壁纸保存，并参与当前预览与最终锁屏资源生成。因此，修改后的前景不仅用于编辑页中的即时显示，也可以在重新进入同一张壁纸时继续恢复和使用。&lt;&#x2F;p&gt;
&lt;h2 id=&quot;gong-neng-gai-lan&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#gong-neng-gai-lan&quot; aria-label=&quot;Anchor link for: gong-neng-gai-lan&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;&#x2F;i&gt;&lt;&#x2F;a&gt;
功能概览&lt;&#x2F;h2&gt;
&lt;p&gt;ColorOSDepthMask 主要提供以下能力：&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;在 ColorOS 锁屏壁纸编辑页增加 &lt;strong&gt;蒙版&lt;&#x2F;strong&gt; 入口；&lt;&#x2F;li&gt;
&lt;li&gt;调用 ColorOS 原生 AI 自动生成景深蒙版；&lt;&#x2F;li&gt;
&lt;li&gt;在真实壁纸底图上继续编辑蒙版；&lt;&#x2F;li&gt;
&lt;li&gt;导入外部 PNG 蒙版；&lt;&#x2F;li&gt;
&lt;li&gt;支持画笔、橡皮、笔刷大小、撤销、重做、缩放和平移；&lt;&#x2F;li&gt;
&lt;li&gt;为不同壁纸分别保存蒙版；&lt;&#x2F;li&gt;
&lt;li&gt;保存后立即刷新当前景深预览；&lt;&#x2F;li&gt;
&lt;li&gt;手动控制景深开关；&lt;&#x2F;li&gt;
&lt;li&gt;在最终应用锁屏时使用当前自定义蒙版。&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;san-chong-meng-ban-lai-yuan&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#san-chong-meng-ban-lai-yuan&quot; aria-label=&quot;Anchor link for: san-chong-meng-ban-lai-yuan&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;&#x2F;i&gt;&lt;&#x2F;a&gt;
三种蒙版来源&lt;&#x2F;h2&gt;
&lt;h3 id=&quot;shi-yong-coloros-yuan-sheng-ai-zi-dong-sheng-cheng&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#shi-yong-coloros-yuan-sheng-ai-zi-dong-sheng-cheng&quot; aria-label=&quot;Anchor link for: shi-yong-coloros-yuan-sheng-ai-zi-dong-sheng-cheng&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;&#x2F;i&gt;&lt;&#x2F;a&gt;
使用 ColorOS 原生 AI 自动生成&lt;&#x2F;h3&gt;
&lt;p&gt;最直接的方式是继续使用 ColorOS 自带的 AI 抠图能力。&lt;&#x2F;p&gt;
&lt;p&gt;进入锁屏壁纸编辑页后，选择 &lt;strong&gt;蒙版 → 自动生成&lt;&#x2F;strong&gt;，模块会调用系统原生 AI 生成当前壁纸的景深前景。生成完成后可以直接进入编辑器，对识别不完整的区域继续修整。&lt;&#x2F;p&gt;
&lt;p&gt;这种方式适合主体已经能够被系统较好识别，仅需对局部边缘进行补充的壁纸。系统 AI 负责完成基础分割，后续再由用户修正细节，可以显著减少手工绘制工作量。&lt;&#x2F;p&gt;
&lt;h3 id=&quot;zai-zhen-shi-bi-zhi-shang-bian-ji&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#zai-zhen-shi-bi-zhi-shang-bian-ji&quot; aria-label=&quot;Anchor link for: zai-zhen-shi-bi-zhi-shang-bian-ji&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;&#x2F;i&gt;&lt;&#x2F;a&gt;
在真实壁纸上编辑&lt;&#x2F;h3&gt;
&lt;p&gt;已有蒙版可以通过 &lt;strong&gt;编辑&lt;&#x2F;strong&gt; 继续修改；没有现成蒙版时，也可以从空白蒙版开始绘制。&lt;&#x2F;p&gt;
&lt;p&gt;编辑器会以当前锁屏壁纸作为底图，并在其上显示半透明蒙版覆盖层。当前支持：&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;画笔；&lt;&#x2F;li&gt;
&lt;li&gt;橡皮；&lt;&#x2F;li&gt;
&lt;li&gt;笔刷大小调节；&lt;&#x2F;li&gt;
&lt;li&gt;撤销 &#x2F; 重做；&lt;&#x2F;li&gt;
&lt;li&gt;重置本次编辑；&lt;&#x2F;li&gt;
&lt;li&gt;单指绘制；&lt;&#x2F;li&gt;
&lt;li&gt;双指缩放和平移。&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;在真实壁纸上直接编辑的主要优势，是能够准确判断主体边缘与背景之间的关系。对于头发、衣物边缘和复杂轮廓，放大后逐步修整通常比单独编辑黑白蒙版更直观。&lt;&#x2F;p&gt;
&lt;p&gt;保存后，当前景深预览会自动刷新，无需退出 Wallpapers 后重新进入编辑页。&lt;&#x2F;p&gt;
&lt;h3 id=&quot;dao-ru-wai-bu-png&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#dao-ru-wai-bu-png&quot; aria-label=&quot;Anchor link for: dao-ru-wai-bu-png&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;&#x2F;i&gt;&lt;&#x2F;a&gt;
导入外部 PNG&lt;&#x2F;h3&gt;
&lt;p&gt;对于习惯使用 Photoshop、Affinity Photo、GIMP 等图像工具的用户，可以直接导入外部 PNG 作为景深蒙版。&lt;&#x2F;p&gt;
&lt;p&gt;蒙版语义如下：&lt;&#x2F;p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;蒙版内容&lt;&#x2F;th&gt;&lt;th&gt;含义&lt;&#x2F;th&gt;&lt;&#x2F;tr&gt;&lt;&#x2F;thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;白色 &#x2F; 不透明&lt;&#x2F;td&gt;&lt;td&gt;前景&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;黑色 &#x2F; 透明&lt;&#x2F;td&gt;&lt;td&gt;背景&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;tr&gt;&lt;td&gt;灰色 &#x2F; 半透明&lt;&#x2F;td&gt;&lt;td&gt;羽化或过渡区域&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;
&lt;&#x2F;tbody&gt;&lt;&#x2F;table&gt;
&lt;p&gt;建议外部 PNG 与原始壁纸保持相同尺寸和比例，以减少后续裁切和缩放带来的偏差。&lt;&#x2F;p&gt;
&lt;p&gt;对于轮廓要求较高的壁纸，可以先使用 ColorOS AI 生成基础蒙版，再在内置编辑器中进行初步调整，最后使用外部图像工具完成更精细的处理。&lt;&#x2F;p&gt;
&lt;h2 id=&quot;meng-ban-zu-he-fang-shi&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#meng-ban-zu-he-fang-shi&quot; aria-label=&quot;Anchor link for: meng-ban-zu-he-fang-shi&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;&#x2F;i&gt;&lt;&#x2F;a&gt;
蒙版组合方式&lt;&#x2F;h2&gt;
&lt;p&gt;保存蒙版后，可以设置自定义蒙版与 ColorOS 原始景深结果之间的组合关系。&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;替换&lt;&#x2F;strong&gt;：完全使用自定义蒙版；&lt;&#x2F;li&gt;
&lt;li&gt;&lt;strong&gt;并集&lt;&#x2F;strong&gt;：保留自定义蒙版和系统结果的全部前景区域；&lt;&#x2F;li&gt;
&lt;li&gt;&lt;strong&gt;交集&lt;&#x2F;strong&gt;：仅保留两者共同识别为前景的区域；&lt;&#x2F;li&gt;
&lt;li&gt;&lt;strong&gt;反转&lt;&#x2F;strong&gt;：交换前景与背景关系。&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;对于已经完整制作好的自定义蒙版，通常直接使用 &lt;strong&gt;替换&lt;&#x2F;strong&gt; 即可。并集和交集更适合在系统原始结果基础上进行局部补充或范围限制。&lt;&#x2F;p&gt;
&lt;h2 id=&quot;meng-ban-chi-jiu-hua-yu-zhuang-tai-yi-zhi-xing&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#meng-ban-chi-jiu-hua-yu-zhuang-tai-yi-zhi-xing&quot; aria-label=&quot;Anchor link for: meng-ban-chi-jiu-hua-yu-zhuang-tai-yi-zhi-xing&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;&#x2F;i&gt;&lt;&#x2F;a&gt;
蒙版持久化与状态一致性&lt;&#x2F;h2&gt;
&lt;p&gt;仅在编辑页中替换当前显示的 bitmap 并不能完整解决实际使用中的问题。ColorOS 的景深状态同时涉及界面开关、当前预览、内部壁纸模型和最终锁屏资源生成等多个环节。&lt;&#x2F;p&gt;
&lt;p&gt;如果这些状态没有同步，可能出现以下情况：&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #839496; background-color: #002B36;&quot;&gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;编辑页显示新的自定义蒙版&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;↓&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;点击应用&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;↓&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;最终锁屏仍使用之前的系统 AI 前景&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;也可能出现：&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #839496; background-color: #002B36;&quot;&gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;景深开关显示为开启&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;↓&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;当前预览实际上没有景深效果&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;因此，ColorOSDepthMask 会在保存蒙版后同步当前壁纸的景深状态，并在重新进入同一张壁纸时尝试恢复之前保存的蒙版。&lt;&#x2F;p&gt;
&lt;p&gt;保存、导入或修改组合方式后，当前预览会立即更新；最终点击“应用”时，也会确保当前自定义蒙版参与锁屏景深资源生成，避免继续复用旧的前景结果。&lt;&#x2F;p&gt;
&lt;p&gt;此前部分情况下，保存蒙版后 ColorOS 的“应用”按钮仍会保持禁用状态，需要再次拖动壁纸才会恢复。现在模块会同步触发系统自身的“已编辑”状态，因此保存后可以直接继续应用。&lt;&#x2F;p&gt;
&lt;h2 id=&quot;jing-shen-kai-guan-bao-chi-shou-dong-kong-zhi&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#jing-shen-kai-guan-bao-chi-shou-dong-kong-zhi&quot; aria-label=&quot;Anchor link for: jing-shen-kai-guan-bao-chi-shou-dong-kong-zhi&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;&#x2F;i&gt;&lt;&#x2F;a&gt;
景深开关保持手动控制&lt;&#x2F;h2&gt;
&lt;p&gt;ColorOS 原生逻辑会根据 AI 识别结果和当前资源状态自动修改景深开关，包括自动开启、关闭、禁用或灰显。&lt;&#x2F;p&gt;
&lt;p&gt;对于系统完全自动生成的景深结果，这种逻辑有其合理性；但在已经存在用户自定义蒙版的情况下，是否启用景深更适合由用户自行决定。&lt;&#x2F;p&gt;
&lt;p&gt;因此，在自定义蒙版生效时，ColorOSDepthMask 会尽量保持景深开关的手动状态。用户开启时保持开启，关闭时保持关闭，不再由系统 AI 结果自动改变当前选择。&lt;&#x2F;p&gt;
&lt;h2 id=&quot;du-li-app&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#du-li-app&quot; aria-label=&quot;Anchor link for: du-li-app&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;&#x2F;i&gt;&lt;&#x2F;a&gt;
独立 App&lt;&#x2F;h2&gt;
&lt;p&gt;除了 LSPosed 模块本身，ColorOSDepthMask 还包含一个独立控制 App，用于管理常用操作和诊断信息。&lt;&#x2F;p&gt;
&lt;h3 id=&quot;shou-ye&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#shou-ye&quot; aria-label=&quot;Anchor link for: shou-ye&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;&#x2F;i&gt;&lt;&#x2F;a&gt;
首页&lt;&#x2F;h3&gt;
&lt;p&gt;首页只保留高频内容：&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;当前模块版本；&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;com.oplus.wallpapers&lt;&#x2F;code&gt; 版本；&lt;&#x2F;li&gt;
&lt;li&gt;Root 状态；&lt;&#x2F;li&gt;
&lt;li&gt;ColorOS &#x2F; Android 摘要；&lt;&#x2F;li&gt;
&lt;li&gt;GitHub Release 更新状态；&lt;&#x2F;li&gt;
&lt;li&gt;重载 Wallpapers；&lt;&#x2F;li&gt;
&lt;li&gt;重载 SystemUI。&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;安装或更新模块后，可以直接通过 &lt;strong&gt;重载壁纸&lt;&#x2F;strong&gt; 重新启动 &lt;code&gt;com.oplus.wallpapers&lt;&#x2F;code&gt;，使新的 Hook 重新加载。&lt;&#x2F;p&gt;
&lt;h3 id=&quot;zhen-duan&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#zhen-duan&quot; aria-label=&quot;Anchor link for: zhen-duan&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;&#x2F;i&gt;&lt;&#x2F;a&gt;
诊断&lt;&#x2F;h3&gt;
&lt;p&gt;诊断页用于集中查看运行环境，包括：&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;模块版本和签名；&lt;&#x2F;li&gt;
&lt;li&gt;Wallpapers 版本；&lt;&#x2F;li&gt;
&lt;li&gt;ColorOS &#x2F; Android 信息；&lt;&#x2F;li&gt;
&lt;li&gt;Root 管理器和 Root shell；&lt;&#x2F;li&gt;
&lt;li&gt;LSPosed；&lt;&#x2F;li&gt;
&lt;li&gt;Kernel；&lt;&#x2F;li&gt;
&lt;li&gt;SELinux；&lt;&#x2F;li&gt;
&lt;li&gt;Verified Boot 等。&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;每一项都可以单独复制，也可以一次复制完整诊断信息。出现系统更新或兼容性问题时，可以直接将这份信息附在 Issue 中。&lt;&#x2F;p&gt;
&lt;h3 id=&quot;xiang-mu&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#xiang-mu&quot; aria-label=&quot;Anchor link for: xiang-mu&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;&#x2F;i&gt;&lt;&#x2F;a&gt;
项目&lt;&#x2F;h3&gt;
&lt;p&gt;项目页提供以下入口：&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;项目仓库；&lt;&#x2F;li&gt;
&lt;li&gt;Releases；&lt;&#x2F;li&gt;
&lt;li&gt;Issues；&lt;&#x2F;li&gt;
&lt;li&gt;开发者 GitHub；&lt;&#x2F;li&gt;
&lt;li&gt;Blog。&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;App 启动后还会检查 GitHub Releases。发现新版本时，可以直接下载 APK；下载完成后会检查包名、版本和签名，再交由 Android 系统安装器处理。&lt;&#x2F;p&gt;
&lt;h2 id=&quot;an-zhuang&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#an-zhuang&quot; aria-label=&quot;Anchor link for: an-zhuang&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;&#x2F;i&gt;&lt;&#x2F;a&gt;
安装&lt;&#x2F;h2&gt;
&lt;p&gt;目前主要针对以下环境进行开发和测试：&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;ColorOS 16；&lt;&#x2F;li&gt;
&lt;li&gt;Android 16；&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;com.oplus.wallpapers&lt;&#x2F;code&gt; 16.10.x；&lt;&#x2F;li&gt;
&lt;li&gt;LSPosed；&lt;&#x2F;li&gt;
&lt;li&gt;KernelSU &#x2F; KernelSU Next &#x2F; Magisk &#x2F; APatch 等 Root 环境。&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;安装步骤如下：&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;前往 &lt;a class=&quot;external&quot; rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;canxin121&#x2F;ColorOSDepthMask&#x2F;releases&quot;&gt;Releases&lt;&#x2F;a&gt; 下载最新版 APK；&lt;&#x2F;li&gt;
&lt;li&gt;安装 APK；&lt;&#x2F;li&gt;
&lt;li&gt;在 LSPosed 中启用 &lt;strong&gt;DepthMask&lt;&#x2F;strong&gt;；&lt;&#x2F;li&gt;
&lt;li&gt;作用域只勾选 &lt;code&gt;com.oplus.wallpapers&lt;&#x2F;code&gt;；&lt;&#x2F;li&gt;
&lt;li&gt;打开 DepthMask App 并授予 Root；&lt;&#x2F;li&gt;
&lt;li&gt;点击 &lt;strong&gt;重载壁纸&lt;&#x2F;strong&gt;；&lt;&#x2F;li&gt;
&lt;li&gt;重新打开 ColorOS 锁屏壁纸编辑器。&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;正常情况下，锁屏编辑页底部功能栏会出现新的 &lt;strong&gt;蒙版&lt;&#x2F;strong&gt; 入口。&lt;&#x2F;p&gt;
&lt;blockquote class=&quot;markdown-alert-note&quot;&gt;
&lt;p&gt;Root 主要用于独立 App 重载 Wallpapers &#x2F; SystemUI 和读取额外诊断信息。LSPosed 模块的作用域仍然只需要 &lt;code&gt;com.oplus.wallpapers&lt;&#x2F;code&gt;，无需额外选择 SystemUI 或 Launcher。&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;h2 id=&quot;ji-ben-shi-yong-liu-cheng&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#ji-ben-shi-yong-liu-cheng&quot; aria-label=&quot;Anchor link for: ji-ben-shi-yong-liu-cheng&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;&#x2F;i&gt;&lt;&#x2F;a&gt;
基本使用流程&lt;&#x2F;h2&gt;
&lt;p&gt;对于普通使用场景，可以按照以下顺序完成一张自定义景深壁纸：&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;选择锁屏壁纸；&lt;&#x2F;li&gt;
&lt;li&gt;进入 ColorOS 锁屏壁纸编辑器；&lt;&#x2F;li&gt;
&lt;li&gt;点击 &lt;strong&gt;蒙版&lt;&#x2F;strong&gt;；&lt;&#x2F;li&gt;
&lt;li&gt;点击 &lt;strong&gt;自动生成&lt;&#x2F;strong&gt;；&lt;&#x2F;li&gt;
&lt;li&gt;在编辑器中修正 AI 漏检或误检区域；&lt;&#x2F;li&gt;
&lt;li&gt;保存蒙版；&lt;&#x2F;li&gt;
&lt;li&gt;蒙版模式保持 &lt;strong&gt;替换&lt;&#x2F;strong&gt;；&lt;&#x2F;li&gt;
&lt;li&gt;手动开启 &lt;strong&gt;景深&lt;&#x2F;strong&gt;；&lt;&#x2F;li&gt;
&lt;li&gt;检查预览；&lt;&#x2F;li&gt;
&lt;li&gt;点击 &lt;strong&gt;应用&lt;&#x2F;strong&gt;。&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;如果系统 AI 无法正确识别主体，也可以跳过自动生成，直接从空白蒙版开始编辑，或导入已经制作好的 PNG。&lt;&#x2F;p&gt;
&lt;h2 id=&quot;jian-rong-xing-shuo-ming&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#jian-rong-xing-shuo-ming&quot; aria-label=&quot;Anchor link for: jian-rong-xing-shuo-ming&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;&#x2F;i&gt;&lt;&#x2F;a&gt;
兼容性说明&lt;&#x2F;h2&gt;
&lt;p&gt;ColorOSDepthMask 依赖 &lt;code&gt;com.oplus.wallpapers&lt;&#x2F;code&gt; 的内部类、方法和资源，而这些内容并不属于公开稳定 API。&lt;&#x2F;p&gt;
&lt;p&gt;因此，ColorOS 或 Wallpapers 大版本更新后，模块可能需要重新适配。&lt;&#x2F;p&gt;
&lt;p&gt;如果系统更新后出现以下情况：&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;蒙版入口消失；&lt;&#x2F;li&gt;
&lt;li&gt;景深开关状态异常；&lt;&#x2F;li&gt;
&lt;li&gt;保存后预览没有刷新；&lt;&#x2F;li&gt;
&lt;li&gt;最终锁屏与编辑页预览不一致；&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;可以先在 DepthMask App 中执行一次 &lt;strong&gt;重载壁纸&lt;&#x2F;strong&gt;。如果问题仍然存在，可以进入诊断页复制完整诊断信息，并提交到 &lt;a class=&quot;external&quot; rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;canxin121&#x2F;ColorOSDepthMask&#x2F;issues&quot;&gt;GitHub Issues&lt;&#x2F;a&gt;。&lt;&#x2F;p&gt;
&lt;h2 id=&quot;xiang-mu-di-zhi&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#xiang-mu-di-zhi&quot; aria-label=&quot;Anchor link for: xiang-mu-di-zhi&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;&#x2F;i&gt;&lt;&#x2F;a&gt;
项目地址&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a class=&quot;external&quot; rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;canxin121&#x2F;ColorOSDepthMask&quot;&gt;GitHub 仓库&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a class=&quot;external&quot; rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;canxin121&#x2F;ColorOSDepthMask&#x2F;releases&quot;&gt;Releases&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a class=&quot;external&quot; rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;canxin121&#x2F;ColorOSDepthMask&#x2F;issues&quot;&gt;Issues&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;ColorOSDepthMask 主要面向希望继续使用 ColorOS 原生锁屏景深能力，同时需要自行调整前景区域的用户。相比重新实现一套独立景深系统，它更强调与 ColorOS 现有编辑和应用流程保持一致。&lt;&#x2F;p&gt;
</content>
        
    </entry>
</feed>
