webOS Nation Forums >  Homebrew >  WebOS Internals > WebOS Internals Meta-Doctor
WebOS Internals Meta-Doctor
  Reply
Like Tree4Likes

 
Thread Tools Display Modes
Old 10/06/2009, 08:32 AM   #1 (permalink)
Developer
 
rwhitby's Avatar
 
Posts: 10,568
I have created a tool which will download, unpack, patch, and repack a webOS Doctor image, applying a number of transformations along the way to:

1. Bypass the need for activation
2. Enable Palm Profile access
3. Set developer mode on by default
4. Increase the size of the /var partition to 2GB

See my blog post at rwhitby.net : The WebOS Internals Meta-Doctor for details.

You can find this tool in the WebOS Internals source code repository at github.com

The tool requires a Ubuntu Linux host to run. I encourage others to take the techniques embodied in the tool and create a cross-platform solution. This does what I need, and I'm not personally interested in creating such a cross-platform tool, but will assist anyone else who is interested.

Note that using Cygwin on Windows is no longer a supported MetaDoctor option. The official Wiki pages now require you to use WUBI on Windows and follow the Linux instructions after that. The option for using Cygwin on Windows will not be reinstated.

Do not redistribute modified versions of the webOS Doctor created using this tool – it is for end-user use only. Redistribution of the webOS Doctor (either original files or modified files) is a violation of copyright law.

-- Rod

Last edited by rwhitby; 12/26/2011 at 06:55 PM.
rwhitby is online now   Reply With Quote
Liked by Rnp and Remy X like this.
Old 10/06/2009, 08:36 AM   #2 (permalink)
Member
 
Niris777's Avatar
 
Posts: 228
Well this is definetely interesting!
Niris777 is offline   Reply With Quote
Old 10/06/2009, 09:26 AM   #3 (permalink)
Member
 
solarus's Avatar
 
Posts: 554
Very cool. A cross platform program would be very useful, preferably if it was modular so that we could say increase the /var partition and enable DevloperMode but not bypass activation.

A cool piece of programming.
solarus is offline   Reply With Quote
Old 10/06/2009, 09:36 AM   #4 (permalink)
Member
 
Posts: 212
Ok i'm ready to bust my phone... in the meantime I have copied PalmDatabase.db3 file to keep all my current conversations will see how this will work.... I will dump the messages to sql file and import it in newly created PalmDatabase.db3 on my pre after doctor it

git clone git://git.webos-internals.org/tools/meta-doctor.git
;D
en0x is offline   Reply With Quote
Old 10/06/2009, 10:05 AM   #5 (permalink)
Member
 
