FORUMS

[Solved] [Q] Updating timezone on android 4.3

21 posts
Thanks Meter: 9
 
By asem.arafa, Junior Member on 16th May 2014, 01:10 PM
Post Reply Subscribe to Thread Email Thread
Hello

i generated a tzdata file with the new 2014c timezone file from IANA to reflect a change in my country DST

i pushed the file to /system/usr/share/zoneinfo and changed the permisions to 644 and rebooted , and the time change wasnt reflected


what i noticed after reboot is that time is changed only for normal user not root

Code:
shell@t03g:/ $ date
Fri May 16 15:07:35 EEST 2014
shell@t03g:/ $ su
root@t03g:/ # date
Fri May 16 14:07:48 EET 2014
any idea of what may i have missed?
Last edited by asem.arafa; 20th May 2014 at 07:36 AM.
 
 
16th May 2014, 03:51 PM |#2  
Senior Member
Flag Cairo
Thanks Meter: 15
 
More
Quote:
Originally Posted by asem.arafa

Hello

i generated a tzdata file with the new 2014c timezone file from IANA to reflect a change in my country DST

i pushed the file to /system/usr/share/zoneinfo and changed the permisions to 644 and rebooted , and the time change wasnt reflected


what i noticed after reboot is that time is changed only for normal user not root

Code:
shell@t03g:/ $ date
Fri May 16 15:07:35 EEST 2014
shell@t03g:/ $ su
root@t03g:/ # date
Fri May 16 14:07:48 EET 2014
any idea of what may i have missed?

Can you please share with us the tzdata file you generated?
16th May 2014, 04:15 PM |#3  
asem.arafa's Avatar
OP Junior Member
Flag Cairo
Thanks Meter: 9
 
More
Quote:
Originally Posted by prince93

Can you please share with us the tzdata file you generated?

Here it is
The Following User Says Thank You to asem.arafa For This Useful Post: [ View ]
16th May 2014, 04:19 PM |#4  
Senior Member
Flag Cairo
Thanks Meter: 15
 
More
Quote:
Originally Posted by asem.arafa

Here it is

Thanks alot
16th May 2014, 04:25 PM |#5  
asem.arafa's Avatar
OP Junior Member
Flag Cairo
Thanks Meter: 9
 
More
Quote:
Originally Posted by prince93

Thanks alot

please confirm it works , as the change is not reflected as i said in the first post
16th May 2014, 04:58 PM |#6  
Senior Member
Flag Cairo
Thanks Meter: 15
 
More
Quote:
Originally Posted by asem.arafa

please confirm it works , as the change is not reflected as i said in the first post

Unfortunately not working..
I copied the tzdata file to /system/use/share/zoneinfo and changed the permissions to be even read,write &execute for owner,group and other and rebooted but not working
On android 4.4.2
How did you compile this file?

Sent from my Nexus 4 using XDA Free mobile app
16th May 2014, 06:12 PM |#7  
asem.arafa's Avatar
OP Junior Member
Flag Cairo
Thanks Meter: 9
 
More
Quote:
Originally Posted by prince93

Unfortunately not working..
I copied the tzdata file to /system/use/share/zoneinfo and changed the permissions to be even read,write &execute for owner,group and other and rebooted but not working
On android 4.4.2
How did you compile this file?

Sent from my Nexus 4 using XDA Free mobile app

well i followed this outdated post

i got the ZoneCompactor.java file from here instead as the one in the post only works for pre 4.3 android

i attached my working directory including with the edits i made to the script in the outdated post
Attached Files
File Type: bz2 generate.tar.bz2 - [Click for QR Code] (290.9 KB, 36 views)
16th May 2014, 06:23 PM |#8  
Senior Member
Flag Cairo
Thanks Meter: 15
 
More
Quote:
Originally Posted by asem.arafa

well i followed this outdated post

i got the ZoneCompactor.java file from here instead as the one in the post only works for pre 4.3 android

i attached my working directory including with the edits i made to the script in the outdated post

Well, I was trying to do the same as you did but using the zonecompactor & the python script in the link you attached but I got an error telling me could not find bionic library or so.
So, you used the old generator script with some modifications.
It seems the file is correct (an app called timezone fix that was also attached in the outdated post referred to can read the file as 2014c). No idea what the problem may be.
Maybe we need to uncheck the automatic date and time and reboot?
I unchecked without a reboot but nothing happened .


Sent from my Nexus 4 using XDA Free mobile app
16th May 2014, 06:37 PM |#9  
asem.arafa's Avatar
OP Junior Member
Flag Cairo
Thanks Meter: 9
 
More
Quote:
Originally Posted by prince93

Well, I was trying to do the same as you did but using the zonecompactor & the python script in the link you attached but I got an error telling me could not find bionic library or so.
So, you used the old generator script with some modifications.
It seems the file is correct (an app called timezone fix that was also attached in the outdated post referred to can read the file as 2014c). No idea what the problem may be.
Maybe we need to uncheck the automatic date and time and reboot?
I unchecked without a reboot but nothing happened .


Sent from my Nexus 4 using XDA Free mobile app

i downloaded a new BufferIterator.java and ZoneCompactor.java and ZoneInfo.java to be compatable with 4.3 and used the generate script from the old post

now i used the timezone file with a phone with cyanogenmod 11 and it worked !!

whats the output of the date command from the shell?

normal and root
16th May 2014, 10:01 PM |#10  
Senior Member
Flag Cairo
Thanks Meter: 15
 
More
Quote:
Originally Posted by asem.arafa

i downloaded a new BufferIterator.java and ZoneCompactor.java and ZoneInfo.java to be compatable with 4.3 and used the generate script from the old post

now i used the timezone file with a phone with cyanogenmod 11 and it worked !!

whats the output of the date command from the shell?

normal and root

I tried the date command for normal and root users and both are wrong (no DST applied) with the file you provided earlier.
The one you tried on the CM11 is a different one than the one you shared with us earlier?
For CM11, it should be the same as stock 4.4.2.
Strange that it didn't work on my N4!

Sent from my Nexus 7 using XDA Free mobile app
18th May 2014, 09:49 AM |#11  
asem.arafa's Avatar
OP Junior Member
Flag Cairo
Thanks Meter: 9
 
More
Quote:
Originally Posted by prince93

I tried the date command for normal and root users and both are wrong (no DST applied) with the file you provided earlier.
The one you tried on the CM11 is a different one than the one you shared with us earlier?
For CM11, it should be the same as stock 4.4.2.
Strange that it didn't work on my N4!

Sent from my Nexus 7 using XDA Free mobile app

I finally found the root cause

it was Xposed framework !!
disabling it solved the issue

i will try to check for a workaround as i use too many modules

Read More
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes