webOS Nation Forums >  Homebrew >  WebOS Internals > Package Manager Service
Package Manager Service

  Closed Thread
 
LinkBack Thread Tools Display Modes
Old 12/06/2009, 07:35 PM   #1 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default Package Manager Service

The Package Manager Service (we prefer to abbreviate it as ipkgservice, rather than PMS) is the means by which front-end application installers like Preware (and PreLoad, and any other open source application installers that wish to use it) are able to install advanced homebrew applications containing installation scripts from open standard package feeds in a safe and secure manner.

In general, the end-user should never notice ipkgservice. It should just operate when called by the front-end application, and only really be seen by the user when it pops up a confirmation screen for the user to confirm an action that requires root-level privileges. Installation instructions for Preware refer to ipkgservice separately because WebOS Quick Install does not yet follow package dependencies and install it automatically. The stand-alone installers for Preware automatically install ipkgservice.

End-user documentation for ipkgservice does not exist, and probably will never exist. Please refer to the documentation for the front-end application (e.g. Preware) that you are using.

Developer documentation for ipkgservice does not exist either - at the moment you need to read the source code for ipkgservice or preware to find out how to interface to ipkgservice. The guys who wrote PreLoad were able to do it, so other developers can too

A number of people have requested a separate thread for ipkgservice. This is it

See http://git.webos-internals.org/trac/ipkgservice/roadmap for the ipkgservice roadmap.


When an update is available tap Update to install the new version. After it is installed you will see this screen:


When you press OK, your phone will do a "Java Restart." It will not "reboot" but may seem sluggish for a minute or so while it restarts everything in the background.

-- Rod
__________________
WebOS Internals and Preware Founder and Developer
You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful.
All donations go back into development.
www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals

Last edited by rwhitby; 12/07/2009 at 08:54 PM.
rwhitby is offline  
Old 12/06/2009, 07:40 PM   #2 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Version 0.9.24 of ipkgservice has been released, with API version 9.

The major change is the addition of the restartDevice method.

Also, http://git.webos-internals.org/trac/...rvice/ticket/3 was fixed.

-- Rod
__________________
WebOS Internals and Preware Founder and Developer
You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful.
All donations go back into development.
www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals
rwhitby is offline  
Old 12/06/2009, 07:45 PM   #3 (permalink)
Member
 
rykatemom's Avatar
 
Join Date: Oct 2009
Location: St. Louis, MO
Posts: 136
Likes Received: 0
Thanks: 96
Thanked 17 Times in 15 Posts
Default

Possibly a silly question Rod, but what exactly does the restartDevice method do, and is it accessible by us basic users?

Thanks for all the hard work you guys do to make this device so amazing!
__________________

~Kelly

