yashsingh1/xdaforums huggingface dataset:
[G2 Themes and Apps] dougiebee:
You've got a semicolon too many - drop the semicolon before starting time_daemon and it works fine

LD_LIBRARY_PATH=LD_LIBRARY_PATH:/system/vendor/lib:/system/lib /system/bin/time_daemon &(sleep 2; killall time_daemon; /sbin/umount /system) &
[G2 Themes and Apps] Phil3759:
The semicolon shouldn't matter at all

However, the path is wrong anyway

export LD_LIBRARY_PATH=/system/vendor/lib:/system/lib; /system/bin/time_daemon &(sleep 2; killall time_daemon; /sbin/umount /system) &

LD_LIBRARY_PATH doesn't exist in cwm. In any case, it should be preceded by $LD_LIBRARY_PATH

In anycase, it doesn't explain why it fails as it would have just skipped the wrongly formatted path entry

I will try with export

Else, it is probably a selinux permission lacking. Usually, we would need to add needed time_daemon permissions as they are not defined in recovery or set all to permissive mode

Just wired how you get it working in adb shell as it doesn't load for other users

Are you repacking things?
[G2 Themes and Apps] dougiebee:
Stock ROM, your stock recovery, nothing repacked.

Sorry, but the semicolon very much matters here.

This does not work:

LD_LIBRARY_PATH=LD_LIBRARY_PATH:/system/vendor/lib:/system/lib; /system/bin/time_daemon &(sleep 2; killall time_daemon; /sbin/umount /system) &

This works:

LD_LIBRARY_PATH=LD_LIBRARY_PATH:/system/vendor/lib:/system/lib /system/bin/time_daemon &(sleep 2; killall time_daemon; /sbin/umount /system) &

And this works:

export LD_LIBRARY_PATH=LD_LIBRARY_PATH:/system/vendor/lib:/system/lib; /system/bin/time_daemon &(sleep 2; killall time_daemon; /sbin/umount /system) &
[G2 Themes and Apps] Nemesis757:
with the semicolon(executed in adb shell) i get the following error:

~ # CANNOT LINK EXECUTABLE: could not load library "libqmi_cci.so" needed by "/s
ystem/bin/time_daemon"; caused by library "libqmi_cci.so" not found

without the semicolon time daemon works and time is correct.

THIS is also working
[G2 Themes and Apps] Phil3759:
Your shell syntax is still wrong

variables need a $

After your above commands in adb shell try this:

echo $LD_LIBRARY_PATH

You'll get what I mean

I will update with this code:

export LD_LIBRARY_PATH=/system/vendor/lib:/system/lib; /system/bin/time_daemon &(sleep 2; killall time_daemon; /sbin/umount /system) &

Let me know

Once we fix time_daemon, I will add a menu to use your time offset

It will be the best go as it doesn't rely on some selinux permissions.
[G2 Themes and Apps] Phil3759:
Uploading 6.11.5 with new time_daemon load script

static void load_qcom_time_daemon() {
if (!file_found("/system/bin/time_daemon") || !file_found("/data/time")) {
LOGE("cannot find daemon\n");
} else {
LOGI("Starting time_daemon...\n");
__system("export LD_LIBRARY_PATH=/system/vendor/lib:/system/lib; /system/bin/time_daemon &(sleep 2; killall time_daemon; /sbin/umount /system) &");
}
}
[G2 Themes and Apps] dougiebee:
Ah, yeah of course they do :o

My point was that the following will set LD_LIBRARY_PATH globally and leave it set:

export LD_LIBRARY_PATH=/system/vendor/lib:/system/lib; /system/bin/time_daemon &

Whereas this will set LD_LIBRARY_PATH only for the call to time_daemon and not globally, note the absence of the semicolon:

LD_LIBRARY_PATH=/system/vendor/lib:/system/lib /system/bin/time_daemon &

Both are valid and both work, I just prefer the former :o

Your intended code works fine :good:
[G2 Themes and Apps] Nemesis757:
ok. when i activate the time daemon in philz settings, time changes to correct time.

But it still does not persist after reboot.

