so im trying to copy my TWRP backup to my comp so i can wipe my internal storage for a cleaning. when i try to copy the backup the file mentioned above fails to copy. I tried pulling it with adb pull but im getting a permission denied error. Anyone know the permissions i need and how to set them?
same here. would love a solution. i get "unspecified error" when trying to copy this file from the phone to the pc.
tried to change the permissions to 777 via both adb and root explorer and get denied with both.
Related
Hi,
I want to create an updater-script file that copies /sdcard/data to /data,
How can i do this? dd and cp commands say 'cannot find /sdcard/data/*: no such file or directory'
I don't want to integrate files in the zip package
Is there a way or a command to do that?
I searched on the web, but seems i cannot a working solution, maybe you can anwser
Well your query is wrong.updater-script is for flashable zips and in your case you don't want to integrate the files in the zip right?
Try using this command via terminal :
#cp ~/sdcard/data/*your data /data
what are you trying to do?? o_0
files in sdcards have ownership system:sdcard_rw and permissions something like ----rwx-r-x
to copy files with cp to /data.. you need to be root on terminal/adb shell
the copy will change ownership to root:root while keeping permissions intact...
with such odd permissions and ownership for files in /data .. you are looking at a bootloop..
you'd have to fix permissions for each and every thing incase you really need to copy it
can you tell what are you trying to copy.. and what's in /sdcard/data :|
Hi, sorry for my late reply
I will try that command and post result, :good:
It worked, thanks
Hi, yesterday I've restored a build.prop backup from my sdcard, but i think that it not has right permissions, so now it stuck in a bootloop. I've tried to connect it to the PC and use ADB in order to put new file or modify permission, but it say: "Device not found".
How can I do?
P.S. I've root permission if it can be useful
I am trying to flash a touchwiz launcher and it succeeds in flashing in recovery but the files are not getting put into priv-app folder.
also, trying a copy paste using root explorer but it fails.
some files get copied but for some reason touchwiz launcher does not, any idea why?
Does Root Explorer have any option to remount /system with write permission? Nearly all File Managers with root access do it that way.
It looks like your /system is still mounted read-only. What exactly is being copied over?
Also, you can "adb shell" to the phone while on recovery, that way you have full access on the phone.
When i try to edit files in the root directory of the switch on android, i cannot edit because of permissions.
I ran chmod in TWRP from terminal multiple times but cannot fix the permissions issue.
anyone know how to fix it? I am trying to edit some files in system/usr/keylayouts.
Try 'sudo su' and then do chmod.
Or install MiXPlorer, give it root access and give it the perms with it's GUI (it's under the info sign when u select the file u want to alter)
I'm trying to replace one of the files in /system/usr/keylayout but i'm getting an error telling me the system is read only.
So i've gone back to the /system folder in Root Explorer and tried to remount it as rw but nothing happens.
So i've gone in and tried to use ADB. I turned on USB Debugging and connected with ADB, used "adb shell" to get in, then every variation of deleting the file and remounting the file system i can. Every method to delete the file tells me its read only, and every method to remount it tells me that the folder isnt in /proc/mounts. If i dont specify a folder and just use /, then it runs and shows a ton of folders, but i still cant delete the file. My goal is to replace it with another.
Any ideas why? I'm rooted with magisk, newest version of platform tools on the laptop, im running OOS 11.0.4.4 IN11AA, stock rom and kernel.