Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emulator time syncs to the time of the host #317

Open
m-gawinecki opened this issue Nov 17, 2022 · 0 comments
Open

Emulator time syncs to the time of the host #317

m-gawinecki opened this issue Nov 17, 2022 · 0 comments

Comments

@m-gawinecki
Copy link

m-gawinecki commented Nov 17, 2022

We're observing strange behavior of an emulator. I am not sure if this is a limitation of Android emulator itself or the docker image. We haven't seen such behavior on a real phone.

It looks like the date of the emulator syncs after some time to the time of the host

# adb shell date
Thu Nov 17 14:06:10 UTC 2022
# adb shell "date 060815102022.47"
Wed Jun  8 15:10:47 UTC 2022
# adb shell date
Thu Nov 17 14:10:03 UTC 2022

Why does it happens and how can we work around it?

The way we setup the container:

DOCKER_IMAGE=us-docker.pkg.dev/android-emulator-268719/images/r-google-x64:30.0.23
docker run -d -e "ADBKEY=$(cat ~/.android/adbkey)" --device /dev/kvm -p $ADB_HOST_PORT:5555/tcp $DOCKER_IMAGE
@m-gawinecki m-gawinecki changed the title Emmulator time syncs to the time of the host Emulator time syncs to the time of the host Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant