Results 1 to 16 of 16
Like Tree18Likes
  • 4 Post By GMMan
  • 3 Post By GMMan
  • 1 Post By jm2011
  • 1 Post By GMMan
  • 2 Post By jm2011
  • 1 Post By GMMan
  • 2 Post By GMMan
  • 2 Post By Grabber5.0
  • 2 Post By Grabber5.0
  1.    #1  
    Let's make a thread where people can post funny strings and comments found in code used for webOS.

    I finally dumped out my tokens, and needed some hints on how to parse some values. Here's what I found in /sbin/trenchcoat (program that reads and writes the flash memory, and is the main driver when flashing a webOS device):
    trenchcoat - used for flashing (storage, not body parts)
    Need to run as root to modify filesystems. Use the sudo Luke.
    Interesting to note there isn't sudo on webOS.
    Remy X, mattmers, Rnp and 1 others like this.
  2. #2  
    Oh nice

    I've been following that thread about devices stuck in QHUSB-DLOAD, so any update, even a funny one is of great interest
  3.    #3  
    Here is palm territory. There be dragons.
    Found in trenchcoat config files when referring to the NVRAM. No, there are no dragons there. The NVRAM is actually pretty straight forward and easy to parse.
  4. #4  
    I have seen some good comments in the code I have looked at before.. Nothing recent.

    semi on-topic: do you know if it is possible to dump the tokens via ssh on a device that has a bad screen or after swapping the board if necessary?
    Last edited by Grabber5.0; 11/04/2012 at 08:09 AM.
  5. #5  
    I think that there are some good ones in the first use app, but I can't really remember them now. One was something along the lines of Spin for 1/4 of a second to pretend that something is happening
    Touchpad 16GB 3.0.5
    Pre 2 2.2.4
    Mutoidi likes this.
  6.    #6  
    Quote Originally Posted by Grabber5.0 View Post
    I have seen some good comments in the code I have looked at before.. Nothing recent.

    semi on-topic: do you know if it is possible to dump the tokens via ssh on a device that has a bad screen or after swapping the board if necessary?
    The easiest way to dump the NVRAM (which contains the tokens) is to SFTP in and transfer /dev/mmcblk0p12. It should be 4MB. Open it up with a hex editor and scroll around some, and you'll find the page with tokens. The other way, if you don't want to deal with binary, is to run
    Code:
    /sbin/tokens --list
    and it'll give you the tokens in a key-pair list.
    Remy X likes this.
  7. #7  
    I looked for the fist use app and I found it at /usr/palm/applications/com.palm.app.firstuse.firstUse.is

    line 413: wt!? Come-on, code so this is readable.

    line 972:give a 1/4 second for the spinner to show like we are actually doing something. ;-)
    Touchpad 16GB 3.0.5
    Pre 2 2.2.4
    Rnp and OldSkoolVWLover like this.
  8.    #8  
    Quote Originally Posted by jm2011 View Post
    line 413: wt!? Come-on, code so this is readable.
    Lol, I used that in my signature for a while before I ran out of space for links.
  9. #9  
    Found today in the Facebook app on my Pre2:
    // We aren't quite ready to make the jump to a prototype free world, so load that while we are at it
    // Yep I feel dirty but this is necessary to ensure sync load
  10.    #10  
    I chanced a peek at one of Isis' commits, and aside from deleting index.html, looks like HP's doing some comment cleanup to remove comments such as "wt*", "I don't know", "why", "this is a pita", "try this/that", and any references to Palm's internal bug tracking system. I suppose it's to make them seem more formal, but you can never erase the past with source control.

    https://github.com/isis-project/isis...9bdf49f9a7b407
    Remy X likes this.
  11.    #11  
    // toooo soooooooon!
    Some sort of timer in the Email app's DashboardManager. Not sure what it's really about.

    Bonus: The Pre email notification sound has the album set to "Top 500 Rock and Roll Songs".
    Remy X and Garfonso like this.
  12. #12  
    Ran across this looking for luna-send examples yesterday..

    Code:
    //
    // Autolinker hack on boot method. Please take me out when done!!!!!!!!
    //
    // luna-send -n 1 palm://com.palm.service.contacts.linker/suckyHackySetupWatch '{}'
    //
    function SuckySetupWatchAssistant() {
    MudShark22 and Rnp like this.
  13. #13  
    Quote Originally Posted by Grabber5.0 View Post
    Found today in the Facebook app on my Pre2:
    Does that mean you're looking at fixing Facebook?
    Follow me on Twitter
    For the latest webOS news check out pivotCE
  14. #14  
    Quote Originally Posted by Alan Morford View Post
    Does that mean you're looking at fixing Facebook?
    That was two years ago - I don't remember what I was doing. It is entirely possible I was trying to see if I could fix something, like the image problem on webOS 2.1.
  15. #15  
    Quote Originally Posted by Grabber5.0 View Post
    That was two years ago - I don't remember what I was doing. It is entirely possible I was trying to see if I could fix something, like the image problem on webOS 2.1.
    Oh I got nabbed by the old revived thread and didn't look at the date of what I was replying to trick.
    Follow me on Twitter
    For the latest webOS news check out pivotCE
  16. #16  
    Quote Originally Posted by Alan Morford View Post
    Oh I got nabbed by the old revived thread and didn't look at the date of what I was replying to trick.
    Sorry about that.. I have to revive this thread whenever I find something new in the code that makes me laugh.
    Remy X and Garfonso like this.

Posting Permissions