logo
Published on Input Jam (http://www.kleinfelter.com)

Installing Gmail (or Any Blackberry App) on a Blackberry via Blackberry Desktop Without a Blackberry Data Plan

By Kevin Kleinfelter
Created 2008-10-18 20:22

This works better than the method by headtailgrep at http://www.pdastreet.com/forums/showthread.php?s=&threadid=47229 [1] because Blackberry Desktop will auto-uninstall headtailgrep's installs, but not Blackberry Desktop's installs.  htg's method works for generic Java applications, while this method works for Blackberry applications.

This method is useful if you don't have a Blackberry data plan.

EDIT: Please note that you do have to have a data plan, just not a "Blackberry data plan."

Prerequisites:

  1. Firefox (could use another browser if it lets you change your user agent)
  2. User Agent Switcher 0.6.11 add on for Firefox (or your browser's equivalent). See http://chrispederick.com/work/user-agent-switcher/ [2]
  3. BlackBerry Desktop Software (I'm using 4.6.0.12)

Actions:

  1. Define a user agent:
    1. Description = blackberry 8700
    2. User Agent = BlackBerry8700/4.1.0 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/180
  2. Set Firefox to use this user agent.  Check to make sure it did via Tools/User Agent Switcher
  3. Browse to m.google.com
    1. Click on Gmail
    2. Click on Install Now.  This will download http://m.google.com/app/v2.0.5/L1/BlackBerry-41/GoogleMail.jad [3]
    3. Save it as C:\temp\bb\GoogleMail.jad
  4. Edit C:\temp\bb\GoogleMail.jad with a text editor that can handle newline-terminated lines
    1. Find all lines containing RIM-COD-URL.  In GoogleMail.jad, there are 4, named:
      1. GoogleMail.cod
      2. GoogleMail-1.cod
      3. GoogleMail-2.cod
      4. GoogleMail-3.cod
    2. Using the path (not the file name) from the .jad file url (e.g. http://m.google.com/app/v2.0.5/L1/BlackBerry-41/ [4]) construct the .cod urls:
      1. http://m.google.com/app/v2.0.5/L1/BlackBerry-41/GoogleMail.cod [5]
      2. http://m.google.com/app/v2.0.5/L1/BlackBerry-41/GoogleMail-1.cod [6]
      3. http://m.google.com/app/v2.0.5/L1/BlackBerry-41/GoogleMail-2.cod [7]
      4. http://m.google.com/app/v2.0.5/L1/BlackBerry-41/GoogleMail-3.cod [8]
  5. Download the .cod files into C:\temp\bb
  6. Create a file that looks a lot like this, and name it C:\temp\bb\GoogleMail.alx.  (Lines must be CR/LF terminated.):

<loader version="1.0">
<application id="Gmail:Google">
<name>Gmail</name>
<description></description>
<version>2.0.5</version>
<vendor>Google</vendor>
<copyright></copyright>
<fileset Java="1.0">
<files>
GoogleMail-3.cod
GoogleMail-2.cod
GoogleMail-1.cod
GoogleMail.cod
</files>
</fileset>
</application>
</loader>

 Note: It is important to take the value for VERSION from the MIDlet-Version row in the .JAD file.  Otherwise, BB desktop can tell you "No additional applications designed for your device were found"  Other reasons for this message include:

  1. Open Blackberry Desktop
    1. Application Loader
    2. Add-Remove applications
    3. Browse to C:\temp\bb\GoogleMail.alx

Source URL:
http://www.kleinfelter.com/node/147