LSPatch 自行编译

LSPatch 自行编译

拉取镜像

git clone --recursive git@github.com:LSPosed/LSPatch.git

gradle/wrapper/gradle-wrapper.properties 修改 gradle 版本

distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip

问题处理

Could not find io.github.libxposed:api:100

git clone --depth 1 https://github.com/libxposed/api.git libxposed/api
git clone --depth 1 https://github.com/libxposed/service.git libxposed/service

cd libxposed/api
./gradlew :api:publishApiPublicationToMavenLocal
cd ../service
./gradlew :interface:publishInterfacePublicationToMavenLocal

调整 gradle java内存大小 gradle.properties

org.gradle.jvmargs=-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

Copyright: 采用 知识共享署名4.0 国际许可协议进行许可

Links: https://zwc365.com/2024/01/23/lspatch自行编译

Buy me a cup of coffee ☕.