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 03-12-2013, 09:37 AM   #76
dsmid
Linux devotee
dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.
 
dsmid's Avatar
 
Posts: 598
Karma: 2069047
Join Date: Feb 2011
Device: Kindle 3, Kindle 4B, Kindle PW2
Thanks eureka, my intention was to make sure the changes are brought into effect even on a device I don't posses. Reboot was a safe bet.

Version 8
  • No need to reboot KT and KPW after locking/unlocking
dsmid is offline   Reply With Quote
Old 03-12-2013, 09:44 AM   #77
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Index updated. Many thanks
twobob is offline   Reply With Quote
Advert
Old 03-12-2013, 09:47 AM   #78
GoSharks
SQUIRREL!!
GoSharks ought to be getting tired of karma fortunes by now.GoSharks ought to be getting tired of karma fortunes by now.GoSharks ought to be getting tired of karma fortunes by now.GoSharks ought to be getting tired of karma fortunes by now.GoSharks ought to be getting tired of karma fortunes by now.GoSharks ought to be getting tired of karma fortunes by now.GoSharks ought to be getting tired of karma fortunes by now.GoSharks ought to be getting tired of karma fortunes by now.GoSharks ought to be getting tired of karma fortunes by now.GoSharks ought to be getting tired of karma fortunes by now.GoSharks ought to be getting tired of karma fortunes by now.
 
GoSharks's Avatar
 
Posts: 1,636
Karma: 8400000
Join Date: Nov 2010
Location: California
Device: K-Fire, PW2, PW3
GoSharks is offline   Reply With Quote
Old 03-12-2013, 10:12 AM   #79
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by dsmid View Post
Thanks eureka, my intention was to make sure the changes are brought into effect even on a device I don't posses. Reboot was a safe bet.

Version 8
  • No need to reboot KT and KPW after locking/unlocking
Thanks. It's also worth to note that BackDoorLock for KT/PW does stop Kindle from downloading the update file (by ignoring of new update notices pushed by Amazon in current official form).
eureka is offline   Reply With Quote
Old 03-12-2013, 10:21 AM   #80
xtine
Addict
xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.
 
xtine's Avatar
 
Posts: 355
Karma: 1432252
Join Date: Oct 2009
Device: Kobo Forma
Thank you for this update, dsmid & eureka!

To update (KUAL), do I only need to replace the backdoorlock folder under extensions with the new version, or do I need to unlock, delete the previous backdoorlock folder, and restart before copying the new version?
xtine is offline   Reply With Quote
Advert
Old 03-12-2013, 11:24 AM   #81
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
I also asked for some "Best-practice Update" instructions.

Let's see what falls out of 'Camp Dsmid'.
twobob is offline   Reply With Quote
Old 03-12-2013, 12:11 PM   #82
Yolina
Wizard
Yolina ought to be getting tired of karma fortunes by now.Yolina ought to be getting tired of karma fortunes by now.Yolina ought to be getting tired of karma fortunes by now.Yolina ought to be getting tired of karma fortunes by now.Yolina ought to be getting tired of karma fortunes by now.Yolina ought to be getting tired of karma fortunes by now.Yolina ought to be getting tired of karma fortunes by now.Yolina ought to be getting tired of karma fortunes by now.Yolina ought to be getting tired of karma fortunes by now.Yolina ought to be getting tired of karma fortunes by now.Yolina ought to be getting tired of karma fortunes by now.
 
Posts: 1,179
Karma: 11573197
Join Date: Feb 2011
Location: London, UK
Device: Voyage
I went with unlock, replace folder and then obviously lock again...
Yolina is offline   Reply With Quote
Old 03-12-2013, 12:15 PM   #83
dsmid
Linux devotee
dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.
 
dsmid's Avatar
 
Posts: 598
Karma: 2069047
Join Date: Feb 2011
Device: Kindle 3, Kindle 4B, Kindle PW2
Quote:
Originally Posted by xtine View Post
To update (KUAL), do I only need to replace the backdoorlock folder under extensions with the new version, or do I need to unlock, delete the previous backdoorlock folder, and restart before copying the new version?
Just replace the backdoorlock folder with the new version, then lock.

Updating the bundle install involves just installing the newest version, no need to uninstall the previous one first.
dsmid is offline   Reply With Quote
Old 03-12-2013, 09:54 PM   #84
xtine
Addict
xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.
 
xtine's Avatar
 
Posts: 355
Karma: 1432252
Join Date: Oct 2009
Device: Kobo Forma
Quote:
Originally Posted by dsmid View Post
Just replace the backdoorlock folder with the new version, then lock.

Updating the bundle install involves just installing the newest version, no need to uninstall the previous one first.
Thank you

Yolina, looks like you did it right
xtine is offline   Reply With Quote
Old 03-14-2013, 10:53 PM   #85
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by dsmid View Post
Silent update detection does not work on Kindle Touch and Kindle Paperwhite as the hack uses a different method to stop silent updates on these devices.
ToDo will set handleToDoItem property of LIPC service defined in handler_registry.conf with content of ToDo document (XML, in fact) pushed by Amazon.