here's an extract of the recovery.log after boot into recovery

I:slide_left_action set to default (5)
I:slide_right_action set to default (3)
I:double_tap_action set to default (2)
I:press_lift_action set to default (4)
I:press_move_action set to default (0)
I:time_zone=1
I:t_zone_offset set to default (0)
I:use_dst_time=1
__bionic_open_tzdata: couldn't find any tzdata when looking for NFT-1DFT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
[B]I:use_qcom_time_daemon=1
I:Starting time_daemon...
I:Current time: 1970-04-06 00:16:16 (UTC +1:00) DST[/B]
Command: "/sbin/recovery"

when i read recovery.log after enabling the time daemon, i see the following:

I:Current time: 1970-04-06 01:10:10 (UTC +1:00) DST
I:use_qcom_time_daemon was set to 1
I:use_qcom_time_daemon=1
I:Starting time_daemon...
I:Current time: 1970-04-06 01:10:14 (UTC +1:00) DST

but time in status bar is correct. is it intented to be like this?
[G2 Themes and Apps] Phil3759:
Are you keeping the function checked in settings?

It should be loading on start!
[G2 Themes and Apps] murdoch1:
The Function remains selected after a reboot however the time/date remains wrong. E:Cannot find daemon is still displayed.
[G2 Themes and Apps] Nemesis757:
i added another log in above post.

Time daemon is loading, but time isn't correct
[G2 Themes and Apps] dougiebee:
I'm getting the same as [MENTION=2292100]murdoch1[/MENTION] however date doesn't correct itself for me until I change the timezone to London with time_daemon checked. Leaving it checked, same results. Need to readjust timezone. Confused...
[G2 Themes and Apps] Phil3759:
We're improving

1- when you enable the daemon in recovery, does time change to correct value?

2- after a reboot to recovery, time is reverted to wrong?

3- if answer to 2 is yes, I need a log after recovery reboot while Qcom Time Daemon option is enabled: Reboot into recovery, go to Advanced / Report Error and attach the generated log on sdcard here

It is normal that you still have to set correct time zone

Else, try to set time zone to GMT, enable time_daemon in recovery, then set time zone. If it works better that way, let me know so that I change the code order
[G2 Themes and Apps] Nemesis757:
1: yes

2: yeah, after reboot, time is wrong

log is attached
[G2 Themes and Apps] Phil3759:
Update 6.11.6

try to correctly load the time_daemon on boot

uploading

d801/d802

Please report again if it works + provide log on start if it fails

I suspect /data was unmounted too early in boot process

This version adds a long 4 sec total delay that I will fix later
[G2 Themes and Apps] Phil3759:
Update 6.11.6

try to correctly load the time_daemon on boot

uploading

d801/d802

Please report again if it works + provide log on start if it fails

I suspect /data was unmounted too early in boot process
[G2 Themes and Apps] dougiebee:
Works perfectly, thanks again
[G2 Themes and Apps] Phil3759:
All credits go to you

Will clearly mention it on change logs :good:

I will add the offset trick too if I find some devices not well working with time_daemon
[G2 Themes and Apps] murdoch1:
Still Same Issue

Im still getting E:cannot find daemon

Log Attached
[G2 Themes and Apps] Phil3759:
What rom are you using?

Do you have a folder called /data/time?
[G2 Themes and Apps] murdoch1:
I'm using Maddi by Dr87---http://xdaforums.com/showthread.php?t=2590700&referrerid=2292100

Just checked and no I dont have /data/time....:cyclops:
[G2 Themes and Apps] Phil3759:
Maybe ask rom releaser to properly add time_daemon

You know you have it when you put phone in airplane mode, no wifi, turn off phone, wait, turn on and boot into rom: time should be in sync
[G2 Themes and Apps] murdoch1:
Will do...I've just installed CM11 and all working fine now......Thanks for your help and patience.....:good::good::good::good::good:
[G2 Themes and Apps] Phil3759:
[MENTION=617634]dougiebee[/MENTION]

Can you test this please:

- In recovery, disable Qcom daemon option

