Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tzhao11/e886b3b872c7b4e4e60e80ff26de7270 to your computer and use it in GitHub Desktop.
Save tzhao11/e886b3b872c7b4e4e60e80ff26de7270 to your computer and use it in GitHub Desktop.
Adjust oculus quest 2 system date and time without doing factory reset.

Adjust Oculus (Meta) Quest 2 System Date/Time without Doing Factory Reset

TL;DR

adb shell service call alarm 2 i64 {current unix epoch * 1000}

Background

My quest 2's system date was suddenly off by a large amount today. Now the device can't make HTTPS connections, because TLS verification fails. Everything is HTTPS now, so I'm left with a device without Internet. I went through the built in settings app, looking for that date and time setting every device manufactured on Earth comes with. Found nothing. So I googled. After extensive googling, I can't believe the only way to do such a trivial thing is to factory reset the device. This is so ridiculous, and apparently Meta just doesn't care. So I did some research, and here are my findings:

Steps

  1. Install SideQuest, follow its instructions to connect your device.

  2. Go to https://www.epochconverter.com, copy the number after The current Unix epoch time is.

  3. Multiply the number by 1000.

  4. From SideQuest, go to Run ADB commands > CUSTOM COMMAND, click on Command To Run..., enter the following (without brackets):

    adb shell service call alarm 2 i64 <Number from step 3>

    e.g.

    adb shell service call alarm 2 i64 1642846249000
  5. Click RUN COMMAND.

  6. Done. You shoud see something like

    Result: Parcel(00000000 00000001   '........')
    

Tested on quest 2, persists after reboot.

Thoughts

Meta should stop shipping devices that neither do NTP nor allow user to manually adjust date and time. In 2022.

References

http://v-kompany.blogspot.com/2014/07/how-to-call-system-service-in-adb.html https://sclarkso.com/tech/2021/10/05/quest-2-timezone-change-without-factory-reset.html https://gist.github.com/tniessen/ea3d68e7d572ed7c607b81d715798800

@UlyssesWu
Copy link

Thank you for saved my day 💖

@Imransinpro
Copy link

Thank you MAN). You saved me. Success

@Inno-Man
Copy link

Thank you so much!!! I can not believe but it works!!

@xyuer
Copy link

xyuer commented Jan 9, 2024

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment