Home | Stories | Reviews | Treo™ Store | Accessories | Software | Discussion | Mobile | About | Search

 
 
H17 Bluetooth Headset Motorola H17 Bluetooth Headset
Just $89.95
Media Cable for iPod RedFly Media Cable for iPod for Treo Pro, Treo 800w, Treo 750, Treo 700wx, Treo 700w
Just $29.95
Cruiser Bluetooth Car Kit Speakerphone Jabra Cruiser Bluetooth Car Kit Speakerphone
Just $89.95
Luxury Leather Flip Case Covertec Luxury Leather Flip Case for Palm Pre
Just $34.95
 
Old 07/09/2009, 01:24 PM   #1 (permalink)
Member
 
d2globalinc's Avatar
 
Join Date: Mar 2008
Posts: 104
Thanks: 2
Thanked 243 Times in 42 Posts
Default HOWTO - Always enable E-mail app rotation w/ landscape view

- UPDATE 07-23-2009 - UPDATED AND CERTIFIED FOR Palm WebOS v1.1.0

THIS HOWTO IS CERTIFIED FOR WEBOS v1.1.0 - DO NOT USE THIS FOR OLDER VERSIONS OF WEBOS!

This HOWTO requires that you already have root access to your phone. If you need more information on how to do that search the forum.

UPDATED JULY 12th, 2009 - NOW INCLUDES BROKEN FORMATTING FIX FOR REPLY/FORWARD E-MAILS
To update or Install just follow the same instructions, the script will restore from the original backup copies first, then make all modifications again.

Click Here to search for my HOWTO's and Answers for the Palm PRE!

NOTES:
This was taken from the original post over at predev.wikidot.com/enable-landscape-viewing - I just put it into a simple script/command set that you can just copy and paste into your ssh / terminal window. Thanks to predev.wikidot.com for the information!

USAGE:
Just open the messaging application and then rotate your Palm Pre! This is the same thing that is enabled when you type the cheat/hidden code "RocknRollHax" in the messaging application, however this enables the feature without having to do that everytime you open the messaging application.


I'll try to make this as simple as possible.

1. Login to your Palm PRE and obtain root access.. (Again look around the forums to see how to do this)

2. Once you are at the "root@castle" prompt COPY and PASTE all of the following code into your terminal / putty / ssh window.. (These commands will make backup copies of the original files, then modify them)


** This will reboot your PRE so be sure to close all of your applications beforehand. **
Code:
#
# ENABLE EMAIL ROTATION - LANDSCAPE MODE
#
mount -o remount,rw /
#
# RESTORE FILES
# 
echo RESTORING ORIGINAL FILES IF AVAILABLE
cp /usr/palm/applications/com.palm.app.email/app/controllers/list-assistant.js_1-1-0 /usr/palm/applications/com.palm.app.email/app/controllers/list-assistant.js
cp /usr/palm/applications/com.palm.app.email/app/controllers/compose-assistant.js_1-1-0 /usr/palm/applications/com.palm.app.email/app/controllers/compose-assistant.js
cp /usr/palm/applications/com.palm.app.email/app/controllers/accounts-assistant.js_1-1-0 /usr/palm/applications/com.palm.app.email/app/controllers/accounts-assistant.js
#
# BACKUP FILES
#
echo BACKING UP ORIGINAL FILES
cp /usr/palm/applications/com.palm.app.email/app/controllers/list-assistant.js /usr/palm/applications/com.palm.app.email/app/controllers/list-assistant.js_1-1-0
cp /usr/palm/applications/com.palm.app.email/app/controllers/compose-assistant.js /usr/palm/applications/com.palm.app.email/app/controllers/compose-assistant.js_1-1-0
cp /usr/palm/applications/com.palm.app.email/app/controllers/accounts-assistant.js /usr/palm/applications/com.palm.app.email/app/controllers/accounts-assistant.js_1-1-0
#
# MAKE MODIFICATIONS TO list-assistant.js
#
echo MAKING MODIFICATIONS TO list-assistant.js
sed -i "s/this.controller.setupWidget(Mojo.Menu.commandMenu, undefined, this.cmdMenuModel);/this.controller.setupWidget(Mojo.Menu.commandMenu, undefined, this.cmdMenuModel);\n\
        this.controller.window.PalmSystem.setWindowOrientation(\"free\");/g" /usr/palm/applications/com.palm.app.email/app/controllers/list-assistant.js
