webOS Nation Forums >  Homebrew >  WebOS Internals > WebOS-Dev-Newbie > How to write a patch?
WebOS-Dev-Newbie > How to write a patch?

  Reply
 
LinkBack Thread Tools Display Modes
Old 05/03/2010, 02:23 PM   #1 (permalink)
Member
 
Join Date: May 2010
Posts: 4
Likes Received: 0
Thanks: 3
Thanked 0 Times in 0 Posts
Question WebOS-Dev-Newbie > How to write a patch?

Hello I'm new to WebOS-Developement and I wanna develope a patch and App which will show the sent SMS in a special range of time.
I do not know how to write a patch in order to change some code in the Palm-Messanger for SMS. Can anybody help me or send me a tutorial for writing a patch?

(Or does someone know if there is already an App which shows the sent SMS and call-time?)
telgon is offline   Reply With Quote
Old 05/03/2010, 02:46 PM   #2 (permalink)
Member
 
mjkjr's Avatar
 
Join Date: Dec 2009
Location: Kansas City Missouri
Posts: 1,045
Likes Received: 3
Thanks: 1,197
Thanked 259 Times in 200 Posts
Default

Easiest way to make a patch is to modify the file you want in a text editor and then use Jason's "Unified Diff Creator", super easy.

There are a few patch options to show the Sent/Received times in messaging, and dbsooner also made a patch where you can see the Call Durations in the call log. I believe that's what you're looking for. You can find these Patches in either Preware or webOS QI, hope that helps some.
mjkjr is offline   Reply With Quote
Old 05/03/2010, 03:27 PM   #3 (permalink)
Member
 
SDash's Avatar
 
Join Date: Jun 2009
Location: US
Posts: 260
Likes Received: 1
Thanks: 21
Thanked 23 Times in 16 Posts
Default

Official Patch Discussion
SDash is offline   Reply With Quote
Old 05/03/2010, 03:31 PM   #4 (permalink)
Member
 
mrloserpunk's Avatar
 
Join Date: Jul 2008
Location: Syracuse
Posts: 2,564
Likes Received: 0
Thanks: 740
Thanked 442 Times in 327 Posts
Default

Quote:
Originally Posted by mjkjr View Post
Easiest way to make a patch is to modify the file you want in a text editor and then use Jason's "Unified Diff Creator", super easy.

There are a few patch options to show the Sent/Received times in messaging, and dbsooner also made a patch where you can see the Call Durations in the call log. I believe that's what you're looking for. You can find these Patches in either Preware or webOS QI, hope that helps some.


could this process be used to make patches for the changes to css files for theming?

a example, in order to get my ZomPre dial pad the way I want, I have to make changes to the dialpad.css file. I want to distribute those changes and I understand a patch is my only option...

Never mind I see how it works, it will accomplish what I want.... Awesome! Thanks didn't know this existed!!!
__________________
"When there is no more room in hell, the dead will walk the earth"


PM me your questions, If I cant find an answer, I'll show you who can.
mrloserpunk is offline   Reply With Quote
Old 05/03/2010, 03:36 PM   #5 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,956 Times in 1,495 Posts
Default

Quote:
Originally Posted by telgon View Post
I do not know how to write a patch in order to change some code in the Palm-Messanger for SMS. Can anybody help me or send me a tutorial for writing a patch?
Easiest way to create a patch is to download a webOSDoctor and extract the ROM files from it.

Copy the file you want to change, and edit it with any kind of text editor.

Use my app, Unified Diff Creator, to create a patch from the original and modified file.


Quote:
Originally Posted by mrloserpunk View Post
could this process be used to make patches for the changes to css files for theming?
Yepper
__________________
If you've liked my software, please consider to towards future development.

Developer of many apps such as: WebOS Quick Install, WebOS Theme Builder, Ipk Packager, Unified Diff Creator, Internalz Pro, ComicShelf HD, LED Torch, over 70 patches and more.

@JayCanuck @CanuckCoding Facebook
Jason Robitaille is offline   Reply With Quote
Old 05/03/2010, 03:54 PM   #6 (permalink)
Member
 
Join Date: May 2010
Posts: 4
Likes Received: 0
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Thank you all for the help. I'll give it a try.

@mjkjr: I need an App which will show me how many minutes I've already phoned and how many SMS I sent because I only have a volume-mobiletarif. Setting up the Free-Minutes and Free-SMS would be nice to have an overview of the used Amount.
telgon is offline   Reply With Quote
Old 05/11/2010, 12:19 PM   #7 (permalink)
Member
 
mjkjr's Avatar
 
Join Date: Dec 2009
Location: Kansas City Missouri
Posts: 1,045
Likes Received: 3
Thanks: 1,197
Thanked 259 Times in 200 Posts
Default

Quote:
Originally Posted by telgon View Post
Thank you all for the help. I'll give it a try.

@mjkjr: I need an App which will show me how many minutes I've already phoned and how many SMS I sent because I only have a volume-mobiletarif. Setting up the Free-Minutes and Free-SMS would be nice to have an overview of the used Amount.
This sounds like what you may be looking for, but I'm not sure. Check out 'MinStat' in Preware.
mjkjr is offline   Reply With Quote
Thanked By: telgon
Old 05/12/2010, 04:17 PM   #8 (permalink)
Member
 
Skribbles505's Avatar
 
Join Date: Jul 2009
Location: Albuquerque,NM
Posts: 110
Likes Received: 0
Thanks: 28
Thanked 6 Times in 6 Posts
Default

Quote:
Originally Posted by Jason Robitaille View Post
Easiest way to create a patch is to download a webOSDoctor and extract the ROM files from it.
Jason,

I have to doctor downloaded and extracted files but I don't know which would be the file I need to start with to modify the photo app. Can you give me a point in the right direction, perhaps I have extracted the wrong files.
__________________
Clarence -
Skribbles505 is offline   Reply With Quote
Old 05/27/2010, 01:10 AM   #9 (permalink)
Member
 
Join Date: May 2010
Posts: 4
Likes Received: 0
Thanks: 3
Thanked 0 Times in 0 Posts
Default

@mjkjr: Thank you very much! That is exactly what I was looking for!
telgon is offline   Reply With Quote
Old 09/08/2010, 01:17 PM   #10 (permalink)
Member
 
patricksmangan's Avatar
 
Join Date: Oct 2009
Posts: 1,239
Likes Received: 2
Thanks: 175
Thanked 83 Times in 71 Posts
Default

Quote:
Originally Posted by Jason Robitaille View Post
Easiest way to create a patch is to download a webOSDoctor and extract the ROM files from it.

Copy the file you want to change, and edit it with any kind of text editor.

Use my app, Unified Diff Creator, to create a patch from the original and modified file.
is there a video tutorial about all this? im not following for some reason
__________________
patricksmangan is offline   Reply With Quote
Old 11/06/2011, 04:38 PM   #11 (permalink)
Member
 
Join Date: Oct 2011
Posts: 11
Likes Received: 0
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by patricksmangan View Post
is there a video tutorial about all this? im not following for some reason
I am in the same boat. I want to change a text file to a patch file for webos but could not figure it out. Any help?

TIA
na_tra is offline   Reply With Quote
Old 11/06/2011, 07:04 PM   #12 (permalink)
Member
 
johncc's Avatar
 
Join Date: Oct 2005
Location: Adelaide, AU,.... (EU Pre 3, TP 32GB, P100UEU 2.1.0)
Posts: 3,910
Likes Received: 87
Thanks: 544
Thanked 453 Times in 331 Posts
Default

Quote:
Originally Posted by na_tra View Post
I am in the same boat. I want to change a text file to a patch file for webos but could not figure it out. Any help?

TIA
You don't change a text file to a patch file. You make alterations to a copy of your textfile to achieve the required changes in program behaviour. You then supply the name of the original file and the name of the modified file as parameters to Jason's Unified Diff Creator program, and it produces the patch file. The patch file contains the necessary information to convert the original file to the modified file.
johncc is offline   Reply With Quote
Thanked By: na_tra
Old 11/06/2011, 09:37 PM   #13 (permalink)
Member
 
Join Date: Oct 2011
Posts: 11
Likes Received: 0
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by johncc View Post
You don't change a text file to a patch file. You make alterations to a copy of your textfile to achieve the required changes in program behaviour. You then supply the name of the original file and the name of the modified file as parameters to Jason's Unified Diff Creator program, and it produces the patch file. The patch file contains the necessary information to convert the original file to the modified file.
Thanks. I think I got it just before your reply but not sure if I was correct. Your message confirmed that I was doing it right.

Thanks again.
na_tra is offline   Reply With Quote
Old 11/07/2011, 12:48 AM   #14 (permalink)
Member
 
Join Date: Feb 2011
Posts: 80
Likes Received: 1
Thanks: 2
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by mjkjr View Post
This sounds like what you may be looking for, but I'm not sure. Check out 'MinStat' in Preware.
I think this app is exactly what i need, but I can't find it in preware. Are there any sources i could work with?
k4llle is offline   Reply With Quote
Old 11/07/2011, 02:33 AM   #15 (permalink)
Member
 
sketch42's Avatar
 
Join Date: Jan 2007
Location: in the dark recesses of the earth, awaiting "The Rise of the L@@T"
Posts: 3,991
Likes Received: 184
Thanks: 2,996
Thanked 1,967 Times in 1,402 Posts
Default

Quote:
Originally Posted by k4llle View Post
I think this app is exactly what i need, but I can't find it in preware. Are there any sources i could work with?
http://forums.precentral.net/webos-h...7-minstat.html

The Source for MinStat and its service is publicly available in the webos-internals git-repo, feel free to use it, extend it or port it to newer webOS releases :-)
Minstat: http://git.webos-internals.org/applications/minstat/

-- Sent from my Palm Veer using Forums
__________________
NEWBIES Check These Threads First
WebOS FAQExport ContactsBackup-Restore Patches/Apps


follow me on twitteror Catch me at LOOT

ATTN: If You like my Patches or Themes please feel free to DONATE
sketch42 is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0