中文 | English


LockPerm

LockPerm

LockPerm

Platform Kotlin Compose License

Version compileSdk minSdk JDK

伪装 · 防护
一个基于 Libxposed API 102 的 Xposed 模块,把「伪装」「防护」「控制」三件事放在一起。


LockPerm 是一个以应用为单位工作的隐私模块:它让目标应用读到你想让它读到的内容(伪装),并阻止它做你不允许它做的事(防护),还能在应用运行时挂一个悬浮面板直接动手改界面(控制)。

在「应用」页把目标应用加入作用域,点「配置」进入它的专属配置页,在 防护功能 / 权限伪装 / 设备伪装 / 设备模板 / 其他功能 五个页签里勾选需要的功能即可。每个应用的配置互相独立,互不干扰。


🚀 快速上手

  1. 在 LSPosed 管理器中启用本模块(也支持 LSPatch)。
  2. 在「应用」页为目标应用申请作用域。
  3. 在「应用」页给已加入作用域的应用点「配置」,进入它的配置页。
  4. 在五个页签里勾选这个应用需要的功能,页签可左右滑动。
  5. 强制停止目标应用再打开,配置才会生效。

🛡 防护功能

权限与设备控制权

  • 无障碍防护:禁止开启无障碍服务,也可单独禁用读屏、监听通知、监听窗口变化、读取输入内容、模拟操作、无障碍悬浮窗、按键 / 手势监听;清空无障碍服务列表、伪装无障碍开启状态。
  • 设备管理员 / Device Owner 防护:阻止主动申请成为设备管理员,并按需禁用锁屏、改密码、恢复出厂、停用相机、应用管理、系统设置、权限授予、加密等能力。
  • 悬浮窗:可拦掉系统级悬浮窗;也可「允许显示并改造」—— 穿透点击、完全透明、限制占屏大小、自定义窗口标志、给所有窗口加 / 去 FLAG_SECURE。
  • 壁纸拦截:无论应用用哪种方式改壁纸都拦下。
  • 安装 / 卸载拦截:阻止静默安装或引导安装,可伪装成「操作成功」直接回执。
  • 打印 / 投屏拦截:阻止应用发起打印或投屏。
  • 命令执行拦截:拦截应用执行命令(Java/应用层 + 原生层)。

硬件与感知

  • 摄像头 / 麦克风实时拦截:即使已拿到权限也打不开硬件。
  • 传感器拦截:禁用全部传感器,或逐项设置「不处理 / 禁用 / 伪装值 / 动态值」。
  • 硬件能力拦截:红外发射、生物识别、BLE 广播与主动扫描、点亮屏幕。
  • 闪光灯 / 振动拦截:禁止控制手电筒与震动。
  • 屏幕捕获拦截:拒绝授权、伪造图片 / 视频、伪造静态文字,画面可自适应。
  • 音频输出拦截:按媒体、通话、铃声、通知、闹钟、系统、TTS 分别拦截,也可只拦「有 / 无音频焦点」的播放。
  • 音量控制:总开关拦截、固定音量值、只允许调小、阻止改响铃模式与静音。

数据与踪迹

  • 隐私数据拦截:剪贴板读写(可分别控制)、通知发送、通知隐藏。
  • 文件防护:拦截 MediaStore 与 File / NIO 的创建、写入、删除、重命名等操作,可选「内部存储」或「所有路径」;文件重定向。
  • 系统下载拦截:拦掉系统下载与直接写入下载库。
  • 隐藏应用列表:让应用PackageManager枚举不到你装了哪些软件,支持白名单 / 黑名单。
  • 网络请求域名过滤:按黑白名单过滤域名(部分生效)。
  • 屏幕与电源:禁止应用使屏幕常亮、禁止息屏但不锁屏、释放屏幕常亮锁、通话息屏、禁止从后台任务中隐藏、禁止后台弹出界面(含 PendingIntent 弹窗)。
  • 按键拦截:禁止应用消费按键事件,可单独放行返回键。

跨应用与常驻

  • 跳转拦截:阻止跳转到其他应用,支持白名单、未知包名处理策略。
  • IPC 拦截:显式 Intent、FileProvider、ContentProvider、BroadcastReceiver 四类通道,收发双向可分别控制,支持严格模式与 authority 白名单。
  • 禁止前台常驻服务:不允许应用挂着常驻通知活着。
  • 无线调试拦截:堵死 ADB over Wi-Fi 的开关、配对、发现、跳转与系统属性入口(部分有效)。
  • Shizuku 拦截:阻止申请授权,也禁用已授权后的调用。

稳定性与退出

  • 退出功能:倒计时、指定时刻、内存超阈值、CPU 超阈值、存储增量、断网 / 联网、电量或充电状态、指定文件变动、长时间未触摸、卡顿累计、音量变化 —— 条件可并行监听,触发后按指定方式退出。
  • 阻止闪退 / 自杀:强度可调,分项覆盖进程自杀、退出指令、信号、kill 命令、系统服务杀进程、未捕获异常、消息循环异常、退后台结束任务、等待调试器、线程守护;原生层退出与崩溃拦截能力有限。
  • 应用层异常捕获器:崩溃时复制堆栈到剪贴板、写入应用私有目录、拦截应用抛出的异常、崩溃后弹出详情界面(可倒计时自动退出)。
  • 拦截自动返回操作:关界面、退回上一页、退后台都拦下。

🎭 伪装功能

设备信息(Build 字段)

  • 型号、品牌、厂商、指纹、序列号、硬件、板型、设备名、SoC、产品、Bootloader、Radio、Display、安全补丁、增量版本、代号、Base OS、编译时间 / 主机 / 标签 / 类型 / 用户等项。
  • 支持一键随机生成与全部清空。

标识伪装

  • Android ID、GSF ID、广告 ID(GAID)、App Set ID、DRM ID、DRM System ID、Widevine 等级。
  • OAID / ODID / VAID / AAID、Firebase FID / IID。

硬件与内核

  • 内核版本、架构、平台、硬件厂商标识。
  • CPU:芯片型号、板型代号、核心数、每核频率。
  • GPU:厂商、渲染器、GL 版本与 GLSL、Vulkan API、驱动信息、Vendor / Device ID、显存与纹理上限。
  • 设备温度、电量百分比(可模拟自动掉电)、电池细节(充电状态、电流、电压、设计容量)。

显示与存储

  • 应用 DPI、屏幕分辨率与刷新率(含支持的刷新率列表)。
  • 内存与存储:总运行内存、可用内存、存储总容量、可用容量。
  • 相机分辨率:按像素数生成前后摄支持的拍照尺寸。

