APatch icon indicating copy to clipboard operation
APatch copied to clipboard

[question]how can i get the install environment in module install scripts?

Open SivonZn opened this issue 2 years ago • 3 comments

just as KSU's "$KSU" or magisk's "$(which magisk)" and version check as $MAGISK_VER($MAGISK_VER_CODE) or $KSU_VER_CODE(ksud)

SivonZn avatar Jan 09 '24 18:01 SivonZn

There is no clear variable for detecting the environment yet. I think we'll add something like APD_VER in the near future

marat2509 avatar Jan 09 '24 23:01 marat2509

Just check apd && echo "It's apatch" ksud && echo "It's ksu" magisk && echo "It's magisk" Maybe try this command

Kakathic avatar Jan 10 '24 04:01 Kakathic

Just check apd && echo "It's apatch" ksud && echo "It's ksu" magisk && echo "It's magisk" Maybe try this command

thanks,it works well

SivonZn avatar Jan 10 '24 07:01 SivonZn