permission denied after root droid x - Android Software/Hacking General [Developers Only]

so the other day i rooted my phone by using the one button root and downloaded the wifi tether to check and make sure it works. everything worked fine. i also downloaded terminal emulator and checked to see if i can type in su. i did and that worked. a while back i read an article on how to edit the xml file on robo defense. says copy the xml file to sdcard which i was able to do then modify it and then stick it back in /data/data/com.magicwach.rdefense/shared_prefs. however everytime i try to copy it back it says permission denied using adb. so then i tried typing su in the command prompt after running adb shell. it then says permission denied. can anyone shine some light on this for me or what i may be doing wrong here? thanks in advance

Related

Having some permissions issues with my ADB and Terminal

Hello everyone. I have been working with android for a 6 months now and still cannot figure out what im doing wrong to get my permissions to work correctly. I have installed ADB and successfully rooted my MT3G Slide. I have been trying lately to figure out why i cannot manually configure A2SD. I have gone through both ADB Shell and Terminal under Su to try to mkdir /system/apps but it will give me a problem like my system is not allowing me to rewrite or its copy protected. I have tried to remount and it claims its successful. Another symptom i experience is not being able functionally use the rom manager or restart in clockwork recovery after i have flashed a rom. I always have to wipe the devices before i can loop hack back into clockwork mode. I have tried to fix permissions and restart in recovery through rom manager and it just brings up a question mark ontop of an image of a phone. I have been trying most recently to move a file through terminal to another name and replace the old with a new of the same name. It says the directory is not empty when i try to modify this file. So Anyone think they might know a solutions to these issues or hopefully all of them in one simple problem i cant seem to figure out.
download & install 'root explorer' for your phone from the android market (or your Pc, and put it on your phone) , grant it superuser permissions from superuser on your phone, open it up, and there's an option to make the phones memory R/W. (Its R/O as default which may be why your having permission issues)
Saying that Im yet to figure out adb's permissions fully..
Be careful with root explorer though, its a very intrusive programme which can screw up everything
Root explorer cost money... is there another program that allows me the same option. I have been using astro file manager, any way to do it on that one?

Problem With ROOT EXPLORER! Please Help!

I have a problem with Root Explorer! It ocurred as:
I copy a file, and I can to paste it in System/framework, but when I try paste it the Root Explorer don´t permit me to paste and says me this message:
"The paste operation failed. Would you like to send diagnostic information to the developer to assist with fixing the problem?"
WHY?
Thx 4 all! =)
Not development related Moved
Anybody can help me? =(
Sent from my GT-I5800 using Tapatalk
fersago said:
I have a problem with Root Explorer! It ocurred as:
I copy a file, and I can to paste it in System/framework, but when I try paste it the Root Explorer don´t permit me to paste and says me this message:
"The paste operation failed. Would you like to send diagnostic information to the developer to assist with fixing the problem?"
WHY?
Thx 4 all! =)
Click to expand...
Click to collapse
It's just a guess, but maybe you need to root your phone? Don't know if it's already rooted but...
Yes! Its perfectly rooted with SuperOneClick! I too use TBackup!
Sent from my GT-I5800 using Tapatalk
Did you tried the "RW" option on the rootexplorer? Or just delete first the file, and not try to overwrite them...
You can do this over adb too...
GL!
The R/W Option is Enabled! =(
UP! UP! UP!
First make sure u are rooted and then
try remounting the system by typing in terminal:
mount -o remount,rw /dev/block/stl6 /system
NOTE: When u open Root Explorer a text should appear "Root Explorer has been granted Superuser permission"... If this doesnt appear check the su app for allowing permission to ROOT EXPLORER or u will need 2 reroot ur phone...
Go to the location where you want to paste a file or perform action.
Now click on Mount RW at the top of the screen. It will change to Mount RO.
Now you can copy files.
PS: Your need a rooted phone
jaskiratsingh said:
Go to the location where you want to paste a file or perform action.
Now click on Mount RW at the top of the screen. It will change to Mount RO.
Now you can copy files.
PS: Your need a rooted phone
Click to expand...
Click to collapse
My phone is rooted, and root explorer HAS ROOT ACCESS but clicking on the "Remount as RW" button on the top of the screen does nothing in "/system"
it works on "/sdcard" and anywhere els. But not in "/system"
Any ideas?
Edit: actually in "Superuser" the root access has been allowed but when I start "Root Explorer" there will be no notification of giving the root access ("Root Explorer has been granted Superuser permission")
acutally i got a solution for remounting to rw mode
e.savisaar said:
acutally i got a solution for remounting to rw mode
Click to expand...
Click to collapse
And how did you do it?
Got the same problem on my rooted Nexus 10 running 4.2.1 JB. Rooted it with SuperSU.zip via CWM and root seems to work fine.
Sadly I cant write anything to the system folder.
I tired to use the command "mount -o remiunt,rw /dev/block/stl6 /system" mentioned earlier in this thread but even with the use of "su" and granting SuperSU rights it wont allow me to create directories there. The mount command seems to work fine as there are no error messages but mkdir throws an error:
"mkdir: can't create directory 'test': Read-only file system"
Oh and there are no toast notifications about granting root access to the shell except the first time I typed su.
Anybody else having that problem on the Nexus 10?
fersago said:
I have a problem with Root Explorer! It ocurred as:
I copy a file, and I can to paste it in System/framework, but when I try paste it the Root Explorer don´t permit me to paste and says me this message:
"The paste operation failed. Would you like to send diagnostic information to the developer to assist with fixing the problem?"
WHY?
Thx 4 all! =)
Not development related Moved
Click to expand...
Click to collapse
Long press on the file that you want to paste in , then choose permission and press yes and ok
markus4000 said:
And how did you do it?
Got the same problem on my rooted Nexus 10 running 4.2.1 JB. Rooted it with SuperSU.zip via CWM and root seems to work fine.
Sadly I cant write anything to the system folder.
I tired to use the command "mount -o remiunt,rw /dev/block/stl6 /system" mentioned earlier in this thread but even with the use of "su" and granting SuperSU rights it wont allow me to create directories there. The mount command seems to work fine as there are no error messages but mkdir throws an error:
"mkdir: can't create directory 'test': Read-only file system"
Oh and there are no toast notifications about granting root access to the shell except the first time I typed su.
Anybody else having that problem on the Nexus 10?
Click to expand...
Click to collapse
i got a solution for this issue :
just install es explorer and turn on the root explorer mode then grant the permissions then again click on the tab root explorer and then a popup window will appear where you can allow permissions for each folder differently.
click thanks button if it worked for you.