网络与 SIM

  • WiFi / 蓝牙 MAC、SSID / BSSID、IMEI / MEID / ICCID、SIM 序列号、订阅 ID、运营商与名称、国家码、手机号。
  • eSIM 支持、移动数据、漫游状态伪装。
  • VPN / 抓包代理隐藏:VPN 网卡接口、传输能力、旧版 NetworkInfo、HTTP 代理、相关系统设置,接口名可自定义。
  • 网络身份:内网 IPv4 / IPv6、网关、DNS、WiFi 标准,并覆盖 Socket、LinkAddress、InetAddress 与原生层取地址的多种路径。

WiFi / 蓝牙状态伪装

  • 断网时把网络状态报成「已连接 WiFi」,SSID、BSSID、信号、速率、IP、频率可自定义,可伪造扫描热点列表、屏蔽已保存网络查询。
  • 蓝牙:伪装开启状态、本机名称与 MAC、已配对设备、已连接设备、扫描列表与设备类型。

系统环境

  • 时区、语言 / 地区、开机时长、vbmeta digest、boot id。
  • 系统时间:指定时刻(继续走秒 / 定住不走)或偏移分钟,可同步伪装原生层。
  • 伪装开发者选项已关闭,USB 调试与无线调试单独控制。

位置与基站

  • 坐标(纬度 / 经度 / 海拔 / 精度),可改写所有 Location 对象字段。
  • 按通道拦截:GPS(含 GNSS 原始数据:卫星状态、测量值、NMEA)、网络定位(含 WiFi 扫描结果)、融合定位、电话服务。
  • 基站信息:MCC / MNC / LAC / CID / PCI;电话与短信存储(sms / mms / call_log)。

服务与 Root

  • 伪装拥有 Google Play 服务:包查询、可用性检查、GAID、版本信息。
  • 伪装拥有华为移动服务(HMS):包查询、可用性检查、OAID、版本信息。
  • Root 伪装:伪装 su 文件存在,屏蔽 Permission denied 伪装返回执行成功,可切换「有 Root / 无 Root(效果有限)」。

权限伪装

  • 覆盖通讯录、短信、通话记录、电话、存储、位置、日历、相机、麦克风、身体传感器、通知、附近设备、运动识别、健康数据、无障碍、设备管理员、通知监听、使用情况、悬浮窗、安装未知应用、所有文件访问、精确闹钟、电池优化、自启动、VPN、修改系统设置、后台弹出界面、媒体管理、全屏通知、音频设置、锁屏显示、动态壁纸、勿扰、画中画、付费短信等权限组。
  • 勾选即伪装成「已授权」,部分权限可返回伪造数据:假联系人、假短信、假通话记录、假文件目录、固定坐标、假日程、符合量程的传感器值、假通知、假蓝牙设备、假使用统计等。

网页 / WebView 伪装

  • User-Agent:预设随机或手动填写。
  • WebView 指纹:屏幕与像素比、CPU 核数、内存、触摸点数、平台与厂商、WebGL 厂商与渲染器、navigator.languages、时区偏移。
  • 时间与地理:改写 JS 的 Date、时区与 Intl.timeZone、伪造地理位置。
  • 隐藏 webdriver / selenium 标记、声明 DNT、WebRTC 防护或直接停用。
  • 指纹噪声:Canvas / WebGL / Audio 取值加随机扰动,强度可调。
  • 基础开关:强制启用 JavaScript、忽略证书错误、注入自定义 JavaScript。

🧰 其他功能

  • 文字替换:网页、View、绘制 / Compose、其它组件(通知、磁贴、Toast、媒体等)四类范围,支持精确 / 正则 / 宽容匹配、忽略大小写、长文本,并带替换诊断。
  • 点击内容:页面出现指定文字或控件 id 就自动点击,支持包含 / 精确匹配、重复间隔与次数。
  • 控件拦截:按控件 ID、文字、资源名、类名、内容描述、坐标区域隐藏控件,带预设类型与状态,可输出到日志。
  • 去除弹窗:弹窗左上角挂圆钮,点击后选择处理方式。
  • 拦截方法执行:按类名 + 方法名拦截任意方法,可指定返回值、列出参数类型、输出日志。
  • 命令执行记录:记录应用实际执行过的命令(含原生层),支持弹窗提示、悬浮窗实时显示、静默记录,并可记录输出内容。
  • 全局代理:把勾选应用的流量送进隧道,支持白名单。
  • 设备模板:把一整套设备参数存成模板,一键套用到任意应用,支持导入 / 导出、复制、源码模式编辑。
  • 测试检测:用于测试应用的检测强度,总开关 + 字节一致性、类名检测、内存(maps / smaps)、注入痕迹、虚拟化、IO 重定向、日志特征过滤或清空;可全局默认,也可按应用覆盖。
  • 原生层钩子:覆盖属性、uname、时间、文件、stat、执行、退出、网络、读取、mmap、GPU、传感器等层面,可按应用单独开关。

🎛 控制面板

在目标应用屏幕左上角挂一个悬浮球,点开即展开面板,不需要重启目标应用就能立即生效:

  • 日志分区:多个日志区可切换,支持保存与复制。
  • 增强拾取:手指划过高亮、点击选定控件,然后对它移除、隐藏、改文字、改颜色、换图片、存图片、控件转图片、整页截图;还能用父控件 / 子控件 / 上一个 / 下一个切换。
  • 持久化:带「持久化」的改动会被记下来,下次进入应用自动生效。
  • 一键功能。
  • 命令区:共用一个 sh 会话,直接输入并执行命令。
  • 控件信息:查看控件属性、当前生效配置、权限自检、线程堆栈与分辨率等运行信息。
  • 小细节:面板可最小化或隐藏,隐藏后按音量键唤出;被对话框压住时,在屏幕任意位置 1 秒内连点五下即可重新置顶。

📱 模块自身

  • 外观:语言、深色模式与切换时间、主题颜色与配色风格、对比度与文字描边、动态壁纸、模糊与透明度。
  • 界面:主页切换动画、配置页向上弹出、圆角形状、配置页组件缩放与应用 DPI。
  • 图标:用任意图片在桌面创建自定义快捷方式图标,或禁用所有启动图标隐藏本模块。
  • 其它:配置备份导出与导入、检查更新、触摸震动、开屏动画、预测性返回手势。
  • LSPatch 模式:激活后,应用页可直接配置(作用域在 LSPatch 里添加)。

⚠️ 使用须知

  • 模块只在目标应用进程里工作,不会常驻任何后台服务。
  • 部分修改配置后需要强制停止目标应用再打开才会生效。
  • 防护类功能可能会影响目标应用的正常使用,请按需开启。
  • 崩溃日志写在 /storage/emulated/0/Android/data/{目标包名}/files/ 下。
  • 测试检测会带来额外开销,效果有限,且默认关闭,按需开启。
  • 🚫 请勿将本模块用于 Android 系统程序,禁止对涉及金融、账号安全、财产等关键场景使用本模块。本模块仅供学习研究与合法合规的技术测试使用,禁止用于规避风控、绕过授权、侵犯隐私、诈骗或其他违法用途;违规使用产生的一切后果由使用者自行承担。
  • 若显示未激活、作用域不同步或未更新,重启本模块尝试解决。

