How to change the read-only property ? - General Questions and Answers

I forgot how to change the read-only property for the file shellres.dll.0409.mui. I'm using ROM Extractor and Total Commander but the property remains as read-only !

If i'm not mistaken you can't change it from read only. it's a protected file. you can replace it tho.

to edit that file you will need to copy it off your ppc and then unsign, edit, and resign.

Related

How can I change hidden and system file attribute?

Hi guys!
I see that there are a lot of system file with hide and system attribute so I can't modify them... (i.e. the startup sound file)
Is there a way to change its attributes?
ahuh!
just replace that startup with another file with the same name or rename it to name of sound.wav.bak and replace it with a renamed name of sound.txt to name of sound.wav and u can use resco explorer smartexplorer of total commander to change a files attributes and if you cant see system files uncheck hide operating system files on pc folder option

Question related to Android file permission

I used ES File Manager to edit a .ini file in data/data/org.gaeproxy (a proxy app) and then changed its permission from rw-rw-rw- to r--r--r-- after saving it.
After I opened the app, I checked the property of the .ini file using ES File Manager and was shocked to find the Last Modified field was updated to the right moment when I opened the app. And the editing I made to the file was gone. It seemed to me that the app had overrided the read-only permission of the file and edited its content.
But then I supprisingly found that I was able to modify the same file and save the change while it's still read-only. How is this even possible?
Both ES File Manager and the .ini file have been granted superuser permissions. Is this a possible cause? I've found this annoying problem across different devices and different ROMs. So I think there might be something I need to know about the file permission system in Android.
How can I make this .ini file truly read-only even to the app using it?

[Q] Simlink entire folder and giving permisions?

Hi
I want to include many applications in a rom I've created. The problem is that many of these apps wont work unless I extract the *.so files from inside the lib directory of the apk and copy those libraries to my rom (/system/lib) and give correct permissions (0-0-644).
Because these lib files are too big and taking large space from the system partition, I want to place them all in /data/data/lib directory and simlink this directory to /system/lib.
Can someone please provide the correct lines of code for the updeter-script to do that? How do I simlink entire directory? And how do I give correct permissions? Do I give permissions to the original directory (/data/data/lib) before simlinking, or do I give permissions to the virtual linked directory (/system/lib) after simlinking?
Thanks

How to create custom build.prop file to custom directory in aosp?

Hi all,
I am working on aosp and have two questions about build.prop.
1) Normally, build.prop file is located to /system directory. I'd like to create custom build.prop file and save it to different directory. For example, I have tvconfig directory and want to create it in here. Could I read properties from /tvconfing/build.prop via SystemProperties?
2) Could I use different name for prop file except build.prop for example mycustom.prop
thanks in advance
batuhanavl said:
Hi all,
I am working on aosp and have two questions about build.prop.
1) Normally, build.prop file is located to /system directory. I'd like to create custom build.prop file and save it to different directory. For example, I have tvconfig directory and want to create it in here. Could I read properties from /tvconfing/build.prop via SystemProperties?
2) Could I use different name for prop file except build.prop for example mycustom.prop
thanks in advance
Click to expand...
Click to collapse
Not sure if it would work, but one idea to try is creating a symlink from the file you want, to the build.prop file. If it works, you could also rename the file. Just an idea? I use this technique for the hosts file myself. see the code in https://forum.xda-developers.com/an...osts-diamondjohn-host-builder-script-t3872728
The next choice would be a magisk module.
I need help with a Custom recovery for Fero Royale LTE
MICHAEL(SMHOS.ORG) said:
You can't really do that but you can make custom Changes or specs to the build.prop,like improve Speed or So, increased or reduced screen size fake android version etc
Click to expand...
Click to collapse
I understand that I can't move build.prop file to different directory except /system directory. Well! Can I do that create mycustom.prop file in different directory and read any property from it via SystemProperties?

Empty file in /vendor or /system after creating or modifying file

Hi,
I have a rooted Galaxy S21 with Magisk installed. When creating or modifying a file in the /vendor or /system folders, (after changing the permission from read-only to read-write and afterwards back) the file gets empty (size 0) and there is no way of reversing the contents of a modified file, that got empty after modifying it. Does anyone know why? I just want to know the reason, why the files get empty. I did not find anywhere in the internet the reason behind it. Does it have something to do with dm-verity?
Btw: I know already that you can create a Magisk Module to fix this
Best regards

Categories

Resources