mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-06 10:45:47 +08:00
feat: update demo
This commit is contained in:
@@ -100,10 +100,14 @@ object HookEntry : IYukiHookXposedInit {
|
|||||||
// 可用的元素有:[TAG]、[PRIORITY]、[PACKAGE_NAME]、[USER_ID]
|
// 可用的元素有:[TAG]、[PRIORITY]、[PACKAGE_NAME]、[USER_ID]
|
||||||
elements(TAG, PRIORITY, PACKAGE_NAME, USER_ID)
|
elements(TAG, PRIORITY, PACKAGE_NAME, USER_ID)
|
||||||
}
|
}
|
||||||
// Whether to enable debug mode
|
// Whether to enable debug mode, not enabled by default
|
||||||
// Please note, for a release build, be sure to turn off debugging to prevent a lot of log stuffing on the user's device
|
// Note: Please selectively enable this feature, this can cause I/O performance issues caused by continuous output logs
|
||||||
// 是否开启调试模式
|
// Please note, for a release build, be sure to turn off this function to prevent a lot of log stuffing on the user's device
|
||||||
// 请注意 - 若作为发布版本请务必关闭调试功能防止对用户设备造成大量日志填充
|
// To facilitate testing whether the module is activated, the demo enables this function by default
|
||||||
|
// 是否启用调试模式 - 默认不启用
|
||||||
|
// 注意:请选择性启用此功能 - 这会导致持续输出日志造成的 I/O 性能问题
|
||||||
|
// 若作为发布版本请务必关闭此功能防止对用户设备造成大量日志填充
|
||||||
|
// 为方便测试模块是否激活 - Demo 默认启用此功能
|
||||||
isDebug = true
|
isDebug = true
|
||||||
// Whether to enable the current Xposed Module's own [Resources] cache function
|
// Whether to enable the current Xposed Module's own [Resources] cache function
|
||||||
// Under normal circumstances, the resources of the Module App will not change
|
// Under normal circumstances, the resources of the Module App will not change
|
||||||
|
@@ -52,20 +52,21 @@ public class HookEntry implements IYukiHookXposedInit {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onInit() {
|
public void onInit() {
|
||||||
YukiHookAPI.Configs config = YukiHookAPI.Configs.INSTANCE;
|
YukiHookAPI.Configs configs = YukiHookAPI.Configs.INSTANCE;
|
||||||
YLog.Configs.INSTANCE.setTag("YukiHookAPI-Demo");
|
YLog.Configs logConfigs = YLog.Configs.INSTANCE;
|
||||||
YLog.Configs.INSTANCE.setEnable(true);
|
logConfigs.setTag("YukiHookAPI-Demo");
|
||||||
YLog.Configs.INSTANCE.setRecord(false);
|
logConfigs.setEnable(true);
|
||||||
YLog.Configs.INSTANCE.elements(
|
logConfigs.setRecord(false);
|
||||||
|
logConfigs.elements(
|
||||||
YLog.Configs.TAG,
|
YLog.Configs.TAG,
|
||||||
YLog.Configs.PRIORITY,
|
YLog.Configs.PRIORITY,
|
||||||
YLog.Configs.PACKAGE_NAME,
|
YLog.Configs.PACKAGE_NAME,
|
||||||
YLog.Configs.USER_ID
|
YLog.Configs.USER_ID
|
||||||
);
|
);
|
||||||
config.setDebug(true);
|
configs.setDebug(true);
|
||||||
config.setEnableModuleAppResourcesCache(true);
|
configs.setEnableModuleAppResourcesCache(true);
|
||||||
config.setEnableHookModuleStatus(true);
|
configs.setEnableHookModuleStatus(true);
|
||||||
config.setEnableDataChannel(true);
|
configs.setEnableDataChannel(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user