Page 2 of 25 FirstFirst 123456712 ... LastLast
Results 21 to 40 of 484
  1. DrewPre's Avatar
    Posts
    818 Posts
    Global Posts
    829 Global Posts
       #21  
    bump
  2. DrewPre's Avatar
    Posts
    818 Posts
    Global Posts
    829 Global Posts
       #22  
    I could use some help on this.... Still having problems accessing a modified version of ipkgservice to run a script command from my application.

    could someone, anyone, help out regarding my second to last post?
  3. DrewPre's Avatar
    Posts
    818 Posts
    Global Posts
    829 Global Posts
       #23  
    Here is an update.

    I am attempting to follow rwhitby's advice RE: creating a service.

    I created ppbkuservice.java file and compiled it by typing ...
    Code:
    javac -classpath json.jar;lunaservice.jar;serviceframework.jar;Utils.jar Code.java
    This generated a ppbkuservice.class file which I then ran ...
    Code:
    jar -cvf PPBkuService.jar PPBkuService.class
    ...against to generate the PPBkuService.jar file. This JAR file I copied to... /usr/lib/luna/java on the emulator

    I also created a com.tntservices.ppbkuservice.service file with the following contents...
    Code:
    [D-BUS Service]
    Name=com.tntservices.ppbkuservice
    Exec=/usr/bin/luna-helper 'luna://com.palm.vm/launch' '{"serviceName":"com.tntservices.ppbkuservice","className":"com.tntservices.ppbkuservice.PPBkuService"}'
    This file I copied to /usr/share/dbus-1/system-services on the emulator

    I made sure both files were executable on the Emulator by issuing a CHMOD 755 command against them...

    I rebooted the emulator and tried to run the following from the command prompt....

    Code:
    /usr/bin/luna-send -n 1 palm://com.tntservices.ppbkuservice/version {}
    This command should be returning a version number. Instead it gave me the following error....
    ** Message: serviceResponse Handling: 2, {"returnValue":false,"errorCode":-1,"errorText":"Launch helper exited with unknown return code 0"}
    As of right now all I have in PPBkuService.java is the following...

    Code:
    /**
     * 
     */
    package com.tntservices.ppbkuservice;
    
    import com.palm.luna.*;
    import java.io.*;
    import java.util.*;
    import org.json.*;
    
    /**
     * @author Drew
     *
     */
    public class PPBkuService extends LunaServiceThread {
         private String strVersion = "0.0.1110";
    
              @LunaServiceThread.PublicMethod
                    public void version(ServiceMessage message) {
                          try {
                               StringBuilder sb = new StringBuilder(8192);
                               sb.append("{version:");
                               sb.append(JSONObject.quote(this.strVersion));
                               sb.append("}");
                               message.respond(sb.toString());
                               } 
                               catch (LSException e) {
                                    this.logger.severe("", e);
                               }
                    }
    }
    Can someone instruct me on what I am doing wrong??

    The luna-send command should be returning a version number of 0.0.1110

    [bold]edit:[/bold] FYI - The problem here was the structure of the jar file....the configuration calls for it to be in the com/domain/service folder [e.g. org/webosinternals/ipkgservice] of the Jar file. Mine was on the root of the jar file.
    Last edited by DrewPre; 11/12/2009 at 01:21 AM.
  4. DrewPre's Avatar
    Posts
    818 Posts
    Global Posts
    829 Global Posts
       #24  
    In fact I used this same method to install the optloopservice and accelservice that rwhitby directed me to in an earlier post and those services generate the same errors.

    I am sure there is something pretty trivial I am overlooking.

    help!?
  5. DrewPre's Avatar
    Posts
    818 Posts
    Global Posts
    829 Global Posts
       #25  
    bump
  6. DrewPre's Avatar
    Posts
    818 Posts
    Global Posts
    829 Global Posts
       #26  
    I think I've done it.

    I have a service and a front-end GUI that backs up, phone, browser, applications, and multimedia to /media/internal/ppbackup in a tarball.

    Obvious disk limitations are in place.

    As of right now, there is no feed back as to the progress of the backup during the backup. [e.g. You could close the app and the process could still be running.] There are also other bells and whistles to be added. Particularly how to handle if you dont want media or applications backed up. [e.g. adding them to the exclude list]

    But the harder work is done.
  7. #27  
    Quote Originally Posted by DrewPre View Post
    I think I've done it.

    I have a service and a front-end GUI that backs up, phone, browser, applications, and multimedia to /media/internal/ppbackup in a tarball.

    Obvious disk limitations are in place.

    As of right now, there is no feed back as to the progress of the backup during the backup. [e.g. You could close the app and the process could still be running.] There are also other bells and whistles to be added. Particularly how to handle if you dont want media or applications backed up. [e.g. adding them to the exclude list]

    But the harder work is done.
    Excellent work. Sorry I haven't had time to help, but I will make time to help you package it up as an app to put in Preware.

    -- 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
  8. DrewPre's Avatar
    Posts
    818 Posts
    Global Posts
    829 Global Posts
       #28  
    I can use that help packaging the service files now.

    I have a total of 6 files, totalling a whopping 6.44k in the mojo service I created.

    I think I am ready for public testing the WebOS application peice. Especially with the release of 1.3.1. I would love to see how a 1.2.1 backup held up on 1.3.1. I've disabled the backing up of multimedia for several reasons. Also there are some known 'issues' like orphaned processes and the app times out when waiting for particularly longer/larger backups, but the backgroung processes complete successfully.

    Anyway, I've uploaded the Application and have screenshots of what it looks like but It's still reliant upon the mojo service tho. so you cant do anything until I get the service packaged and uploaded to one of the preware feeds.

    Anyway, let me know when you [or anyone] has a chance to help me with the packaging of the service peice.

    thx.









    Last edited by DrewPre; 04/30/2010 at 05:32 AM.
  9. DrewPre's Avatar
    Posts
    818 Posts
    Global Posts
    829 Global Posts
       #29  
    oh and keep an eye out for a Pre to Gmail contact migration utility next.
  10. DrewPre's Avatar
    Posts
    818 Posts
    Global Posts
    829 Global Posts
       #30  
    Heh, I just restored a backup of App, Patches, Contacts, Call Logs, Txt Msgs, Browswer History, and Bookmarks made from a live Pre v1.2.1 onto the 1.3.1 emulator.

    after a reboot....

    Everything worx so far.
  11. DrewPre's Avatar
    Posts
    818 Posts
    Global Posts
    829 Global Posts
       #31  
    My application and service appear to work on 1.3.1 as well.

    Although I have some more work to do with regard to getting the databases [cookies, depot, & sql] per app backed up so that login info and other settings for apps like mediafly, pandora, and accuweather are retained with their application backups.
  12. #32  
    Quote Originally Posted by DrewPre View Post
    I can use that help packaging the service files now.
    I've sent you my email address in a private message so we can work on this.

    Nice work, BTW.

    -- 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
  13. #33  
    WOW.

    That is AMAZING DrewPre!

    Unbelievable! I can't even.... I need to pick up a thesaurus to be able to adequately commend you.

    I'm very impressed by your drive and your ability to learn all of this and execute it.

    I wanted to start something like this by making an app for the GBA Emulator that has been released. However, I don't have the patience (and especially the time) to focus on such a task and see it through to fruition.

    In that regards, once again, congrats!

    *update*
    Hey DrewPre, I've written an article about your exploits here. Let me know if that's cool with you, or if you would like to edit/alter/change it in anyway. Once again, Congrats! Really looking forward to this app.
    Last edited by SirataXero; 11/14/2009 at 10:55 PM.
  14. DrewPre's Avatar
    Posts
    818 Posts
    Global Posts
    829 Global Posts
       #34  
    I love it! [HUGE SMILE!]

    Thank you, for the complements!! It does take a lot of patience, time and perseverence[drive].

    The biggest lesson learned: BALANCE

    No need banging your head against the wall and keyboard trying to get a square peg in a round hole.

    Get up, take a break, get something to eat and come back to the code later. I wasted number of hours trying to jump hurdles that I ended up resolving in 15 minutes after a break.

    I guess its a price for being as stubborn as I am.

    Thanks for the article. I love it!! [can't stop smiling!! ]

    And trust me, I owe Rod W a huge thanks. He did point me in the right direction. Without the two files he referenced at gitorious.org, I would still be scratching my head.


    NICE WEBSITE, BTW!
    Last edited by DrewPre; 11/14/2009 at 11:53 PM.
  15. DrewPre's Avatar
    Posts
    818 Posts
    Global Posts
    829 Global Posts
       #35  
    Oh and I suspect they're gonna have me change the name!

    Whaddya think?
  16. kmax12's Avatar
    Posts
    315 Posts
    Global Posts
    316 Global Posts
    #36  
    Quote Originally Posted by DrewPre View Post
    Oh and I suspect they're gonna have me change the name!

    Whaddya think?
    probably. will your application work with the pixi?
  17. #37  
    FYI, Drew and I have hookup up over email, and I hope to get the service into a Preware feed in the next few days.

    -- 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
  18. DrewPre's Avatar
    Posts
    818 Posts
    Global Posts
    829 Global Posts
       #38  
    Thanks, rod.

    Max, I don't know... I don't know if the filesystem is the same or not. the 1.3.1 emulator has an option for 320x400 [in addition to 320x480] when starting, suggesting that it emulates the Pixi. But is that the only difference?

    I would need a confirmed Pixi emulator. Or Maybe i can get my account manager at Palm to send me a test Pixi! HEH!
  19. DrewPre's Avatar
    Posts
    818 Posts
    Global Posts
    829 Global Posts
       #39  
    FWIW and for whoever cares....

    I was having a problem with the Backup Service orphaning processes [showing up as '< defunct >' in ps -ef ] for the scripts it was running.

    It was making calls to Runtime.getRuntime().exec() and this was the method causing the problem.

    After some research I added a method Runtime.getRuntime().exec().waitFor() and this resolved the issue.

    I mentioned this because I also noticed some defunct processes that were not mine. I suspect other services that were running scripts as well.

    Were I to guess I would suggest it was the ipkgservice...I noticed the defunct processes after a restart and ipkgservice seems to be doing quite a lot at bootup.
  20. DrewPre's Avatar
    Posts
    818 Posts
    Global Posts
    829 Global Posts
       #40  
    Question:

    If you have a service that uses scripts that reside somewhere on the filesystem....what is stopping some rogue application from appending to or overwriting that that script with some potentially malicious code of their own, that will be executed the next time that script is run or called upon?
Page 2 of 25 FirstFirst 123456712 ... LastLast

Tags for this Thread

Posting Permissions