- Reboot into recovery

- adb shell and manually set correct date with date -s command

- try the command:

expr $(date +%s) - $(cat /sys/class/rtc/rtc0/since_epoch)

And let me know if it is reporting same offset as your app in main ROM

I expect it, unless it is updated with date -s
[G2 Themes and Apps] Nemesis757:
don't know if i do it correct, but if i want to set date i get

date: can't set date: Unknown error -38
[G2 Themes and Apps] Phil3759:
use this command:

mount /system
/system/bin/toolbox date -s yyyymmdd.hhmmss

example:

/system/bin/toolbox date -s 20140127.223000
[G2 Themes and Apps] dougiebee:
Yes it is, to within a couple of seconds :good:
[G2 Themes and Apps] Phil3759:
That sounds very good

You're reading in my thoughts? :D
[G2 Themes and Apps] Nemesis757:
ok thank you

yeah it's almost the same offset. it just differs a little bit because i didn't setup seconds correctly i guess
[G2 Themes and Apps] dougiebee:
I reckon so :D

You thinking of adding a date -s correction based on rtc_offset if it exists? Go for it :good:
[G2 Themes and Apps] Phil3759:
Well...

I'm getting rid of any need to rtc_offset file from your app

- you enable the offset option in recovery

- you set date

- when you validate it, it is applied at system level, I read the rtc_offset directly within recovery, save it to recovery ini file, and load it on every reboot

The huge advantage for lambda users is they get it working without the need to third party apps

Obviously, I will give proper credits in main thread, history change and LG2 thread

You just did an amazing work to provide all needed debugging to fix this issue. Many devices from other brands are affected. Since I have no affected device, it was impossible for me to dig into it :good:
[G2 Themes and Apps] dougiebee:
That's a great idea :good:

You're very welcome - and thank you :)
[G2 Themes and Apps] Mike B.:
Confirmed working very nicely in PhilZ Touch 6.12.8 for my SG3. 1970 was an interesting year but it's time to move on... ;)

Many thanks to dougiebee and Phil3759!
[G2 Themes and Apps] Phil3759:
[MENTION=617634]dougiebee[/MENTION]

The time offset trick works perfectly.

It is very useful when user uses a ROM without a proper time_daemon implementation

If you need the C sources I used to calculate offset inside recovery and set it, let me know

Many many thanks again
[G2 Themes and Apps] 93fuelslut:
You have 2 download links. So which one are you referring to? Basically is this mod for when I flash a inverted Google now and reboot and it says Google play services error ?

sent from your moms phone
[G2 Themes and Apps] provolinoo:
we should add this patch to twrp too :)

[MENTION=912474]Dees_Troy[/MENTION]
[G2 Themes and Apps] provolinoo:
[MENTION=617634]dougiebee[/MENTION]

can you add to the patch a way to know if the patch is currently installed and active when you open the gui?

thanks :)

ps

