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


Thread Tools

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


STK416-120 Original Sanyo SIP23 Semiconductor picture

STK416-120 Original Sanyo SIP23 Semiconductor

$50.00



Dual Range Transistor Diode Semiconductor & Passive Curve Tracer Tester/Tracker picture

Dual Range Transistor Diode Semiconductor & Passive Curve Tracer Tester/Tracker

$28.49



10x On Semiconductor BS170-D26Z MOSFET Transistor N Channel 500 mA, 60V, 1.2 ohm picture

10x On Semiconductor BS170-D26Z MOSFET Transistor N Channel 500 mA, 60V, 1.2 ohm

$8.75



New Peak Atlas DCA55 Semiconductor Component Analyzer Tester DCA 55   picture

New Peak Atlas DCA55 Semiconductor Component Analyzer Tester DCA 55

$87.94



Silicon Wafer Integrated Circuit CPU Chip Technology Semiconductor Lithography13 picture

Silicon Wafer Integrated Circuit CPU Chip Technology Semiconductor Lithography13

$58.99



Powerex Semiconductor E78240 04-16827 picture

Powerex Semiconductor E78240 04-16827

$50.00







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