Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 11-11-2020, 12:59 PM   #1
unrznbl
Member
unrznbl began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2020
Device: kindle dxg and touch
fix current date on kindle dx? stuck in 1970, KUAL won't open

When I do ;debugOn and ;dm I get a title which refers to "all logs as of tue mar 03 1970". This is a problem I have faced before.

When I try to open KUAL it says "The permissions to open the requested title have an invalid date. Please contact customer service."

Any ideas on how to re-set the date to something reasonable so that KUAL will open?

Can I re-write KUAL somehow to have a rather OLD date?
Maybe adjust mkk to be an older date?

Thanks
unrznbl is offline   Reply With Quote
Old 11-11-2020, 01:14 PM   #2
unrznbl
Member
unrznbl began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2020
Device: kindle dxg and touch
I think the pertinent logs from launching KUAL (or freshly copying it to /mnt/documents) are these lines from ;dm output? Anything else I should look for to debug?

Quote:
700303:042358 arcotg_udc: I def:udsc::chgdisc_event - USB disconnected
700303:042358 arcotg_udc: I def:usi::suspend_irq - suspend_irq: usb_slave_regs->usbintr:157
700303:042358 charger: I def:203:from=green,to=off: Charge LED changing from 'green' to 'off'
700303:042358 cvm[9024]: P KindletHomeCleanupAction:GenericTraceEnter::Starti ng cleanup
700303:042358 cvm[9024]: P Installer:GenericTraceEnter:file=/mnt/us/documents/KUAL-KDK-1.0.azw2:getApplication()
700303:042358 cvm[9024]: P Installer:GenericTraceEnter:file=/mnt/us/documents/KUAL-KDK-1.0.azw2:loadAndVerifyApplication()
700303:042358 cvm[9024]: P Installer:GenericTraceLeave:file=/mnt/us/documents/KUAL-KDK-1.0.azw2:getApplication()
700303:042358 cvm[9024]: P KindletHomeCleanupAction:GenericTraceLeave:Interru pted=false:Ending cleanup
700303:042359 cvm[9024]: D WindowManagerImplebugInfo::Calling compositor synchronized
700303:042359 cvm[9024]: D WindowManagerImpl:LOG::compositer(KContainerAdapte r)
unrznbl is offline   Reply With Quote
Advert
Old 11-11-2020, 01:46 PM   #3
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
If you have shell access, use the setdate script (takes an epoch [date +%s]). If you don't, hope that the ;setdate command existed at the time (and I don't remember *what* it took as input, so, try an epoch, too ;D).
NiLuJe is offline   Reply With Quote
Old 11-11-2020, 02:09 PM   #4
unrznbl
Member
unrznbl began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2020
Device: kindle dxg and touch
Is there a doc about the format of the bin files? They are ISO images? Aka a kindlet? Maybe I could add a date command in some install script in a .bin update file?
unrznbl is offline   Reply With Quote
Old 11-11-2020, 02:21 PM   #5
unrznbl
Member
unrznbl began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2020
Device: kindle dxg and touch
I don't think ;setdate worked. I grepped ;dm logs with "Booklet" as that seemed to be the most interesting bits in the log related to it. The log produced by ;dm still had a 1970 year in the title.

Quote:
700303:052944 cvm[9024]: D EventManagerImplebugInfo::EventManagerImpl.postB ookletEvent: BookletEventImpl: 35 ;setdate 1605121789 true
700303:052944 cvm[9024]: P BookletManager:PerfDump:id=Starting_Search,time=44 ,type=relative,abs-time=5290184091,start-time=5290184047:
700303:052944 cvm[9024]: P ManagerImpl:PerfDump:id=SwitchBookletInternal,time =120,type=relative,abs-time=5290184145,start-time=5290184025:
700303:052944 cvm[9024]: D ManagerImplebugInfo::ManagerImpl.switchBooklet0 -- start: Home
700303:052944 cvm[9024]: D BookletManagerebugInfo::BookletManager.switchBoo klet to booklet name: Home state:2
700303:052944 cvm[9024]: I BookletManager:SwitchingBooklets:from=Search,to=Ho me:
700303:052944 cvm[9024]: P BookletManager:PerfDump:id=Pause_Search,time=1,typ e=relative,abs-time=5290184151,start-time=5290184150:
700303:052944 cvm[9024]: I BookletServicesImpl:RegisteringPlugin:type=unindex ed,class=com.amazon.ebook.booklet.home.views.f.a.a :
700303:052945 cvm[9024]: P BookletManager:PerfDump:id=Starting_Home,time=877, type=relative,abs-time=5290185028,start-time=5290184151:
700303:052945 cvm[9024]: P ManagerImpl:PerfDump:id=SwitchBookletInternal,time =928,type=relative,abs-time=5290185076,start-time=5290184148:
700303:052945 cvm[9024]: P ManagerImpl:PerfDump:id=USERKEYPRESS,time=1117,typ e=relative,abs-time=5290185094,start-time=5290183977:Paint START, Booklet=Home
700303:052945 cvm[9024]: P ManagerImpl:PerfDump:id=USERKEYPRESS,time=1840,typ e=relative,abs-time=5290185817,start-time=5290183977:Paint END, Booklet=Home
700303:052951 cvm[9024]: P ManagerImpl:PerfDump:id=USERKEYPRESS,time=29,type= relative,abs-time=5290191383,start-time=5290191354:Paint START, Booklet=Home
700303:052951 cvm[9024]: P ManagerImpl:PerfDump:id=USERKEYPRESS,time=197,type =relative,abs-time=5290191551,start-time=5290191354:Paint END, Booklet=Home
700303:052953 cvm[9024]: P ManagerImpl:PerfDump:id=USERKEYPRESS,time=94,type= relative,abs-time=5290193541,start-time=5290193447:Paint START, Booklet=Home
700303:052954 cvm[9024]: P ManagerImpl:PerfDump:id=USERKEYPRESS,time=861,type =relative,abs-time=5290194308,start-time=5290193447:Paint END, Booklet=Home
700303:052956 cvm[9024]: D EventManagerImplebugInfo::EventManagerImpl.postB ookletEvent: BookletEventImpl: 7 {Search Term=;dm} true
700303:052956 cvm[9024]: D ManagerImplebugInfo::ManagerImpl.switchBooklet0 -- start: Search
700303:052956 cvm[9024]: D BookletManagerebugInfo::BookletManager.switchBoo klet to booklet name: Search state:2
700303:052956 cvm[9024]: I BookletManager:SwitchingBooklets:from=Home,to=Sear ch:
700303:052956 cvm[9024]: P BookletManager:PerfDump:id=Pause_Home,time=6,type= relative,abs-time=5290196157,start-time=5290196151:
700303:052956 cvm[9024]: D SearchebugInfo::get a HandleBookletEvent
unrznbl is offline   Reply With Quote
Advert
Old 11-11-2020, 04:28 PM   #6
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
I'm fairly sure there's a less roundabout way of doing that if you can't use KUAL and don't have USBNet installed at the time, but it's a ten-year old device, so, err, ^^.