开源许可

…

第三方开源组件


LockPerm (English)

Spoof · Protect
An Xposed module based on Libxposed API 102 that brings together spoofing, protection, and control.


LockPerm is a privacy module that works on a per-app basis: it lets target apps read only what you want them to read (spoofing), blocks them from doing things you do not allow (protection), and provides an in-app floating panel for making live UI changes while the app is running (control).

On the Apps page, add the target app to the scope, tap Configure, and enable the features you need under the five tabs: Protection / Permission Spoofing / Device Spoofing / Device Templates / Other Features. Each app has its own independent configuration.


🚀 Quick Start

  1. Enable this module in LSPosed Manager (LSPatch is also supported).
  2. On the Apps page, request scope for the target app.
  3. On the Apps page, tap Configure for an app that has been added to scope.
  4. Enable the features you need under the five tabs; the tabs can be swiped left and right.
  5. Force stop the target app and reopen it for the configuration to take effect.

🛡 Protection Features

Permissions & Device Control

  • Accessibility protection: Block enabling accessibility services; individually disable screen reading, notification listening, window-change listening, input-content reading, simulated actions, accessibility overlays, and key/gesture listening; clear the accessibility service list; spoof the accessibility enabled state.
  • Device Admin / Device Owner protection: Prevent the app from actively requesting device admin privileges, and optionally disable lock screen, password change, factory reset, camera disable, app management, system settings, permission granting, encryption, and other capabilities.
  • Overlays: Block system-level overlays, or "allow and modify" them — click-through, fully transparent, limit screen coverage, customize window flags, and add/remove FLAG_SECURE for all windows.
  • Wallpaper interception: Intercept wallpaper changes regardless of the method used by the app.
  • Install / uninstall interception: Block silent or guided installation, and optionally return a fake "operation succeeded" result.
  • Print / screen-cast interception: Prevent the app from initiating printing or screen casting.
  • Command execution interception: Intercept commands executed by the app (Java/app layer + native layer).

Hardware & Perception

  • Camera / microphone real-time interception: Block hardware access even if permissions have already been granted.
  • Sensor interception: Disable all sensors, or configure each sensor as "do not handle / disable / spoof value / dynamic value".
  • Hardware capability interception: Infrared emitter, biometrics, BLE advertising and active scanning, and screen wake-up.
  • Flashlight / vibration interception: Prevent control of the flashlight and vibration.
  • Screen capture interception: Deny authorization, spoof images/videos, spoof static text, with adaptive content.
  • Audio output interception: Intercept media, calls, ringtones, notifications, alarms, system audio, and TTS separately; optionally intercept only playback with/without audio focus.
  • Volume control: Master interception, fixed volume value, allow only lowering volume, and block changes to ringer mode and mute state.

Data & Traces

  • Private data interception: Clipboard read/write (controlled separately), notification sending, and notification hiding.
  • File protection: Intercept MediaStore and File/NIO create, write, delete, rename, and other operations; choose "internal storage" or "all paths"; file redirection.
  • System download interception: Block system downloads and direct writes to the Downloads collection.
  • Hide app list: Prevent the app's PackageManager from enumerating installed apps; supports allowlist/denylist.
  • Network request domain filtering: Filter domains by allowlist/denylist (partially effective).
  • Screen & power: Prevent the app from keeping the screen on, prevent screen-off without locking, release screen-on locks, screen-off during calls, prevent hiding from recents, and prevent background UI pop-ups (including PendingIntent pop-ups).
  • Key interception: Prevent the app from consuming key events; optionally allow the Back key.

Cross-App & Persistence

  • Navigation interception: Block jumps to other apps; supports allowlists and unknown-package handling policies.
  • IPC interception: Explicit Intent, FileProvider, ContentProvider, and BroadcastReceiver channels; send and receive can be controlled separately; supports strict mode and authority allowlists.
  • Block persistent foreground services: Do not allow the app to stay alive with a persistent notification.
  • Wireless debugging interception: Block ADB over Wi-Fi toggles, pairing, discovery, navigation, and system property entry points (partially effective).
  • Shizuku interception: Block authorization requests and disable calls after authorization.

Stability & Exit

  • Exit features: Countdown, specific time, memory threshold, CPU threshold, storage delta, network disconnect/connect, battery or charging state, specific file change, long idle without touch, accumulated lag, volume change — conditions can be monitored in parallel and trigger the configured exit method.
  • Prevent crashes / self-termination: Adjustable strength; covers process self-kill, exit commands, signals, kill commands, system-service process killing, uncaught exceptions, message-loop exceptions, task finishing after backgrounding, waiting for debugger, and thread guard; native-layer exit and crash interception are limited.
  • App-layer exception catcher: On crash, copy the stack trace to clipboard, write it to the app's private directory, intercept exceptions thrown by the app, and show a details screen after a crash (with optional countdown auto-exit).
  • Intercept automatic back actions: Block closing screens, going back to the previous page, and going to background.

🎭 Spoofing Features

Device Info (Build Fields)

  • Model, brand, manufacturer, fingerprint, serial number, hardware, board, device name, SoC, product, bootloader, radio, display, security patch, incremental version, codename, Base OS, build time/host/tags/type/user, and more.
  • Supports one-tap random generation and clearing all fields.

Identifier Spoofing

  • Android ID, GSF ID, advertising ID (GAID), App Set ID, DRM ID, DRM System ID, Widevine level.
  • OAID / ODID / VAID / AAID, Firebase FID / IID.

Hardware & Kernel

  • Kernel version, architecture, platform, and hardware vendor identifiers.
  • CPU: chip model, board codename, core count, per-core frequency.
  • GPU: vendor, renderer, GL version and GLSL, Vulkan API, driver info, Vendor/Device ID, VRAM and texture limits.
  • Device temperature, battery percentage (can simulate automatic drain), battery details (charging state, current, voltage, design capacity).

Display & Storage

  • App DPI, screen resolution and refresh rate (including supported refresh-rate list).
  • Memory and storage: total RAM, available memory, total storage, available storage.
  • Camera resolution: generate supported photo sizes for front and rear cameras based on pixel count.

Network & SIM

  • Wi-Fi/Bluetooth MAC, SSID/BSSID, IMEI/MEID/ICCID, SIM serial number, subscription ID, carrier and name, country code, phone number.
  • eSIM support, mobile data, and roaming state spoofing.
  • VPN / proxy hiding: VPN network interface, transport capabilities, legacy NetworkInfo, HTTP proxy, related system settings, with customizable interface name.
  • Network identity: LAN IPv4/IPv6, gateway, DNS, Wi-Fi standard; covers Socket, LinkAddress, InetAddress, and multiple native-layer address lookup paths.

