How to Fix Offline Time/Date not Showing Right After Each Device Boot in Android Custom ROM?
How to Fix Offline Time/Date not Showing Right After Each Device Boot in Android Custom ROM?
Update: 2020 Nov 18
Sometimes we face a bug in Android custom ROM that we used in our Android smartphone like offline time/date not showing right after each device boot. I've fixed the bug... and I want to share this, maybe some others need this too..
Check this out!
Lets say we have Root Explorer app, rooted device, and know how to use the app...
In my device, there is a written service in /vendor/etc/init/hw/init.qcom.rc like bellow:
service time_daemon /vendor/bin/time_daemon
class main
user system
group system
This service missing "capabilities SYS_TIME"
Then we should add it to the bottom of the service using text editor app like Root Explorer or else... then now will be like bellow:
service time_daemon /vendor/bin/time_daemon
class main
user system
group system
capabilities SYS_TIME
But wait we still miss somethings
We need "mkdir" time folder and "start time_daemon" bellow "on late-fs". But if no "on late-fs" written there, we have to add it:
on late-fs
mkdir /mnt/vendor/persist/time 0770 system system
start time_daemon
Then this is the important thing. We need "mkdir" time folder in /data/vendor/ bellow "on post-fs-data" :
mkdir /data/vendor/time 0770 system system
After that we can save the edited file, delete the init.qcom.bak file, and reboot device...
Activate airplane mode before reboot to check if it's working or not..
These are results after I fixed my old version CrDroid ROM. As you can see, /persist/time/ ats file time stamp that used is updated after reboot. /data/vendor/time/ is filled with ats files automatically by system after reboot and my local date/time is corrected properly now. Those functions implemented correctly like a stable stock ROM did..
Thanks for reading my blog, and feel the benefits.. 😇
Regards
Rei Ryuki
Komentar
Posting Komentar