sys

sys.sys.jbroot

Description

Returns the jailbreak root path resolved via libroot. Without arguments, returns the jbroot prefix. With a path argument, returns the full resolved path.

Parameters
ParameterTypeRequiredDescription
pathstringNoSuffix path to resolve (e.g. "/bin/sh"). If omitted, returns jbroot prefix only.
Notes
  • Uses libroot_dyn_jbrootpath() / libroot_dyn_get_jbroot_prefix()
  • Returns real path, not symlink (/var/jb is a symlink)
  • Available since v1.0.487