#
# MAKE MODIFICATIONS TO compose-assistant.js
#
echo MAKING MODIFICATIONS TO compose-assistant.js
sed -i "s/ComposeAssistant.onLoad.defer(this.controller, this.email);/ComposeAssistant.onLoad.defer(this.controller, this.email);\n\
                this.controller.window.PalmSystem.setWindowOrientation(\"free\");/g" /usr/palm/applications/com.palm.app.email/app/controllers/compose-assistant.js
#
# MAKE MODIFICATIONS TO compose-assistant.js - FIX BROKEN FORMATTING IN REPLY-FORWARD EMAILS
#
echo MAKING MODIFICATIONS TO compose-assistant.js - FIX BROKEN FORMATTING IN REPLY-FORWARD EMAILS - PART 1
sed -i "s/var splitIndex = originalText.indexOf(\"<body\");/\/* -START- REPLACE BY D2GLOBALINC MODIFICATION TO FIX REPLY-FORWARD FORMATTING\n\
        var splitIndex = originalText.indexOf(\"<body\");/g" /usr/palm/applications/com.palm.app.email/app/controllers/compose-assistant.js
#
#
echo MAKING MODIFICATIONS TO compose-assistant.js - FIX BROKEN FORMATTING IN REPLY-FORWARD EMAILS - PART 2
sed -i "s/\/\/ Truncate to 100K if the message is too long./*\/\n\
        \/\/ -END- REPLACE BY D2GLOBALINC MODIFICATION TO FIX REPLY-FORWARD FORMATTING\n\
\n\
        \/\/ FIX BROKEN FORMATTING IN REPLAY-FORWARD\n\
        var splitIndex = originalText.indexOf(\"<body\");\n\
        if (splitIndex > 0) {\n\
                splitIndex = originalText.indexOf(\'>\', splitIndex);\n\
                if (splitIndex > 0) {\n\
                        splitIndex++;\n\
                        Mojo.Log.info(\"Slicing header starting at\", splitIndex);\n\
                        originalText = originalText.slice(splitIndex);\n\
                }\n\
        } else {\n\
                originalText = originalText.gsub(\"\\\n\",\"<br\/>\");\n\
        }\n\
\n\
        \/\/ Truncate to 100K if the message is too long./g" /usr/palm/applications/com.palm.app.email/app/controllers/compose-assistant.js
#
# MAKE MODIFICATIONS TO accounts-assistant.js
#
echo MAKING MODIFICATIONS TO accounts-assistant.js
sed -i "s/this.controller.listen(this.controller.sceneElement, Mojo.Event.keypress, this.keypressHandler.bind(this));/this.controller.listen(this.controller.sceneElement, Mojo.Event.keypress, this.keypressHandler.bind(this));\n\
                this.controller.window.PalmSystem.setWindowOrientation(\"free\");/g" /usr/palm/applications/com.palm.app.email/app/controllers/accounts-assistant.js
#
# COMPLETE UPDATE
#
mount -o remount,ro /
echo INSTALLATION COMPELTE... REBOOTING DEVICE...
/sbin/reboot
#
Good Luck! And Happy Hacking!!

- D2G


To restore original files use the following:
Code:
#
# DISABLE EMAIL ROTATION - LANDSCAPE MODE
#
mount -o remount,rw /
#
# RESTORE FILES
# 
echo RESTORING ORIGINAL FILES IF AVAILABLE
cp /usr/palm/applications/com.palm.app.email/app/controllers/list-assistant.js_1-1-0 /usr/palm/applications/com.palm.app.email/app/controllers/list-assistant.js
cp /usr/palm/applications/com.palm.app.email/app/controllers/compose-assistant.js_1-1-0 /usr/palm/applications/com.palm.app.email/app/controllers/compose-assistant.js
cp /usr/palm/applications/com.palm.app.email/app/controllers/accounts-assistant.js_1-1-0 /usr/palm/applications/com.palm.app.email/app/controllers/accounts-assistant.js
#
# COMPLETE UPDATE
#
mount -o remount,ro /
echo INSTALLATION COMPELTE... REBOOTING DEVICE...
/sbin/reboot

