![]() |
#16 |
THE NOOB
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
And how about creating a waf menu?
Let me explain this: in the end, the browser is a WAF itself and it has his own menu. So it could be possibile to create one for any WAF. It could be used to kill it, to access Yifan Lu launcher... Am I dreaming? ![]() |
![]() |
![]() |
![]() |
#17 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Yes
![]() You obviously *can* have your own menu in a WAF app (check the browser's implementation for details), but this won't allow you to gain more privileges. You won't be able to run commands etc. This makes sense, because otherwise, that would essentially mean giving full root control to a WAF application, which would be a gaping security hole. The only way that I *think* you can interact with the system is via LIPC. I haven't taken a deeper look into this, but do some "grep -ir lipc" inside the WAF and pillow directories and see how it's used. Good luck ![]() PS: There is no exit button. The exit button is the home button. This is true even for the bundled WAF apps (e.g., browser): If you start the browser, you can only exit it by returning to the home screen. If you look at the list of running applications, you will see that the browser is still running in the background after you "exited". I think it will only be killed once another WAF app is started. Last edited by ixtab; 03-12-2012 at 11:52 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Groupie
![]() ![]() Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
|
Then maybe there's no need to kill itself? Let this WAF app live till another WAF starts...
|
![]() |
![]() |
![]() |
#19 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84
Karma: 26720
Join Date: Mar 2011
Device: Kindle 3 WIFI
|
My WAFbrew apps kills the WAF process on start so you can modify files on the fly and see the results without rebooting.
wafbrew.sh - Quote:
|
|
![]() |
![]() |
![]() |
#20 | |
hub
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
|
Quote:
Does anyone know how to revert it back so that nativeBridge.dbgCmd() can work? Last edited by thatworkshop; 03-15-2012 at 12:35 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Reset your device to a 5.0.0 or 5.0.1 firmware and never, ever, upgrade.
nativeBridge.debugCmd() is a major bug and a security hole, IMHO. |
![]() |
![]() |
![]() |
#22 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
|
If I am not mistaken, there is a way to access appmgrd from JS?
After entering Code:
sqlite3 /var/local/appreg.db "INSERT INTO "properties" VALUES('com.killall.wafapp','command','/usr/bin/killall wafapp');" Code:
lipc-set-prop com.lab126.appmgrd start app://com.killall.wafapp |
![]() |
![]() |
![]() |
#23 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
|
Well...................
|
![]() |
![]() |
![]() |
#24 |
THE NOOB
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
I think it should work...but...you can't use this:
Code:
lipc-set-prop com.lab126.appmgrd start app://com.killall.wafapp |
![]() |
![]() |
![]() |
#25 |
n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 2802
Join Date: Jan 2012
Device: Kindle Touch
|
I'm a bit tired so maybe I am saying something (more) stupid (than usual)..
Amazon removed nativeBridge.dbgCmd, but why not find out how it was working and making a sobstitute for it, maybe giving the user the choice if allow root access or not? (like superuser on android) |
![]() |
![]() |
![]() |
#26 | ||
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
![]() Quote:
Of course, you can write a substitute for this. You can even replace the entire webkit library. Or the Operating system. The real challenge is to write something that allows you to perform additional functionality (ideally) on an unmodified device, or (second choice) that works on a modified device, while still not causing problems on an unmodified one. If you're serious about this, then I suggest to take a look at the waf application and libraries, followed by the LIPC mechanisms. |
||
![]() |
![]() |
![]() |
#27 |
THE NOOB
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
Looking around in /usr/share/webkit-1.0/pillow/javascripts, I found that many JS call nativeBridge.
Something drew my attention: Code:
nativeBridge.setTitleBarWinParams({forceVisible: true}); Code:
nativeBridge.setTitleBarWinParams({forceVisible: false}); The point is: as nativeBridge is here used in a JS, is it possible to make the same from a WAF? I tried in my WAF, but no luck... (something tells me it isn't possible!) EDIT: Thanks to Geekmaster!!! Last edited by silver18; 05-19-2012 at 11:53 AM. |
![]() |
![]() |