Go Back   webOS Nation Forums > Homebrew > webOS patches

Like Tree9Likes

Reply
 
LinkBack Thread Tools Display Modes
Old 03/13/2010, 09:06 PM     Thread Author   #1 (permalink)
Member
 
Join Date: Apr 2005
Location: Eindhoven, Netherlands
Posts: 80
Likes: 3
Thanks: 15
Thanked 158 Times in 11 Posts

Default Very simple Facebook Chat patch

Hello,

A couple of minutes ago something occurred to me, and it works:
for facebook chat you only need to change the

/etc/hosts file.

Just add the line

69.63.181.104 talk.google.com

and add a facebook account as if it where a gmail account, so <username>@chat.facebook.com

Voila!

BTW: Google Talk does not actually use "talk.google.com", so it continues to work as normal

How it works: the messaging application can use any xmpp (jabber) service. In the code, however, it is restricted to google talk. (Ref Enabling Jabber, not just Google Talk - WebOS Internals | Google Groups )

The ip address above is actually "chat.facebook.com", so we impersonate facebook as google talk.

For more info on facebook chat clients see Help Center | Facebook
robvanvliet is offline   Reply With Quote
Liked by Rnp, k4llle and Vistaus like this.
Old 03/13/2010, 10:20 PM   #2 (permalink)
Member
 
ChaosMarine03's Avatar
 
Join Date: Aug 2009
Posts: 286
Likes: 0
Thanks: 7
Thanked 19 Times in 15 Posts

Default

that's pretty cool! I might try that later
ChaosMarine03 is offline   Reply With Quote
Old 03/13/2010, 10:45 PM   #3 (permalink)
Member
 
Rkguy's Avatar
 
Join Date: Jun 2009
Posts: 805
Likes: 7
Thanks: 175
Thanked 60 Times in 55 Posts

Default

OMFG
Rkguy is offline   Reply With Quote
Old 03/13/2010, 10:45 PM   #4 (permalink)
Member
 
GoTitans's Avatar
 
Join Date: Jun 2009
Location: Portland, OR
Posts: 396
Likes: 0
Thanks: 71
Thanked 61 Times in 42 Posts

Default

interesting. Would love to do this but looks out of my league. Anyone want to post a more detailed step by step?
GoTitans is offline   Reply With Quote
Old 03/13/2010, 10:57 PM   #5 (permalink)
Member
 
Join Date: Jun 2009
Posts: 171
Likes: 0
Thanks: 2
Thanked 12 Times in 9 Posts

Default

Great find!!!!!!!!! I would thank you for the rest of my life if this works but so far I did the necessary changes/additions to the hosts file, I succesfully addedthe account but now its stuck on signing in. the ev icon shows activity for the first few seconds but then stops showing activity.

NEVER MIND!!!!!!!! IT WORKSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
jusegozu is offline   Reply With Quote
Old 03/13/2010, 10:58 PM   #6 (permalink)
Member
 
GoTitans's Avatar
 
Join Date: Jun 2009
Location: Portland, OR
Posts: 396
Likes: 0
Thanks: 71
Thanked 61 Times in 42 Posts

Default

where do I add 69.63.181.104 talk.google.com?
GoTitans is offline   Reply With Quote
Thanked By: osmanmia
Old 03/13/2010, 11:03 PM   #7 (permalink)
Member
 
Mike77's Avatar
 
Join Date: Nov 2007
Posts: 76
Likes: 0
Thanks: 12
Thanked 5 Times in 3 Posts

Default

Quote:
Originally Posted by GoTitans View Post
where do I add 69.63.181.104 talk.google.com?
Ya, help a couple of noobs out here
Mike77 is offline   Reply With Quote
Old 03/13/2010, 11:08 PM   #8 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,880
Likes: 471
Thanks: 801
Thanked 12,883 Times in 1,489 Posts

Default

Here it is, in patch form

Thanks robvanvliet
Attached Files
File Type: patch facebook-chat-spoof.patch (308 Bytes, 6949 views) Email Attachment
__________________
If you've liked my software, please consider to towards future development.

Developer of many apps such as: WebOS Quick Install, WebOS Theme Builder, Ipk Packager, Unified Diff Creator, Internalz Pro, ComicShelf HD, LED Torch, over 70 patches and more.