Wi-Fi / Bluetooth State Spoofing

  • When offline, report the network state as "connected to Wi-Fi"; customize SSID, BSSID, signal, rate, IP, and frequency; spoof scanned hotspot lists; block saved-network queries.
  • Bluetooth: spoof enabled state, local name and MAC, paired devices, connected devices, scan list, and device types.

System Environment

  • Time zone, language/locale, uptime, vbmeta digest, boot id.
  • System time: specific time (keep ticking / freeze) or minute offset; can also spoof the native layer.
  • Spoof developer options as disabled; control USB debugging and wireless debugging separately.

Location & Cell Towers

  • Coordinates (latitude/longitude/altitude/accuracy); can rewrite all Location object fields.
  • Intercept by channel: GPS (including GNSS raw data: satellite status, measurements, NMEA), network location (including Wi-Fi scan results), fused location, and telephony.
  • Cell tower info: MCC/MNC/LAC/CID/PCI; phone and SMS storage (sms/mms/call_log).

Services & Root

  • Spoof Google Play services as installed: package query, availability check, GAID, version info.
  • Spoof Huawei Mobile Services (HMS) as installed: package query, availability check, OAID, version info.
  • Root spoofing: spoof su file existence, mask "Permission denied" as successful execution, and switch between "rooted / not rooted (limited effect)".

Permission Spoofing

  • Covers contacts, SMS, call logs, phone, storage, location, calendar, camera, microphone, body sensors, notifications, nearby devices, activity recognition, health data, accessibility, device admin, notification listener, usage access, overlays, install unknown apps, all files access, exact alarms, battery optimization, autostart, VPN, modify system settings, background pop-ups, media management, full-screen notifications, audio settings, lock-screen display, live wallpaper, do-not-disturb, picture-in-picture, premium SMS, and other permission groups.
  • When enabled, permissions are spoofed as "granted"; some permissions can return fake data: fake contacts, fake SMS, fake call logs, fake file directories, fixed coordinates, fake calendar events, in-range sensor values, fake notifications, fake Bluetooth devices, fake usage stats, and more.

Web / WebView Spoofing

  • User-Agent: randomized presets or manual input.
  • WebView fingerprint: screen and pixel ratio, CPU cores, memory, touch points, platform and vendor, WebGL vendor and renderer, navigator.languages, timezone offset.
  • Time and geolocation: rewrite JS Date, timezone and Intl.timeZone, spoof geolocation.
  • Hide webdriver/selenium markers, declare DNT, WebRTC protection or disable it entirely.
  • Fingerprint noise: add random perturbation to Canvas/WebGL/Audio values with adjustable strength.
  • Basic switches: force-enable JavaScript, ignore certificate errors, inject custom JavaScript.

🧰 Other Features

  • Text replacement: Four scopes — web, View, drawing/Compose, and other components (notifications, tiles, Toast, media, etc.); supports exact/regex/lenient matching, case-insensitive matching, long text, and replacement diagnostics.
  • Tap content: Automatically tap when specified text or control ID appears on screen; supports contains/exact matching, repeat interval, and repeat count.
  • Control interception: Hide controls by control ID, text, resource name, class name, content description, or coordinate area; includes preset types and states; can output to logs.
  • Remove dialogs: Attach a round button to the top-left corner of dialogs; tap it to choose how to handle the dialog.
  • Method execution interception: Intercept any method by class name + method name; specify return value, list parameter types, and output logs.
  • Command execution recording: Record commands actually executed by the app (including native layer); supports pop-up prompts, real-time floating display, silent recording, and optional output capture.
  • Global proxy: Route traffic from selected apps into a tunnel; supports allowlists.
  • Device templates: Save a full set of device parameters as a template and apply it to any app with one tap; supports import/export, copy, and source-mode editing.
  • Detection testing: For testing an app's detection strength — master switch + byte consistency, class-name detection, memory (maps/smaps), injection traces, virtualization, IO redirection, log signature filtering or clearing; can be a global default or overridden per app.
  • Native-layer hooks: Cover properties, uname, time, files, stat, exec, exit, network, read, mmap, GPU, sensors, and more; can be toggled per app.

🎛 Control Panel

A floating ball is attached to the top-left corner of the target app's screen. Tap it to open the panel, and changes take effect immediately without restarting the target app:

  • Log sections: Multiple log sections can be switched; supports saving and copying.
  • Enhanced picker: Swipe to highlight and tap to select a control, then remove it, hide it, change text, change color, replace image, save image, convert control to image, or take a full-page screenshot; also switch between parent/child/previous/next controls.
  • Persistence: Changes marked as "persistent" are remembered and applied automatically the next time the app starts.
  • One-tap functions.
  • Command section: Share one sh session for entering and executing commands directly.
  • Control info: View control properties, currently effective configuration, permission self-check, thread stacks, resolution, and other runtime information.
  • Details: The panel can be minimized or hidden; after hiding, press a volume key to bring it back; if covered by a dialog, tap five times within 1 second anywhere on the screen to bring it to front.

📱 The Module Itself

  • Appearance: Language, dark mode and switch time, theme color and color style, contrast and text outline, live wallpaper, blur and transparency.
  • Interface: Home transition animation, config page slide-up, corner shape, config page component scale, and app DPI.
  • Icons: Create a custom shortcut icon on the home screen from any image, or disable all launcher icons to hide the module.
  • Other: Configuration backup export/import, check for updates, touch vibration, splash animation, predictive back gesture.
  • LSPatch mode: After activation, apps can be configured directly on the Apps page (add scope in LSPatch).

⚠️ Notes

  • The module only works inside the target app's process and does not run any persistent background service.
  • Some configuration changes require force stopping the target app and reopening it to take effect.
  • Protection features may affect the target app's normal use; enable them as needed.
  • Crash logs are written to /storage/emulated/0/Android/data/{target package name}/files/.
  • Detection testing adds overhead, has limited effectiveness, is disabled by default, and should be enabled only when needed.
  • 🚫 Do not use this module for Android system programs. Use of this module in critical scenarios involving finance, account security, property, etc. is prohibited. This module is intended solely for learning, research, and lawful and compliant technical testing. It is prohibited to use it to evade risk controls, bypass authorization, infringe on privacy, commit fraud, or for other illegal purposes; all consequences arising from misuse shall be borne by the user.
  • If the module shows inactive, scope is out of sync, or it is not updated, try restarting the module.

License

…

Third-party open-source components

Releases

11/6/2026, 12:03:57 PM