"Two things are infinite: the universe, and human stupidity; and I'm not sure about the universe." ~Albert Einstein
rykatemom is offline  
Old 12/06/2009, 07:53 PM   #4 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Quote:
Originally Posted by rykatemom View Post
Possibly a silly question Rod, but what exactly does the restartDevice method do, and is it accessible by us basic users?
Specifically, it runs 'tellbootie' (which is a linux program which palm provides to reboot the device) with no arguments and with no confirmation (it's up to the front-end application that calls this method to confirm with the user before it reboots the device).

It's exactly the same as when you press Orange-Sym-R on the keyboard.

We do realise that this could be used maliciously by a rogue webOS application, but since such an application couldn't do anything other than rebooting your device, we don't consider it a real security issue, and such an application would fairly quickly be identified.

It's been added in preparation for future homebrew modifications that need more than just Luna and Java to be restarted.

-- Rod
__________________
WebOS Internals and Preware Founder and Developer
You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful.
All donations go back into development.
www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals

Last edited by rwhitby; 12/06/2009 at 08:06 PM.
rwhitby is offline  
Thanked by oquirozl, rykatemom
Old 12/06/2009, 08:02 PM   #5 (permalink)
Member
 
rykatemom's Avatar
 
Join Date: Oct 2009
Location: St. Louis, MO
Posts: 136
Likes Received: 0
Thanks: 96
Thanked 17 Times in 15 Posts
Default

Ah, awesome. Thanks much!

Will that run automatically, or with a prompt allowing the user the option to go ahead or cancel?
__________________

~Kelly

"Two things are infinite: the universe, and human stupidity; and I'm not sure about the universe." ~Albert Einstein
rykatemom is offline  
Old 12/06/2009, 08:04 PM   #6 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Quote:
Originally Posted by rykatemom View Post
Ah, awesome. Thanks much!

Will that run automatically, or with a prompt allowing the user the option to go ahead or cancel?
That'd be a front-end application (e.g. Preware) question

For Preware, yes it will give such an option. We're working on that right now for the next Preware version.

-- Rod
__________________
WebOS Internals and Preware Founder and Developer
You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful.
All donations go back into development.
www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals
rwhitby is offline  
Thanked By: rykatemom
Old 12/06/2009, 08:22 PM   #7 (permalink)
Member
 
rykatemom's Avatar
 
Join Date: Oct 2009
Location: St. Louis, MO
Posts: 136
Likes Received: 0
Thanks: 96
Thanked 17 Times in 15 Posts
Default

Brilliant, thanks much for the answers Rod!
__________________

~Kelly

"Two things are infinite: the universe, and human stupidity; and I'm not sure about the universe." ~Albert Einstein
rykatemom is offline  
Old 12/06/2009, 09:44 PM   #8 (permalink)
Homebrew Developer
 
milominderbinder's Avatar
 
Join Date: Mar 2005
Location: ↑ iPhone Black Launcher Theme
Posts: 4,593
Likes Received: 117
Thanks: 2,535
Thanked 3,156 Times in 908 Posts
Default

Thanks for doing this thread!

I will link to it in the Getting Started: Preware article. I closed these competing Package Service Manager Threads and redirected them here:

http://forums.precentral.net/palm-pr...r-preware.html

http://forums.precentral.net/web-os-...e-manager.html

http://forums.precentral.net/general...d-1-3-1-a.html

http://forums.precentral.net/webos-i...reware-qi.html

http://forums.precentral.net/webos-p...-services.html

http://forums.precentral.net/palm-pr...r-service.html

http://forums.precentral.net/palm-pr...r-service.html

http://forums.precentral.net/palm-pr...ger-error.html

http://forums.precentral.net/general...uncorrect.html

http://forums.precentral.net/webos-p...t-working.html

http://forums.precentral.net/general...vice-help.html

http://forums.precentral.net/palm-pr...visibilty.html

In the future, I will merge any future threads here as well.

- Craig
__________________
- Milo
Getting StartedRingtonesVideos/MoviesPatches/ThemesMusic Player(Remix)
Battery LifeBackup/SyncingGreat Signal-AiraveiPhone ThemeForum Guidelines

Last edited by milominderbinder; 12/06/2009 at 10:24 PM.
milominderbinder is offline  
Thanked By: robbskittles
Old 12/07/2009, 03:36 PM   #9 (permalink)
Homebrew Developer
 
milominderbinder's Avatar
 
Join Date: Mar 2005
Location: ↑ iPhone Black Launcher Theme
Posts: 4,593
Likes Received: 117
Thanks: 2,535
Thanked 3,156 Times in 908 Posts
Default

Rod,

In the opening post, would you be willing to show a couple of screenshots?

Thank you!

- Craig
__________________
- Milo
Getting StartedRingtonesVideos/MoviesPatches/ThemesMusic Player(Remix)
Battery LifeBackup/SyncingGreat Signal-AiraveiPhone ThemeForum Guidelines

Last edited by milominderbinder; 12/08/2009 at 10:05 PM.
milominderbinder is offline  
Old 12/08/2009, 08:22 PM   #10 (permalink)
Member
 
Join Date: Sep 2009
Posts: 84
Likes Received: 18
Thanks: 4
Thanked 57 Times in 12 Posts
Default Should package manager service be reinstalled after the next WebOS update?

Rod,

When I updated the package manager service from Preware, I noticed that the shell script it runs contains a section relevant only to WebOS 1.3.5:

15 # Is the app limit fixed?
16 if [ -d /media/cryptofs/apps ] ; then
17 APPS=/media/cryptofs/apps
18 else
19 APPS=/var
20 # Install the ipkg wrapper
21 mkdir -p /usr/local/bin
22 cp /var/usr/palm/applications/org.webosinternals.ipkgservice/files/ipkg /usr/local/bin/ipkg
23 fi

Seems like the ipkg wrapper is not installed for 1.3.5?
Is it irrelevant for 1.3.5?
Also, does that mean that we will have to reinstall package manager service after the update to 1.3.5, since we need to uninstall the existing ipkg wrapper?

Thanks!
sagipe is offline  
Old 12/08/2009, 08:29 PM   #11 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Quote:
Originally Posted by sagipe View Post
Also, does that mean that we will have to reinstall package manager service
Any instructions on whether to reinstall ipkgservice for a particular webOS version will come after the public release of that webOS version.

In the mean-time, you should continue to keep ipkgservice up to date as usual.

-- Rod
__________________
WebOS Internals and Preware Founder and Developer
You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful.
All donations go back into development.
www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals

Last edited by rwhitby; 12/09/2009 at 05:37 AM.
rwhitby is offline  
Old 12/09/2009, 12:25 AM   #12 (permalink)
Member
 
Join Date: Jun 2009
Location: Mobile, Alabama
Posts: 486
Likes Received: 0
Thanks: 14
Thanked 10 Times in 9 Posts
Default

trying to install preware and packmanger, everytime i get "arcive truncated" error

please help

on 1.3.1 using 2.96 WebOS QI
Jupiter600 is offline  
Old 01/01/2010, 04:48 PM   #13 (permalink)
Member
 
Join Date: Dec 2009
Posts: 12
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Default

does web06 work on 1.3.5
princechrm1 is offline  
Old 01/02/2010, 05:57 AM   #14 (permalink)
Member
 
Join Date: Oct 2009
Posts: 34
Likes Received: 0
Thanks: 6
Thanked 11 Times in 2 Posts
Default

A little help needed here people.

I installed PreGame’s newly rewritten LED manager service and then I tried to install the new My Flashlight app. When trying to install the app I got an error saying the app was “probably installed”. I then restarted went back into Preware only to be told that the package manager service isn’t running.

I have tried using the latest version of quick install to remove Preware and the package manager service, restarting, using QI to reinstall them and finally restarting yet again. I still get the same error and Preware obviously doesn’t work correctly.

I’m running 1.3.1 on an O2 UK GSM Pre. Any help will be greatly appreciated! A visit to the doctor is out of the question really as I’ll lose several apps that I downloaded before the non-US app store became crippled.

EDIT: I did uninstall the LED service through QI before doing the above.

Last edited by Gav_Oracle; 01/02/2010 at 06:21 AM. Reason: More info
Gav_Oracle is offline  
Old 01/02/2010, 07:06 AM   #15 (permalink)
Member
 
Join Date: Nov 2009
Posts: 2
Likes Received: 0
Thanks: 2
Thanked 0 Times in 0 Posts
Default Exactly the same here!

Quote:
Originally Posted by Gav_Oracle View Post
I installed PreGame’s newly rewritten LED manager service and then I tried to install the new My Flashlight app. When trying to install the app I got an error saying the app was “probably installed”. I then restarted went back into Preware only to be told that the package manager service isn’t running.
I confirm the same bahaviour on German GSM- WebOS1.3.1. I installed the App and after that preware is bricked ! I do not want to reinstall everything again! Is there a way to undo the update or a log, where I can find more info for this error?

Until a fix is available, I can only recommend:

DO NOT INSTALL OR UPDATE LED manager on GSM WebOS 1.3.1!

Best regards

Matthias
Matze is offline  
Old 01/02/2010, 07:22 AM   #16 (permalink)
Member

 
palmdoc2005's Avatar
 
Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
Default

Urrgh. Too late. My Preware is borked after Pregames Flashlight update - said package Manager not running. I deleted and reinstalled via WOSQI now it says only 2 apps installed - the LED flashlight app and service. The service cannot be removed as it gives an error.
Sigh...
On GSM 1.3.3
__________________
Check out my My Medical webOS Apps
Featured free apps: DrugView | Eponyms | eMed | Dosecalcfree | Beeb News
palmdoc2005 is offline  
Old 01/02/2010, 07:35 AM   #17 (permalink)
Member
 
Georgo10's Avatar
 
Join Date: Nov 2009
Location: Prague, Czech republic
Posts: 191
Likes Received: 1
Thanks: 16
Thanked 60 Times in 19 Posts
Default

Quote:
root@palm-webos-device:/var# /sbin/start org.webosinternals.ipkgservice
(00158/526131591) org.webosinternals.ipkgservice (start) waiting
(00158/527749023) org.webosinternals.ipkgservice (start) starting
(00158/529030761) org.webosinternals.ipkgservice (start) pre-start
(00158/530770263) org.webosinternals.ipkgservice (start) spawned, process 1607
(00158/532052001) org.webosinternals.ipkgservice (start) post-start, (main) process 1607
(00158/533272705) org.webosinternals.ipkgservice (start) running, process 1607
(00158/580880126) org.webosinternals.ipkgservice (stop) running
(00158/581215820) org.webosinternals.ipkgservice (stop) stopping
(00158/581490478) org.webosinternals.ipkgservice (stop) killed
(00158/581734619) org.webosinternals.ipkgservice (stop) post-stop
(00158/582009277) org.webosinternals.ipkgservice (stop) waiting
start: (00158/582161865) org.webosinternals.ipkgservice main process terminated with status 1
Same problem here Damn.

Edit:
And here is reason:
Quote:
root@palm-webos-device:/etc/event.d# sed -i -e "s^/\(all\|[0-9.]*\)\$^/$VERSION^g" $APPS/etc/ipkg/webos-patches.conf
sed: cannot create temp file /media/cryptofs/apps/etc/ipkg/webos-patches.conf6odXWs: Read-only file system
So, it's look like, LED service have hardcoded path /media/cryptofs/apps/ and Package Service thinks, it have data there. But in 1.3.1 is no /media/cryptofs, so it failed on loading.

Solution is remove LED service, Package Service,remove directoru /media/cryptofs (thru novaterm for example) and install Package Service again.

Voi'la
__________________
Georgo

Where do you want to Geocaching today?

Last edited by Georgo10; 01/02/2010 at 07:51 AM.
Georgo10 is offline  
Old 01/02/2010, 09:47 AM   #18 (permalink)
Member
 
Join Date: Oct 2009
Posts: 34
Likes Received: 0
Thanks: 6
Thanked 11 Times in 2 Posts
Default

Quote:
Originally Posted by Georgo10 View Post
Solution is remove LED service, Package Service,remove directoru /media/cryptofs (thru novaterm for example) and install Package Service again.
I'm trying your fix at the moment. How can I remove the cryptofs directory without having to install novacom? Can I do it through the Linux command line option built into quick install?


EDIT:

Don't worry Georgo10 I got the folder removed with the help of zsoc in the webos-internals chat room.

For anyone else with this problem you can use the following command in the "Linux Commandline" option in WebOS quick install:

DO NOT RUN THIS COMMAND IF YOU ARE USING VERSION 1.3.5
DO NOT RUN THIS COMMAND IF YOU ARE USING VERSION 1.3.5
DO NOT RUN THIS COMMAND IF YOU ARE USING VERSION 1.3.5


mount -o remount,rw /; rm -r /media/cryptofs; mount -o remount,ro /

DO NOT RUN THIS COMMAND IF YOU ARE USING VERSION 1.3.5
DO NOT RUN THIS COMMAND IF YOU ARE USING VERSION 1.3.5
DO NOT RUN THIS COMMAND IF YOU ARE USING VERSION 1.3.5


Then re install the Package Manager service in the normal way.

Last edited by Gav_Oracle; 01/02/2010 at 10:26 AM.
Gav_Oracle is offline  
Thanked by guest_, jstutz
Old 01/02/2010, 10:24 AM   #19 (permalink)
Member

 
palmdoc2005's Avatar
 
Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
Default

Quote:
Originally Posted by Gav_Oracle View Post
I'm trying your fix at the moment. How can I remove the cryptofs directory without having to install novacom? Can I do it through the Linux command line option built into quick install?
I shd think so but I just launched the terminal app, then
Code:
cd /media
rm -r cryptofs
__________________
Check out my My Medical webOS Apps
Featured free apps: DrugView | Eponyms | eMed | Dosecalcfree | Beeb News
palmdoc2005 is offline  
Old 01/02/2010, 10:36 AM   #20 (permalink)
Member
 
Join Date: Jan 2010
Posts: 1
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you can also use WebOSQuickInstall->tools->Device Management->> and uninstall flashlight...

so it works for me

LG
black_head1981
black_head1981 is offline  
Closed Thread

 

Thread Tools
Display Modes


LinkBacks (?)
LinkBack to this Thread: http://forums.webosnation.com/webos-internals/218671-package-manager-service.html
Posted By For Type Date
How to Use Preware for Homebrew Apps, Patches, and Themes This thread Refback 05/23/2010 07:17 PM


 


Content Relevant URLs by vBSEO 3.6.0