Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

New Xposed Module Config Plan #49

Open
Assignees
fankes
Labels
enhancementNew feature or request
Milestone
@fankes

Description

@fankes

New Xposed Module Config Plan

The API currently uses annotations and KSP to complete the automatic generation of entry class code.

Some codes still need to be manually configured, such asmeta-data of the Xposed Module.

Currently, Android projects are managed uniformly using the Gradle build system, so we decided to remove KSP, launch a Gradle plugin to fully automate the entire Xposed Module configuration, and use YAML as a new configuration file language for management.

The following example

generator:target-type:COMPATuse-activity-proxy:trueuse-data-channel:truexposed-module:package-name:com.mydemojava-entry:com.mydemo.hook.MyModulenative-entry:mymodule# libmymodule.sodescription:My new Xposed Module.api-level:100host-scopes:com.android.systemuicom.android.phone

The Gradle plugin will automatically generate various types of Xposed Modules based on the configuration file content, and automatically generate corresponding types of configuration files, such as traditional Rovo89 and modern libxposed as well as more compatible Xposed Module types.

The style of the configuration file is only a first draft and will be modified later for actual functionality.

新的 Xposed 模块配置方案

API 目前使用注解配合 KSP 来完成入口类代码的自动生成,部分代码依然需要手动进行配置,例如 Xposed 模块的meta-data

目前 Android 项目统一使用 Gradle 构建系统进行管理,所以我们决定去掉 KSP,推出一个 Gradle 插件来实现整个 Xposed 模块配置的完全自动化,并采用 YAML 作为新的配置文件语言进行管理。

示例如下

generator:target-type:COMPATuse-activity-proxy:trueuse-data-channel:truexposed-module:package-name:com.mydemojava-entry:com.mydemo.hook.MyModulenative-entry:mymodule# libmymodule.sodescription:My new Xposed Module.api-level:100host-scopes:com.android.systemuicom.android.phone

Gradle 插件会根据配置文件内容自动生成各种类型的 Xposed 模块,自动生成对应类型的配置文件,例如传统的 Rovo89 和现代的 libxposed 以及更多兼容的 Xposed 模块类型。

配置文件的样式只是一个初稿,后期会针对实际功能进行修改。

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2026 Movatter.jp