I want to change the time and date for an app without changing my phone settings.
How can I do that?
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It only takes a minute to sign up.Sign up to join this community
Here's the methods you can use to set custom time for specific apps:
Xposed Hook - You can use Xposed modules that hook into date time functions inside the app. Everytime the app requests date time the module returns custom data. AppSettings, Xprivacy, Xprivacy Lua are few well known modules. (For using Xposed without root you can use taichi / virtualXposed)
Frida Hook - Just like Xposed you can hook date time methods to return different data. I cannot find an example of this, but it's very possible.
Patch Smali - You can decompile the apk and patch all date time calls with constant values. So it returns same date and time. Some thrid party cloner apps do this for you with nice GUI.