[Completed] How do I protect some specific files in the root directory from being deleted? - XDA Assist

I have some files in /data/data/com.something that are again and again deleted or rather overwritten by a program every time I run it. I'd really love a way to delete protect those files of mine.
Points:
I know that the files are overwritten because they are read only files so the only logical explanation is that they are first deleted and then replaced with a new file.
The files should be prevented from being deleted or edited but I also want that the data still be executable and viewable.
The files are in .XML format.
The name of the files and their current location should not change.
Last but not the least, this change should be reversible.
Can any human being help me achieve this or is this something that only the almighty can do?

Evan Jongske Sangma said:
I have some files in /data/data/com.something that are again and again deleted or rather overwritten by a program every time I run it. I'd really love a way to delete protect those files of mine.
Points:
I know that the files are overwritten because they are read only files so the only logical explanation is that they are first deleted and then replaced with a new file.
The files should be prevented from being deleted or edited but I also want that the data still be executable and viewable.
The files are in .XML format.
The name of the files and their current location should not change.
Last but not the least, this change should be reversible.
Can any human being help me achieve this or is this something that only the almighty can do?
Click to expand...
Click to collapse
Greetings and welcome to assist. If the files are in data then they can be overwritten if they are in system/root then they could only be ovewritten by a root application.
Hope this helps
Good Luck
Sawdoctor

Related

How to... copy/move files stored in a Smartphone ROM?

I can't copy or move files stored in device ROM.
I've tried with Resco Explorer and Total Commander, but without success.
I didn't understand if there's a registry hack that allows these operations.
I've notice (or so it seemed to me) that I was able to substitute/copy/move some files having the ROM attribute, but many others not (eg: I've tried to copy the nleddrvr_sec.dll, obviously without success, otherwise I'd post this here!).
Surfing in many forums, I read many others asking for the same thing, unfortunately I haven't seen answers to their question about this.
Hope someone explains to me how to do or why is impossible to do.
Mersì bo q.
Gubbài.
You can not copy / move / delete files in ROM. Thats the point of "Read Only Memory"
These files are not stored as individual files but are in fact packed in a special way as part of the device image which can only be written (flashed) by special tools.
If you want to extract OS files you need to use a ROM dump tool.
I suggest you look in the WiKi.
What you can do is overwrite one or more "ROM files". What will happen in reality is that a copy of the file with the same name will be placed in storage memory and the system will go there. If you hard reset your device or rename the file it will go back to the original file.
levenum said:
You can not copy / move / delete files in ROM. Thats the point of "Read Only Memory"
These files are not stored as individual files but are in fact packed in a special way as part of the device image which can only be written (flashed) by special tools.
If you want to extract OS files you need to use a ROM dump tool.
I suggest you look in the WiKi.
What you can do is overwrite one or more "ROM files". What will happen in reality is that a copy of the file with the same name will be placed in storage memory and the system will go there. If you hard reset your device or rename the file it will go back to the original file.
Click to expand...
Click to collapse
As you said here and here (Changing Files in Windows Dir )
it's impossible to move/copy ROM files, just overwrite 'em.
Doing so the system looking for these overwritten copies.
So now the question are:
- there's a registry entry that points to this substitute ROM files?
- to modify an existent file resident in ROM I MUST dump my ROM or another one same or similar?
Mersì bo q, anyway.
Gubbài.

Corrupt File Names

Guys - I am new to this, so please be patient!
I have a problem with a load of corrupt file names in my IE temporary files folder. I have no way to delete them - going through PIE's 'Memory' option does not work, Total Commander cannot delete them, I even tried with a DOS command line utility.
The problem seems to be that the OS is unable to delete the files because the files have invalid characters in their name. I have tried moving / renaming them, but again it dont work!
The files also have peculiar dates (eg 01/03/1601), and appaerently huge sizes (3GB!).
Is there any other way I can delete them?
Any suggestions to fix this would be much appreciated.
Thanks

Lost contacts

