webOS Nation Forums >  webOS apps and software >  webOS development > How To: Restore Individual Pre Stock File
How To: Restore Individual Pre Stock File

  Reply
 
LinkBack Thread Tools Display Modes
Old 08/26/2009, 11:25 PM   #1 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 2,132
Likes Received: 45
Thanks: 41
Thanked 807 Times in 433 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.

Last edited by Abyssul; 10/07/2009 at 03:49 PM.
Abyssul is offline   Reply With Quote
Old 08/27/2009, 05:26 PM   #2 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 2,132
Likes Received: 45
Thanks: 41
Thanked 807 Times in 433 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.
Abyssul is offline   Reply With Quote
Old 08/27/2009, 05:38 PM   #3 (permalink)
Member
 
Join Date: Oct 2007
Posts: 875
Likes Received: 0
Thanks: 75
Thanked 40 Times in 35 Posts
Default

Quote:
Originally Posted by Abyssul View Post
I guess no one needs this lol
more then you think...
ericizzy1 is offline   Reply With Quote
Old 08/27/2009, 05:41 PM   #4 (permalink)
Member
 
fritos1406's Avatar
 
Join Date: Jul 2009
Posts: 1,307
Likes Received: 1
Thanks: 34
Thanked 462 Times in 187 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: silent2205@gmail.com
Email: fritos1406@aim.com
Twitter: @fritos1406
fritos1406 is offline   Reply With Quote
Old 08/27/2009, 10:34 PM   #5 (permalink)
Member
 
Join Date: Jul 2009
Posts: 29
Likes Received: 0
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/27/2009, 10:43 PM   #6 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 2,132
Likes Received: 45
Thanks: 41
Thanked 807 Times in 433 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.
Abyssul is offline   Reply With Quote
Old 08/27/2009, 11:38 PM   #7 (permalink)
Member
 
Join Date: Jul 2009
Posts: 79
Likes Received: 0
Thanks: 5
Thanked 17 Times in 9 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
http://i30.tinypic.com/2iu733d.jpg
adactuslatem is offline   Reply With Quote
Thanked by bluehkie, mrloserpunk
Old 08/28/2009, 06:02 PM   #8 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 2,132
Likes Received: 45
Thanks: 41
Thanked 807 Times in 433 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.
Abyssul is offline   Reply With Quote
Old 08/28/2009, 06:05 PM   #9 (permalink)
Member
 
Veritas06's Avatar
 
Join Date: Oct 2007
Location: Northport, NY
Posts: 610
Likes Received: 4
Thanks: 448
Thanked 133 Times in 89 Posts
Default

Great post . This will definitely help a few people out.
__________________
Fix 'Hidden' SMS Conversations
PreThemer Profile
Hide Amazon MP3 Store
Veritas06 is offline   Reply With Quote
Old 08/29/2009, 11:28 AM   #10 (permalink)
Member
 
Join Date: Jun 2009
Posts: 28
Likes Received: 0
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, 12:35 PM   #11 (permalink)
Member
 
rboatright's Avatar
 
Join Date: Jun 2009
Location: topeka, ks
Posts: 550
Likes Received: 0
Thanks: 4
Thanked 188 Times in 90 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_
http://www.webos-internals.org
http://www.1632.org
rboatright is offline   Reply With Quote
Old 08/29/2009, 02:15 PM   #12 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 2,132
Likes Received: 45
Thanks: 41
Thanked 807 Times in 433 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.
Abyssul is offline   Reply With Quote
Thanked By: bluehkie
Old 08/29/2009, 02:21 PM   #13 (permalink)
Member
 
hmagoo's Avatar
 
Join Date: Jun 2009
Location: Palm Desert, CA
Posts: 249
Likes Received: 1
Thanks: 38
Thanked 47 Times in 22 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, 02:27 PM   #14 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 2,132
Likes Received: 45
Thanks: 41
Thanked 807 Times in 433 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.
Abyssul is offline   Reply With Quote
Old 08/29/2009, 03:35 PM   #15 (permalink)
Member
 
Join Date: Apr 2009
Posts: 441
Likes Received: 0
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, 03:48 PM   #16 (permalink)
Member
 
hmagoo's Avatar
 
Join Date: Jun 2009
Location: Palm Desert, CA
Posts: 249
Likes Received: 1
Thanks: 38
Thanked 47 Times in 22 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.
__________________

hmagoo is offline   Reply With Quote
Old 08/29/2009, 05:05 PM   #17 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 2,132
Likes Received: 45
Thanks: 41
Thanked 807 Times in 433 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.
Abyssul is offline   Reply With Quote
Old 08/31/2009, 10:57 AM   #18 (permalink)
Member
 
as4life's Avatar
 
Join Date: Feb 2007
Posts: 581
Likes Received: 0
Thanks: 30
Thanked 46 Times in 35 Posts
Default

how do i extract ./nova-cust-image.castle.rootfs.tar.gz?
as4life is offline   Reply With Quote
Old 08/31/2009, 03:03 PM   #19 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 2,132
Likes Received: 45
Thanks: 41
Thanked 807 Times in 433 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.
Abyssul is offline   Reply With Quote
Old 08/31/2009, 07:00 PM   #20 (permalink)
Member
 
as4life's Avatar
 
Join Date: Feb 2007
Posts: 581
Likes Received: 0
Thanks: 30
Thanked 46 Times in 35 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



 


Content Relevant URLs by vBSEO 3.6.0