PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Apache > HTC Apache Development

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 11-07-2007, 08:56 PM
schettj's Avatar
morsus mihi
Offline
Pocket PC: iPhone 4
Carrier: AT&T
Location: Not from around these parts
 
Join Date: Oct 2006
Posts: 3,017
Reputation: 3616
schettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIP
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Can you expand a bit on how the new patches folder works? Or point me at whatever docs I missed?
Reply With Quote
  #12 (permalink)  
Old 11-07-2007, 09:10 PM
gguruusa's Avatar
Deep Thinker
Offline
Pocket PC: Tin Can
Carrier: Atomic Vibration
Location: Mountain top
 
Join Date: Jan 2007
Posts: 3,252
Reputation: 4726
gguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributions
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by schettj View Post
Can you expand a bit on how the new patches folder works? Or point me at whatever docs I missed?
It's documented somewhere, but I forget where, so here's the gist of it:

First, if you don't have the patches folder already, you can add it to the 11/07_1 kitchen by createing a Patches folder and adding PatchDir=Patches to your selections.txt file. 11/07_1 distribution is the first ditribution with support for this feature.

It's really easy to use...put any files you want to overwrite core files in it.
BuildOS will copy those files to the ROM right after hive creation (which is why you can't use this method for rgu changes)
Any file that already exists in the ROM will be overwritten.

For RGU changes to core files, the best mechanism is the same as always...make an OEM with a uuid in the ffffff range.

That's all there is to it.
__________________
Grammar: The difference between knowing your shit and knowing you're shit.
Reply With Quote
  #13 (permalink)  
Old 11-07-2007, 09:27 PM
schettj's Avatar
morsus mihi
Offline
Pocket PC: iPhone 4
Carrier: AT&T
Location: Not from around these parts
 
Join Date: Oct 2006
Posts: 3,017
Reputation: 3616
schettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIPschettj is still contributing even after becoming a VIP
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Thanks, seems simple enough.... so for example you could use that to do the PIE .dll patch in rom just by dropping in the .dll in the Patches folder?
Reply With Quote
  #14 (permalink)  
Old 11-07-2007, 09:39 PM
gguruusa's Avatar
Deep Thinker
Offline
Pocket PC: Tin Can
Carrier: Atomic Vibration
Location: Mountain top
 
Join Date: Jan 2007
Posts: 3,252
Reputation: 4726
gguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributions
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by schettj View Post
Thanks, seems simple enough.... so for example you could use that to do the PIE .dll patch in rom just by dropping in the .dll in the Patches folder?
simple, eh?

The down side of this approach, which will probably cause me to change a few things, is that you _always_ get the patch applied. This is fine for 90% of the core, but some things you can opt not to include...and the patch shouldn't be applied when you've opted out. I'll try to fix that behaviour for the next release.

Replacing modules is a bit trickier, as the patch must also be a module - you can't replace a module with a file.

Last edited by gguruusa; 11-07-2007 at 09:47 PM.
Reply With Quote
  #15 (permalink)  
Old 11-07-2007, 11:31 PM
verizonguy's Avatar
Regular 'Geeker
Offline
Pocket PC: XV6800
Carrier: Verizon Wireless
Location: US
 
Join Date: Feb 2007
Posts: 487
Reputation: 47
verizonguy is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Just to expand on the information given in this thread, when you have conflicting registry entries in the RGUs of your kitchen, the one parsed last is the one that will make it into the final rom. By using a UUID starting with f's in the first group of the UUID, your rgu in that package will be parsed towards the end, effectively replacing any conflicting registry entry you want to replace/update.

Another method of updating registry values is by using a minus sign after the opening bracket of the line, but this is not the preferred method in this application, as users may inadvertently remove an entire key when just trying to update one value. The f's naming convention is the way to go.

A UUID is usually assigned randomly or based on the time it was generated or both. In the current variant used, there are 5 versions used.
  1. Time-based with unique or random host identifier
  2. DCE Security version (with POSIX UIDs)
  3. Name-based (MD5 hash)
  4. Random
  5. Name-based (SHA-1 hash)
You can find out which version is being used by looking at the first digit of the third group. For example, the tools some choose to use include the new oemizer and oem helper. Both tools use random generation, as demonstrated by a25ba3df-785a-4a9e-8dd4-b89d9f519e29. As you can see, the first digit of the third group is a 4, so it is random.

Anyway, this is probably way more than you ever wanted to know about UUIDs and how RGUs are processed and why, but figured I'd throw the information out there for those who care.
__________________
www.ppckitchen.org

Before criticizing someone, first walk a mile in his shoes...
Then when you criticize him, you'll be a mile away and have his shoes.
Reply With Quote
  #16 (permalink)  
Old 11-08-2007, 12:15 AM
gguruusa's Avatar
Deep Thinker
Offline
Pocket PC: Tin Can
Carrier: Atomic Vibration
Location: Mountain top
 
Join Date: Jan 2007
Posts: 3,252
Reputation: 4726
gguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributions
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by verizonguy View Post
Another method of updating registry values is by using a minus sign after the opening bracket of the line, but this is not the preferred method in this application, as users may inadvertently remove an entire key when just trying to update one value. The f's naming convention is the way to go.
Can you elaborate...maybe an example or two? It sounds like your saying if I have
[asdf]
a=1
b=2

and I put this in my rgu:
[-asdf]
b=3
c=4

that I'll end up with
[asdf]
b=3
c=4

instead of
[asdf]
a=1
b=3
c=4

Is that correct?
Reply With Quote
  #17 (permalink)  
Old 11-08-2007, 08:53 AM
zenak's Avatar
PPCGeeks Regular
Offline
 
Join Date: May 2007
Posts: 159
Reputation: 10
zenak is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
BigJ - out of curiosity do you have an OEM for the WM6 threaded SMS? If you need the cab let me know.
Reply With Quote
  #18 (permalink)  
Old 11-08-2007, 11:44 AM
verizonguy's Avatar
Regular 'Geeker
Offline
Pocket PC: XV6800
Carrier: Verizon Wireless
Location: US
 
Join Date: Feb 2007
Posts: 487
Reputation: 47
verizonguy is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by gguruusa View Post
Can you elaborate...maybe an example or two? It sounds like your saying if I have
[asdf]
a=1
b=2

and I put this in my rgu:
[-asdf]
b=3
c=4

that I'll end up with
[asdf]
b=3
c=4

instead of
[asdf]
a=1
b=3
c=4

Is that correct?
Yes, and no. It applies to the whole key and isn't able to be used for specific values to the best of my knowledge.

example:

If your package has the following:

Code:
 
[HKEY_LOCAL_MACHINE\SOFTWARE\GGuruInc\CoolApp\Parms]
"Enabled"=dword:1
"Flags"=dword:2
"Version"="3.2"
The usage is
Code:
[-HKEY_LOCAL_MACHINE\SOFTWARE\GGuruInc\CoolApp\Parms]
which removes the whole Parms key and any values contained therein.
Reply With Quote
  #19 (permalink)  
Old 11-08-2007, 11:50 AM
luv2chill's Avatar
Retired Staff
Offline
Pocket PC: Apache (PPC6700); Titan (Mogul)
Carrier: Sprint
Location: Lawrence, KS
 
Join Date: Nov 2006
Posts: 1,524
Reputation: 143
luv2chill is keeping up the good workluv2chill is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via ICQ to luv2chill Send a message via AIM to luv2chill Send a message via MSN to luv2chill Send a message via Yahoo to luv2chill Send a message via Skype™ to luv2chill
Quote:
Originally Posted by verizonguy View Post
Yes, and no. It applies to the whole key and isn't able to be used for specific values to the best of my knowledge.

example:

If your package has the following:

Code:
 
[HKEY_LOCAL_MACHINE\SOFTWARE\GGuruInc\CoolApp\Parms]
"Enabled"=dword:1
"Flags"=dword:2
"Version"="3.2"
The usage is
Code:
[-HKEY_LOCAL_MACHINE\SOFTWARE\GGuruInc\CoolApp\Parms]
which removes the whole Parms key and any values contained therein.
That's correct. The hyphen deletes a key--that's it.
Reply With Quote
  #20 (permalink)  
Old 11-08-2007, 01:12 PM
gguruusa's Avatar
Deep Thinker
Offline
Pocket PC: Tin Can
Carrier: Atomic Vibration
Location: Mountain top
 
Join Date: Jan 2007
Posts: 3,252
Reputation: 4726
gguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributions
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by luv2chill View Post
That's correct. The hyphen deletes a key--that's it.
I've been wondering how to do that for months! Thanks.

...now I need a CoolApp to try it on...
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Apache > HTC Apache Development

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 05:37 AM.


Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com