[Q] Change System File Without Rooting the Whole Tab? - Galaxy Tab Q&A, Help & Troubleshooting

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?

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.

Can't get apk's to install?

I got my NC rooted (I think LOL) I went through the root process and everything looks fine but now i'm trying to install some apk's and I cant get it to work. I want to install root explorer so I pulled the apk from my Htc Evo and put it in a folder on my desktop. Then in cmd I type
cd\
cd android-sdk-windows\platform-tools
adb kill-server
adb devices
I get my device listed so then I type (before the cursor it says C:\android-sdk-windows\platform-tools>)
adb install C:\documents and settings\owner\desktop\apks\root explorer 2.12.4.apk"
and I get a message that says "can't find 'explorer 2.12.4.apk' to install
I am stuck I don't know what to do. Please help me!!
I have tried the name root explorer 2.12.4.apk with and without spaces
Novarider said:
adb install C:\documents and settings\owner\desktop\apks\root explorer 2.12.4.apk"
Click to expand...
Click to collapse
If cmd is like Linux you have to put \ before spaces like root\ explorer\ 2.12.4.apk
its definitely related to where the apk is located or the file name.
Try putting quotes around the path such as....
adb install "c:\docume...."
If that doesn't work then create a folder on your c:\ called apk then move the file over to that folder and rename the .apk file to something without spaces.
Good luck!
So I am at the correct path? What EXACTLY do you type after you open the cmd? Can you just open the cmd and start installing apps or do you have to navigate to android-sdk-windows...
What do I need to type from the time I open cmd?
rob04 said:
its definitely related to where the apk is located or the file name.
Try putting quotes around the path such as....
adb install "c:\docume...."
If that doesn't work then create a folder on your c:\ called apk then move the file over to that folder and rename the .apk file to something without spaces.
Good luck!
Click to expand...
Click to collapse
The " around the path worked. Thanks!
Now that I have root explorer installed how do I use it? Can I put it on my home screen?

[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] Permanently Change Folder Permission

I am trying to change the folder permission of the "data/gps" folder to "rwx rwx rwx", by default, it's set to "rwx --- ---".
I can do this by using ES File Explorer but the folder permission gets reverted to the default upon reboot. So I'm guessing ES File Explorer can't change it permanently.
My question is, is there any method that I can use to change it permanently? I have Terminal Emulator installed, but I've never used it before so I don't want to go around messing with it just yet (unless if I can get a confirmation that it'll do what I need it to do).
I would appreciate any help on this. Thanks.
Update:
I tried it with Terminal Emulator, "chmod 777 /data/gps". No luck, the permissions still reverted to default upon reboot.
I was informed that all scripts placed within "/etc/init.d" folder are executed on boot. So I created a shell script file and placed it in that folder.
#Change folder permission
chmod 777 /data/gps
Click to expand...
Click to collapse
Unfortunately, that didn't work either. I don't know if the script above is incorrect or incomplete. One thing I can't figure out though, are all the scripts in the folder executed with superuser privilege? Correct me if I'm wrong but in order to change the permission for "/data/gps" folder, superuser privilege is required. I have tried the following scripts, nothing works.
#Change folder permission
su chmod 777 /data/gps
Click to expand...
Click to collapse
#Change folder permission
sudo chmod 777 /data/gps
Click to expand...
Click to collapse
#Change folder permission
sudo su chmod 777 /data/gps
Click to expand...
Click to collapse
Anyone with ideas?
UPDATE: I have got this fixed! Turns out that there was nothing wrong with the script. Placing the script in the init.d folder does the trick, it's just that I couldn't get it to work with CM9, it works perfectly on OneCosmic ROM. Maybe CM9 doesn't support init.d?

Writing shell scripts

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.

Categories

Resources