Page 1 of 2
[App] Movie Delete Patch
Posted: Tue Aug 19, 2014 10:37 pm
by sectroyer
Something for my E testers

I have been working on it for a while. For me it works like a charm. It only has one problem... The deleted files do not disappear

Besides that works as expected. Sample usage:
Code: Select all
/mtd_rwcommon/samyGOso -p `pidof exeDSP` -r -l $libPATH/libAddDelToMenu.so -d
Re: [App] Movie Delete Patch
Posted: Tue Aug 19, 2014 11:13 pm
by zoelechat
I feel like E tester
Does not work here, when I press tools, screen dims as if Tools menu was going to appear, but nothing appears and nothing else responds, no way to exit except power off on remote. However it doesn't look like a "traditional" exeDSP crash because TV is powered off immediately without delay and loud crackling in speakers exeDSP crash usually cause (like poweroff by micom)
Code: Select all
./samyGOso -p `pidof exeDSP` -r -l /mnt/opt/privateer/usr/so/libAddDelToMenu.so -d
samyGOso v1.2.2 (c) bugficks 2013
Injecting '/mnt/opt/privateer/usr/so/libAddDelToMenu.so' resident: '1'
mprotect: 0x42379c80
dlopen: 0x428f8b28
dlclose: 0x428f8ccc
dlsymaddr: 0x428f8d1c
pc=428234dc lr=428234c8 sp=bec23ef8 fp=72bc50c
r0=fffffe00 r1=80
r2=1 r3=0
stack: 0xbec07000-0xbec28000 length = 135168
executing injection code at 0xbec23db4
library injection completed!
Succeeded.
Re: [App] Movie Delete Patch
Posted: Wed Aug 20, 2014 12:04 am
by sectroyer
zoelechat wrote:I feel like E tester
Does not work here, when I press tools, screen dims as if Tools menu was going to appear, but nothing appears and nothing else responds, no way to exit except power off on remote. However it doesn't look like a "traditional" exeDSP crash because TV is powered off immediately without delay and loud crackling in speakers exeDSP crash usually cause (like power off by micom)
./samyGOso -p `pidof exeDSP` -r -l /mnt/opt/privateer/usr/so/libAddDelToMenu.so -d
samyGOso v1.2.2 (c) bugficks 2013
Injecting '/mnt/opt/privateer/usr/so/libAddDelToMenu.so' resident: '1'
mprotect: 0x42379c80
dlopen: 0x428f8b28
dlclose: 0x428f8ccc
dlsymaddr: 0x428f8d1c
pc=428234dc lr=428234c8 sp=bec23ef8 fp=72bc50c
r0=fffffe00 r1=80
r2=1 r3=0
stack: 0xbec07000-0xbec28000 length = 135168
executing injection code at 0xbec23db4
library injection completed!
Succeeded.
Ehh this log doesn't help much. Try this:

Re: [App] Movie Delete Patch
Posted: Wed Aug 20, 2014 12:09 am
by zoelechat
Code: Select all
Tools Menu patch v0.3.8
Found good place for first patch @0x22b0e6c.
Patching Tools Menu (LDR_R0_R4_0x304) @0x22b0e74.
Address of fnAddListItem @0x22e8fd4.
Address of add_delete_to_tools_menu @0x69d1cb40.
Return address of add_delete_to_tools_menu @0x22b0e7c.
Found good place for second patch @0x240c968.
Address of fnUpdateItems @0x240e728.
Address of refresh_current_directory @0x69d1cb98.
Return address of refresh_current_directory 0x240c970.
Re: [App] Movie Delete Patch
Posted: Wed Aug 20, 2014 12:13 am
by sectroyer
zoelechat wrote:Tools Menu patch v0.3.8
Found good place for first patch @0x22b0e6c.
Patching Tools Menu (LDR_R0_R4_0x304) @0x22b0e74.
Address of fnAddListItem @0x22e8fd4.
Address of add_delete_to_tools_menu @0x69d1cb40.
Return address of add_delete_to_tools_menu @0x22b0e7c.
Found good place for second patch @0x240c968.
Address of fnUpdateItems @0x240e728.
Address of refresh_current_directory @0x69d1cb98.
Return address of refresh_current_directory 0x240c970.
Just as I suspected there was some debug code inside, I probably uploaded wrong version

Changed file in the first post, reboot TV, test and post log

Re: [App] Movie Delete Patch
Posted: Wed Aug 20, 2014 12:20 am
by zoelechat
Ok, just to say quickly it now works as if it was originally intended in TV
Will do more advanced feedback. At least it's possible to make deleted file disappear from list by simply launching it

Re: [App] Movie Delete Patch
Posted: Wed Aug 20, 2014 12:22 am
by sectroyer
zoelechat wrote:Ok, just to say quickly it now works as if it was originally intended in TV
Will do more advanced feedback. At least it's possible to make deleted file disappear from list by simply launching it

Good to hear that

Launching any other file also refreshes the file list. Anyway I tried fixing this bug but finally I got used to it

Re: [App] Movie Delete Patch
Posted: Wed Aug 20, 2014 12:25 am
by zoelechat
Ok, so nothing else to say except that it even works on samba shares

Deleted file is also no longer in list on return to allshare after exit or browsing another device (in fact the same behavior as if file is silently deleted from FTP/telnet...)
Re: [App] Movie Delete Patch
Posted: Wed Aug 20, 2014 2:10 pm
by greenhorn
another great patch

. 10x, it works pretty good!
Re: [App] Movie Delete Patch
Posted: Mon Oct 20, 2014 5:13 pm
by zoelechat
Autostart:
- Extract libAddDelToMenu.so from first post archive to /mnt/opt/privateer/usr/libso (folder may not exist, create it if needed)
- Extract samyGOso from this post archive to /mnt/opt/privateer/usr/bin if not already present
- Telnet to TV and set file permissions if it wasn't there:
Code: Select all
chmod 755 /mnt/opt/privateer/usr/bin/samyGOso
- Extract 99_93_AddDelToMenu.init from this post archive to /mnt/etc/init.d
- Set permissions:
Code: Select all
chmod 755 /mnt/etc/init.d/99_93_AddDelToMenu.init
- Reboot TV