by Sinh Van Nguyen
This is one of the best root checkers. It just checks the device has root or not. I made it because someone is asked in the Automate forum, then the developer replies correctly.
How to build:
1. Use the “normal” shell command
2. Enter the shell command “which su”
3. If the exit code returns 1, the device doesn't contains root. If it returns 0, the device has root.
Unlike the root checkers from most people, even if they joined before me, makes bad root checkers since the unknown superuser command “echo hi” is absoutely dangerous or does not work to your device.
Every time I found a flow with bad root checkers I'll rate it 2 stars.