do I have to reinstall it every time a flash a new build of my rom (cyanogen) or is it not necessary?
[G2 Themes and Apps] jeepcook:
Now it's fixed in twrp 2.7.0.0 http://techerrata.com/browse/twrp2/g2d802
[G2 Themes and Apps] th30n37:
Thanks for the update! So glad to finally have this integrated into TWRP directly!
[G2 Themes and Apps] Ganga10:
It works perfectly. Thanks a lot dev ?
[G2 Themes and Apps] PYCON:
In recovery, this works perfectly... But if I turn off phone for the night, when I turn on next morning, without data activated, time and date are in the past... :(
[G2 Themes and Apps] zzxop:
I will try this. thanks
[G2 Themes and Apps] RadarNyan:
Thank you soooo much.

My phone recently runs into this problem... can't update RTC using hwclock -w, every shutdown takes me back to 1970.

So I just used your app to get the offset, and added a new line "/data/local/userinit.sh" in /system/ec/install-reconvery.sh (I'm using SuperSU, my recovery - cwm 6.0.4.7 doesn't seems to support the init script by default.

But I found a problem, your script didn't consider timezone settings. For example, I lives in China, time zone is CST (GMT+8:00)

I had to manually add 28800 seconds (8 hours) to rtc_offset. at first I just edited the one in /sdcard/ but it didn't work at all. I was so confused (Since If I run userinit.sh manually after boot it will add the 8 hours up) until I noticed there's another one at /data/media/. During the time install-reconvery.sh is executed, /sdcard/rtc_offset is not available so I just edited the one in /data/media/ and removed the one in /sdcard. cheers!
[G2 Themes and Apps] benn_seiei:
sorry out of device

i'm xperia m user

is this apk could solve problem in my device

thanks before
[G2 Themes and Apps] PunchUp:
Yea it should. Works fine on my Xperia S
[G2 Themes and Apps] RohanM:
In settings => Apps => All => having 1970 date for installation [google & LG Native ones] How to fix this ?

My phones date is OK.

Like same here.

https://community.sprint.com/baw/thread/156593
[G2 Themes and Apps] Poseidonrage:
These are my spec,

Build Number = KDA20.62-15

Baseband Version = Vanquish_bp_100731.020.64.21P

Android Version = 4.4.2

System Version = 182.46.15.XT926. Verizon.en.US

my device was working perfectly till i had to gave it to mechanic to repair my broken screen, when it was repaired i am facing this 1970 time no setting error.

I installed the app, but its saying

:eek: If the time would be correct why would someone download it

Am i missing something here, i dont get that coding part i am new into android
[G2 Themes and Apps] rat hacker:
not work

this apps not work on my moto droid razr m when i install this apps it become stable and not perform any task..:confused:
[G2 Themes and Apps] HermannSenator:
I'm running AOSP 5.1.1-r8 built from sources and I have this annoying issue. I tried the app but didn't worked. Wondering if someone has the zip files and can re-upload it. Thanks in advance ^^
[G2 Themes and Apps] Hammerhand.17:
I have the LG G pad 7.0 (v400) with cm12.1 and I am facing the same issue. I have tried every version of the app here, and none works. Everytime I reboot, time resets (and so in the recovery).
[G2 Themes and Apps] core720:
waiting new fix
[G2 Themes and Apps] migueldbr:
no need for a new fix. For everyone having this issue and not being able to solve it with the latest apk do this:

Install apk(v2.2) and choose install both when running it. In my case it did not fix it with just the apk so I had to put the userinit script(that the apk places on data/local/) on init.d folder(etc/init.d) and run the script on boot with kernel adiutor(my init.d was not enabled on the rom I think). When the script runs at boot it corrects time, even if you didn't connect to wifi or data.
[G2 Themes and Apps] core720:
Last CM12.1 and 13 bug whatsapp moto x 2014

---------- Post added at 02:39 PM ---------- Previous post was at 02:22 PM ----------

Please sendme your script for init.d
[G2 Themes and Apps] migueldbr:
im not currently on cm12 so i cant give you my script. just use a file explorer and go to data/local/ and the script should be there. copy it to etc/init.d folder and set kernel adiutor to emulate init.d
[G2 Themes and Apps] core720:
Test and dont work miguel
[G2 Themes and Apps] migueldbr:
In that case i dont know what you could do more. That worked for me...
[G2 Themes and Apps] asadnow2k:
i m having same type of issue.. what is fix? even used to flash with stock firmware still same condition. and i dont have root for xt 926 4.4.2
[G2 Themes and Apps] rayxware:
Hello, my M8S tv box with android 4.4.2 (rooted) also having the same problem. In this case, please let me know which apk file I should install to fix this problem. TQ.
[G2 Themes and Apps] DvineLord:
you have to have the time in android correct, so the patch can make proper files to sync with recovery to fix file time/date.
[G2 Themes and Apps] :
Hi, i have try the apk's on this popular rom: http://xdaforums.com/galaxy-s4/i9505-orig-develop/jdcteam-optimized-cyanogenmod-13-0-t3334475

But only the year goes to 2013 :( Can you fix that please?
[G2 Themes and Apps] ehsan.gdrzi:
Hi

I'm currently having this problem on Android 6.0.1 (cm 13 based) and this APK doesn't work for me (i set time before using APK)

What can i do to fix it???
[G2 Themes and Apps] Miguel angelor9:
helppppppp!!!!!!!!!!!!!!!

it, Atze 001 you would have this fix'm still cm12.1 and my razr hd XT925 is stopped on April 20, 1971, nosssa if you have and give way I will be very grateful for that! a big hug ...

:crying::eek:

---------- Post added at 09:02 PM ---------- Previous post was at 08:50 PM ----------

it, Atze 001 you would have this fix'm still cm12.1 and my razr hd XT925 is stopped on April 20, 1971, nosssa if you have and give way I will be very grateful for that! a big hug ...:confuso:: Eek:: Eek::chorando:
[G2 Themes and Apps] bernieparcon001:
It's 2019 and I can't believe it's still aproblem with my phone. Should I try this? And will it work with Android 9? Yes I should try and then edit this post.

EDIT: Oh no. Error 404. Maybe I should create my own zip file. Yes I should. But how. I don't know. I should. And shre it here.
[G2 Themes and Apps] Riki Irawan:
It's ROM issue... But we can fix it..

Run this at terminal emulator with your correct time and date:

su

expr $(date +%s) - $(cat /sys/class/rtc/rtc0/since_epoch)

Then you'll get numbers of "code". Usually, it has 10 numbers.

After that, create an init.d script to run at boot with SmartPack Kernel app (or similar) with this content:

date @$(expr 0000000000 + $(cat /sys/class/rtc/rtc0/since_epoch)) SET

Replace the 0000000000 with the numbers of your "code". Then the time and date will be correct/change after the script run every boot by the app.
[G2 Themes and Apps] jacomail95:
I put a similar script described here

Android TWRP Date Setting

Introduction TWRP (Team Win Recovery Project) is an Android boot recovery system used to flash new operating systems (ROMs) or backup and restore flashable partitions of your Android device. It com…

openteq.wordpress.com

in Magisk data/adb/post-fs-data.d folder (but also in service.d it is just fine) on a Nexus 6 and a Samsung Galaxy Tab Pro 8.4, and it works for Android ROMs. Is it possible to run it also on every TWRP boot? Because the recovery reads the incorrect hardware clock and it doesn't load the rtc_offset files. All of this reflects on backups (but I can manually execute the script from terminal before doing them), moreover it's just annoying to see.

Edit: I don't know why, but while in the Tab Pro 8.4 everything works fine and keeps this way, in the Nexus 6 I have to manually update the numbers in the script after some time, I think it's because the delta time doesn't remain the same after reboot
[G2 Themes and Apps] jacomail95:
I also found this

Script to patch an Android recovery.img file, changing the qcom,qpnp-rtc-write Device Tree property (tested with an Android 5.1 image based on kernel 3.4 for a Nexus 5 (rev_11)).

Script to patch an Android recovery.img file, changing the qcom,qpnp-rtc-write Device Tree property (tested with an Android 5.1 image based on kernel 3.4 for a Nexus 5 (rev_11)). - patch-rtc.py

gist.github.com

An old Python script patching a recovery.img file to be able to write RTC. Don't know if it works on TWRP
[Nexus 7 Q&A, Help & Troubleshooting] sunkenhero:
Hi, I'm really hoping someone can please help.

I accidentally dropped my 2012 Nexus 7 and now the touchscreen won't work. I am trying to backup the data. The tablet turns on and my PC recognizes it when I plug it in via USB. However because I have a passcode on the lockscreen Windows won't show the files on the tablet until I unlock the screen. This is no doubt a security feature. Is there any way possible to either bypass the lockscreen or access my data another way?

I tried using SkipSoft Android Toolkit but for every option I select it says "Waiting for USB debugging to be enabled".

2012 Nexus 7

Android 4.4.x (Can't remember if it was running 4.4.1 or 4.4.2).

Everything is stock, no root.

Bootloader version: 4.23

The problem is that USB debugging is not enabled on the device, so I cannot use adb. Is there any way around this?

Any help is greatly appreciated.

Thanks
[Nexus 7 Q&A, Help & Troubleshooting] sunkenhero:
For anyone who might be caught in a similar situation, I was able to enter the pin code via mouse and OTG cable.
[AT&T, Rogers HTC One X, Telstra One XL] undivide:
hello all !

I recently flashed shoredroid rom 4.4.2 latest build to my one x from at&t.

having a problem with multiple devices in my bluetooth.

whenever I turn BT on, it wants to auto connect to the last active device.

normally this would be fine except I routinely go back and forth between 2 and 3 different music streaming devices.

when BT is turned on, it gets stuck in a "connecting" loop and will never give up. I tried getting a 3rd party app to force it to stop connecting but it only works sometimes...

any ideas to disable auto connect entirely or to set a time-out function on auto connecting?
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] Alicilik:
Hello everybody,

I am very ancient HD2 user. I got HTC HD2 (not t-mobile) It has working with native sd and there is no problem before 1 month.

My screen turned of and not opened. Phone is working and touchpanel is workin I can unlock the keylock without screen appearence. There is no LCD backlight and colour.

Then I warmed the back of phone and suprisingly it worked. I installed the new rom with native sd and start to working used some application. Than when I plug the battery door Screen goes away. Phone and digitzer are working.

I unplug the battery and searched for anything anormal but there is no bad looking. Than I give my phone to repairman. It warmed and and make it runnning screen. But this time upper part of screen is looking bad. There is lines and blue colors in mglrd mode.

Also Afterthis workings magldr not running. It is opening the menu but any of the loodings not working only say 1234 go go go and freezing.

What can I do ?

I ordered,

LCD+Digitzer

CAmera+sound flex

keypad flex

When they came I will try to fix but I didnot understand why magldr dont loods anythig?
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] eclyptos:
LCD Dead! :D
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] Mister B:
What area of back did you warm up & was the back cover & battery off when doing it ?
[Sprint Samsung Galaxy S III] SptMogul:
Hi have Android Version 4.1.2

Build Number MD4

Is there any official sprint update? because my phone just broke and i'm thinking to just update the software all together.

So this is what happened..

"My phone freezes 10 seconds after boot up. I installed some games before that. I don't know its because of the new games or something else?

Is there anyway that i can disable them within that 10 seconds that i have before it freezes?

I did some search online and "wipe cache partition" in CWM Recovery 5.5.0.4 and "reboot system now" but still having the same problem.

I don't want to lose any data on my phone. Is there anyway that you guys can help me?

Thanks

BTW my phone is rooted with Sprint ROM

Android Version 4.1.2

Build Number MD4"

Thanks guys
[Sprint Samsung Galaxy S III] prboy1969:
Yes the S3 has been updated to 4.3 MK3 . But if you are Rooted, and enjoy the perks of being Rooted. Then I would suggest not updating via the OTA method. The New Factory OTA brings with it a few Ugly surprises. First of which is KNOX. You can get more Information on KNOX HERE. I would give it a read. You have several choices as far as Updating to Rooted, with KNOX removed TW 4.3 . I would suggest doing a bit of research, and reading. But if you want Completely Stock, Rooted, KNOX removed TW 4.3 then you will find it on THIS THREAD. BE SURE TO READ THE OP BEFORE DOWNLOADING, OR FLASHING ANYTHING. There are several versions available. Also another suggestion is to Update your Modem. You can find the MK3 Modem HERE. Lastly I would update Recovery. You can find the Flashable versions of TWRP, and CWM HERE. Hope that helps :) .
[8125, K-JAM, P4300, MDA Vario General] Taido:
Hi,

Has anyone tried to install Thunderbird or Firefox on a MDA Vario, I would like to know how to do it? :lol:

Thnx
[8125, K-JAM, P4300, MDA Vario General] Taido:
I found at Mozilla Minimo but I also understand that Opera is the best due to the fact that Minimo is using around 10 mb :cry:
[Moto X Q&A] kuz142:
Wondering what the various advantages and disadvantages are to unlocking the bootloader. I have a rooted T-Mobile XT1053 running stock Moto software.