Hi everyone
I need to change the permissions of a file.
unfortunately it was not possible I tried with various applications and I also tried in recovery twrp.
is there any way to make this change to the file?View attachment 4980703View attachment 4980705
Hello
the phone's file system does not allow within the SD card to give permissions to files or folder.
moving the file inside the root of the system I managed to give the permissions they needed
Related
Hey fellas,
I need to copy a file into folder /data/preload/ .
I cannot find this folder using the root explorer. Where is it?
I know it exists (or should exist) since system gives me an error message while applying OTA updates saying that a file is missing in that folder.
I have got the file now and want to put it back.
my phone:
HTC One M7,
rooted
stock recovery
s-on
bootloader unlocked/tampered
geek654 said:
Hey fellas,
I need to copy a file into folder /data/preload/ .
I cannot find this folder using the root explorer. Where is it?
I know it exists (or should exist) since system gives me an error message while applying OTA updates saying that a file is missing in that folder.
I have got the file now and want to put it back.
my phone:
HTC One M7,
rooted
stock recovery
s-on
bootloader unlocked/tampered
Click to expand...
Click to collapse
Does anyone know?
Thanks
Could it be in the system partition?
How can I access system partition?
In TWRP recovery I see an option named "mount" when I select it only the "data" in ticked.
Should I tick "system" as well, and it will mount the system partition? If so, then i can probably use the file browser of TWRP, find the data/preload folder and copy the missing file back in place. right?
download root browser, there is a free edition from play store as soon as you open it you will see the data folder on the list, its not in system, that's a separate folder.
you will need to copy the preload folder and its contents to that folder and change the permissions of the folder and contents.
you need to be rooted to use it.
Seanie280672 said:
download root browser, there is a free edition from play store as soon as you open it you will see the data folder on the list, its not in system, that's a separate folder.
you will need to copy the preload folder and its contents to that folder and change the permissions of the folder and contents.
you need to be rooted to use it.
Click to expand...
Click to collapse
Thanks Seanie.
So by default that folder does not exist? That's why I couldn't find it then!
I created the folder via root browser. What should be the permission for folder/apk file ?
now the preload folder permissions are rwsrwsrwt and apk file permissions are rw-rw----
does it make sense or should I change permission of filder and file both to 777 or 666 ?
geek654 said:
Thanks Seanie.
So by default that folder does not exist? That's why I couldn't find it then!
I created the folder via root browser. What should be the permission for folder/apk file ?
now the preload folder permissions are rwsrwsrwt and apk file permissions are rw-rw----
does it make sense or should I change permission of filder and file both to 777 or 666 ?
Click to expand...
Click to collapse
It does initially exist, but if you've been flashing custom rom's and recoveries, then when you clear data it gets deleted, set permissions to rw-r-r- for the apk's etc and rwxr-xr-x for the folder
I Downloaded a WinRAR file onto my S5 for my computer. It is in my downloads folder on the internal storage of my S5. I have deleted everything out of the folder itself but cannot delete the folder. It annoys me. When I try to delete it I get this dialog box:
"Error deleting folder" Cannot delete WinRAR 5.21 Final(x86-x64) Pre-Activated 100(weird Chinese symbol) an install: The storage is write protected.
Remove the write protection and try again.
I am not stupid...I've tried everything I could think of and cannot remove the write protection or anything. For some reason I think it may be because of the weird Chinese symbol that is after the "Pre-Activated 100"
I cannot rename it, modify it or anything. It is the only file I am having a problem with. Can anybody help me with my OCD?
Is your phone rooted? If yes, you can either use adb or just a terminal emulator app, and delete the cr.p of that file!
Edit: the command you're looking for:
su
cd /mnt/sdcard
rm -r Download
That will remove the Download folder along with all its content. (this is irreversible)
I wrote a shell script that I saved in the root directory of the sdcard, however, file permissions were 660 and I could not find a way to make it executable. 'chmod +x' did not work, nor could SolidExplorer change permissions. Googling suggested that if I copied it to e.g. /data I could then change permissions, file permissions were indeed 760 after copying but did not stick when copying the file back to the sdcard and reverted to 660.
I can execute the shell script on the sdcard running it as 'sh script' but I'd rather have it executable as is.
Is this not possible?
Thanks.
You can't modify permissions a la Linux style on a non Linux file system.
Either copy it to a Linux partition or format the sd card with a Linux file system.
So the sdcard is not a Linux-style filesystem and I tried copying it to /data which showed the permissions I wanted but were lost when I copied the file back to the sdcard.
Do you have a suggestion how I can do this on my tabs2?
Thank you.
Dear Friends
I've been searching for infos about how to move TWRP folder to pc. My MIUI8 backup spend 5gb
Standard copy method doesnt work because of permission thing . Adb pull sdcard/TWRP in recovery also doesnt work. Permission change required.
How to change forlder permission? Or any idea how to copy the folder?
Thanks in advance.
Man, Just drag the folder on PC.... Use USB 2.0 not 3.0
Philb90 said:
Man, Just drag the folder on PC.... Use USB 2.0 not 3.0
Click to expand...
Click to collapse
that the first thing i did.
doesnt work
no file copied
ginjopowder said:
Dear Friends
I've been searching for infos about how to move TWRP folder to pc. My MIUI8 backup spend 5gb
Standard copy method doesnt work because of permission thing . Adb pull sdcard/TWRP in recovery also doesnt work. Permission change required.
How to change forlder permission? Or any idea how to copy the folder?
Thanks in advance.
Click to expand...
Click to collapse
same thing happening to me , my backup is of 9GB
?? someone help
Go the recovery (TWRP) and then try again to copy the data.
TWRP does mount the storage and you can then use the Windows Explorer to copy the data safely.
Should work.
elot01 said:
Go the recovery (TWRP) and then try again to copy the data.
TWRP does mount the storage and you can then use the Windows Explorer to copy the data safely.
Should work.
Click to expand...
Click to collapse
I did what you told , but my storage space insufficient to copy the backup.
But i have succeded copy the TWRP Back up by accident actually.
What i did , set the twrp folder to chmod 755 and enter then restart phone to recovery again.
TWRP came up and ask wether to keep system as read only or allow system modification.
I set allow , then connect to pc. And it works! Copy drag drop etc work as usual.
However I cannot manually see the TWRP setting for the read/write system... hmm
ginjopowder said:
I did what you told , but my storage space insufficient to copy the backup.
But i have succeded copy the TWRP Back up by accident actually.
What i did , set the twrp folder to chmod 755 and enter then restart phone to recovery again.
TWRP came up and ask wether to keep system as read only or allow system modification.
I set allow , then connect to pc. And it works! Copy drag drop etc work as usual.
However I cannot manually see the TWRP setting for the read/write system... hmm
Click to expand...
Click to collapse
how extactly did you chmod 755??
dkmsn8 said:
how extactly did you chmod 755??
Click to expand...
Click to collapse
it is inside TWRP>advance
and folder setting for /TWRP/Backups
button chmod 755
im wasn't sure this command did change permission or not , but when restart TWRP asked about file system setting.
ginjopowder said:
it is inside TWRP>advance
and folder setting for /TWRP/Backups
button chmod 755
im wasn't sure this command did change permission or not , but when restart TWRP asked about file system setting.
Click to expand...
Click to collapse
I did but twrp didn't asked anything ..
Edit: i can copy files to pc while device is booted into twrp
The custom rom I am using on my device for some reason doesn't have logcat. After a bit of digging up in the root folder, I found out that it was missing logd file which should be present under /system/bin and is necessary for logcat to work. Already tried to copy it from the official rom of my device (I extracted it from system.img) but pasting it manually (tried both a root explorer and adb) in /system/bin won't do anything as any changes made to /system/bin get reverted back automtically after reboot.
So I thought of a method about hooking Runtime.loadLibrary with xposed and redirecting it to logd on my internal storage when it's requested. Isn't that possible ?
Otherwise, do you suggest any other solution?
Do you think I should move the file with twrp if this doesn't work ? (I am avoiding the use of it because it's still unstable for my device and bootlooped a few times.).
Or should I edit the custom rom's system.img and repack it (I'm afraid if it's size changes my device won't boot)
I will be very grateful if someone helps me out
if you copy a file you must set right permissions and ownership