@JayCanuck @CanuckCoding Facebook
Jason Robitaille is offline   Reply With Quote
Liked by Rnp, crobertson and naptime like this.
Old 03/13/2010, 11:08 PM   #9 (permalink)
Member
 
Join Date: Jun 2009
Posts: 171
Likes: 0
Thanks: 2
Thanked 12 Times in 9 Posts

Default

well first of all you need to do whats also known as "rooting your pre" then type
mount -o remount, rw /
vi /etc/hosts.
once the file opens press i to enter insert mode and move your curson just below the last line with characters. ignore the lines with '~'. then type 69.63.181.104 talk.google.com
press esc to exit insert mode.
press x to save again you have to make sure u are not on insert mode. quit by typing :q!
mount -o remount, ro /
reboot
and then go to facebook and get your username from the account settings.
add account to messaging and bingo!

***well jason beat me to it!
+++Its nice to see how patches are created. . . good learning experience
jusegozu is offline   Reply With Quote
Thanked by czarphanguye, diosif
Old 03/13/2010, 11:12 PM   #10 (permalink)
Member
 
Join Date: Jun 2009
Posts: 171
Likes: 0
Thanks: 2
Thanked 12 Times in 9 Posts

Default

Jason. Could you please explain me how this part of the patch works? i am very new to linux. .orig/etc/hosts+++ /etc/hosts@@ -2,1 +2,2 @@127.0.0.1 palm-webos-device+69.63.181.104talk.google.com
jusegozu is offline   Reply With Quote
Old 03/13/2010, 11:15 PM   #11 (permalink)
Member
 
sjsamphex's Avatar
 
Join Date: Nov 2009
Posts: 305
Likes: 0
Thanks: 36
Thanked 29 Times in 24 Posts

Default

Quote:
Originally Posted by Jason Robitaille View Post
Here it is, in patch form

Thanks robvanvliet
Preware?
sjsamphex is offline   Reply With Quote
Thanked By: yayababee
Old 03/13/2010, 11:16 PM   #12 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,880
Likes: 471
Thanks: 801
Thanked 12,883 Times in 1,489 Posts

Default

Quote:
Originally Posted by jusegozu View Post
Jason. Could you please explain me how this part of the patch works? i am very new to linux. .orig/etc/hosts+++ /etc/hosts@@ -2,1 +2,2 @@127.0.0.1 palm-webos-device+69.63.181.104talk.google.com
Well, patches are just standard unified diffs.

I created a tool for quick patching: Unified Diff Creator. So no real extra knowledge needed

And to apply them: http://forums.precentral.net/canuck-...les-wosqi.html

And to submit your own created patches to the feed: dBsooner's webOS-Patches Web Portal


Quote:
Originally Posted by sjsamphex View Post
Preware?
WebOS Quick Install http://forums.precentral.net/canuck-...les-wosqi.html
__________________
If you've liked my software, please consider to towards future development.

Developer of many apps such as: WebOS Quick Install, WebOS Theme Builder, Ipk Packager, Unified Diff Creator, Internalz Pro, ComicShelf HD, LED Torch, over 70 patches and more.

@JayCanuck @CanuckCoding Facebook
Jason Robitaille is offline   Reply With Quote
Old 03/13/2010, 11:21 PM   #13 (permalink)
Member
 
Mike77's Avatar
 
Join Date: Nov 2007
Posts: 76
Likes: 0
Thanks: 12
Thanked 5 Times in 3 Posts

Default

First of all thanks to everyone trying to help the noobs,

Jason,

I am getting the following error when i try to install this via webosQI

mount: mounting/dev/mapper/store-root-on/failed: Device or resource busy

Any ideas?


EDIT: I received the error above but it is showing in webosQI device management user installed content patches. Don't seem to be able to log in, will try a few more times.

Last edited by Mike77; 03/13/2010 at 11:30 PM.
Mike77 is offline   Reply With Quote
Old 03/13/2010, 11:22 PM   #14 (permalink)
Member
 
koolkid09's Avatar
 
Join Date: Dec 2009
Location: Greensboro, NC
Posts: 964
Likes: 17
Thanks: 280
Thanked 89 Times in 73 Posts

Default

So I installed the patch. Now what?
koolkid09 is offline   Reply With Quote
Old 03/13/2010, 11:25 PM   #15 (permalink)
Member
 
