Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Enabling Jabber, not just Google Talk
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Harald Welte  
View profile  
 More options Oct 23, 10:43 am
From: Harald Welte <lafo...@gnumonks.org>
Date: Fri, 23 Oct 2009 16:43:14 +0200
Local: Fri, Oct 23 2009 10:43 am
Subject: Enabling Jabber, not just Google Talk
Hi!

I did some research on how to enable jabber on your Pre.

First some technical background on how the mojo messenger implements google
talk: By using a dbus connection to LibpurpleAdapter, a LGPL-licensed open source
program that palm wrote and publishes on opensource.palm.com.

LibpurpleAdapter links against libpurple, the messaging library of the pidgin
project.

Inside LibpurpleAdapter, there is an explicit check, e.g. if your username
contains an '...@hostname.com' part which does not end to gmail.com, it will strip
the hostname and explicitly set talk.google.com:

=================

                if (strcmp(prplProtocolId, "prpl-jabber") == 0 && g_str_has_suffix(transportFriendlyUserName, "@gmail.com")
                                == FALSE)
                {
                        /*
                         * Special case for gmail... don't try to connect to theraghavans.com if the username is n...@theraghavans.com
                         * Always connect to gmail.
                         */
                        purple_account_set_string(account, "connect_server", "talk.google.com");
                }
=================

Unfortunately I don't have a cross compilation for the Pre around, especially
not one that has the libpurple headers and other dependencies to actually do
the build.

So binary patching LibpurpleAdapter was the option of choice.  The version on
my device (WebOS 1.1.3) has md5sum 193cb9b09b12282baf5267f8a6a8c76b

objdump -d shows us:

    dffc:       1a000003        bne     e010 <login+0x740>
    e000:       e51b004c        ldr     r0, [fp, #-76]  ; 0x4c
    e004:       e59f1410        ldr     r1, [pc, #1040] ; e41c <login+0xb4c>
    e008:       e59f2410        ldr     r2, [pc, #1040] ; e420 <login+0xb50>
    e00c:       ebfff058        bl      a174 <_init+0x140>

the first jump needs to change from a BNE into a BE, i.e. it needs to change
from 1a000003 to 0a000003

If we do this using a hex editor of our choice (offset 0x5fff from beginning of
the executable file is the byte in my case), then I can make it connect to
other jabber servers.  I can actually see the packets on the ppp0 device using
tcpdump/tshark.

However, at least with the jabber server that I tried, there is some problem in
parsing the XML that is generated form the pre.

Feel free to try for yourself.

--
- Harald Welte <lafo...@gnumonks.org>           http://laforge.gnumonks.org/
=========================================================================== =
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rick Boatright  
View profile  
 More options Oct 23, 11:38 am
From: Rick Boatright <rboatri...@gmail.com>
Date: Fri, 23 Oct 2009 10:38:12 -0500
Local: Fri, Oct 23 2009 11:38 am
Subject: Re: Enabling Jabber, not just Google Talk
The headers for compiling libpurple have been released by Palm.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ryan M. Hope  
View profile  
 More options Oct 23, 1:03 pm
From: "Ryan M. Hope" <rmh3...@gmail.com>
Date: Fri, 23 Oct 2009 12:03:28 -0500
Local: Fri, Oct 23 2009 1:03 pm
Subject: Re: Enabling Jabber, not just Google Talk

Isn't jabber one of the protocols already supported by greg_roll's work?

Rick Boatright wrote:

The headers for compiling libpurple have been released by Palm.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Harald Welte  
View profile  
 More options Oct 23, 1:55 pm
From: Harald Welte <lafo...@gnumonks.org>
Date: Fri, 23 Oct 2009 19:55:06 +0200
Local: Fri, Oct 23 2009 1:55 pm
Subject: Re: Enabling Jabber, not just Google Talk
On Fri, Oct 23, 2009 at 12:03:28PM -0500, Ryan M.  Hope wrote:

> Isn't jabber one of the protocols already supported by greg_roll's work?

no, it is not.  Also, I could not find the source code for "his work" anywhere,
and in fact with firefox you cannot even access the live.com page where he's
hosting the ipk's...

--
- Harald Welte <lafo...@gnumonks.org>           http://laforge.gnumonks.org/
=========================================================================== =
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rod Whitby  
View profile  
 More options Oct 24, 5:32 pm
From: Rod Whitby <r...@whitby.id.au>
Date: Sun, 25 Oct 2009 08:02:48 +1030
Local: Sat, Oct 24 2009 5:32 pm
Subject: Re: Enabling Jabber, not just Google Talk
On 24/10/2009, at 4:25 AM, Harald Welte wrote:

> On Fri, Oct 23, 2009 at 12:03:28PM -0500, Ryan M.  Hope wrote:
>> Isn't jabber one of the protocols already supported by greg_roll's  
>> work?

> no, it is not.  Also, I could not find the source code for "his  
> work" anywhere,
> and in fact with firefox you cannot even access the live.com page  
> where he's
> hosting the ipk's...

The source is meant to be in http://git.webos-internals.org/?p=patches/messaging-plugins.git;a=sum...
  but it looks like he hasn't pushed anything.  I'll let him know  
about the oversight - he certainly intends his work on this to be open  
source complying with the existing licenses.

-- Rod


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Update: Enabling Jabber, not just Google Talk" by Harald Welte
Harald Welte  
View profile  
 More options Oct 31, 9:06 am
From: Harald Welte <lafo...@gnumonks.org>
Date: Sat, 31 Oct 2009 14:06:12 +0100
Local: Sat, Oct 31 2009 9:06 am
Subject: Update: Enabling Jabber, not just Google Talk
Update:

On Fri, Oct 23, 2009 at 04:43:14PM +0200, Harald Welte wrote:
> However, at least with the jabber server that I tried, there is some problem in
> parsing the XML that is generated form the pre.

This might have been a temporary problem with the jabber server that I was
trying to use.  Right now, it works perfectly fine with the binary patch described in my mail from October 23rd.

I'm happily jabbering every day, no problems whatsoever!

--
- Harald Welte <lafo...@gnumonks.org>           http://laforge.gnumonks.org/
=========================================================================== =
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
headcase  
View profile  
 More options Nov 3, 1:05 am
From: headcase <headcase...@gmail.com>
Date: Mon, 2 Nov 2009 22:05:09 -0800 (PST)
Local: Tues, Nov 3 2009 1:05 am
Subject: Re: Update: Enabling Jabber, not just Google Talk
Harald -

For those of us who aren't developers / comfortable messing with
binary code, can you provide a patch that would enable this
functionality?  My company uses Jabber for corporate messaging now,
and I'd like to use my Pre for such.

On Oct 31, 8:06 am, Harald Welte <lafo...@gnumonks.org> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google