Go Back   PreCentral Forums > webOS Software and Chat > web OS Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08/27/2009, 01:25 AM   #1 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 699
Thanks: 25
Thanked 360 Times in 158 Posts
Default How To: Restore Individual Pre Stock File

Apparently everyone knows of the WebOS Doctor and it's usefulness to the community, but I don't know if they understand this aspect. If you happen to be editing any file (via root or Quick Install), then chances could happen where you corrupt a one or multiple files.

Instead of ruining all your work (via homebrew apps, settings, and patches), you can try this:

- Download the WebOS Doctor 1.2.1 ROM
- Extract WebOS Doctor contents with WinRAR or 7-Zip
- Go through the Resource folder in WebOS Doctor ROM
- Extract the contents of webOS.tar
- Open the webOS folder created by that
- Extract the data from ./nova-cust-image.castle.rootfs.tar.gz

You now have all the stock files. Just navigate through the folders and find your file. Example: "/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js."

To replace the file:

Rooting-

- Place the file(s) in the main directory of the Pre's USB storage.
- Open the root terminal
Code:
mount -o remount, rw /
cp /media/internal/(filename) (directory)
An example of this code would be:
Code:
cp /media/internal/bar-assistant.js /usr/lib/luna/system/luna-systemui/app/controllers/
WebOS Quick Install-
- Open WebOS Quick Install
- Go to Tools - Send File
- For the file input box, browse to the stock file you extracted from the WebOS Doctor ROM
- For destination folder, type the directory where your file should be placed

An example would be:
Code:
/usr/lib/luna/system/luna-systemui/app/controllers/
I hope this is clear to understand and hopefully helpful to many people. If I made any mistakes or errors, then please reply kindly. Also if you know of any easier steps or methods.
__________________
If I helped you or you have downloaded one of my files,
then least you could do is click the "Thanks" button.



To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


Need help with rooting your Pre?
Send me a message:
Google Talk:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

MSN:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

AIM: Time4swim
IRC: Just shoot me up a e-mail or PM me here and we can find a room.

Last edited by Abyssul; 10/07/2009 at 05:49 PM.
Abyssul is offline   Reply With Quote
Old 08/27/2009, 07:26 PM   #2 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 699
Thanks: 25
Thanked 360 Times in 158 Posts
Default

I guess no one needs this lol
__________________
If I helped you or you have downloaded one of my files,
then least you could do is click the "Thanks" button.



To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


Need help with rooting your Pre?
Send me a message:
Google Talk:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

MSN:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

AIM: Time4swim
IRC: Just shoot me up a e-mail or PM me here and we can find a room.
Abyssul is offline   Reply With Quote
Old 08/27/2009, 07:38 PM   #3 (permalink)
Member
 
Join Date: Oct 2007
Posts: 539
Thanks: 25
Thanked 17 Times in 17 Posts
Default

Quote:
Originally Posted by Abyssul View Post
I guess no one needs this lol
more then you think...
ericizzy1 is online now   Reply With Quote
Old 08/27/2009, 07:41 PM   #4 (permalink)
Member
 
fritos1406's Avatar
 
Join Date: Jul 2009
Posts: 1,234
Thanks: 29
Thanked 361 Times in 160 Posts
Default

yeah people do need this thats forsure, most people already know this and to always back up their original but some people dont so this is great for some people
__________________

Donate Via Paypal to Email Adress:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Email:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Twitter:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
fritos1406 is offline   Reply With Quote
Old 08/28/2009, 12:34 AM   #5 (permalink)
Member
 
Join Date: Jul 2009
Posts: 29
Thanks: 8
Thanked 5 Times in 4 Posts
Default

won't this give you the OLD files...prior to the 1.1 update?
koaltech is offline   Reply With Quote
Old 08/28/2009, 12:43 AM   #6 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 699
Thanks: 25
Thanked 360 Times in 158 Posts
Default

It would if you obtained the WebOS Doctor ROM from the previous 1.1 firmware. Palm/Sprint update the ROM every update so there is a version for every firmware. I don't know where you could obtain the ROM, but it is possible.

I wouldn't recommend it though because it could cause errors, crashes, etc if the file(s) start to call on services/files that don't exist.
__________________
If I helped you or you have downloaded one of my files,
then least you could do is click the "Thanks" button.



To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


Need help with rooting your Pre?
Send me a message:
Google Talk:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

MSN:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

AIM: Time4swim
IRC: Just shoot me up a e-mail or PM me here and we can find a room.
Abyssul is offline   Reply With Quote
Old 08/28/2009, 01:38 AM   #7 (permalink)
Member
 
Join Date: Jul 2009
Posts: 62
Thanks: 3
Thanked 14 Times in 8 Posts
Default

Quote:
Originally Posted by Abyssul View Post
Apparently everyone knows of the WebOS Doctor and it's usefulness to the community, but I don't know if they understand this aspect. If you happen to be editing any file (via root or Quick Install), then chances could happen where you corrupt a one or multiple files.

Instead of ruining all your work (via homebrew apps, settings, and patches), you can try this:

- Download the WebOS Doctor ROM
- Extract WebOS Doctor contents with WinRAR or 7-Zip
- Go through the Resource folder in WebOS Doctor ROM
- Extract the contents of webOS.tar
- Open the webOS folder created by that
- Extract the data from ./nova-cust-image.castle.rootfs.tar.gz

You now have all the stock files. Just navigate through the folders and find your file. Example: "/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js."

To replace the file:

Rooting-

- Place the file(s) in the main directory of the Pre's USB storage.
- Open the root terminal
Code:
cp /media/internal/(filename) (directory)
An example of this code would be:
Code:
cp /media/internal/bar-assistant.js /usr/lib/luna/system/luna-systemui/app/controllers/
WebOS Quick Install-
- Open WebOS Quick Install
- Go to Tools - Send File
- For the file input box, browse to the stock file you extracted from the WebOS Doctor ROM
- For destination folder, type the directory where your file should be placed

An example would be:
Code:
/usr/lib/luna/system/luna-systemui/app/controllers/
I hope this is clear to understand and hopefully helpful to many people. If I made any mistakes or errors, then please reply kindly. Also if you know of any easier steps or methods.
also it is very easy to use winSCP to copy the files over.
__________________
Palm Pilot m100 --> Alltel Razr V3c --> Alltel HTC PPC6800(Mogul) --> Alltel HTC Touch Pro --> Alltel Rokr Z6M --> Alltel Palm Pre

Speed at 70Mph using MyTether using Alltel Hybrid Rev A

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
adactuslatem is offline   Reply With Quote
Thanked By 2:
Old 08/28/2009, 08:02 PM   #8 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 699
Thanks: 25
Thanked 360 Times in 158 Posts
Default

I don't have WinSCP implemented, but I know for a fact it would be easier. If you have WinSCP, then these instructions would just tell you what goes where.
__________________
If I helped you or you have downloaded one of my files,
then least you could do is click the "Thanks" button.



To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


Need help with rooting your Pre?
Send me a message:
Google Talk:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

MSN:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

AIM: Time4swim
IRC: Just shoot me up a e-mail or PM me here and we can find a room.
Abyssul is offline   Reply With Quote
Old 08/28/2009, 08:05 PM   #9 (permalink)
Member
 
Veritas06's Avatar
 
Join Date: Oct 2007
Location: Northport, NY
Posts: 374
Thanks: 213
Thanked 64 Times in 45 Posts
Default

Great post . This will definitely help a few people out.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
: I don't ask for donations, all i ask is for an email saying you like theme / what you would like to see improved =]

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Veritas06 is online now   Reply With Quote
Old 08/29/2009, 01:28 PM   #10 (permalink)
Member
 
Join Date: Jun 2009
Posts: 22
Thanks: 2
Thanked 5 Times in 4 Posts
Default

Is there any way to view the webos directories as you would when you are in USB mode? The same way you can view the folders in the Internalz app but on your computer. Or maybe create an Internalz type app for the computer?
dussyduss is offline   Reply With Quote
Old 08/29/2009, 02:35 PM   #11 (permalink)
Member
 
rboatright's Avatar
 
Join Date: Jun 2009
Location: topeka, ks
Posts: 520
Thanks: 4
Thanked 182 Times in 86 Posts
Default

Quote:
Originally Posted by dussyduss View Post
Is there any way to view the webos directories as you would when you are in USB mode? The same way you can view the folders in the Internalz app but on your computer. Or maybe create an Internalz type app for the computer?
That is what installing scp gives you.

Go to the wiki and read the "next steps" page...
__________________
Rick_

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
rboatright is offline   Reply With Quote
Old 08/29/2009, 04:15 PM   #12 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 699
Thanks: 25
Thanked 360 Times in 158 Posts
Default

Setup SFTP - WebOS Internals
__________________
If I helped you or you have downloaded one of my files,
then least you could do is click the "Thanks" button.



To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


Need help with rooting your Pre?
Send me a message:
Google Talk:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

MSN:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

AIM: Time4swim
IRC: Just shoot me up a e-mail or PM me here and we can find a room.
Abyssul is offline   Reply With Quote
Thanked By:
Old 08/29/2009, 04:21 PM   #13 (permalink)
Member
 
hmagoo's Avatar
 
Join Date: Jun 2009
Location: Palm Desert, CA
Posts: 224
Thanks: 32
Thanked 41 Times in 20 Posts
Default

