Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmylua.lua
More file actions
Latest commit
59 lines (53 loc) · 1.3 KB
/
Copy pathmylua.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
localM= {}
functionM.test()
print("running test.test")
info("called test.test")
end
functionM.start()
install_module("/data/adb/modules/test/module.zip")
end
functionM.set()
setConfig("wode","adwfihiowafhoiwhqfoi")
end
functionM.get()
localdd=getConfig("wode")
info(dd)
print(dd)
end
functionM.lsp()
modules.zygisk_lsposed.test()-- exaplme to call zygisk_lspoed function
end
functionM.extend()-- extend to other module to call
localhello=require("libhello")
print(hello.say_hello("world"))--call rust function or C function
--hello.say_hello()
end
functionM.version() --module version(recommended addition)
return1
end
functionM.post_fs_data(superkey)
info("post_mount_fs called")
info("suerpkey:"..superkey)
ifis_lite_mode_enabled() then
info("Lite mode is enabled")
else
info("Lite mode is disabled")
end
ifshould_use_overlayfs() then
info("overlayfs enabled")
else
info("overlayfs disabled")
end
end
functionM.post_mount(superkey)
info("post_mount called")
end
functionM.service(superkey)
info("service called")
end
functionM.action()
info("action called")
print("this is action function")
os.execute("sleep 2")
end
returnM