fix file permissions - Nintendo Switch Questions & Answers

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)

Related

[Q] Still NO WIFI PLZ HELP

ok I really need someones help. I installed the Cyanogen NAND Rom on my HD2 and everything works fine except for the WIFI. When I go to the WIFI under my settings it says ERROR. I followed the instructions on the youtube video about the HOTFIX files.
***While in TERMINAL I enter the following
su
rm -f /system/lib/modules/ (Then Press Enter)
cp -f /sdcard/hotfix/* /system/lib/modules (Then Press Enter) After I enter this I get BusyBox v1.16.2androidfull (2010-08-01 14:57:32 EDT) multi-call binary
Usage: cp [options] SOURCE DEST
Copy Source to Dest, or multiple Sources to DIRECTORY.
***I also tried to copy and paste the Hotfix files using AndExplorer and ES File Explorer.
In ES File Explorer when I copy the file and try to paste it in the /system/lib/modules/ folder it says COPY FAILED when I try 1 file or all 3 at the same time.
***AndExplorer lets me copy and when i try to paste the files nothing happens.
Is there something that Im not doing or is there another way to fix the WIFI issue.
Can someone plz help me fix this. I would greatly appreciate it.
U might want 2 try using root explorer..
I also get "error" when I go to Wifi under settings and I dunno why..
Its not about wifi but no thread was dedicated to it so
Why can't i configure GPRS setting
APN screen shows nothing tried everything but it didn't show option New APN...
Can anybody please help

[Q] Modifying System Files

Would someone please tell me how to change permissions on a read-only system file? I logged into and adb shell, I have root, but I could not execute this command: "chmod 777 HotspotProvision.apk" or "mv HotspotProvision.apk". I get an error saying the file is read-only.
I am trying to follow the instructions in this thread:
http://forum.xda-developers.com/showthread.php?t=2456338
I also could not change the file name using Astro file manager.
Root explorer or root browser from the market will let you mount system r/w
Sent from my LG-LS980

Copying folder to another in zip packages

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

How to change kernel settings directly?

Hi,
In my kernel several config-files are placed within /sys/kernel. If I wanna change one of the settings I get always an permission error I tried with Terminal emulator and changed the permissions for the dir as well for the file so everybody could write. But vi doesn't save it Trying other root browsers with their editors fail in the same way.
How to change single files properly?
thx
roland
use " echo " command
You need to allow R/W permissions to the system partition.

boot.emmc.win fails to copy TWRP backup

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.

Categories

Resources