But, yeah, if it's jailbroken, building an install package with KindleTool and a simple script that just runs date with an even remotely accurate date should do the trick.

(The Booklet/Kindlet thing is irrelevant here, that's just the base API name used by the Java applets that make up most of the Kindle UI).
NiLuJe is offline   Reply With Quote
Old 11-11-2020, 05:36 PM   #7
unrznbl
Member
unrznbl began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2020
Device: kindle dxg and touch
Perfect. KindleTool seems like it will work well as I'm quite certain it's jailbroken. Thanks!
unrznbl is offline   Reply With Quote
Old 11-11-2020, 09:39 PM   #8
unrznbl
Member
unrznbl began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2020
Device: kindle dxg and touch
KindleTool seems to be working!

I set to epoch with `date -s 1605147285` and it set it to somewhere near the log file title of `'all_logs as of Sat Apr 05 15.14.04 GMT 1986.txt`.

Is there a way I can output to a file to log the output of say `date -h` or `date +%s`? Or get that into the "all_logs" next time I do `;dm`?
Quote:
libre:~/tmp/kindle-dx$ kindletool create ota -d dxg -p luigi setdate.sh > setdate.bin
Building OTA V1 (FC02) update package 'standard output' for 1 device:
Kindle DX Graphite
With the following flags: Min. OTA: 0, Target OTA: MAX, Optional: 0.
a setdate.sh <-
a setdate.sh.sig
z a update-filelist.dat.sig a update-filelist.dat
libre:~/tmp/kindle-dx$ cat setdate.sh
echo "setting date to something fairly accurate to get KUAL working again"
date -s 1605147285
The setdate.bin is accepted and updates successfully and changes the date, just not sure what the number means exactly. (yet)
unrznbl is offline   Reply With Quote
Old 11-11-2020, 09:45 PM   #9
unrznbl
Member
unrznbl began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2020
Device: kindle dxg and touch
Ok. Deal is done. Had to lookup format that busybox date uses and that worked! Date is up-to-date.

`date 111120422020`

Thanks NiLuJe!
unrznbl is offline   Reply With Quote
Old 11-11-2020, 09:46 PM   #10
unrznbl
Member
unrznbl began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2020
Device: kindle dxg and touch
And now KUAL works again. Problem solved!
unrznbl is offline   Reply With Quote
Old 11-19-2020, 03:19 AM   #11
physdude
Junior Member
physdude began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jun 2008
Location: Kuala Lumpur, MY
Device: Kindle DXG, Kindle PW2
Thanks! This was very helpful as I had the same problem. I had some difficulty figuring out the setdate format since I just assumed it was the usual seconds since the unix epoch but I think have it figured out. It looks to be MMDDHHSSYYYY but with overflow enabled so that month 16 makes it 04 but with one year added to the year (same for hours etc). My DXG now has the current date and time to within a couple of minutes on it.
physdude is offline   Reply With Quote
Old 01-28-2024, 05:03 PM   #12
Hzj_jie
Member
Hzj_jie will become famous soon enoughHzj_jie will become famous soon enoughHzj_jie will become famous soon enoughHzj_jie will become famous soon enoughHzj_jie will become famous soon enoughHzj_jie will become famous soon enough
 
Posts: 18
Karma: 638
Join Date: Feb 2016
Device: kobo aura hd
In case someone runs into the same issue, I attach the prebuilt setdate.bin here.
Attached Files
File Type: bin setdate.bin (666 Bytes, 50 views)
Hzj_jie is offline   Reply With Quote
Old 04-13-2024, 05:41 PM   #13
Elaine T
Enthusiast
Elaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolateElaine T is generous with chocolate
 
Posts: 33
Karma: 33664
Join Date: Jun 2015
Device: kindle paperwhite
Thank you for posting that bin file. My kid's DXG finally knows it isn't 1970.
Elaine T is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
old kual stuck pewpawpew Kindle Developer's Corner 2 06-12-2018 01:23 PM
backup problem - Date showing 1970 Maxy007 Library Management 1 05-10-2018 10:14 PM
Kindle touch won't turn on. Can see current book in background of ad. chr1st0ph3rc Kindle Developer's Corner 1 01-10-2015 05:33 AM


All times are GMT -4. The time now is 11:08 AM.


MobileRead.com is a privately owned, operated and funded community.