Writing shell scripts - Galaxy Tab S2 Q&A, Help & Troubleshooting

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.

Related

Anyway to push ere27 build.prop on FRF72 w/o ADB?

http://htcpedia.com/forum/showthread.php?p=65478
I want to push the modded build so I can see protected apps, but my adb's not working. Alternative way?
copy it to ur sd card and use terminal emulator as su to copy the file over or use root explorer...
Just put the file on your SD card and use a file explorer program. Move the file to the location you want it at. After the file has been copied reboot the phone.
craigacgomez said:
copy it to ur sd card and use terminal emulator as su to copy the file over or use root explorer...
Click to expand...
Click to collapse
What would I have to do in Terminal? And when I try to move the new build in root explorer it says the System folder is read only.
SU File Browser has root access, and can remount /system as rw so that you can copy the new build.prop over.

[Q] Cannot push file to system folder via adb

I am running the cyanogenmod 6.1.1 alpha 8.3 and I want to replace the bootanimation.zip in the folder system/media with a custom one.
I already have the custom bootanimation.zip but when I tried to push it to the folder it says:
Cannot stat 'bootanimation.zip' : No such file or directory
Yes, I have my files in the tools folder and I've checked (with astro file manager) that the folder exist.
Any help?
and btw I'm new to this and this is what I type to push the file:
Code:
adb push bootanimation.zip /system/media
1. This can't be done on running system unless /system was remounted RW but it will work if you are in recovery (and /system is mounted)
2. Add full path to bootanimation.zip
You can use a root file manager.

[Q] Change System File Without Rooting the Whole Tab?

I want to change a particular file in /system/bin--the wpa_supplicant file. I know a bit about linux command line. How can I change the permissions ONLY OF THE system/bin folder TO R/W so that I can rename the original file and paste a new wpa_supplicant file in adb shell?
Or can it be done-selective rooting? like su or sudo or chmod in linux?

Boot Animation issue in 6.0.1

I've updated my device today to 6.0.1 and rooted, however I can't seem to change the boot animation (yes, I have searched for answers and tried quite a few fixes).
Root Explorer tells me I have renamed the old file and copied the new file, however once I leave the directory and go back the old file is still there.
I have used the file explorer in TWRP and managed to delete the stock boot animation, but get a FAILED message when I try to copy the new file.
I used the terminal in TWRP and tried to copy the file manually, and receive a "No space left on device" message.
I've also tried mounting the /system as rw in adb. I can delete the bootanimation.zip file from there, and df -h shows 3mb free. Shouldn't the system partition have more space available than that?
Am I missing something, or has something changed with the new android versions?
Google has filled the system partition up to the brim. Also you can't remount system as rw while Android is running.
But the direction is right, go to TWRP, mount system, delete the old bootanimation. If the new one is not that much bigger then you could just copy it there, set permissions to rw-r--r--. But if the new animation is significantly bigger, you'll have to delete some bloatware first.
Thanks for that. The odd thing is, when I run DF in the terminal, it shows I have 20mb free. The boot animation file I am trying to copy is 6mb.
I'll keep poking around. If it doesn't work, it doesn't. It's not hugely important

chmod 777 impossible

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

Categories

Resources