5.4.0

中文 | English

中文

🛠️ 修复

  1. 修复 JS 编辑器闪退问题
  2. 修复刷新后脚本丢失问题
  3. 修复应用切换 Activity 时悬浮窗消失问题
  4. 修复悬浮窗频繁刷新问题

✨ 新增与优化

  1. 新增模块自身崩溃捕获与崩溃测试
  2. 新增命令记录广播凭证
  3. 新增备份/导入配置校验
  4. 新增本地 JS 文件注入
  5. 命令记录每个应用的上限从 300 条放宽到 1000 条,并在弹窗顶部增加搜索框
  6. 完善文件拦截,优化文件重定向
  7. 优化检查更新弹窗
  8. 检查更新新增应用内下载安装和下载源切换
  9. 完善翻译
  10. 优化连续点击 5 次重建悬浮窗的逻辑,并修复部分页面无法识别点击的问题
  11. 将悬浮窗音量键监听由轮询改为广播

📦 版本

5.3.0 → 5.4.0


English

🛠️ Fixes

  1. Fixed JS editor crashes
  2. Fixed scripts being lost after refresh
  3. Fixed the floating window disappearing when the app switches activities
  4. Fixed frequent refreshes of the floating window

✨ New Features & Improvements

  1. Added module self-crash capture and crash testing
  2. Added broadcast credentials for command logs
  3. Added validation for backup/import configurations
  4. Added local JS file injection
  5. Increased the command log limit per app from 300 to 1,000 entries, and added a search box at the top of the dialog
  6. Completed file interception support and optimized file redirection
  7. Improved the check-for-updates dialog
  8. Added in-app download/install and download source switching to check-for-updates
  9. Completed translations
  10. Optimized the logic for rebuilding the floating window after five consecutive clicks, and fixed an issue where clicks were not recognized on some pages
  11. Changed floating window volume-key monitoring from polling to broadcast

📦 Version

5.3.0 → 5.4.0

Assets

1

10/31/2026, 7:11:03 AM

中文 | English


LockPerm 5.3.0


一、🪟 悬浮窗与拾取控件(仅 Android Views XML)

新增

  • 滑动拾取:手指滑动过程中实时更新选中控件,不再仅在高亮按下和松手时更新。
  • 切换窗口:菜单内可列出当前所有窗口(由外到内排序,标注类名与尺寸坐标);点击锁定到指定窗口后,只拾取该窗口内控件。
  • 输入内容:菜单内按钮,仅在检测到输入框时出现;可向输入框填入内容(覆盖 / 追加 / 清空),忽略字数与内容限制。
  • 移除 / 隐藏:记录结构路径作为强特征,避免误伤同类控件。
  • 重建悬浮窗:1 秒内连续点击屏幕任意处 5 次即可触发重建。
  • 网页拾取组件:注入 JavaScript 脚本实现功能(LayoutX_lockperm)。
  • 生效持久化配置:主开关关闭后仍可打开;不显示悬浮窗,仅让已保存的改动生效。
  • 父控件 / 子控件 / 上一个 / 下一个切换:手指点不中的小控件也能选到。
  • 间距与大小:支持设置内间距 / 外间距 / 宽 / 高(单位 dp),并可持久化修改。
  • 在所有控件上显示方框、移除整个窗口。
  • 保存图片:帧动画可逐帧导出 PNG,或直接保存为 GIF、WebP;支持保存原始图片。
  • 触发点击:支持精确时间(24 小时制)或进入应用后倒计时触发点击,并可设置重复次数与间隔。
  • 点击内容:页面出现指定文字或控件 ID 时自动点击;支持精确匹配,最小间隔 200 ms。
  • 存储 / Cookie 键值编辑:改用 RecyclerView。

修复与优化

  • 修复高亮浮层位置偏移问题。
  • 修复菜单被弹窗遮挡在下方、无法点击的问题。
  • 修复无法选到上层窗口的问题(改为按窗口类型 z 序排序,而非按加入顺序)。
  • 修复最小化贴边后展开时跑出屏幕的问题(展开及修改尺寸后自动夹回屏幕内)。
  • 修复菜单与面板窗口不可聚焦导致输入无效的问题。
  • 修复切换页面时悬浮窗位置、最小化位置与贴边位置无法保持的问题。
  • 修复部分情况下悬浮窗“执行 JS”点击后完全无响应的问题。

二、⏱️ 触发点击与自动点击

新增

  • 定时点击:设置延时与重复次数后按计划点击,支持倒计时与指定时刻两种模式。
  • 目标匹配:支持按 ID(十六进制 / 十进制 / 资源名)、文字、类名匹配。

三、🧩 其他功能页

新增

  • 点击内容:进入应用后扫描所有窗口,命中即点击。
    • 输入框一(包含匹配):支持文字、ID(十六进制 / 十进制 / 完整资源名 / 简写 / 纯 ID 名)。
    • 输入框二(精确匹配):只识别文字,必须完全一致。
  • 测试检测:用于测试应用的检测(通用型)。
  • 文字替换:替换应用内显示文字。
  • 执行命令记录:记录应用执行过的命令。
  • 拦截方法执行:smali。

修复与优化

  • WebView 功能:修复 WebView 脚本被重复执行 3~5 次的问题;优化 JavaScript 编辑,新增语法高亮、优化流畅度,并支持放大缩小。
  • 异常捕获默认行为:改为“捕获到崩溃后弹出界面”,不再默认“写入私有目录”。

四、🖼️ 图片相关

新增

  • 查看图片:优先显示原始图片,动图会动态播放(GIF 与动画 WebP);取不到原始数据时,才退回控件转图片。
  • 保存图片:优先导出原始字节,保留完整帧序列与动画信息;帧动画导出为逐帧 PNG;退回静态 PNG 时会明确提示。

五、🎨 外观与界面

新增

  • 模糊:模糊界面后方透出的内容。
  • 主页切换动画:默认、翻页、转盘、翻转、景深、方盒。
  • 配置页向上弹出:点击应用卡片的“配置”时从底部滑入。
  • 开屏动画:默认开启,可关闭。

六、🛡️ 防护功能页

