Quote:
Originally Posted by dsmid
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.