View Single Post
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