Where does Android take default timezone from?

前端 未结 3 485
小鲜肉
小鲜肉 2021-01-18 07:37

Where does Android device take default timezone from?

Example - you boot a brand new Android device and there is Setup Wizard with \"Date & time\" activity where

3条回答
  •  粉色の甜心
    2021-01-18 08:09

    It's a build flag that's baked into the ROM (it becomes a system property).

    It's in quite a few places so the easiest is to download the AOSP source and grep for:

    persist.sys.timezone

    A bit more info here: https://stackoverflow.com/search?q=persist.sys.timezone

提交回复
热议问题