simple question (adb)

If I want to copy and replace a file in system folder via adb, do I need to root my phone or does adb temporarily root my phone when connected?
i don't know. the only way it would work is if you mount system as read/write first. try that and see what it says. i assume you need to be rooted though since you need superuser permissions. check the adb website for proper commands cuz you might have to open up a shell and such first blah blah blah lol.
Thanks for reply, any else have an idea?
root is a MUST !
You must have root/superuser permissions to have read/write access to your phones system folder.
Sent from my Hero that never dies! ;D

[Q] why can't i gain permission on root explorer?

when i try to copy files to /system/ nothing happens
i mounted as r/w so what could be the problem?
ripsta99 said:
when i try to copy files to /system/ nothing happens
i mounted as r/w so what could be the problem?
Click to expand...
Click to collapse
when paste or modifying a file in the root system, you need to tap the r/w to r/o in order to write or change permissions.
If you are doing a 3e mod, don't forget to change the permissions too.
....not working. if i change it to read only it Def not working.
ripsta99 said:
....not working. if i change it to read only it Def not working.
Click to expand...
Click to collapse
Check again to see what you are doing wrong. Its a toggle to read/write or read only.
If you're using root explorer, you have root.
Infuse n root explorer is not smart enough to pick out just you.
Edit.. Are you trying the 3e mod?
Three are easier way
ripsta99 said:
when i try to copy files to /system/ nothing happens
i mounted as r/w so what could be the problem?
Click to expand...
Click to collapse
bad su binary?
does super user show root explorer having super user permission? do you have super user installed? does it give a notification or toast that permissions were granted either when the app starts or on boot?
if that is all ok then open terminal emulator and type
su
(you should see $ change to # and a notification for superuser permissions granted.. if not you likely need to re root the phone)
if that goes OK then type
mount -o rw,remount /dev/block/stl9 /system
if it has any error like permission denied or invalid argument or can't remount folder exists or anything at all then there is something odd going on, could be something I'm overlooking, could be a bad su binary. try reflashing and don't update the binary if you are on a custom kernel.
edit: overlooking busy box. try installing it from a busybox installer from the market! that should fix it if su is OK.
Also, you may new to delete the app and reinstall, that happened to me and it thought I was trying to pirate the app. It would open but Wouldn't let me move/replace anything.
Then I went and verified I paid for it and everything worked after that.

[Q] ADB Copy Fails - Help Please!

I am trying to get Chrome to come up in desktop mode permanently on my non-rooted Xperia Tablet Z. Multiple sources tell me that on an un-rooted device I need to use ADB to copy a file containing the line:
chrome --user-agent="Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/22.0.1207.1 Safari/537.1"
to the /data/local directory.
So I dropped that line into a file (called chrome-command-line) on the root of my c: drive and run ADB like so:
c:\Android-SDK\sdk\platform-tools>adb push /chrome-command-line /data/local/chrome-command-line
It immediately fails with the following message:
failed to copy '/chrome-command-line' to '/data/local/chrome-command-line': Permission denied
Any idea how I can perform this ADB copy operation without rooting?
Thanks! (bump)
Bump
Anyone, anyone, Bueller?
maypo said:
Anyone, anyone, Bueller?
Click to expand...
Click to collapse
anyone??? i need answer to this too!!
@maypo @doggmeister
You're getting the Permission Denied error because, very simply, you're not rooted. ADB can't access the /data/local directory without root, and will therefore give an error instead.
I don't know who told you that you can ADB push files to that directory without root, but they are mistaken.
NOOK!E said:
@maypo @doggmeister
You're getting the Permission Denied error because, very simply, you're not rooted. ADB can't access the /data/local directory without root, and will therefore give an error instead.
I don't know who told you that you can ADB push files to that directory without root, but they are mistaken.
Click to expand...
Click to collapse
Several guides online mentions it as a way to get permanent desktop mode in chrome on a non-rooted phone. And I just thinks its bloody mindnumbingly stupid why WE as the users can't decide what a browser should identify as....

Categories

Resources