Skip to content

Xposed module hot loader does not need to restart the phone

Notifications You must be signed in to change notification settings

kaisar945/Xposed-HotLoader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XposedHotLoader

这是什么?

Xposed模块热加载器,在开发中无需每次重启手机即可应用新的代码

如何使用?

  1. 克隆HotLoader库到工程目录git clone https://github.com/jrsen/Xposed-HotLoader.git libhotloader

  2. 编辑工程settings.gradle添加include ':libhotloader'hotloader项目添加到项目工程

  3. 编辑主项目build.grade添加依赖implementation project(path: ':libhotloader')

  4. 编辑主项目assets/xposed_init文件使用com.kaisar.xposed.hotloader.HotLoader替换原来的内容,并且将您的Xposed初始化类在AndroidManifest.xml的Application标签中声明

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.kaisar.hotloader.example">
    
        <application >
            <meta-data
                android:name="xposed_init"
                android:value="your.xposed.init.class" />
        </application>
    
    </manifest>
  5. 重启手机激活热加载功能

常见问题

  • 更新模块后新的代码没有生效?

    所有改动都将在目标进程重启后应用,你可以手动杀死目标进程以应用新的模块

English

About

Xposed module hot loader does not need to restart the phone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages