![]() |
#1 |
THE NOOB
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
nativeBridge.dbgCmd
Good afternoon!!!
I read about the nativeBridge.dbgCmd function and it sounds awesome! I tried to use it in a waf, to kill it from inside itself but I didn't manage to make it work! I used this: PHP Code:
Thanks a lot!!! ![]() |
![]() |
![]() |
![]() |
#2 | |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Bummer! Now we need a new way to toggle USBnet from the framework... ![]() Oh... wait... I know how to execute arbitrary programs or scripts by typing something "special" in the search bar. Perhaps that can be leveraged into a launcher menu. But they only run as user "framework". Perhaps they can tell a root daemon process to do something useful though... ![]() In other words, we have root! We CAN replace the missing functions that amazon removed in the update. We can simply revert to the older files from a previous firmware version, or we can "roll our own" alternate solution that looks for sentinel (trigger) files to decide what root action to do for us. ![]() Last edited by geekmaster; 03-09-2012 at 12:10 PM. |
|
![]() |
![]() |
![]() |
#4 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Hmm... I'm also running 5.0.4, and toggling USB network through the launcher works perfectly well for me. So it must be something different...
|
![]() |
![]() |
![]() |
#5 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Does USBnet require activation with amazon? |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
|
![]() |
![]() |
![]() |
#7 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
I have been using diags USBnet most of the time, after fastboot flashing the diags partition image with SSH pre-installed. EDIT: @ixtab: Athough a wee bit off-topic, I respect your opinion, and in your opinion, does this make me a wee bit insane? : https://www.mobileread.com/forums/sho....php?p=1997659 ![]() Last edited by geekmaster; 03-09-2012 at 01:26 PM. |
|
![]() |
![]() |
![]() |
#8 |
THE NOOB
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
thanks a lot!!
that's good: it's not me being dumb this time! anyway, it is frustating: it was a really good way of executing shell command from a waf (actually the only way). So, no chances of killing a waf using an exit button? |
![]() |
![]() |
![]() |
#9 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
|
![]() |
![]() |
![]() |
#10 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 99
Karma: 30196
Join Date: Dec 2011
Device: Kindle Touch
|
Quote:
An interesting fact: I had 5.04 firmware installed, then I reset it to the factory defaults and running USBNet from the GUI Launcher broke. I installed it over and it works again. ![]() |
|
![]() |
![]() |
![]() |
#11 | |
THE NOOB
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
Quote:
![]() I just was super-excited about nativeBridge but I didn't manage to make it work==>I must be dumb! |
|
![]() |
![]() |
![]() |
#12 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
![]() In my case, lately I have been getting "super-excited" by doing interesting things normally only done in native code (such as processing binary data), using only shell scripts and a minimum of external built-in program calls. These include reading binary input events (see the my touchpaint script) and writing binary pixel data directly into the eInk framebuffer (see my ddplot script). K4 and Touch (ddplot): https://www.mobileread.com/forums/sho....php?p=1997659 Touch (touchpaint): https://www.mobileread.com/forums/sho....php?p=1989102 ![]() Last edited by geekmaster; 03-10-2012 at 11:23 AM. |
|
![]() |
![]() |
![]() |
#13 |
Groupie
![]() ![]() Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
|
@silver18: just add "Kill all WAFs" entry to GUI launcher
![]() |
![]() |
![]() |
![]() |
#14 |
THE NOOB
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
|
![]() |
![]() |
![]() |
#15 |
Groupie
![]() ![]() Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
|
Umm... If only you could access filesystem to write you could create a flag file in, say, /tmp, and make cronjob running that would "killall wafapp" if it finds a file...
Yep, another dirty workaround, I know, but still... |
![]() |
![]() |