PDA

View Full Version : Diamond FileAttribute.exe


xvx45
27th May 2008, 02:33 PM
Change some ROM file attribute on Hard-reset

Here a file that I've found in the Diamond ROM.
AutoAttribute remove read-only file attribute after Hard reset to let users delete somes unecessary files cooked in ROM like image template or anything you want.
Caution : don't change attribute to all file, user can make catastrofic experiences.

For use it, just take the package in your OEM folder and add in your Config.txt :
EXEC:\Windows\AutoAttribute.exe \Windows\MASD_RemoveReadOnly.txt
Now just take a look in MASD_RemoveReadOnly.txt, you'll understand how it work :
example

\My Documents\UAContents\Templates\MMSTemplates????.in f
Here each "?" is a char


\My Documents\UAContents\Templates\*.*
* is for varchar here it's any files of any extension how are in "My Documents\UAContents\Templates\"


\Program Files\OrangePhoto\*
Here all files and folders how are in "Program Files\OrangePhoto"



good cooking ;)

l3v5y
27th May 2008, 03:08 PM
Change some ROM file attribute on Hard-reset

Here a file that I've found in the Diamond ROM.
AutoAttribute remove read-only file attribute after Hard reset to let users delete somes unecessary files cooked in ROM like image template or anything you want.
Caution : don't change attribute to all file, user can make catastrofic experiences.

For use it, just take the package in your OEM folder and add in your Config.txt :
EXEC:\Windows\AutoAttribute.exe \Windows\MASD_RemoveReadOnly.txtNow just take a look in MASD_RemoveReadOnly.txt, you'll understand how it work :
example

\My Documents\UAContents\Templates\MMSTemplates????.in f
Here each "?" is a char


\My Documents\UAContents\Templates\*.*
* is for varchar here it's any files of any extension how are in "My Documents\UAContents\Templates\"


\Program Files\OrangePhoto\*
Here all files and folders how are in "Program Files\OrangePhoto"

good cooking ;)
Good find! I'm currently working on ripping some new apps as well!

xvx45
27th May 2008, 03:10 PM
Good find! I'm currently working on ripping some new apps as well!
If you found working please share with coockers ;)

Noonski
6th July 2008, 01:34 PM
Nope tried it.

If i run it in Autorun as the first EXEC: then Autorun doesn't parse the rest of the Autorun commands.

Now set it to last command in Autorun but it didn't change the atributes i could not delete the files using a mortscript then set in SDAutorun and Autorun and also Manually.

I'll recheck.

Also this file looks familiar to another similar named file i found in an ELF extrom once.

Nope running this in Autorun kills all Commands that come after it also in UC SDAutorun.

Anyone got this working?


The File was
ChgScutAttribute
http://forum.xda-developers.com/attachment.php?attachmentid=52827&d=1191352085
Change Shortcut Attributes

Supposedly should change Shortcut Atributes (duh)
But never found how and which Shortcuts?!
I just looked at it in Reshacker and it appears to have some dialog that indicate this.
Or does it really only change the startmenu shortcuts?

But this is out of my Cupcake reach Maybe someone else can find out how it works..


Also in the Diamond OEM eacht file mentioned in the MASD_RemoveReadOnly Is also accompanied by some Provisioning file operations.


<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\SOFTWARE\HTC\AutoShortcut">
<parm name="|%csidl_mypictures%\album sample_*.jpg" value="RemoveReadOnly" datatype="string" translation="install"/>
<parm name="|%csidl_mypictures%\album sample_04.3gp" value="RemoveReadOnly" datatype="string" translation="install"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>

Frick it i simply use a mortscript to change the atributes and then deletes itself at startup.
Same effect with Clean up.