Reply
Thread Tools
Posts: 185 | Thanked: 103 times | Joined on Aug 2008
#1
It was difficult, but I was able to do it:


If you don't know how to reverse this, I wouldn't suggest trying it.

From a desktop, fire up your favorite sftp client and browse to your N9. Log in with the user account.

Browse to /usr/bin, copy the file "grob" and paste it somewhere on your machine.

Open "grob" with a hex editor and search for "Mobile" (case sensitive). The first result should be in the middle of the UA.

Edit the UA from
Code:
Mozilla/5.0 (MeeGo; NokiaN9) AppleWebKit/534.13 (KHTML, like Gecko) NokiaBrowser/8.5.0 Mobile Safari/534.13
to:
Code:
Mozilla/5.0 (Linux; Android 4.0.1) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
You will need to pad the end of the UA hex with "00" because the Android string is a little shorter than the original. The new UA MUST be the same length as the old one in grob. That is, the final file size must be exactly 1,143,292 bytes.

Other users, including myself, have been unable to get an iOS UA to work, though you can try your luck. Someone shared an iOS grob, but it appears to have changed when he uploaded it.

Backup the original grob, and copy the edited "grob" back to your N9. Make sure the permissions were maintained (probably weren't, so check!)
Originally Posted by rcs1000 View Post
you need to do:
chown root /usr/bin/grob
chmod 755 /usr/bin/grob

That's it! You might need to reboot your phone for the changes to take effect, I didn't though.

For the Lazy:
http://dl.dropbox.com/u/52619173/grob.iOS.zip
http://dl.dropbox.com/u/52619173/grob.Andoird2.3.7.zip

Download, unpack. Copy to N9 /home/user via sftp
SSH into N9, get root command line:
Code:
rm /usr/bin/grob
cp /home/user/grob.XXXXXXX /usr/bin
mv /usr/bin/grob.XXXXXXXX /usr/bin/grob
chown root /usr/bin/grob
chmod 755 /usr/bin/grob
I've tried a few sites:
Facebook loads the Android specific mobile version and seems to work perfectly, including where they recommend you install the Facebook Android App
Gmail loads the swanky Android-only mobile version instead of the dumb-phone version that it used to. Everything seems to work.
Google Maps loads the fully featured Android mobile version, but doesn't really work. It just says "loading" after asking to allow geolocation.
Google+ works great (It did before with the old UA anyway)
Google Voice loads the dumb phone version still (I don't think they have a decent web interface?).
Google Music throws a security error. (Might be because I didn't put a "U;" in the UA)
Youtube now refreshes the page when you click play with an Android UA. Maybe trying an older Android UA string would fix this. With iOS UA, it tells me to enable videos in Safari settings. Seems like we just can't win.
With the iOS UA, the BBC iPlayer loads, but I live in the US and don't feel like messing with proxies, so I can't actually test.

Anyway, I can give more specific instructions if required, but I don't want to encourage users to do this who don't understand the basic instructions above.

Last edited by legoman666; 2012-01-04 at 14:56.
 

The Following 20 Users Say Thank You to legoman666 For This Useful Post:
Posts: 201 | Thanked: 57 times | Joined on May 2010
#2
Would it work better if you used latest iOS user agent? I tried it on my N900 and it works great, even google maps loaded on it.
 
Posts: 8 | Thanked: 2 times | Joined on Jun 2010 @ Finland
#3
Originally Posted by isfr21 View Post
Would it work better if you used latest iOS user agent? I tried it on my N900 and it works great, even google maps loaded on it.
What is the latest iOS user agent?

Im trying to get google music work on N9 and if i could change user agent to iOS, google music should work.
 
Posts: 201 | Thanked: 57 times | Joined on May 2010
#4
This is what I got from searching google:
Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_0 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8A293 Safari/6531.22.7

See if it works and let me know if it does. I don't want to mess with my N9 just yet.
 

The Following User Says Thank You to isfr21 For This Useful Post:
Posts: 201 | Thanked: 57 times | Joined on May 2010
#5
Actually that was iOS 4.
heres more recent iOS 5:
Mozilla/5.0 (iPhone; CPU iPhone OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3
 

The Following User Says Thank You to isfr21 For This Useful Post:
Posts: 201 | Thanked: 57 times | Joined on May 2010
#6
Ok figured out how to do it via terminal. So I went ahead and did it with the iPhone user string. However, Fennec doesn't start up now. So I had to revert to original settings. Why doesn't Fennec start up from just editing the user string to iOS? Was it the method I used because I downloaded HexFiend for my Mac and used that to edit the grob file?

Last edited by isfr21; 2012-01-03 at 09:44.
 
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#7
tried the android string... gmail.com works though abit laggy. youtube.com doesn't play any videos instead simply refreshing the page everytime play is clicked. could someone give a solution for this.

thanks.
 
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#8
also could somebody guide on which UA is better; iOS or Android.
 
Posts: 185 | Thanked: 103 times | Joined on Aug 2008
#9
Originally Posted by isfr21 View Post
Ok figured out how to do it via terminal. So I went ahead and did it with the iPhone user string. However, Fennec doesn't start up now. So I had to revert to original settings. Why doesn't Fennec start up from just editing the user string to iOS? Was it the method I used because I downloaded HexFiend for my Mac and used that to edit the grob file?
I had the same issue at first. Make sure the permissions are the same as before. After editing it on my PC and copying it back, it seemed to have lost its executable permission and I had to chmod it back to normal.

tried the android string... gmail.com works though abit laggy. youtube.com doesn't play any videos instead simply refreshing the page everytime play is clicked. could someone give a solution for this.

thanks.
I noticed the same thing. I'm going to try 2.3.7 instead of 4.0.1, maybe it'll be more compatible. If that fails, I'll try iOS.
 

The Following User Says Thank You to legoman666 For This Useful Post:
Posts: 201 | Thanked: 57 times | Joined on May 2010
#10
Originally Posted by legoman666 View Post
I had the same issue at first. Make sure the permissions are the same as before. After editing it on my PC and copying it back, it seemed to have lost its executable permission and I had to chmod it back to normal.
Thanks for the reply. I'm not familiar with chmod. Any chance I can get help on how to go about that?
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 16:24.