新增功能

  • 红外发射。
  • 生物识别(指纹 / 人脸):含三个子开关——直接拦截 / 伪装识别成功 / 伪装识别失败。
  • 蓝牙广播。
  • 开启屏幕。
  • 请求安装 / 卸载应用(原“应用安装拦截”):拦截后系统不再弹确认框。
  • 阻止跳转到其他应用:新增白名单 / 黑名单模式切换,以及隐式跳转处理开关。
  • 进程间通信阻止(原“禁止 BridgeProvider”):扩展至 Intent、FileProvider、ContentProvider、BroadcastReceiver。
  • 文件重定向:把应用对文件的操作整体挪到目标应用私有目录下。
  • 传感器逐项配置:传感器伪装重写,不再局限于禁用。
    • 模式:不处理 / 禁用 / 伪装值。
    • 可配置传感器:加速度计、线性加速度、重力方向、陀螺仪、未校准陀螺仪、未校准加速度计、磁力计、未校准磁力计、方向传感器、旋转矢量、游戏旋转矢量、地磁旋转矢量、光线传感器、距离传感器、气压计、环境温度、相对湿度、计步器、步法检测显著运动、心率、体表温度、心跳、6 自由度姿态、静止检测、运动检测、佩戴检测、铰链角度、航向角(未全部测试)。
    • 动态值写法:rand:min:max、jitter:base:amp、wave:base:amp:周期ms、step:start:inc[:上限]。
    • 全部禁用:独立成一项;打开后,逐项配置一律不生效。
  • 伪装蓝牙连接状态和列表:修复功能无效问题;分为已配对设备列表与扫描设备列表。
  • 拦截系统下载:新增显示凭证、URL 等详细信息。

修复

  • 修复“阻止跳转到其他应用”按包名伪装时全部拦截失败的问题。
  • 修复无障碍功能部分导致的卡顿问题(≤5.2.0 版本均存在)。
  • 修复总开关关闭后部分功能仍然生效的问题。

七、🔐 拓展权限伪装

新增

补全 Android 9~17 的部分运行时权限与特殊权限,包括修改系统设置、修改系统音频设置、粗略位置、锁屏显示、动态壁纸服务、附近设备、访问手机账号、修改联系人、读取短信与彩信、通知类短信、添加语音邮件、SIP 视频服务、勿扰权限、设备与应用通知、画中画、付费短信等。

优化

优化隐藏 VPN / 代理与系统状态伪装,并补全部分钩子。


八、📱 设备伪装

新增

  • 安装 UUID。
  • Media DRM ID。
  • DRM systemId。
  • Widevine 级别(L1 / L2 / L3)。
  • ODID / VAID。
  • CPU 核心数。
  • CPU 自定义模式:支持分别填写芯片型号、板型代号、硬件厂商标识、cpuinfo 原文。
  • 设备模板:优化采集。

修复与优化

  • 修复 OAID 长度错误。
  • 修复板型代号不一致。
  • 修复 Build 字段的 SOC 改动后不向上同步。
  • 修复 IPv4 伪装露出真实地址。
  • 修复 IP 伪装卡死 / 崩溃。
  • 属性“多源冲突”:Build / SystemProperties / getprop 伪装到位;仍无法做到系统调用(syscall)、内存 mmap(/dev/_properties_)、属性遍历(_system_property_foreach)(部分)。
  • 修复总开关关闭后部分伪装仍然生效的问题。
  • 修复部分内容伪装无效(可能还有)。
  • 伪装获取系统时间支持填写(yyyy-MM-dd HH:mm:ss)。
  • 修复伪装系统运行时间导致应用卡死的问题。

九、🧱 增强防护功能页

新增

  • 禁止随意创建文件:新增两种模式,另可选择“伪装成功”(效果有限)。

十、📝 日志记录

新增与优化

  • 完善自动点击排程、等待剩余时间、查找目标、次数用尽等诊断日志。
  • 移除“存在老规则”的误报提示。
  • 同步更新五击重建相关文案与日志。

⚠️ 行为变更与移除

说明

  • minApiVersion:102 → 101。

升级提示


LockPerm 5.3.0


1. 🪟 Floating Window & Widget Picking (Android Views XML only)

Added

  • Sliding picking: updates the selected widget in real time while the finger slides, instead of only on highlight press and release.
  • Switch window: the menu lists all current windows (sorted from outermost to innermost, with class name and size/coordinates); after tapping to lock to a specified window, only widgets in that window are picked.
  • Input content: a menu button that appears only when an input box is detected; fills content into the input box (overwrite / append / clear), ignoring character-count and content restrictions.
  • Remove / Hide: records the structural path as a strong feature to avoid affecting similar widgets.
  • Rebuild floating window: tap anywhere on the screen 5 times within 1 second to trigger a rebuild.
  • Web widget picker: implemented by injecting a JavaScript script (LayoutX_lockperm).
  • Persistent effective config: can be enabled even when the main switch is off; no floating window is shown, and only saved changes take effect.
  • Parent / child / previous / next switching: small widgets that cannot be tapped precisely can also be selected.
  • Spacing and size: supports padding / margin / width / height (in dp), persistently modifiable.
  • Show boxes on all widgets, remove the entire window.
  • Save image: frame animations can be exported frame by frame as PNG or saved directly as GIF/WebP; original images can also be saved.
  • Trigger tap: exact time (24-hour clock) or countdown after entering the app; repeat count and interval can be set.
  • Tap content: automatically taps when specified text or widget ID appears on the page; supports exact matching, minimum interval 200 ms.
  • Storage / Cookie key-value editing: switched to RecyclerView.

Fixes & Improvements

  • Fixed highlight overlay position offset.
  • Fixed the menu being covered by dialogs and unable to be tapped.
  • Fixed inability to select upper-layer windows (now sorted by window-type z-order instead of insertion order).
  • Fixed the window going off-screen after minimizing to the edge and expanding (now automatically clamped back within the screen after expanding or resizing).
  • Fixed menu and panel windows being unable to gain focus, causing invalid input.
  • Fixed floating window position, minimized position, and edge-snap position not being retained when switching pages.
  • Fixed "Execute JS" in the floating window doing nothing in some cases.

2. ⏱️ Trigger Taps & Auto Taps

Added

  • Scheduled tap: taps on schedule after setting delay and repeat count; supports countdown and specified-time modes.
  • Target matching: supports matching by ID (hexadecimal / decimal / resource name), text, and class name.

3. 🧩 Other Feature Pages

Added

  • Tap Content: scans all windows after entering the app and taps on a match.
    • Input box 1 (contains match): supports text and ID (hexadecimal / decimal / full resource name / abbreviation / plain ID name).
    • Input box 2 (exact match): text only; must be completely identical.
  • Test Detection: used to test app detection (generic).
  • Text Replacement: replaces text displayed in the app.
  • Executed Command Log: records commands executed by the app.
  • Intercept Method Execution: smali.

Fixes & Improvements

  • WebView feature: fixed WebView scripts being executed 3–5 times repeatedly; optimized JavaScript editing with syntax highlighting, smoother performance, and zoom in/out.
  • Default exception-catching behavior: changed to "show a UI after a crash is caught" instead of "write to a private directory".

4. 🖼️ Images

