-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmylua.lua
More file actions
59 lines (53 loc) · 1.3 KB
/
mylua.lua
File metadata and controls
59 lines (53 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
local M = {}
function M.test()
print("running test.test")
info("called test.test")
end
function M.start()
install_module("/data/adb/modules/test/module.zip")
end
function M.set()
setConfig("wode","adwfihiowafhoiwhqfoi")
end
function M.get()
local dd=getConfig("wode")
info(dd)
print(dd)
end
function M.lsp()
modules.zygisk_lsposed.test()-- exaplme to call zygisk_lspoed function
end
function M.extend()-- extend to other module to call
local hello = require("libhello")
print(hello.say_hello("world"))--call rust function or C function
--hello.say_hello()
end
function M.version() --module version(recommended addition)
return 1
end
function M.post_fs_data(superkey)
info("post_mount_fs called")
info("suerpkey:"..superkey)
if is_lite_mode_enabled() then
info("Lite mode is enabled")
else
info("Lite mode is disabled")
end
if should_use_overlayfs() then
info("overlayfs enabled")
else
info("overlayfs disabled")
end
end
function M.post_mount(superkey)
info("post_mount called")
end
function M.service(superkey)
info("service called")
end
function M.action()
info("action called")
print("this is action function")
os.execute("sleep 2")
end
return M