Related
Hi, I rooted my Vribrant, both ways (manually and with one click root). I installed terminal emulator. I tried the su command to check if I am root. The # appears normally. However I tried deleting a file with Root explorer, inside the system folder, and when I get back it's still there. I also tried deleting it manually from Terminal EMulator with these commands:
su
cd system/apps
rm Swype.apk
and I get this:
rm failed for Swype.apk, Read-only file system
I also tried:
su rm Swype.apk
and this is returned:
Permission denied.....
I also tried the exact same thing from adb shell (which I had to allow in superuser permissions program), but it gave me the exact same results. What's wrong? Am I doing something wrong? Thanks
In root explorer, try hitting the r/w button at the top and see if that works.
Sent from my SGH-T959 using XDA App
I know about the button. The strange thing is that inside system folder it grands me r/w permissions, and no matter how many times a press the r/o button it doesn't change. Still gives the results I said. However, besides root Explorer what's wrong with terminal emulator and adb?
I'm not 100% sure how to mount as root in adb. I wish I knew myself heh.
Did any of those root methods install the superuser app?
Sent from my SGH-T959 using XDA App
Terminal Emulator should return a "#" after typing "su"
Sent from my SGH-T959 using Tapatalk
From a terminal write
adb root. (will give root)
adb remount. (will remount system as r/w)
adb shell cp /system/app/swype.apk /system/app/swype.apk.bak
Adb shell rm /system/app/swype.apk
This link is what i used to use to gain rw permissions
http://android-tricks.blogspot.com/2009/01/mount-filesystem-read-write.html
Alternatively from terminal on the phone type
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
Assuming your sys partition is mntblock3
Sent from Conical. 07
rbirg said:
I'm not 100% sure how to mount as root in adb. I wish I knew myself heh.
Did any of those root methods install the superuser app?
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
Yes both methods installed the "Superuser Permission" app.
I7oobie said:
Terminal Emulator should return a "#" after typing "su"
Sent from my SGH-T959 using Tapatalk
Click to expand...
Click to collapse
It does normally.
linuxmotion said:
From a terminal write
adb root. (will give root)
adb remount. (will remount system as r/w)
adb shell cp /system/app/swype.apk /system/app/swype.apk.bak
Adb shell rm /system/app/swype.apk
This link is what i used to use to gain rw permissions
http://android-tricks.blogspot.com/2009/01/mount-filesystem-read-write.html
Alternatively from terminal on the phone type
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
Assuming your sys partition is mntblock3
Sent from Conical. 07
Click to expand...
Click to collapse
I tried the first method but it didn't work. When I entered adb root, it said "adbd cannot run as root in production builds". I searched a bit and found that I must have a rooted kernel for this to work. (I guess it's different from the root method I tried in "how to root vibrant").
Anyway the second way worked, where i replaced mntblock3 with stl9 for my phone. I tried the rm command and it worked! However as soon as I exited terminal, I couldn't delete other files. I had to retype the command. I can't do this everytime I need access in System folder. Why is this happenning? Does this have something to do with the fact that root explorer cannot change r/w to r/o mode while in system folder?
what if you open Superuser
Click on Root Explorer.
Click on Forget.
Open Root Explorer and grant Root Access and check to remember it.
work now?
Moved to Q&A, please post in the correct section.
s15274n said:
what if you open Superuser
Click on Root Explorer.
Click on Forget.
Open Root Explorer and grant Root Access and check to remember it.
work now?
Click to expand...
Click to collapse
No it didn't work. I also installed the latest version of SuperUser 2.3.6.1. But without a difference unfortunately.
What works for me, is installing sgs tools, and whenever I want to do write operations on system folder, run the appropriate script from sgs and then use root explorer......
Although I think there's something wrong? Why doesn't the mount r/w button work in root explorer, and why do I have to remount the file system through SGS tools, every time for it to work?
makes no sense to me either. Have you uninstalled RE and the installed it back granting root once reinstalled?
Yes several times.....
I am giving up. I just have to go through the whole process every time. I found some other people having this issue. I am on stock JI6 firmware. Maybe when I read a little bit more I will flash a custom rom.
Download and install Super Manager. Pretty handy program to use for Root users.
I'm not sure what the issue is,but mine does it too. I'm running the "unofficial" froyo JK2 build,flashed via ODIN,and I'm having the same issues. root works,root file explorer is stuck in rw,won't let me switch to ro,and it can't do anything to files in / or /system. manually remounting it from terminal or sgs tools works.
msnuser111 said:
I'm not sure what the issue is,but mine does it too. I'm running the "unofficial" froyo JK2 build,flashed via ODIN,and I'm having the same issues. root works,root file explorer is stuck in rw,won't let me switch to ro,and it can't do anything to files in / or /system. manually remounting it from terminal or sgs tools works.
Click to expand...
Click to collapse
At least I am not the only one with this problem.... haha
I forgot to mention that I use Root Explorer version 2.12.2
When I try a custom Rom I will post the results....
^ why not get the update, .4 is the most recent build. Do you have an illegal copy?
It's not only root explorer. It happens with other file explorers too like android mate and super manager... Inside system folder whatever, I do doesn't happen unless I unmount and remount like before
I have Root Explorer installed and it says that it has root access and that the mount is read/write yet I am unable to permanently delete or add files to the root/system directory.
I was hoping to replace the current system/media/video/shutdown directory with one of my own and add a bootanimation.zip file to system/media but although the delete/copy/move commands execute without error, no changes actually occur.
I'm so frustrated and have no idea what I'm doing wrong. Any insight will be greatly appreciated.
Thanks
I had the same problem...ended up downloading su file manager. Works perfectly for deleting stubborn system apps.
Sent from my SGH-T959 using XDA App
Have you tried pressing the Mount R/O button on the top right corner and then trying again?
Whenever I push, chmod, then reboot, my device reboots but nothing else. Adb DOES recognize my device, I can install/uninstall, remount, etc... So wat?
I'm try'n to get a modded Ziggy script to run on boot (to further undervolt- others have gotten to run)
I've tried manually pasting in unit.d folder, then manually fixing perm.s but after I reboot, the permissions have reverted n nothing has changed.
Yes, I'm a noob, please help.
sent from rooted ThunderBolt
I've gotten weird problems with adb in Win7 by not running cmd as an admin
Ok, well I'm the admin. (only 1 user acct.) so I should be good
Sent from my ADR6400L using XDA App
Maybe you're pushing whatever to a system folder not mounted with write access? I know if you try pushing to say /system/etc/hosts and you dont have it mounted in write access and have root permission (on the phone in both cases), it will reset it back to the original on reboot.
yareally said:
Maybe you're pushing whatever to a system folder not mounted with write access? I know if you try pushing to say /system/etc/hosts and you dont have it mounted in write access and have root permission (on the phone in both cases), it will reset it back to the original on reboot.
Click to expand...
Click to collapse
Crap, I think ur right. I was fixing perms thru adb w chmod, but AFTER I pushed.
But regardless I don't think I set as R/W.
Also, wat would cause me not to be able to set permissions manually (for individual paths) using root explorer ( or similar file manager)?
Sent from my ADR6400L using XDA App
Nope, doesn't change a F'n thing. God I wanna swear soooo bad. almost more than I respect this forum.
Sent from my ADR6400L using XDA App
K, I found that adb thinks I'm mounted as R/O tho I'm mounted as R/W. WHY
Sent from my ADR6400L using XDA App
Dunno offhand; you're not being very descriptive and it's hard to read what you're saying. Try a different approach, like using sshdroid pro (with putty or xshell) and the command line there instead of adb. I dont really use adb to push/mod things on the phone unless there's no other choice (like rooting your phone). If you're using a custom rom, they generally have a small script built into them to mount the system folder(s) as r/w (type sysrw or sysro).
It was as simple as having slashes backwards, lol, figures.
Adb still thinks I'm in read-only tho. I tried "adb remount" to no avail.
I'm not familiar w/ the other things u mentioned (i can barely read em til I change my font)
R those things I DL? Put in my SDK?
I'LL check em out
Sent from my ADR6400L using XDA App
To be more descriptive: I'm using virusROM RC1B2 w/ updated Ziggy kernel (bfs).
I have a modified script (from Ziggy) that I recently pushed to system/etc/unit.d that I'm tryn to run.
After I push I type "adb shell chmod 755 /system/etc/init.d/04vddlevels" (file name).
Then adb says "can't chmod" cuz the file system is "read-only"
I try "adb remount" n then re-entering chmod n it says nothing n nothing happens.
I am mounted as R/W so I'm confused.
Hope that explains it btr, Thnx 4 the help!
Edit; I also have a "tweak" zip file I flashed from adrynalyne to enable script to run on boot encased the Rom isn't set up to, tho others (one that I know of) has had no problems. He hasn't been able to help either.
http://www.appbrain.com/app/sshdroid/berserker.android.apps.sshdroid
then you log into it with either
http://www.netsarang.com/products/xsh_detail.html
or
http://www.chiark.greenend.org.uk/~sgtatham/putty/
or if you're using linux or osx, you can do it natively on the terminal line with the ssh command.
You can transfer files over sftp (with ssh) using something like filezilla http://filezilla-project.org/
Tutorials:
http://www.netsarang.com/tutorial/xshell/list
http://www.howtoforge.com/ssh_key_based_logins_putty
http://psychologyit.rutgers.edu/helpdocs/filezilla.html
There's plenty of pages out there on ssh if you search google though. Just read up. It's the primary way to communicate (securely) remotely with a linux/unix server. It encrypts your traffic to and from a server (in this case, your phone). It also means no cables (though you can do that with wireless adb also).
Basically, it's a way of remotely using the terminal built into android (since it's linux) without having to use adb.
try this (all one line):
(for write perms)
adb shell mount -o remount,rw,noatime,nodiratime -t ext3 /dev/block/mmcblk0p25 /system
(to set back to read only)
adb shell mount -o remount,ro,noatime,nodiratime -t ext3 /dev/block/mmcblk0p25 /system
if that doesn't work, then you're not root, so you will have to type:
adb shell su -
to get root before doing the other commands
Cool Thnx, yeah I have seen that b4, I'm tryn it(adb thing 1st) now.
Sent from my ADR6400L using XDA App
Ok, I typed: adb shell mount.... N got "Device or resource busy" ?
Sent from my ADR6400L using XDA App
Next I tried: (all one line) "adb shell su -adb shell mount... n got permission denied. ??
Sent from my ADR6400L using XDA App
if you do it all as one line you have to put a ; in between the statements so it terminates the last command before doing another
Ok, wat does "device or resource busy" mean?
http://lmgtfy.com/?q="device+or+resource+busy"+android
Do I type: "adb shell su-" (then hit enter) ? Cuz I get "su- not found"
There's not supposed to be a space between 'su' and '-' , correct, cuz then I get a '#' sign n adb freezes.
Wow I'm a mess, lol, Thnx 4 help, maybe I should do some studying n come bak more prepared!
Yeah. I here ya. Thnx. Again
Sent from my ADR6400L using XDA App
So this is my issue.
I've not got a typical problem with how to edit the apk or what not, but my modified frameworks changes aren't taking effect on the device.
I've used AutoAPKTool to decompile, do my changes then compile and ADB to transfer the apk across to my System/Framework folder, but the changes aren't showing on the device, for instance if I change an image.
This is what I'm using to transfer via ADB,
"su
stop
cp /system/framework/framework-res.apk /system/framework/framework-res.old
cp /storage/framework-res.apk /system/framework/framework-res.apk
chmod 644 /system/framework/framework-res.apk
sync
start"
I've tried doing a normal "adb push" function but each time I get "Permission Denied" dispite having SU privelages and yes I'm rooted. I've google every possible permission problem but no luck.
I'm using the Archos 70, I hope this is the right forum and I appreciate all help.
Regards.
Anyone please?
You have to put your updated image in the _custom_res folder with the correct folder structure.
HTH
Did you mount system as read/write before copying?
Sent from my HTC Glacier using XDA Premium App
Hello. I am having a lot of trouble accessing root folders [/etc] to paste a new gps.conf. I was wondering if anyone might know why this is, or have a fix. I have searched for similar problems in the forums, and seemed to get some similar problems, but no specific answers.
Phone model: HTC Desire GSM
Android version: 2.3.7
Oxygen ROM 2.3.2-bravo
I have tried using root explorer (yes setting root and etc to r/w, not r/o) and ES explorer (turning on all the root access settings).
When I try to either paste a new gps.conf to the etc folder, it gives me no error messages, but will not overwrite the old file.
Any ideas are welcome
Try using terminal emulator:
Code:
su
cp /your/gps.conf /etc/gps.conf
Or using adb:
Code:
adb remount
adb shell "cp /your/gps.conf /etc/gps.conf"
RoberGalarga said:
Try using terminal emulator:
Code:
su
cp /your/gps.conf /etc/gps.conf
Or using adb:
Code:
adb remount
adb shell "cp /your/gps.conf /etc/gps.conf"
Click to expand...
Click to collapse
I tried this and it says it cannot copy - out of memory
Having searched for this issue, I found that it has nothing to do with memory, but simply that the user does not have permission to modify the contents of the folder. This can be changed using the chmod command, but I have no idea how to use the chmod command, it looks complex.
Any help is much appreciated
I don't use root explorer or but you should be able to use it to edit a folder's permissions.
I use total commander and all I do is navigate to the folder/file, long press it, click properties then permissions then enable write across the board. I imagine the process is basically the same for root explorer.
jr67 said:
I don't use root explorer or but you should be able to use it to edit a folder's permissions.
I use total commander and all I do is navigate to the folder/file, long press it, click properties then permissions then enable write across the board. I imagine the process is basically the same for root explorer.
Click to expand...
Click to collapse
Thanks, but I think you have to use chmod. For some reason root explorer / es file explorer, &c. cannot change this permission, because they do not have permission to change the permission.