Join Date: Jun 2009
Posts: 171
Likes: 0
Thanks: 2
Thanked 12 Times in 9 Posts

Default

Ohh cool. . . but could you explain me a little bit as of what the Highlighted parts do.
orig/etc/hosts+++ /etc/hosts@@ -2,1 +2,2 @@127.0.0.1 palm-webos-device+69.63.181.104 talk.google.com
jusegozu is offline   Reply With Quote
Old 03/13/2010, 11:28 PM   #16 (permalink)
Member
 
Join Date: Mar 2008
Posts: 63
Likes: 0
Thanks: 15
Thanked 5 Times in 4 Posts

Default

please get this in preware for noobs like me
pacha248 is offline   Reply With Quote
Old 03/13/2010, 11:29 PM   #17 (permalink)
Member
 
GoTitans's Avatar
 
Join Date: Jun 2009
Location: Portland, OR
Posts: 396
Likes: 0
Thanks: 71
Thanked 61 Times in 42 Posts

Default

Quote:
Originally Posted by koolkid09 View Post
So I installed the patch. Now what?
Just add a new google chat account using your facebook username @chat.facebook.com.

It works! Thanks Jason and OP!
GoTitans is offline   Reply With Quote
Thanked By: rhewitt
Old 03/13/2010, 11:29 PM   #18 (permalink)
Member
 
Join Date: Jun 2009
Posts: 171
Likes: 0
Thanks: 2
Thanked 12 Times in 9 Posts

Default

Now comes the real life test. . . lets see how much my battery suffers from this.
jusegozu is offline   Reply With Quote
Old 03/13/2010, 11:32 PM   #19 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,880
Likes: 471
Thanks: 801
Thanked 12,883 Times in 1,489 Posts

Default

Quote:
Originally Posted by Mike77 View Post
EDIT: I received the error above but it is showing in webosQI device management user installed content patches. Don't seem to be able to log in, will try a few more times.
Yea, that's just a random issue devices have in both wosqi/preware. Basically just reboot your pre and everything should be fine.

Quote:
Originally Posted by jusegozu View Post
Ohh cool. . . but could you explain me a little bit as of what the Highlighted parts do.
orig/etc/hosts+++ /etc/hosts@@ -2,1 +2,2 @@127.0.0.1 palm-webos-device+69.63.181.104 talk.google.com
well, I think you have line ending off. You're probably viewing the patch in something limited like Notepad. Try something more advanced like Textpad or Notepad+

Anyway, it should look like:
Code:
--- .orig/etc/hosts
+++ /etc/hosts
@@ -2,1 +2,2 @@
 127.0.0.1 palm-webos-device
+69.63.181.104 talk.google.com
--- and +++ are just filepath stuff.
- indicates the before-patch part. the first digit, 2, is the start line of this chuck, and 1 is the chunk size.
+ indicate the after-patch part. the first digit, 2, is the start line of the chunk, and 2 is the chunk size (which increases by 1 with the new line added in this chunk)
__________________
If you've liked my software, please consider to towards future development.

Developer of many apps such as: WebOS Quick Install, WebOS Theme Builder, Ipk Packager, Unified Diff Creator, Internalz Pro, ComicShelf HD, LED Torch, over 70 patches and more.

@JayCanuck @CanuckCoding Facebook

Last edited by Jason Robitaille; 03/13/2010 at 11:38 PM.
Jason Robitaille is offline   Reply With Quote
Thanked by fishtale, Mike77, Santowl
Old 03/13/2010, 11:33 PM   #20 (permalink)
Member
 
koolkid09's Avatar
 
Join Date: Dec 2009
Location: Greensboro, NC
Posts: 964
Likes: 17
Thanks: 280
Thanked 89 Times in 73 Posts

Default

Quote:
Originally Posted by GoTitans View Post
Just add a new google chat account using your facebook username @chat.facebook.com.

It works! Thanks Jason and OP!
I still don't understand. Where do I add the facebook username at. In the messaging app? If so I tried and it didn't work right. I need help.
koolkid09 is offline   Reply With Quote
Thanked By: chile_man
Reply
webOS Nation Forums  > Homebrew > webOS patches   Very simple Facebook Chat patch

Thread Tools
Display Modes



 

Content Relevant URLs by vBSEO 3.6.0