Added

  • View Image: prioritizes the original image; animated images play dynamically (GIF and animated WebP); falls back to converting the widget to an image only when original data is unavailable.
  • Save Image: prioritizes exporting original bytes and preserves the full frame sequence and animation info; frame animations are exported as frame-by-frame PNGs; a clear prompt is shown when falling back to static PNG.

5. 🎨 Appearance & UI

Added

  • Blur: blurs content showing through behind the UI.
  • Home transition animations: Default, Page Turn, Carousel, Flip, Depth, Box.
  • Config page slides up: slides in from the bottom when tapping "Config" on an app card.
  • Splash animation: enabled by default; can be turned off.

6. 🛡️ Protection Features

Added

  • Infrared emission.
  • Biometrics (fingerprint / face): with three sub-switches — block directly / fake success / fake failure.
  • Bluetooth broadcast.
  • Turn screen on.
  • Request app install/uninstall (formerly "App Install Interception"): after interception, the system no longer shows a confirmation dialog.
  • Block jumping to other apps: added whitelist/blacklist mode switch and an implicit-jump handling switch.
  • IPC blocking (formerly "Disable BridgeProvider"): extended to Intent, FileProvider, ContentProvider, BroadcastReceiver.
  • File redirection: moves the app's file operations as a whole to the target app's private directory.
  • Per-sensor configuration: sensor spoofing rewritten, no longer limited to disabling.
    • Modes: leave unchanged / disable / spoofed value.
    • Configurable sensors: accelerometer, linear acceleration, gravity direction, gyroscope, uncalibrated gyroscope, uncalibrated accelerometer, magnetometer, uncalibrated magnetometer, orientation sensor, rotation vector, game rotation vector, geomagnetic rotation vector, light sensor, proximity sensor, barometer, ambient temperature, relative humidity, pedometer, step detection, significant motion, heart rate, body surface temperature, heartbeat, 6-DOF pose, stationary detection, motion detection, wear detection, hinge angle, heading angle (not all tested).
    • Dynamic value syntax: rand:min:max, jitter:base:amp, wave:base:amp:period_ms, step:start:inc[:upper_limit].
    • Disable all: a separate item; once enabled, per-item configurations have no effect.
  • Spoof Bluetooth connection status and list: fixed the ineffective feature; separated into paired-device list and scanned-device list.
  • Intercept system downloads: added display of credentials, URL, and other detailed information.

Fixes

  • Fixed "Block jumping to other apps" failing to block anything when spoofing by package name.
  • Fixed lag caused by part of the accessibility feature (present in versions ≤5.2.0).
  • Fixed some features still taking effect when the main switch was off.

7. 🔐 Extended Permission Spoofing

Added

Completed some runtime and special permissions for Android 9–17, including modify system settings, modify system audio settings, coarse location, show on lock screen, live wallpaper service, nearby devices, access phone accounts, modify contacts, read SMS and MMS, notification SMS, add voicemail, SIP video service, Do Not Disturb permission, device and app notifications, Picture-in-Picture, premium SMS, etc.

Improvements

Optimized hiding VPN/proxy and system status spoofing, and completed some hooks.


8. 📱 Device Spoofing

Added

  • Installation UUID.
  • Media DRM ID.
  • DRM systemId.
  • Widevine level (L1 / L2 / L3).
  • ODID / VAID.
  • CPU core count.
  • CPU custom mode: supports separately filling in chip model, board codename, hardware vendor identifier, and raw cpuinfo.
  • Device template: improved collection.

Fixes & Improvements

  • Fixed OAID length error.
  • Fixed inconsistent board codename.
  • Fixed SOC changes in Build fields not being synchronized upward.
  • Fixed IPv4 spoofing leaking the real address.
  • Fixed IP spoofing freezing/crashing.
  • Property "multi-source conflicts": Build / SystemProperties / getprop spoofing is in place; still cannot handle syscalls, memory mmap (/dev/_properties_), property enumeration (_system_property_foreach) (partially).
  • Fixed some spoofing still taking effect when the main switch was off.
  • Fixed some content spoofing being ineffective (possibly more).
  • Spoofed system time can be set (yyyy-MM-dd HH:mm:ss).
  • Fixed spoofing system uptime causing app freezes.

9. 🧱 Enhanced Protection Features

Added

  • Prevent arbitrary file creation: added two modes, plus an optional "fake success" (limited effect).

10. 📝 Logging

Added & Improved

  • Completed diagnostic logs for auto-tap scheduling, remaining wait time, target search, attempt exhaustion, etc.
  • Removed the false-positive prompt "old rules exist".
  • Updated five-tap rebuild-related copy and logs.

⚠️ Behavior Changes & Removals

Notes

  • minApiVersion: 102 → 101.

Upgrade Notice


Repo

Assets

1

10/12/2026, 5:02:13 AM

😸 更新说明

发布日期:2026-10-12
适用版本:v5.2.0
基于 Libxposed API 102


✨ 一、新增功能

🕸️ 1. 伪装类

蓝牙连接状态与列表伪装(防护功能页 → 新增「伪装蓝牙连接状态和列表」)

  • 蓝牙状态
  • 本机蓝牙名称、蓝牙 MAC
  • 已配对设备列表与已连接设备列表

网络参数伪装细化(设备伪装页 → 伪装内网 IP)

  • 网关 / DNS

WebView 伪装(其他功能页 → WebView 功能)

  • 更新部分内容

🛡️ 2. 防护类

拦截系统下载(防护功能页 → 新增「拦截系统下载」)

  • 拦截 DownloadManager.enqueue,可选「直接阻止」或「弹出询问」

全局代理 / VPN 隧道接管(其他功能页 → 新增「网络代理」)

  • 接管目标应用创建的 VPN 隧道,决定哪些应用的流量经过它。

控件拦截 / 去除弹窗(其他功能页 → 新增「界面控制」)

  • 控件拦截:自定义, Dialog / DialogFragment / PopupWindow等

无障碍服务列表清空(防护功能页 → 无障碍功能)

  • 新增「清空无障碍服务列表」

🚪 3. 退出条件

  • 内部存储占用增加超过阈值:替换原来的「剩余存储空间低于阈值」。打开应用时记一次基线,之后持续监听增量,增量达到设定值即退出。
  • 卡顿检测方式可选:自动 / 掉帧统计 / 主线程阻塞 / 日志识别。

🎛️ 4. 控制面板

  • 优化一些地方

🎨 二、模块自身界面

外观部分

  • 语言:跟随系统 / 简体中文 / English
  • 深色模式:跟随系统 / 浅色 / 深色 / 系统时间
  • 色彩对比度:−100 ~ +100。
  • 文字对比度:0 ~ 100。

🧩 其它界面改进

  • 应用 DPI(新增):跟随系统 / 小 320 / 标准 440 / ……整体改变界面尺寸;与原有的「配置页组件缩放」(只影响配置页控件)区分开。
  • 触摸震动(新增):点击按钮时轻微震动,可关闭。
  • 应用列表排序与标签:「最近配置 / 更新 / 新安装 / 已添加」标签。
  • 主页:主页卡片新增歪歪动画