On linux (xubuntu) I use filezilla for ssh2 (file management). I was never able to figure out what to do to write to system directories (permissions) so I just moved on and made sure I can write to /var/home and /media/internal. From there it's no big deal. I suppose it would be pretty easy to learn commands to copy and send in a simple terminal window, but it's nice to use a gui every once in a while.
hmagoo is offline   Reply With Quote
Old 08/29/2009, 04:27 PM   #14 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 699
Thanks: 25
Thanked 360 Times in 158 Posts
Default

Editing files and maniputing images is reasonable for STFP, but when you have to enable services, manipulate processes, etc then you have a problem. I found using Putty to be capable of what I want to do.
__________________
If I helped you or you have downloaded one of my files,
then least you could do is click the "Thanks" button.



To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


Need help with rooting your Pre?
Send me a message:
Google Talk:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

MSN:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

AIM: Time4swim
IRC: Just shoot me up a e-mail or PM me here and we can find a room.
Abyssul is offline   Reply With Quote
Old 08/29/2009, 05:35 PM   #15 (permalink)
Member
 
Join Date: Apr 2009
Posts: 440
Thanks: 37
Thanked 44 Times in 23 Posts
Default

Just curious, but since PalmProfile restores everything short of your homebrew apps and your pictures, is this really necessary? I guess what I really mean is if there is any ... danger .. in using webosdoctor every once in awhile to fix problems as opposed to just swapping stock files in. For me, it just seems easier to let to re-write the rom with the doctor, plug my palm profile in, take 5 minutes to adjust some settings, and off I go. At the same time, I don't want to risk screwing something up making webosdoctor my go to tool either.
Centro85 is offline   Reply With Quote
Old 08/29/2009, 05:48 PM   #16 (permalink)
Member
 
hmagoo's Avatar
 
Join Date: Jun 2009
Location: Palm Desert, CA
Posts: 224
Thanks: 32
Thanked 41 Times in 20 Posts
Default

Centro85, Yeah don't make it your go to tool. It's like getting a new phone in the mail, and there are a few bugs with it. For me, it would be a lot easier to get 1 file out of the webos image, or my own backup, instead of erasing the Pre and possibly end up calling sprint for some caveat, etc. From what I hear about the Doctor it isn't quick and doesn't restore everything you think it will.

Abyssul, yeah I use a terminal for just about everything, but go to the file manager for certain transfers. I've been using the terminal app on the Pre more and more lately.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
hmagoo is offline   Reply With Quote
Old 08/29/2009, 07:05 PM   #17 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 699
Thanks: 25
Thanked 360 Times in 158 Posts
Default

WebOS Doctor usually takes 15 minutes. I've done it about 6-7 times now. Last week I lost all my contacts because my Palm Profile won't load correctly from Palm's server. Kind've ****ed that I didn't use Google to begin with... Currently have a ticket with Palm because I used WebOS Doctor.
__________________
If I helped you or you have downloaded one of my files,
then least you could do is click the "Thanks" button.



To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


Need help with rooting your Pre?
Send me a message:
Google Talk:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

MSN:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

AIM: Time4swim
IRC: Just shoot me up a e-mail or PM me here and we can find a room.
Abyssul is offline   Reply With Quote
Old 08/31/2009, 12:57 PM   #18 (permalink)
Member
 
as4life's Avatar
 
Join Date: Feb 2007
Posts: 502
Thanks: 23
Thanked 38 Times in 29 Posts
Default

how do i extract ./nova-cust-image.castle.rootfs.tar.gz?
as4life is offline   Reply With Quote
Old 08/31/2009, 05:03 PM   #19 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 699
Thanks: 25
Thanked 360 Times in 158 Posts
Default

Quote:
Originally Posted by as4life View Post
how do i extract ./nova-cust-image.castle.rootfs.tar.gz?
With WinRAR or 7-Zip, try right clicking the file and going to "Open with." Then select WinRAR/7-Zip.
__________________
If I helped you or you have downloaded one of my files,
then least you could do is click the "Thanks" button.



To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


Need help with rooting your Pre?
Send me a message:
Google Talk:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

MSN:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

AIM: Time4swim
IRC: Just shoot me up a e-mail or PM me here and we can find a room.
Abyssul is offline   Reply With Quote
Old 08/31/2009, 09:00 PM   #20 (permalink)
Member
 
as4life's Avatar
 
Join Date: Feb 2007
Posts: 502
Thanks: 23
Thanked 38 Times in 29 Posts
Default

Quote:
Originally Posted by Abyssul View Post
With WinRAR or 7-Zip, try right clicking the file and going to "Open with." Then select WinRAR/7-Zip.
I have a mac and i tried using the archive utility and rarexpander and still still can't figure it out.
as4life is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:01 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 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0