Last edited by d2globalinc; 07/24/2009 at 04:34 AM. Reason: Included formatting fix for reply/forward e-mails
d2globalinc is offline   Reply With Quote
Old 07/09/2009, 01:47 PM   #2 (permalink)
Member
 
DNic's Avatar
 
Join Date: Jun 2009
Posts: 548
Thanks: 148
Thanked 40 Times in 31 Posts
Default

Thanks these are easy to implement. Was trying to do the patches, but I must be missing something.
DNic is offline   Reply With Quote
Old 07/09/2009, 02:06 PM   #3 (permalink)
Member
 
Join Date: Jun 2009
Posts: 229
Thanks: 5
Thanked 12 Times in 13 Posts
Default

Copy/pasted the whole thing, worked fine. Good job sir!
The_lane is offline   Reply With Quote
Old 07/09/2009, 02:09 PM   #4 (permalink)
Member
 
dbarrett5381's Avatar
 
Join Date: Dec 2004
Location: Salt Lake City, Utah
Posts: 494
Thanks: 14
Thanked 14 Times in 9 Posts
Default

Worked awesome! Thanks!
dbarrett5381 is offline   Reply With Quote
Old 07/09/2009, 02:22 PM   #5 (permalink)
Member
 
mdmogren's Avatar
 
Join Date: Jun 2009
Posts: 373
Thanks: 27
Thanked 34 Times in 25 Posts
Default

Thanks, I didn't care enough to do this until you made it so easy, works great!
mdmogren is offline   Reply With Quote
Old 07/09/2009, 02:52 PM   #6 (permalink)
Member
 
morningisbad's Avatar
 
Join Date: Nov 2007
Location: La Crosse, WI
Posts: 96
Thanks: 30
Thanked 5 Times in 5 Posts
Default

wow...i saw this and was a little suspicious...could it really be this easy? and yes...yes it is.
morningisbad is offline   Reply With Quote
Old 07/09/2009, 03:33 PM   #7 (permalink)
Member
 
Bigchris's Avatar
 
Join Date: Jan 2005
Location: Southern California
Posts: 642
Thanks: 123
Thanked 42 Times in 21 Posts
Default

I have to agree, I was scared to root the pre and do this, but it is very easy... THANK YOU VERY MUCH....
__________________
Remember, this is my opinion ! We all have a right to our own.....

Treo's 650-800..NOW,
Palm Pre
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bigchris is offline   Reply With Quote
Old 07/09/2009, 04:39 PM   #8 (permalink)
Member
 
halmo20's Avatar
 
Join Date: Jun 2009
Posts: 115
Thanks: 20
Thanked 13 Times in 10 Posts
Default

Thanks! After rooting, I was lost as to how to apply patches!! Your instructions are super easy. I am bookmarking all your HOW TO's. Again, thanks much!!
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
iPhone; the official phone of 'the Borg'
halmo20 is offline   Reply With Quote
Old 07/09/2009, 05:11 PM   #9 (permalink)
Member
 
Join Date: Jun 2009
Posts: 15
Thanks: 2
Thanked 1 Time in 1 Post
Default

This is very nice! Thanks!
Ajax is offline   Reply With Quote
Old 07/09/2009, 05:30 PM   #10 (permalink)
Member
 
Join Date: Sep 2008
Posts: 37
Thanks: 1
Thanked 21 Times in 5 Posts
Default

can you please do the same copy n paste trick for the "enable downloading from web browser"? I really want to enable this. thanx alot
cell128 is offline   Reply With Quote
Old 07/09/2009, 05:34 PM   #11 (permalink)
Member
 
