lsposed命令

lsposed enable module.pkg.name
lsposed disable module.pkg.name

lsposed add module.pkg.name app.pkg.name
lsposed rm module.pkg.name app.pkg.name

My thought is:

place the cli in /data/adb/lspd/bin/lsposed, which is a shell script to launch app_process with lspd.dex (we need to use binder so java is required).

And the interface is like:
lsposed scope ls org.lsposed.module: output the scope of module. One package name with userid per line. (com.lsposed.app/0) Empty module name with list all modules.

lsposed scope set org.lsposed.module oeg.lsposed.app/0: replace the scope with apps provided. (-i/--ignore-modules after set to ignore invalid apps)

lsposed scope append/remove org.lsposed.app/0 append/remove provided apps to the scope. (not atomic) (also -i)

lsposed modules disable/enable org.lsposed.module: enable/disabled provided modules.

lsposed modules ls: list all modules. (-e/--enabled, -d/--disabled to show enabled/disable modules)

lsposed status: show status of lsposed

lsposed log: show modules log. -v to show verbose.log. -f to follow. (don't know if its possible)

lsposed resources-hook enable/disable

if its good to u all, we can then discuss the output format.

more features can be done like: hide manager, set manager package name, …

点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注