Jump to content


The Patch Creation/Editing Discussion Thread


  • Please log in to reply
104 replies to this topic

#1 OFFLINE   blacklizard

blacklizard
  • SE-NSE Awards '11
  • Retired

  • 3,909 posts
  • Gender:Male
  • Location:Malaysia
  • Mobile:W995 R1HA035
  • Twitter:icodewithlizard
  • Tutorials Submitted:1

Posted 26 April 2011 - 08:50 AM

This topic is for asking about any problem faced during creation of patch either with IAR or assembly coding.

I as well other member will try to help out :)
Will port/create patch/elf for money
All support question sent to my email/PM will be ignored

#2 OFFLINE   MEHRDAD

MEHRDAD
  • Members
  • PipPipPip
  • Non-se-nse

  • 225 posts
  • Gender:Male
  • Mobile:Black Mango 16Gb class10 Patriot HBH-DS200+HPM77

Posted 26 April 2011 - 09:00 AM

+1 BL
thx for this.
i ask first!
ive ported this patch but it seems that it dont work.can u help me to fix it?
thx in advance
Spoiler

Edited by Boysie, 26 April 2011 - 11:26 AM.
Spoiler added


#3 OFFLINE   blacklizard

blacklizard
  • SE-NSE Awards '11
  • Retired

  • 3,909 posts
  • Gender:Male
  • Location:Malaysia
  • Mobile:W995 R1HA035
  • Twitter:icodewithlizard
  • Tutorials Submitted:1

Posted 26 April 2011 - 09:20 AM

View PostMEHRDAD, on 26 April 2011 - 09:00 AM, said:

+1 BL
thx for this.
i ask first!
ive ported this patch but it seems that it dont work.can u help me to fix it?
thx in advance
What not works?

Did the GUI part works? If the GUI works, seperate  GUI code from SMS sending code. Then derive the algorithm of the SMS sending code, lebel the code. Then look again what cause the patch to fail, or post the fully commented/algo-ed code here, I'll take a look.
Will port/create patch/elf for money
All support question sent to my email/PM will be ignored

#4 OFFLINE   MEHRDAD

MEHRDAD
  • Members
  • PipPipPip
  • Non-se-nse

  • 225 posts
  • Gender:Male
  • Mobile:Black Mango 16Gb class10 Patriot HBH-DS200+HPM77

Posted 26 April 2011 - 09:39 AM

View Postblacklizard, on 26 April 2011 - 09:20 AM, said:

What not works?
it doest show flash sms and silent sms when sending a sms
plz see:
Attached File  scr16-06-15.png   11.03K   95 downloads Attached File  scr16-06-18.png   11.49K   89 downloads Attached File  scr16-06-20.png   10.89K   60 downloads

Quote

Did the GUI part works? If the GUI works, seperate GUI code from SMS sending code. Then derive the algorithm of the SMS sending code, lebel the code. Then look again what cause the patch to fail, or post the fully commented/algo-ed code here, I'll take a look.
didnt get this! :p
what u need that i post?

btw,if possible make a patch that changes color of showing timer of phone(settings->calls->time and cost->call timer)

Edited by MEHRDAD, 26 April 2011 - 09:45 AM.


#5 OFFLINE   blacklizard

blacklizard
  • SE-NSE Awards '11
  • Retired

  • 3,909 posts
  • Gender:Male
  • Location:Malaysia
  • Mobile:W995 R1HA035
  • Twitter:icodewithlizard
  • Tutorials Submitted:1

Posted 26 April 2011 - 10:10 AM

If the GUI doesn't show up, that mean, your hook is wrong

View PostMEHRDAD, on 26 April 2011 - 09:39 AM, said:

btw,if possible make a patch that changes color of showing timer of phone(settings->calls->time and cost->call timer)

Can be done
Will port/create patch/elf for money
All support question sent to my email/PM will be ignored

#6 OFFLINE   godlesplay

godlesplay
  • VIP
  • SVP

  • 1,268 posts
  • Gender:Male
  • Mobile:Spica

Posted 26 April 2011 - 10:17 AM

I'm porting this patch too but for w890 and I have same problem like MEHRAD

Spoiler

Edited by Boysie, 26 April 2011 - 11:26 AM.
Spoiler added


#7 OFFLINE   MEHRDAD

MEHRDAD
  • Members
  • PipPipPip
  • Non-se-nse

  • 225 posts
  • Gender:Male
  • Mobile:Black Mango 16Gb class10 Patriot HBH-DS200+HPM77

Posted 26 April 2011 - 11:24 AM

no BlackLizard
ive used lib.asm,which JB22 has ported and i check all other hooks and they are correct,so font think it coz of hooks
and thx for that patch

Edited by MEHRDAD, 27 April 2011 - 04:24 PM.


#8 OFFLINE   Boysie

Boysie
  • Super Moderators
  • Mrs Miggins

  • 37,214 posts
  • Gender:Can't decide
  • Location:Between a rock and a hard place
  • Mobile:X10 - K800
  • Tutorials Submitted:One or two

Posted 26 April 2011 - 11:34 AM

Can you use spoilers for large asm code please :good:

Personal messages that have no need to be private will not be answered. We have a forum for asking questions so please use it.


#9 OFFLINE   MEHRDAD

MEHRDAD
  • Members
  • PipPipPip
  • Non-se-nse

  • 225 posts
  • Gender:Male
  • Mobile:Black Mango 16Gb class10 Patriot HBH-DS200+HPM77

Posted 26 April 2011 - 11:37 AM

ok boysie,and thx for doing it ;)

#10 OFFLINE   blacklizard

blacklizard
  • SE-NSE Awards '11
  • Retired

  • 3,909 posts
  • Gender:Male
  • Location:Malaysia
  • Mobile:W995 R1HA035
  • Twitter:icodewithlizard
  • Tutorials Submitted:1

Posted 27 April 2011 - 05:40 PM

But im very sure it because of the hook or the GUI, i haven't got time to look at the asm.

To whom wan't to create patch that choose color, follow example from my patch. Attached the source.

Attached Files


Will port/create patch/elf for money
All support question sent to my email/PM will be ignored

#11 OFFLINE   Rizalmx

Rizalmx
  • New Members
  • PipPipPip
  • Non-se-nse

  • 209 posts
  • Gender:Male
  • Location:Batik City, Indonesia
  • Mobile:SonyEricsson J105 Naite™

Posted 28 April 2011 - 09:12 AM

BL..Can you help me to translate Backlight patch..
I have little problem in The label..
here the asm
Everything work except 'ss' word..
Posted Image
It should write 'ok', ;)

#12 OFFLINE   blacklizard

blacklizard
  • SE-NSE Awards '11
  • Retired

  • 3,909 posts
  • Gender:Male
  • Location:Malaysia
  • Mobile:W995 R1HA035
  • Twitter:icodewithlizard
  • Tutorials Submitted:1

Posted 28 April 2011 - 09:20 AM

View PostRizalmx, on 28 April 2011 - 09:12 AM, said:

BL..Can you help me to translate Backlight patch..
I have little problem in The label..
here the asm
Everything work except 'ss' word..
Posted Image
It should write 'ok', ;)

Port from IAR source.
Will port/create patch/elf for money
All support question sent to my email/PM will be ignored

#13 OFFLINE   MEHRDAD

MEHRDAD
  • Members
  • PipPipPip
  • Non-se-nse

  • 225 posts
  • Gender:Male
  • Mobile:Black Mango 16Gb class10 Patriot HBH-DS200+HPM77

Posted 01 May 2011 - 07:08 AM

so then why elfs works good?
---
can u say some explaination for that color patch ?
thx

Edited by MEHRDAD, 01 May 2011 - 07:26 AM.


#14 OFFLINE   diezil

diezil
  • VIP
  • SVP

  • 1,647 posts
  • Gender:Male
  • Location:Newcastle Upon Tyne, England
  • Mobile:w800i, w810i, w580, w850, k770, k800, k850i, c902, xperia u
  • Tutorials Submitted:4

Posted 01 May 2011 - 07:50 AM

View PostRizalmx, on 28 April 2011 - 09:12 AM, said:

It should write 'ok', ;)
If you change softkey action to "ACTION_OK" (see elfpack dyn_const source for const for your phone) it should set "ok" text automatically and you will be able to remove ref to GUIObject_SetText(), and patch body will be smaller =)

some code...
LDR r2 = proc
LDR r1 = action (this should point to dword with a const, set it to "ACTION_OK")
??? r0 = gui*
BL some_label ;GUIObject_SoftKeys_SetAction( r0, r1, r2);
some code...

remove SetText function

some code...

some_label:	
LDR	R3, func_addr
BX	R3

func_addr:	dw GUIObject_SoftKeys_SetAction+1


then remove related set text function, and all should be good, currently it will be using either "ACTION_SELECT" or "ACTION_SELECT1" =)

Edited by diezil, 01 May 2011 - 07:53 AM.

System sends: 0100100101100100011001010110111001110100011010010110011001111001
User responds: 011001000110100101100101011110100110100101101100

diezil: born 9-12-1998 laid to rest 2-8-2012 you'll always be loved, never forgotten.

#15 OFFLINE   blacklizard

blacklizard
  • SE-NSE Awards '11
  • Retired

  • 3,909 posts
  • Gender:Male
  • Location:Malaysia
  • Mobile:W995 R1HA035
  • Twitter:icodewithlizard
  • Tutorials Submitted:1

Posted 01 May 2011 - 08:44 AM

View PostMEHRDAD, on 01 May 2011 - 07:08 AM, said:

so then why elfs works good?
---
can u say some explaination for that color patch ?
thx
what you mean?

View Postdiezil, on 01 May 2011 - 07:50 AM, said:

If you change softkey action to "ACTION_OK" (see elfpack dyn_const source for const for your phone) it should set "ok" text automatically and you will be able to remove ref to GUIObject_SetText(), and patch body will be smaller =)

some code...
LDR r2 = proc
LDR r1 = action (this should point to dword with a const, set it to "ACTION_OK")
??? r0 = gui*
BL some_label ;GUIObject_SoftKeys_SetAction( r0, r1, r2);
some code...

remove SetText function

some code...

some_label:	
LDR	R3, func_addr
BX	R3

func_addr:	dw GUIObject_SoftKeys_SetAction+1


then remove related set text function, and all should be good, currently it will be using either "ACTION_SELECT" or "ACTION_SELECT1" =)


ldr	r2, = PROC
ldr	r1, = 0xFBF
ldr	r0, [r?,#0x??]
;r? = pointer to book
;0x?? = where GUI located in the book
ldr r3, =GUIObject_SoftKeys_SetAction
blx r3

PROC:
push{LR}
;r0 = book
;r1 = GUI*
;some code
pop{PC} 

Edited by blacklizard, 01 May 2011 - 08:58 AM.

Will port/create patch/elf for money
All support question sent to my email/PM will be ignored

#16 OFFLINE   diezil

diezil
  • VIP
  • SVP

  • 1,647 posts
  • Gender:Male
  • Location:Newcastle Upon Tyne, England
  • Mobile:w800i, w810i, w580, w850, k770, k800, k850i, c902, xperia u
  • Tutorials Submitted:4

Posted 01 May 2011 - 09:08 AM

@bl

gui (r0)/SetAction function is different in his asm, he only needs to change dword and remove SetText ref's :good:

(its a port, not rewrite, you will confuse him lol)
System sends: 0100100101100100011001010110111001110100011010010110011001111001
User responds: 011001000110100101100101011110100110100101101100

diezil: born 9-12-1998 laid to rest 2-8-2012 you'll always be loved, never forgotten.

#17 OFFLINE   blacklizard

blacklizard
  • SE-NSE Awards '11
  • Retired

  • 3,909 posts
  • Gender:Male
  • Location:Malaysia
  • Mobile:W995 R1HA035
  • Twitter:icodewithlizard
  • Tutorials Submitted:1

Posted 01 May 2011 - 09:09 AM

Sorry, my bad :doh:
Will port/create patch/elf for money
All support question sent to my email/PM will be ignored

#18 OFFLINE   MEHRDAD

MEHRDAD
  • Members
  • PipPipPip
  • Non-se-nse

  • 225 posts
  • Gender:Male
  • Mobile:Black Mango 16Gb class10 Patriot HBH-DS200+HPM77

Posted 01 May 2011 - 09:43 AM

for post #10
i need more info,thx

#19 OFFLINE   Rizalmx

Rizalmx
  • New Members
  • PipPipPip
  • Non-se-nse

  • 209 posts
  • Gender:Male
  • Location:Batik City, Indonesia
  • Mobile:SonyEricsson J105 Naite™

Posted 02 May 2011 - 07:59 AM

@diezil+BL..sorry,I dont undestand what are you talking about ;)
I dont know about assembly and c++ language...  :newhere:
Oke I will try port it from IAR source... :)

#20 OFFLINE   tRaDuZ

tRaDuZ
  • Developer
  • Gone crazy, be back soon

  • 1,471 posts
  • Gender:Male
  • Location:Brazil
  • Mobile:White&Red Kitty Kate

Posted 09 May 2011 - 08:38 PM

Found a good paper with basic assembler: http://www.keil.com/...sm_cihcjfjg.htm

Posted Image






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users