Join Date: Jun 2009
Posts: 24
Thanks: 4
Thanked 3 Times in 1 Post
Default

Quote:
Originally Posted by cell128 View Post
can you please do the same copy n paste trick for the "enable downloading from web browser"? I really want to enable this. thanx alot
lol. i wish they were all these simple. i asked if he could do the same with the call duration hack. im trying to get call duration and sms time/date stamps but its not as simple as these.
ldostang is offline   Reply With Quote
Old 07/10/2009, 01:56 AM   #12 (permalink)
Member
 
majikTib's Avatar
 
Join Date: Jun 2009
Posts: 72
Thanks: 13
Thanked 11 Times in 6 Posts
Default

w00t! worked! My first Pre rooting change!
majikTib is offline   Reply With Quote
Old 07/10/2009, 03:20 AM   #13 (permalink)
Member
 
Join Date: Jun 2009
Posts: 49
Thanks: 27
Thanked 4 Times in 3 Posts
Default

Thanks man super easy!!!
cannibal869 is offline   Reply With Quote
Old 07/10/2009, 03:41 AM   #14 (permalink)
Member
 
Join Date: Jun 2009
Posts: 49
Thanks: 1
Thanked 2 Times in 2 Posts
Default

d2globalinc - you are my new PRE hero!!!
dsackr is offline   Reply With Quote
Old 07/10/2009, 05:00 AM   #15 (permalink)
Member
 
SirataXero's Avatar
 
Join Date: Nov 2007
Location: Rhode Island, USA
Posts: 797
Thanks: 62
Thanked 156 Times in 72 Posts
Default

Quote:
Originally Posted by dsackr View Post
d2globalinc - you are my new PRE hero!!!
Pre-ro?

O_o
SirataXero is online now   Reply With Quote
Old 07/10/2009, 05:18 AM   #16 (permalink)
Member
 
Join Date: Jun 2009
Posts: 18
Thanks: 1
Thanked 6 Times in 6 Posts
Default

Thanks, worked great.
bobvr is offline   Reply With Quote
Old 07/10/2009, 11:38 AM   #17 (permalink)
Member
 
Join Date: Jun 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thank you very much. worked perfect.
erider81 is offline   Reply With Quote
Old 07/10/2009, 03:59 PM   #18 (permalink)
zxi
Member
 
Join Date: Jul 2009
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thanks, worked perfectly!
zxi is offline   Reply With Quote
Old 07/10/2009, 05:19 PM   #19 (permalink)
Xyg
Member
 
Join Date: May 2009
Posts: 1,001
Thanks: 16
Thanked 203 Times in 122 Posts
Default

Can't you just type RocknRollHax if you don't feel like rooting?
Xyg is offline   Reply With Quote
Old 07/10/2009, 05:22 PM   #20 (permalink)
Member
 
Join Date: Jun 2009
Posts: 24
Thanks: 4
Thanked 3 Times in 1 Post
Default

Quote:
Originally Posted by Xyg View Post
Can't you just type RocknRollHax if you don't feel like rooting?
yes you can but you would have to do it everytime you reopen the email app.
ldostang is offline   Reply With Quote
Reply


Thread Tools
Display Modes

~


All times are GMT -4. The time now is 05:04 AM.

Creating smartphone communities
Android Central - Android reviews, news and forums Crackberry - Blackberry news, reviews and community TiPb - iPhone news, accessory reviews & forums
Pre Central - Palm Pre Review, News and Community Treo Central - Treo & Centro News and Forums WMExperts - Windows Mobile Reviews & News

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
 
 

Copyright ©1999- TreoCentral. All rights reserved : Terms of Use : Privacy Policy

TREO and TreoCentral are trademarks or registered trademarks of palm, Inc. in the United States and other countries;
the TreoCentral mark and domain name are used under license from palm, Inc.
The views expressed on this website are solely those of the proprietor, or
contributors to the site, and do not necessarily reflect the views of palm, Inc.

Explore More: Crackberry | WMExperts | the iPhone Blog | Android Central | Smartphone Experts Combined Forums