![]() |
#1 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Sep 2019
Device: KT4
|
lipc sendEvent to execute binaries still works?
I see for example in:
https://github.com/AerisDev/KindleMe...emenupage.html Code:
nativeBridge.setLipcProperty("com.lab126.system", "sendEvent", "; su -c 'killall show_alert.sh; /mnt/us/extensions/kindlemenu/bin/sh/show_alert.sh " + status + " 3 &'"); Is there a equivalent way of doing it in recent versions? Thanks |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,786
Karma: 103362673
Join Date: Apr 2011
Device: pb360
|
Have you tried KUAL:
https://www.mobileread.com/forums/sh...d.php?t=203326 |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
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 the nativeBridge stuff went the way of the dodo back in something like 5.1.x or something *reaaaaaaalllly* old.
As for the system() calls via lipc, yep that's gone for sure. Again, a crapload of time ago. |
![]() |
![]() |
![]() |
#4 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Hmm.... That is approximately a zillion firmware revisions ago. - - - - - Even if the above still worked, you would have to have a jail broken Kindle (the original, a K5) to use the code. So if you really must have this "feature", buy an original K5, then install a firmware version earlier than 5.2, then jail break the device, and THEN you can play with that code. ![]() - - - - - Note: KUAL replaced KindleMenu in January of 2013. So you are looking at some really, really old code (like back in the days of "NativeBridge". Last edited by knc1; 09-30-2019 at 09:07 PM. |
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Sep 2019
Device: KT4
|
Thanks. I am using KUAL. I am just using "KindleMenu" as code snippet examples.
I'm trying to develop a WAF/Pillow app and wanted to have a way of interacting with shell scripts. Maybe thats possible now by appending custom cmds to /usr/share/webkit-1.0/pillow/debug_cmds.jsonand invoking then from lipc. Anyway, is there a recent WAF app source code available to take as example? |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
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 something awful happened to how "free" you were with WAF stuff, too, FWIW, which explains why you can't find anything recent
![]() |
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Sep 2019
Device: KT4
|
I confirmed that it's possible to execute arbitrary commands by adding them to /usr/share/webkit-1.0/pillow/debug_cmds.json, and executing with eg:
nativeBridge.dbgCmd(";usbnetwork","") The second parameter allows to pass parameters to the command, so a shell script with exec can be used as a arbitrary command proxy. |
![]() |
![]() |
![]() |
#8 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
True, but that's considerably more intrusive
![]() (c.f., the bridge's piggybacking on ;log for an actual implementation of this idea). Last edited by NiLuJe; 10-03-2019 at 12:38 PM. |
![]() |
![]() |
![]() |
Tags |
lipc |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
LIPC: how to set a custom event? | silver18 | Kindle Developer's Corner | 20 | 04-21-2025 10:36 AM |
How to use the lipc-hash-prop command? | NotaStudio | Kindle Developer's Corner | 2 | 06-03-2017 12:32 PM |
lipc-daemon usage infos and ideas | Aeris | Kindle Developer's Corner | 13 | 01-15-2015 08:36 AM |
Recovery Binaries | knc1 | Kindle Developer's Corner | 1 | 06-17-2012 01:14 PM |