Coder Social home page Coder Social logo

tzupdater's Introduction

Timezone Updater

Copyright (C) 2015 Anton Skshidlevsky, GPLv3

This app downloads and updates time zones to the latest version on your device. This update should fix all known problems with time zones, such as incorrect time in Android and some applications.

The app is available for download on Google Play and GitHub:

Get it on Google Play Get it on Github

Requirements:

  • Android 4.0 (API 14) or later
  • Superuser permissions (root)
  • BusyBox

Update procedure:

  1. Get superuser privileges (root).
  2. Install BusyBox.
  3. Check your connection to the Internet.
  4. Tap UPDATE button.
  5. Restart your device.

The following files will be updated:

  • TZ data: /data/misc/zoneinfo/tzdata or /system/usr/share/zoneinfo/*
  • ICU data: /system/usr/icu/*.dat

Attention! Before starting the update procedure is recommended to make backup copies of these files or the entire system.

tzupdater's People

Contributors

jcormier avatar masoudmghd avatar meefik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tzupdater's Issues

Update tzdata for android 10 and higher

For android 10 and higher tzdata should be replaced in /system/apex/com.android.tzdata/etc/tz/ too

in my phone (xiaomi mi 9 se *android 11) after running update in the app and reboot nothing changed, by copying tzdata from /data/misc/zoneinfo/tzdata to /system/apex/com.android.tzdata/etc/tz/ and /system/usr/share/zoneinfo/ timezone data get updated.

Systemless mode

Bro can you add support of systemless mode? Magisk module. Directly app can't patch my device

Wrong time zone even after updated to the latest version

Hi,
I updated my tablet timezone (Lenovo Tab3 10 with Android 6) successfully with your application (Timezone Updater 1.3.0) to 2023c. Now it shows the current timezone as 04:30. It is wrong. The Iran government decided not to change the time anymore this year.
I saw that you used https://www.iana.org/time-zones/ to update the timezone. I thought it could be something wrong with this website database. I contacted them and they said that they changed the Iran timezone in 2022b, released 2022-08-10: https://mm.icann.org/pipermail/tz-announce/2022-August/000071.html So their database is up to date. They said that I should contact you as you are the application developer.
The Iran timezone is 03:30 now and did not and will not change.
Please take a look at it.
Thanks a lot

tzdata 404 not found error

TZ_VERSION=$(wget -q -O - "http://data.iana.org/time-zones/" | grep -o '[0-9]\{4\}[a-z]\{1\}' | sort -u | tail -n1)

Thank you for this necessary program. I have been using it for years now. I found a little problem. The program is trying to download tzdata8675a.tar.gz leading to a "404 Not Found" error.

This code currently returns the wrong data:
wget -q -O - "http://data.iana.org/time-zones/" | grep -o '[0-9]\{4\}[a-z]\{1\}' | sort -u

2018e
2018f
2018g
2018h
2018i
2019a
2019b
2019c
2020a
8675a

The final and unwanted match comes from this line in "http://data.iana.org/time-zones/":
<link rel="stylesheet" href="/autoindex/a03f5ff5-fd2c-4e5b-85fe-2b890e8675a6/stylesheet-autoindex.css">

Failure to update icudt58l

The update fails with the following error:

icupkg: not an ICU data file: "/data/user/0/ru.meefik.tzupdater/files/tmp/zoneinfo64.res"

I'm using Blackview BV9500 Pro, Android 8.1.

wget: bad address 'data.iana.org' fail

when I click on the update button, get this error:

>>> TIME ZONE DATABASE
Getting latest version ... wget: bad address 'data.iana.org'
fail
An error has occurred. Exiting.
.
>>> ICU DATA
Getting latest version ... wget: bad address 'api.github.com'
fail
An error has occurred. Exiting.
.

Systemless mode

Bro can you add support of systemless mode? Magisk module. Directly app can't patch my device

Explain build process

Could you explain the build process a little more, e.g. if I want to build it completely from source, which steps have to be executed in which order?

Also build-dex.sh is referencing $HOME, but shouldn't be that somewhat linked to ANDROID_HOME instead?

icupkg: .res format version 03.00 not supported

Timezone Updater 1.0.3
Android 8.1.0
Updating ICU data now fails with the following error:

+ printf 'Updating icudt58l.dat ... '
Updating icudt58l.dat ... + icupkg -s /data/user/0/ru.meefik.tzupdater/files/tmp -a zoneinfo64.res /system/usr/icu/icudt58l.dat
icupkg: .res format version 03.00 not supported, or bundle malformed
+ '[' 16 -eq 0 ']'
+ printf 'fail\n'
fail
+ return 1
+ restore

According to users on the forum http://4pda.ru/forum/index.php?showtopic=692805&st=60 the issue seems to be an out-of-date icupkg package.
Thanks for your work on this most helpful program!

Failed to download icudata

When i click update icu data file it gives me error.
">>> ICU DATA
Getting latest version ... wget: note: TLS certificate validation not implemented
wget: TLS error from peer (alert code 80): 80
wget: error getting response: Connection reset by peer
fail
An error has occurred. Exiting.
."
How do i fix it?
Screenshot_2024-03-21-13-10-28-809-edit_ru meefik tzupdater

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.