RikkaApps / Shizuku-API

The API and the developer guide for Shizuku and Sui.
MIT License
950 stars 223 forks source link

is there an API check shizuku running? #73

Closed vfishv closed 5 months ago

vfishv commented 6 months ago

is there an API check shizuku running or my app has no shizuku permission?

negier commented 6 months ago

I think you want method is Shizuku is prepared to execute our bingUserService code, not app is running.

RikkaW commented 5 months ago

There are BinderReceived/DeadListener in rikka.shizuku.Shizuku class, which tracks the state of existence of the Binder of Shizuku server. There is also pingBinder in Shizuku class which is directly. If this binder is dead, Shizuku server is not running. Is the Shizuku app itself running does not matter.

Check permission: it's in README.