Skip to content

Emulator time syncs to the time of the host #317

Description

@m-gawinecki

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions