Page 1 of 1
patch exedsp workshop
Posted: Tue Aug 27, 2013 7:43 am
by ocean
As I'm getting a little irritated by the "new usb device connected" message with my nfs_mount_script (
viewtopic.php?f=52&p=44745#p44745)
I'm looking for a solution to patch exedsp to ignore new devices so that this message won't appear anymore.
I hope one of our crew is able to show me and all other users who are interested in this project, HOW-TO-PATCH exedsp.
Kind regards
ocean
Re: patch exedsp workshop
Posted: Thu Aug 29, 2013 1:14 pm
by juusso
Okey, here we go:
Patch for D series arm (T-GAS*DEUC):
Code: Select all
{ "_ZN7CUSBApp8OnActiveEl", 0x00000000, 0x00000080, 0x00000100, 0xEB000922, 0xE1A00000, NULL }, //New device POP UP OFF
Patch prohibits popup message "new device connected" if any USB device is connected (checked with USB and wifi dongle).
Code: Select all
./memjack -p `pidof exeDSP` -d
pc=41cdb670 lr=41cdb65c sp=bef9c088 fp=59a0024
r0=fffffe00 r1=80
r2=1 r3=0
symbol: _ZN7CUSBApp8OnActiveEl -> @0x0229e5dc
patching @229e5dc + 84: eb000922 -> e1a00000
library injection completed!
Try to check same on E series.
Thanks to rvs2 
Re: patch exedsp workshop
Posted: Thu Aug 29, 2013 1:27 pm
by ocean
Can't find "_ZN7CUSBApp8OnActiveEl" in E-Series exedsp.
Maybe I'm on the right trip with
Code: Select all
.text:01588030 ; CUSBAppListWrapper::HidePopup(void)
.text:01588030 EXPORT _ZN18CUSBAppListWrapper9HidePopupEv
.text:01588030 _ZN18CUSBAppListWrapper9HidePopupEv ; CODE XREF: .text:00F704A8p
.text:01588030 MOV R3, 0x72BB0E4
.text:01588038 STMFD SP!, {R11,LR}
.text:0158803C LDR R0, [R3]
.text:01588040 ADD R11, SP, #4
.text:01588044 BL _ZN12CTaskManager17GetWrapperManagerEv ; CTaskManager::GetWrapperManager(void)
.text:01588048 MOV R1, #0x32
.text:0158804C BL _ZN15CWrapperManager18GetWrapperInstanceE15DTV_APPLICATION ; CWrapperManager::GetWrapperInstance(DTV_APPLICATION)
.text:01588050 SUBS R3, R0, #0
.text:01588054 LDMEQFD SP!, {R11,PC}
.text:01588058 LDR R3, [R3]
.text:0158805C LDR R3, [R3,#0x3C]
.text:01588060 BLX R3
.text:01588064 LDMFD SP!, {R11,PC}
.text:01588068 ; ---------------------------------------------------------------------------
But I don't know how to build a patch for exedsp...

Re: patch exedsp workshop
Posted: Thu Aug 29, 2013 4:10 pm
by rvs2
hi!
Maybe I'm on the right trip with
I think no, look for class
USBPopupWnd
Re: patch exedsp workshop
Posted: Thu Aug 29, 2013 4:50 pm
by juusso
Some functions to look closer at could be:
Code: Select all
_ZN12CUSBPopupWnd4ShowEv
_ZN18CUSBAppListWrapper14SubscribeEventEi
_ZN18CUSBAppListWrapper11IsUSBDeviceEi
_ZN18CUSBAppListWrapper15IsDeviceConnectEi
Re: patch exedsp workshop
Posted: Fri Aug 30, 2013 6:56 am
by juusso
For you personally, check this:
viewtopic.php?f=40&t=6395#p44930
Re: patch exedsp workshop
Posted: Fri Aug 30, 2013 7:21 am
by ocean
Sounds quite good, I'll check later on