Assets

1

10/6/2026, 3:00:41 AM

LockPerm 更新说明


一、♿ 无障碍与设备管理员接口补全

🔧 修复

  • 无障碍接口:补全状态查询、内部状态位、Settings 旁路、读屏旁路、Binder 直连、清单扫描等遗漏点
  • 设备管理员接口:补全按名字匹配的全部重载、Binder 代理、设置旁路

✨ 新增

  • 无障碍:新增「默认 / 伪装成功」两种拦截方式
  • 设备管理员:新增「默认 / 伪装成功」两种拦截方式
  • 设备管理员:补全一些能力接口,各功能标题标注适用范围

二、📡 传感器与屏幕捕获

🔧 修复

  • 拦截屏幕捕获时,伪装画面自适应失效,画面仍被拉伸
  • 单独开启「阻止消费按键事件」时不生效

✨ 新增

  • 增强「阻止获取传感器数据」,防止通过自行实现回调绕过限制

三、🎨 界面

🔧 修复

  • 主页面切换动画不流畅
  • 自定义主题色调出的颜色与实际应用不一致
  • 设备模板列表一行一个、卡片过高
  • 窗口标志选中不高亮、总开关无法关闭
  • 隐藏桌面图标后,LSPosed 里的模块入口也一并消失
  • 取消隐藏后图标变回原版

✨ 新增

  • 关于页新增「检查更新」入口
  • 悬浮窗新增「命令3」区域:持久 sh 会话
  • 配置页改为 5 个可左右滑动的页面:防护功能 / 权限伪装 / 设备伪装 / 设备模板 / 其他功能
  • 设备模板支持每行 1 / 2 / 3 个
  • 关于页:LSPatch 激活模式下应用页取消置灰、去掉「添加」
  • ……省略号

四、🛡️ 防护功能

✨ 新增

  • 禁止从后台任务中隐藏
  • 悬浮窗子功能:可穿透点击、完全透明、限制大小
  • 禁止隐藏通知
  • 禁止通过 ContentProvider 暴露数据
  • 禁止前台常驻服务
  • 禁止应用使屏幕常亮
  • 禁止获取已保存的 WiFi 列表
  • 窗口标志:FLAG_SECURE 去除 / 加上,以及 24 个自定义标志

🔧 修复

  • 日志显示写反:「日志1 / 日志2」内容显示颠倒
  • CPU 占用阈值不生效
  • 退出功能整合:倒计时退出与条件退出合并到同一张卡
    • 条件包括:倒计时 / 指定时刻 / 内存超阈值 / CPU 超阈值 / 磁盘不足 / 网络断连 / 电量或充电 / 指定文件变动 / 长时间无操作
  • 悬浮窗子功能失效:穿透点击导致整个页面点不动、透明导致界面全黑、限制大小无效
  • 后台久置后重新进入显示未激活,需杀进程才恢复
  • ……省略号

五、🎭 伪装功能

✨ 新增

  • 伪装设备拥有 Google Play 服务
  • 伪装设备拥有 Huawei Mobile Services
  • 位置与基站伪装:GPS / …
  • 电量自动下降(每 N 分钟掉一格)
  • 权限伪装:新增「附近设备、身体活动、健康数据」三个权限组,补全已有权限组
  • 权限伪装:每个可伪造的权限新增「返回伪造数据」,数据每次启动重新随机
  • 位置伪装的 WiFi 扫描与防护功能页的 WiFi 伪装联动

🔧 修复

  • 高版本 SDK 伪装导致应用闪退
  • 权限伪装的部分检测入口漏拦

六、⚡ 性能与稳定性

🔧 修复

  • 严重卡顿:钩子在同一进程内重复安装、日志 I/O 过多、无障碍看门狗重复启动
  • 全部功能失效:配置读取时序问题
  • 模块整体失效:VerifyError
  • 无障碍伪装成功模式下闪退
  • 阻止消费按键有 0.3~0.5 秒延迟
  • 崩溃处理器成环导致无限递归
  • ……

Assets

1

10/3/2026, 2:03:48 AM

LockPerm 更新说明(v4.9.0)

适用模块:LockPerm

✨ 新增功能

1. 画面自适应开关(默认开启)

  • 防护配置页 → 「虚拟画面」卡片内新增 「画面自适应」

2. 音量键手动切换素材

  • 音量下键 → 切到下一个素材;音量上键 → 切到上一个素材 (可能需要按两下)
  • 触发后 3 秒冷却,防抖
  • 触发时弹 Toast:已切换 xxx(xxx 为文件名)
  • 在悬浮窗录屏、非前台 Activity 场景下同样可用
  • 手动切换不受自动切换规则限制,可在 视频 / 图片 / 音频 之间任意翻

3. 「禁止任何方式消费按键事件」独立开关

  • 位于防护配置页最底部,独立功能
  • 作用:阻止目标应用(含前台 Activity、Dialog、DecorView 重写,以及无障碍服务)把物理按键消费掉

4.禁止后台弹出界面


🐛 修复

1. 音画不同步 / 录 10 秒变 2 分多秒

  • 统一时间轴 ScreenStage,视频帧与音频采样共用同一条墙钟时间轴
  • AudioRecord.read() 严格按真实时间节流,不再空转编码
  • 彻底解决“视频循环、音频卡一下、时长被撑长”的问题

2. 第二次启用录制画面卡住

  • 根因:时间轴只在进程首次起录时锚定,两次录制间隔导致播放位置越界,seek 解不出帧,停在上一轮最后一张静止画面
  • 现每次 captureActive 由 false→true 调用 resetSession(),时间轴归零
  • tick() 改为先对整轮时长取模,任意间隔都能正确归位

3. 多视频顺序播放时后续视频静音

  • 切素材后先预解码填满缓冲
  • decodeMore 支持重试

🔧 优化

素材匹配与自动切换规则

  • 支持命名:media_projection.mp4 / media_projection_2.mp4 / mediaprojection1.mp4 / media-projection-2.mp4(下划线/连字符可有可无,按数字排序)
  • 仅一个素材时:视频循环播放;图片静态常驻
  • 自动切换规则:
    • 以第一个有进度的素材类型(视频或音频)为准,同类型按序号连播
    • 图片不参与自动切换,只能音量键手动切
  • 当前为音频素材时:显示方案(b)灰底文字,中间行显示该音频文件名
  • 音频后缀支持:.aac .m4a .mp3 .wav .ogg .opus .flac .amr,以 MediaExtractor 实际探测为准
  • AudioPlaybackCapture 路径同样注入音频

Assets

1