Hi
I made the silly mistake of not backing up my contacts before updating ROM ( i know... very stupid)
I copied the entire device to computer prior to updating but for some reason, it didnt copy the windows folder from the PDA.
I'm guessing the contacts would have been stored somewhere in the windows folder. I was running WM6.
Have i lost the contacts...? or are they stored in a different location which would have been backed up ?
Thanks
what exactly did you copy?
the following directories and files
Application data
ConnMgr (empty)
Documents and Settings (empty)
Music
My Documents
Program Files
Pim.vol
WMPinfo
Thanks
as far as i know, if i am not wrong, the pim.vol is the one that contain your pim data especially contacts,.
but, you cant just changed it, or replace it, if i am not wrong you need to use mortscript to do that with force deleting the original one and replacing with the new one,.
i will try to look into it, just keep all your data that you have backed up,.
Thank you !
I really appreciate it.
Not yet solved
Note to admin
this topic has not yet been resolved. I simply said thank you to -G- for saying he will look into it.
Thanks
tag removed
yup... pim.vol can't just be copied inside the root to be read.. it is somehow attached to your system.
BUT, if i'm not mistaken, you can use PIM Backup to load the info from the file.
try it.
http://forum.xda-developers.com/showthread.php?t=299705
btw.. i think SPB Backup can read pim.vol as well.
heyy
nope didnt work. i tried both PIM Backup and SPB Backup but neither of them accept the pim.vol as a valid file to restore from.
Actually, you should be able to just do a copy and paste of this file wherever you got it from. Try to use File Explorer (might not work). The option that works best for me with System locked files is via ActiveSync. If it doesn't work, try soft resetting and replace the file right away before the system gets a chance to access the file. Give it a shot, it might just solve your problem.
Alternatively, read this. It pretty much says the same thing that has been said so far...
http://frommypocket.pocketprimer.com/2007/09/29/backing-up-and-deleting-pim-data-wm50-only.aspx
Good luck to you
strange. i'll get back to you on this..
Im confused.
so will it work to just replace the pim file like egzthunder1 suggested ? Or is that going to mess up contacts completely ?
Go there.. use the emulator.. and get your contacts back.
http://forum.xda-developers.com/showthread.php?t=309351
also, please DO try to just put the pim.vol file in your root dir of your device to see if it's movable.. so other people could use that info.

[Q] How can I change file path inside of a exe file?

Hi.
First of all, let me say that half of time took me to look for the right forum in XDA to post this message, and I'm still not sure I'm in the right place..
I think my Q is about modifying my OS, and this is why I post it here.
If the admin think there's better forum to this issue - I'd love to hear it..
Now, to business:
I have a GPS device, brand is X-GPS Navigation, Model GPS-S450B, that I will like to play with.
The OS is Windows® Embedded CE 6.0.
I just found out that at my GPS device, there is a file that resposible to a certain BMP that shown up at the shutdown process.
The filename is "PowerKey.exe", and it reffer to a file named "Notice_en.bmp".
I want to change that Notice-en.bmp file, to show that message in another langueage. I tried to overwrite the file with a similar bmp file, no luck. The file just re-created.
I've tried to edit the PowerKey.exe with a hex editor, and write a new path, to a file in NandFlash directory instead of the Notice_en that lays in Windows folder.
That also didn't go so well. "PowerKey has been preform illegal action and have to be shout down" or something like that, was the message. I could only put the device to sleep, until I recovered the old PowerKey file.
Any solution how to change the BMP file that resposible for the shutdown message?
(I guess the best idea is to write a registry entry to overwrite the BMP file in \Windows directory with the one in the \NandFlash directory every boot, only problem - I donno how to do it. )
Anyone?
There's no solution to my problem?
Recompile the exe.
Thank you.
Any chance to general guidlines in how is that done?

It is possible to avoid folders (and files) auto creation? Unexpectedly, YES.

Dear friends,
for months I was struggling with the auto-created folders named LazyList and LOST.DIR
These are folders that are created automatically by the file system, but sometimes I have found, especially in the LOST.DIR folder, duplicated and previously deleted files, also big, very big ones.
Why a so great waste of storage?
So I wanted to get rid of that!
And after some "Guru meditations" I have found the trick to achieve it.
It is a very simple trick, that's related to the file system itself.
Since it is a rule that where there is a folder there cannot be a file with the same name, simply creating a file with a specified name will make it impossible, even to the system, to create a folder with the same name, and vice-versa.
So, if we want to get rid of the infamous folder LOST.DIR, simply delete it and create, a, even empty, file with the same name!
The file system will be forced to not create that folder, anymore!
Freedom to manage storage.
Man vs Filesystem: 1-0
Hope this will be useful to everyone that takes care of their storage
Uranya said:
Since it is a rule that where there is a folder there cannot be a file with the same name, simply creating a file with a specified name will make it impossible, even to the system, to create a folder with the same name, and vice-versa.
So, if we want to get rid of the infamous folder LOST.DIR, simply delete it and create, a, even empty, file with the same name!
The file system will be forced to not create that folder, anymore!
Click to expand...
Click to collapse
I must say I didn't believe it, so I tried to create a lost.dir folder and lost.dir file in the same directory on my computer.
And you were right!
Thanks for sharing!

Categories

Resources