So, if com.lab126.ota in /etc/todo/handler_registry.conf will be replaced with name of our own LIPC service providing handleToDoItem property, silent update attempt could be detected.

The easiest way to write LIPC service in 5.x is to use Lua:
Code:
require("liblipclua")

local lipc_handle, error_message, error_number = lipc.init("com.example.fakeota")
if not lipc_handle then
    -- handle initialization error
else
    lipc.set_error_handler(function(error) --[[handle work error]] end)
end 

local handleToDoItem = lipc_handle:register_string_property("handleToDoItem", "w")
handleToDoItem.listener = function (name, value)
  -- handle string value
end

-- run event loop with timeout of Infinity seconds
while true do lipc.run_event_loop(math.huge) end
I understand that you doesn't have K5 to check it and develop further. Let this information just be here for the reference.

Last edited by eureka; 03-19-2013 at 06:55 AM.
eureka is offline   Reply With Quote
Old 03-15-2013, 11:14 AM   #86
veezh
plus ça change
veezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beauty
 
veezh's Avatar
 
Posts: 101
Karma: 32134
Join Date: Dec 2009
Location: France
Device: Kindle PW2, Voyage
Thank you for this great tool, dsmid!
veezh is offline   Reply With Quote
Old 05-08-2013, 08:37 AM   #87
stepk
Groupie
stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.
 
Posts: 165
Karma: 593460
Join Date: Oct 2012
Device: K5 B011 5.3.2.1
Please update the KUAL package in the first post for KUAL 2.0 compatibility, thank you. Ref https://www.mobileread.com/forums/sho...&postcount=778

Also, after I start backdoorlock from KUAL 2.0 I find this error line in the KUAL log file:
Code:
bin/lock.sh: line 12: */sbin/restart: not found
Is this error intentional? If so, can you please modify lock.sh to redirect the error message to /dev/null ? Thank you.

Last edited by stepk; 05-08-2013 at 08:46 AM.
stepk is offline   Reply With Quote
Old 05-09-2013, 02:31 AM   #88
dsmid
Linux devotee
dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.
 
dsmid's Avatar
 
Posts: 598
Karma: 2069047
Join Date: Feb 2011
Device: Kindle 3, Kindle 4B, Kindle PW2
Hi stepk, thanks for the report.
I assume you've got Kindle Touch. The line in lock.sh you are referring to looks like this:

Code:
[ -f /etc/todo/handler_registry.conf ] && /sbin/restart todo
It's there to restart the todo service on Kindle Touch and Kindle Paperwhite (there's no such service on K3 and K4).
Symlink /sbin/restart is present in KPW firmware and I'm quite surprised to read it is missing in Kindle Touch. Can you check if it is present in /usr/sbin/ or elsewhere ?

Concerning KUAL, do I understand it right that the only problem is the extra comma in menu.json ? Or are there any other issues/suggestions ?
dsmid is offline   Reply With Quote
Old 05-09-2013, 03:33 AM   #89
stepk
Groupie
stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.
 
Posts: 165
Karma: 593460
Join Date: Oct 2012
Device: K5 B011 5.3.2.1
Code:
[root@kindle tmp]# vi /mnt/us/extensions/backdoorlock/bin/lock.sh

[ -f /etc/todo/handler_registry.conf ] &&../sbin/restart todo
Can you see the ../ in your copy? Vi on the kindle not on your dev PC.

The extra comma is the only issue in menu.json.

edit: OK, I checked the two dots in vim: they stand for a hard space character, 0xA0. It looks like a regular space character but it isn't and it becomes part of the file name. So "\0xA0/sbin/restart" isn't obviously found.

unlock.sh has the same problem
Code:
# grep -R "*" extensions/backdoorlock/* 
extensions/backdoorlock/bin/unlock.sh:[ -f /etc/todo/handler_registry.conf ] &&*/sbin/restart todo
extensions/backdoorlock/bin/lock.sh:[ -f /etc/todo/handler_registry.conf ] &&*/sbin/restart todo
P.S. Notice how the forum software renders 0xA0 as a * character - which was included in my post #87 but maybe looked as a typo.

Last edited by stepk; 05-09-2013 at 06:39 AM.
stepk is offline   Reply With Quote
Old 05-09-2013, 08:29 AM   #90
dsmid
Linux devotee
dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.
 
dsmid's Avatar
 
Posts: 598
Karma: 2069047
Join Date: Feb 2011
Device: Kindle 3, Kindle 4B, Kindle PW2
Thanks for hunting that down, a new version 9 is available with both issues fixed.
The U+00A0 character was probably some leftover from copy&paste.
dsmid is offline   Reply With Quote
Reply

Tags
k3 k4 k5 kpw backdoorlock


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevents ZIPs from becoming CBZs wladdy Calibre 3 03-01-2014 02:38 PM
BackDoorLock slantybard Kindle Developer's Corner 6 12-08-2013 02:50 PM
Kual y backdoorlock adegir1952 Amazon Kindle 3 06-14-2013 09:44 AM
Updates Provider hack dsmid Kindle Developer's Corner 51 05-08-2012 11:51 PM
Request: Silent updates. fabian Calibre 5 03-15-2011 11:34 AM


All times are GMT -4. The time now is 07:24 PM.


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