libxposed / api

Apache License 2.0
144 stars 60 forks source link

Add Support for Detecting if Device was Rebooted #15

Open DavidBerdik opened 8 months ago

DavidBerdik commented 8 months ago

As far as I am aware, there is currently no way to check if a device has been rebooted since a user enabled a module.

This can be an issue for modules that hook the System Framework since they require a reboot in order to function. The current approach to detecting if a module is active cannot distinguish between if a reboot has taken place or not, which could result in the module appearing to work properly even though it does not.

I would like to request that a function be added that returns false if there has not been a reboot since the module was enabled and true otherwise.

vvb2060 commented 8 months ago

We are planning to provide target-side writable remote config, which we believe will satisfy a wider range of needs, including yours.

DavidBerdik commented 8 months ago

That's awesome! I look forward to seeing it! Thank you!