Posts: 212
pkilian@falcon:~/dupa/meta-doctor$ make
make CARRIER=sprint unpack patch pack
make[1]: Entering directory `/home/pkilian/dupa/meta-doctor'
make[1]: Nothing to be done for `unpack'.
rm -f build/pre-p100eww-sprint-1.2.0/.patched
for app in com.palm.app.firstuse ; do \
mv build/pre-p100eww-sprint-1.2.0/rootfs/usr/lib/ipkg/info/$app.md5sums{,.old} ; \
done
mv: missing destination file operand after `build/pre-p100eww-sprint-1.2.0/rootfs/usr/lib/ipkg/info/com.palm.app.firstuse.md5sums{,.old}'
Try `mv --help' for more information.
make[1]: *** [build/pre-p100eww-sprint-1.2.0/.patched] Error 1
make[1]: Leaving directory `/home/pkilian/dupa/meta-doctor'
make: *** [pack-sprint] Error 2
pkilian@falcon:~/dupa/meta-doctor$



this is what i'm getting do you need to run a different make version or something?
en0x is offline   Reply With Quote
Thanked By: Dogg006
Old 10/06/2009, 10:53 AM   #6 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Posts: 2,119
I guess I'm going to create a dual boot partition on my PC with Linux
__________________


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 10/06/2009, 11:37 AM   #7 (permalink)
Member
 
Posts: 212
ok i got it working had to tweak makefile a little ;D
en0x is offline   Reply With Quote
Old 10/06/2009, 12:57 PM   #8 (permalink)
Member

 
Posts: 6,869
Is making the /var partition larger like that safe for updates? I thought I remembered reading that that could mess things up when Palm makes their own solution for the issue.
jhoff80 is offline   Reply With Quote
Old 10/06/2009, 12:57 PM   #9 (permalink)
Member
 
Posts: 141
Just wanted to say thanks again!

All I had to do was "yum install git" for centos 5.3 and it worked perfectly..
daventx is offline   Reply With Quote
Old 10/06/2009, 01:10 PM   #10 (permalink)
Member
 
Posts: 212
well without reflashing you can't resize /var... you just cant take space from fat32 and put it on ext3 if /media/internal was be a ext3 partition then yes but fat32 not likely
en0x is offline   Reply With Quote
Old 10/06/2009, 01:11 PM   #11 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Posts: 3,856
rwhitby, want me to try making a cross platform java app for this?

EDIT: lol, I could already use the extract code I made for the Repair Utility

Last edited by Jason Robitaille; 10/06/2009 at 01:17 PM.
Jason Robitaille is offline   Reply With Quote
Old 10/06/2009, 01:32 PM   #12 (permalink)
Member
 
KnoxBNYC's Avatar
 
Posts: 325
@rwhitby: Thank you. This is amazing. (Can't believe nobody thought of this before!)

@Jason Robitaille: You'll do a cross-platform? You never cease to amaze me!! Seriously!
KnoxBNYC is offline   Reply With Quote
Thanked By: havatampa
Old 10/06/2009, 03:47 PM   #13 (permalink)
Member
 
Compusmurf's Avatar
 
Posts: 104
Excuse my ignorance, I'm neither a programmer nor a big linux guy.....

Say I did this on my 1.2.0 image, and as we know, 1.2.1 is now out..

What happens when I apply 1.2.0 with these changes then let it update 1.2.1.

Also, 2nd question, may be easier. The 2Gb for the /var. Is this a confirmed fix for the "out of memory" issue?
Compusmurf is offline   Reply With Quote
Old 10/06/2009, 05:12 PM   #14 (permalink)
Member
 
SirWill's Avatar
 
Posts: 439
Quote:
Originally Posted by Jason Robitaille View Post
rwhitby, want me to try making a cross platform java app for this?

EDIT: lol, I could already use the extract code I made for the Repair Utility
Ohhhhh Drooling at this already!

Maybe oh maybe it could be taken a step further and have the ability to pre-install applications, services, and patches in your doctor file! Think about it.. Sounds way cool.

And @rwhitby Thank you Thank you Thank you.

Last edited by SirWill; 10/06/2009 at 05:19 PM.
SirWill is offline   Reply With Quote
Old 10/06/2009, 06:02 PM   #15 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Posts: 3,856
Quote:
Originally Posted by Compusmurf View Post
Also, 2nd question, may be easier. The 2Gb for the /var. Is this a confirmed fix for the "out of memory" issue?
It'd fix the system memory limitation, but, and someone correct me if I'm wrong, I'm pretty sure the Palm-imposed limit would remain there. So apps like Preware and WebOSQuickInstall would be still needed (and at some point the App Catalog would each the limit and give the error still).
Jason Robitaille is offline   Reply With Quote
Old 10/06/2009, 06:16 PM   #16 (permalink)
Member

 
Posts: 6,869
Quote:
Originally Posted by Jason Robitaille View Post
It'd fix the system memory limitation, but, and someone correct me if I'm wrong, I'm pretty sure the Palm-imposed limit would remain there. So apps like Preware and WebOSQuickInstall would be still needed (and at some point the App Catalog would each the limit and give the error still).
Yeah, App Catalog gives the limit at 50 regardless.
jhoff80 is offline   Reply With Quote
Old 10/06/2009, 06:20 PM   #17 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Posts: 3,856
Quote:
Originally Posted by jhoff80 View Post
Yeah, App Catalog gives the limit at 50 regardless.
Didn't someone make a patch for that a while ago? (or was at least working on one)
Jason Robitaille is offline   Reply With Quote
Old 10/06/2009, 06:22 PM   #18 (permalink)
Member

 
Posts: 6,869
Quote:
Originally Posted by Jason Robitaille View Post
Didn't someone make a patch for that a while ago? (or was at least working on one)
If so, I missed it.
jhoff80 is offline   Reply With Quote
Old 10/06/2009, 06:23 PM   #19 (permalink)
Member
 
Posts: 141
Quote:
Originally Posted by Jason Robitaille View Post
Didn't someone make a patch for that a while ago? (or was at least working on one)
Removing app install limit in App Catalog - WebOS Internals

But nothing final had been found or developed yet.


Currently this is the fix by xorg... which is moving and linking the app

http://forums.precentral.net/web-os-...-proposal.html

^ in this thread: there is a mention of an email limit on /var? That it will basically fill up.. any reality to that?

Last edited by daventx; 10/06/2009 at 06:50 PM.
daventx is offline   Reply With Quote
Old 10/06/2009, 06:27 PM   #20 (permalink)
Member
 
Posts: 633
Yea, I first pursued changing the app catalog code, but didn't get too far because the limit is in a binary. I then pursued the link method and it worked. The limit is not 50 apps, it appears to be the size of the /var.../apps directory. Even if you increase /var, it may not resolve the issue (anyone confirm?). The link method fakes out the app catalog, thinking apps is using up less space, because it is.

It could be that the limit is based on size of /var../apps relative to % of available space on /var. If so, the resizing var would likely work. If it's a fixed MB limit, like 25-30MB, resizing var won't work.

Last edited by xorg; 10/06/2009 at 06:32 PM.
xorg is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0