BlackBerry Forums Support Community
              

Reply
 
Thread Tools
Old 04-18-2008, 12:01 PM   #1
rivviepop
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Posts: 2,166
Default Script: Download OTA app to install from SD card

Please Login to Remove!

A utilitarian script to download a large OTA app and all it's COD/JAR/JAD files - such as the Mobipocket Reader - to your workstation so you can install it on your device using your SD card instead; handy if the app is really large, have problems with your device data connection, or pay a lot for the data usage on your device. Usage is simple and easy:

Download Usage

1) save the below code as 'getapp.sh'
2) edit getapp.sh to put in the proper URL and JAD file (Mobipocket eReader used as an example)
3) comment/uncomment the use of wget or curl as needed (depends on what you have installed, I like curl)
4) make a new directory and run the script in that directory

Example:
Code:
cd ~
vi getapp.sh (edit/save/exit)
mkdir mpocket
cd mpocket
sh ../getapp.sh

Install Usage

1) copy the folder "mpocket" to your SD card, it should contain all the random COD, JAD and JAR files
2) from your device launch the Media applet
3) Menu key -> Explore -> Media Card -> mpocket folder
4) click on the JAD file to start the install (i.e. mobireader.jad)


getapp.sh
Code:
#!/bin/sh
#
# retrieve an OTA app locally, copy to SD card and install
# from there instead (for large OTA apps)

URL=http://www.mobipocket.com/mobile/downloadsoft/download/mobile4.2.0/
JAD=mobireader.jad

# curl or wget may be used, comment/uncomment as needed
#CMD="wget --quiet"
CMD="curl -s -O"

echo "Retrieving: ${URL}${JAD}"
${CMD} "${URL}${JAD}"

echo "Converting ${JAD}"
dos2unix "${JAD}"

CODS=`cat ${JAD} | grep -i url | cut -f2 -d ' '`
for ii in ${CODS}; do
  echo "Retrieving: ${URL}${ii}"
  ${CMD} "${URL}${ii}"
done

exit 0

# rivviepop at blackberryforums.com
# licensed under the GPLv2
getapp.sh: download OTA app to install from SD card rivviepop phantom :: knowledge in passing
__________________
[ Linux & BlackBerry ] http://www.blackberryforums.com/linux-users-corner/

Last edited by rivviepop; 09-03-2008 at 05:50 PM.. Reason: add blog link (go me!)
Offline   Reply With Quote
Old 04-18-2008, 12:32 PM   #2
ma077146
Talking BlackBerry Encyclopedia
 
ma077146's Avatar
 
Join Date: Feb 2007
Location: Lexington, SC
Model: 8830
PIN: 3019F3E6
Carrier: Sprint
Posts: 230
Default

Very useful, thanks for posting this.
__________________
http://ezreregister.com

Like Coupons and Free Shipping?
http://thediscountdude.com
Offline   Reply With Quote
Old 04-18-2008, 12:53 PM   #3
rivviepop
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Posts: 2,166
Default

My pleasure - I needed it to download a large (> 1meg) OTA app myself this morning to test for a developer, so as they say - necessity is the mother of invention.
__________________
[ Linux & BlackBerry ] http://www.blackberryforums.com/linux-users-corner/
Offline   Reply With Quote
Old 04-18-2008, 06:20 PM   #4
John Clark
BBF Moderator
 
John Clark's Avatar
 
Join Date: Jun 2005
Model: Z30
OS: 10.2.1.x
PIN: s & needles
Carrier: AT&T
Posts: 34,720
Default

Stuck thread.
Offline   Reply With Quote
Old 04-18-2008, 10:48 PM   #5
rivviepop
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Posts: 2,166
Default

Quote:
Originally Posted by John Clark View Post
Stuck thread.
gracias!
__________________
[ Linux & BlackBerry ] http://www.blackberryforums.com/linux-users-corner/
Offline   Reply With Quote
Old 07-08-2008, 10:43 PM   #6
rexxxlo
Knows Where the Search Button Is
 
Join Date: Jul 2008
Model: 8330
PIN: N/A
Carrier: verizon
Posts: 17
Default

i love the way inux works i use ubuntu on my deskop and asus eee but when i get in to these codes i get worried

is there a list of what most of this means somewhere?
Offline   Reply With Quote
Old 07-08-2008, 10:50 PM   #7
rivviepop
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Posts: 2,166
Default

Quote:
Originally Posted by rexxxlo View Post
i love the way inux works i use ubuntu on my deskop and asus eee but when i get in to these codes i get worried

is there a list of what most of this means somewhere?
Well there's not a 'list' per se, as it's an entire language called Bourne Shell. You can read a beginner and advanced guide at these links:

http://tldp.org/LDP/Bash-Beginners-G...tml/index.html
http://tldp.org/LDP/abs/html/index.html

Other great resources:

http://wooledge.org:8000/BashFAQ?act...direct=BashFaq
Heiner's SHELLdorado
Bash Reference Manual
All about Linux: Bash Shell Shortcuts
__________________
[ Linux & BlackBerry ] http://www.blackberryforums.com/linux-users-corner/
Offline   Reply With Quote
Old 08-10-2009, 03:17 AM   #8
mcjohn87
New Member
 
Join Date: Aug 2009
Model: 7100T
PIN: N/A
Carrier: 7100T
Posts: 2
Default thanks

thanks so much for useful info
Offline   Reply With Quote
Old 08-10-2009, 03:18 AM   #9
mcjohn87
New Member
 
Join Date: Aug 2009
Model: 7100T
PIN: N/A
Carrier: 7100T
Posts: 2
Default

i love the way inux works i use ubuntu on my deskop and asus eee but when i get in to these codes i get worried
Offline   Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


OEM Battery for MacBook Pro 17

OEM Battery for MacBook Pro 17" A1309 A1297 Early 2009 Mid 2009 2010 MC226

$36.90



NEW OEM Battery A1466 A1369 A1496 A1405 A1377 A1466 for MacBook Air 13 inch picture

NEW OEM Battery A1466 A1369 A1496 A1405 A1377 A1466 for MacBook Air 13 inch

$31.90



NEW OEM A1618 Battery for Apple MacBook Pro 15” Retina 99.5Wh A1398 Mid 2015 picture

NEW OEM A1618 Battery for Apple MacBook Pro 15” Retina 99.5Wh A1398 Mid 2015

$43.90



iPhone 13 12 11 PRO MAX XR XS 8/7/6 Fast Charger USB Data Cable cord 10 feet/3M picture

iPhone 13 12 11 PRO MAX XR XS 8/7/6 Fast Charger USB Data Cable cord 10 feet/3M

$4.99



A1618 NEW OEM Battery for MacBook Pro 15

A1618 NEW OEM Battery for MacBook Pro 15" Retina A1398 Mid 2015 020-00079

$43.90



Genuine A1417 OEM Battery Apple Macbook Pro 15 Retina A1398 Mid 2012 Early 2013 picture

Genuine A1417 OEM Battery Apple Macbook Pro 15 Retina A1398 Mid 2012 Early 2013

$37.90







Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.