07/30/2009, 02:43 PM
|
#1 (permalink) |
|
Member
![]() Join Date: Jun 2009
Location: Czechia (Vodafone)
Posts: 71
Likes Received: 0
Thanks: 23
Thanked 20 Times in 6 Posts
|
Hello,
I think I've found out something really cool -- the way you can run command(s) after installing a signed IPK, something that can replace the non-working postinstall & preinstall scripts and allow installing applications that previously required rooting. The workfolow is quite simple: Instead of packaging (the signed package way, see the wiki) just your webOS application, you can also include any other file to the package. The problem is that this file (placed outside /var) is only extracted when installing directly using ipkg, not when using the palm://com.palm.appinstaller/install system call. I've found out that you can bypass this by using '..' path when creating the tarball: Code:
dev@thinkpad ~/some/folder $ ls /var/usr/palm/applications/com.app.test/ app icon.png sources.json appinfo.json images index.html stylesheets stylesheets framework_config.json dev@thinkpad ~/some/folder $ ls ../../etc/init.d/ udev [this file is placed in ~/etc/init.d/ directory] dev@thinkpad ~/some/folder $ tar cvPzf data.tar.gz /var/usr/palm/applications/com.app.test ../../etc/init.d/udev This means that I can also mimic the post-install script (sadly, requring the user to reboot the device) or any other script dealing with data outside the /var directory. The procedure can be for example used for enabling tethering on the phone justy by installing signed IPK on a non-rooted device! Everything is possible ![]() NOTE: Sice I don't have the actual device, this has been only tested in emulator |
07/30/2009, 02:58 PM
|
#2 (permalink) |
|
Member
![]() Join Date: Jun 2009
Location: With a colony of King Penguins in Antartica
Posts: 1,318
Likes Received: 95
Thanks: 533
Thanked 304 Times in 153 Posts
|
This is very interesting. I would like to see this work on the Pre.
I was wonder if you could do something like this the other day....
__________________
My Tutorial on how to get Ubuntu on the TouchPad: http://forums.precentral.net/webos-d...-touchpad.html
|
07/31/2009, 08:19 AM
|
#6 (permalink) |
|
Member
![]() Join Date: Dec 2003
Location: Fairfax, Virginia
Posts: 3,387
Likes Received: 0
Thanks: 1
Thanked 148 Times in 90 Posts
|
So can anyone with a Pre test this out and verify that it works?
__________________
Bob Meyer I'm out of my mind. But feel free to leave a message. |
07/31/2009, 12:04 PM
|
#10 (permalink) | |
|
Member
![]() Join Date: May 2009
Posts: 89
Likes Received: 0
Thanks: 23
Thanked 12 Times in 10 Posts
|
Quote:
|
|
08/01/2009, 09:22 PM
|
#14 (permalink) |
|
Member
![]() Join Date: May 2009
Posts: 89
Likes Received: 0
Thanks: 23
Thanked 12 Times in 10 Posts
|
Hmmmm....usually something this big has a hundred posts within the first day and makes the front page of the site. Maybe the people "in the know" have already tried this and found out it doesn't work and just haven't bothered to post about it here? If this really made rooting obsolete, I think there would be a LOT more buzz about it. Lets hope I'm wrong cause I'm still super excited about this!
|
08/01/2009, 10:57 PM
|
#15 (permalink) |
|
Member
![]() Join Date: Jul 2009
Posts: 32
Likes Received: 0
Thanks: 3
Thanked 11 Times in 3 Posts
|
I really hope this works. I've been considering rooting my pre lately to install some apps and whatnot but have been somwhat reluctant to do so as I don't have much experience with linux (and I don't generally have access to wifi or high speed internet to download the necessary programs). If this workaround can be implemented into all the current apps and tweaks then I'd rather not root my pre.
|
08/02/2009, 12:48 AM
|
#17 (permalink) |
|
Member
![]() Join Date: Nov 1999
Location: City of Champions!!!
Posts: 617
Likes Received: 0
Thanks: 5
Thanked 54 Times in 36 Posts
|
Guys rooting is not really doing much of anything anymore. You install the SDK then run a command line prompt, cut and past the command from the aurthor and you are done. You are not doing anything to hurt your Pre this way unless you start typing commands deep in.
__________________
Systems Analyst by trade, Drummer by desire and Music Lover by birth. A self proclaimed Geek and gadget nut. i iDid you know: The Pittsburgh Steelers have more championships than 21 other NFL teams combined! Pittsburgh Steelers-6 Time Super Bowl Champions! Pittsburgh Penguins-3 Time Stanley Cup Champions!
|
08/02/2009, 07:12 AM
|
#19 (permalink) |
|
Member
![]() Join Date: Jun 2009
Location: Czechia (Vodafone)
Posts: 71
Likes Received: 0
Thanks: 23
Thanked 20 Times in 6 Posts
|
Sure, but wouldn't it be better to have a bunch of packages instead of patching every file by hand? Imagine a repository with all webOS patches and tweaks available just one click/enter away...isn't that a nice vision?
|
![]() |
|
| Tags |
| appinstaller, ipk, non-rooted device, rooting |
| Thread Tools | |
| Display Modes | |
|
|



