Permission denied - Motorola Droid and Milestone Q&A, Help & Troublesh

Hi,
I have a problem to copy a file into data/misc/wifi in my milestone.
After I write the instruction "adb push *file /data/misc/wifi/ " the program returns "Permission denied" and it doesn't work.
My phone is rooted.
Do you have some ideas?
thanks

Have you checked if permissions of the folder are set to enable R/W ?

no I don't, because I don't know how to do it...
can you explain me?
thanks

Permissions
Try to use root explorer...then press mount as R/W then u can write the system files...im not sure if this works....

Related

[Q] permission denied error

every time i use this code in adb
adb shell
cd /dev/block
dd if=/dev/block/bml3 of=/sdcard/bml3.bak
copy to sdcard / upload
i get a "/dev/block/blm3: cannot open for read: permission denied"
what did i do wrong? my phone is unock i have a app called superuser and busybox
Thanks in advance
Type "su" first. You need super user permission, i.e. your phone must be rooted.
i tried that it gives me the error after
cd /dev/block
Edit: i just spamed the code and now it work but i gives me error "cannot open for read: no such file or directory"
Edit: when i use the su command i get a permission denied error. and everything afterwords. i have the superuser app and the busybox app i used the one - click rogram to unlock my samsung galaxy s i9000m from bell. i also updated to the latest firmware could that be the issue? it seems like i can look into the file(using astro file manager) and see that the file exists but i cant read or write to it.
ahh seems like superuser wasnt updated to 2.3.3 .... got it thanks man
From your phone, not adb, try:
Code:
su
dd if=/dev/block/bml3 of=/sdcard/bml3.bak
Then connect your phone to your PC and copy bml3.bak manually.

[Q] Installing infoalarm.apk on firefly2.05 rom

can anyone tell how install infoalarm on firefly rom. Thank you
You don't "install" it you just need to copy it to /system/app with root explorer, super manager, another file manager with root access, or using adb commands.
A reboot may be necessary as well.
I got the file (infoalarm.apk) tried moving it over to /system/app dir, but root explorer will not do this. I have downloaded 'Terminal Emulator' but I can not find the proper commands to do it correctly. Any help please?
In the top right corner of root explorer there is a button that says "mount r/w" press that BEFORE you paste.
studacris said:
In the top right corner of root explorer there is a button that says "mount r/w" press that BEFORE you paste.
Click to expand...
Click to collapse
I tried that... selected copy file, go back to click 'mount r/w' then go into system/app and select paste. A window pops up and disappears under a second.
The top window in the systems/app says... 218.5 mb used, 57.32mb free, r/w 'Mount R/O' (button). Nothing happens when I tap on it.
Why wouldn't that be working? What about thru TE?
Thanks!
Did you allow root explorer, superuser access? If you didn't that button wouldn't work.
studacris said:
Did you allow root explorer, superuser access? If you didn't that button wouldn't work.
Click to expand...
Click to collapse
ya every time I go into it, it has the pop up screen on the bottom saying superuser access, and in su it logs root explorer with su access. When I click 'Mount R/W' (on the first screen) it does change, so the button now reads 'Mount R/O', but after coping and pasting nothing happens.
AS for TE I'm getting the error I have read else where.
SU
# mount -o rw,-remount /system (enter)
I get (Usage: mount [-r] [-w] [-o options] [-t type] device directory
#)
This is firefly ROM, not making sense?
---------- Post added at 04:09 PM ---------- Previous post was at 03:57 PM ----------
Trying to restore it right now via titanium back up, APP only and it is just sitting here running, doubt it will work, but was worth a shot. Still running.
Well I had to use 'Super Manager' from the market. Before going into /system it asks you if you want to RW, click yes and then you can copy and paste the infoalarm.apk into /system/app. Reboot and the app is there. Hurray! However it doesn't have the widget/screen that is on 2.1, but still works when you go in.
Weird why root explorer didn't work... oh well!

[Q] adb push permissions

Okay, I hate to ask, because I just know it's been asked before.
I've done a search and also read the adb how to here:
http://forum.xda-developers.com/showthread.php?t=723596
So I'm going to ask anyway, and I apologise profusely.
I am trying to push a file back to my Samsung Galaxy I9000.
I have it rooted using 'Super one click', and have managed to pull the file from the phone.
When I try to push it says 'Failed to copy, file is a read-only system'
The suggestions so far have included 'Adb remount', which gives me an additional error.
remount failed: No such file or directory
Also when I jump in shell apparently I am supposed to see a $, which indicates ADB is ready, instead I am seeing a #. I assume this means I'm not in super user mode, but unsure how to get there.
Any assistance appreciated. Basically I'm trying to upload a glass task bar just to get an idea of how to play around with this. But I get stuck at the first hurdle.
Yes, I have created backups of the files I am pulling and pushing
Thanks.
The easiest way if you're rooted is to use root explorer. Just go in the directory where you want to put the file, click in the upper right corner below the clock on R/W to change the system from read-only (R/O) to read & write and you're good to go to do whatever yoy want with the files on your phone.
edit: Also, you get in super user mode when you write su
is that adb su insert command here ?
Well, you asked how to get in super user mode - just write su. But I think # is what you should be getting in super user mode and not the dollar sign. Also, did you try using root explorer
Yeah, went and purchased root explorer. Does the job well, (cheers for that) I was just hoping to understand the computer system also.
there is a free program alternative to root explorer and i use it .it's supermanager.
I think this might help (for understanding)
adb shell
su
mount -rw,remount /dev/block/stl9 /system. (u can know u r /system complete path by typing "mount" in the shell).
after ur work
mount -ro
exit
exit
hope this helps.(The part i got stuck was after mounting as rw i could not get it back to ro )

JB OTA Forgot to Update Superuser binaries but ES File Explorer has Root

I followed the steps here
http://forum.xda-developers.com/showthread.php?p=33774480
But I forgot to update the binaries... actually I did not know I had to click where I need to click in order to update the binaries. I opened SuperUser up and it never said I needed to update binaries like Supersu does. ES File Explorer and Voodoo OTA still has root. Anyway I can fix this issue?
I tried "RestoreRoot.zip" that was posted and it says:
"Have drivers installed, phone connected, and USB Debugging enabled in Develope
r Options."
4371 KB/s (380532 bytes in 0.085s)
failed to copy 'Superuser.apk' to '/system/app//Superuser.apk': Permission denie
d
/system/bin/sh: su: can't execute: Permission denied
"Rebooting..."
uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1009
(mount),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt)
,3003(inet),3006(net_bw_stats)
If the above id shows 0 then you are rooted. Press any key to exit.
I have the same problem, either upgrade to 3.1.1 binaries and only has the voodoo root and titanium, we can do?
"Have drivers installed, phone connected, and USB Debugging enabled in Develope
r Options."
failed to copy 'su' to '/system/bin//su': Permission denied
failed to copy 'Superuser.apk' to '/system/app//Superuser.apk': Permission denie
d
Unable to chmod /system/bin/su: Operation not permitted
"Rebooting..."
Click to expand...
Click to collapse
ok, well then, i dont think its going to work, but here what ive done... it might help
Restored with vodoo OTA rootkeeper, saying that root is back ! but not really lol
I've had es file explorer already rooted, so, i just copied the binary files and reboot ... nada ! was having root permission but was denied everytime automaticaly, so i reeponned the es file explorer, and cannont be granted for root acces
i oppened up the super user app, and unavailable to acces root doing the update ......
superuser status was : rwxr-xr-x : conflict (showed in red) -binary : ok (showed in green) - path : ok (showed in green aswell)....
So, that is probably why it wont allow me root acces to succesfully re-update the su binary trough the native way of the superuser.apk
so here what i've done....
Re-used vodoo to reset the root to the old binairies (wich is actually enough for adb to work as root), i've then changed superuser.apk permissions that was actually resseted to :rw-r-x-r-- .... <--- WTF ????
So changed that to : rwxr-xr-x and then, i copied the su binary to the corect place, and boom, voila, was able to set binary permission and use it as usual .....
So my guess is if you guys wont have root on an explorer, adb will have with the old binairies restored from vodoo, so you should be able to change permissions to the /system/app/superuser.apk to : rwxr-xr-x and see if something magic occured that will let you update via superuser.apk in a native way so you wont need to copy/paste the binary manually !
But what i find odd is that you have a permissions denied !
did you tried it with the OLD binairies in place from voodoo directly inside adb shell
if you just type adb shell : ittl go in $ and if u type su (hit enter) you should now see the lasp part of command line protocol changing to : #
Right ?
then you should be able to change permissions of the superuser app ? right ?
or am i completely lost in the dust !?
Edit : well, if you want to keep root on an old leaked, its your thing, but i would recomand THIS tutorial instead cause you have a real ROM through OTA now.... dont know if it will change anything, but i followed this one !
Partial Root Restore
I was able to restore root to my phone after the 4.1.1 update using the information in this thread...
http://forum.xda-developers.com/showthread.php?t=1911261
Basically, if you had a root backup before the update, you may still have partial root on your phone.
To verify...
adb shell
su
If you find yourself at the # prompt, not all hope is lost!
:fingers-crossed:
Regained root on my Atrix using this instructions
http://forum.xda-developers.com/showthread.php?p=35905543#post35905543

[Q] Error when Backup TA Partition,plez help..???

My Phone use FW 245...
i use the last version Backup-TA-9.10,....everything is ok untill this show
" dd: can't open/dev/block/mmcb1kQp1': Permission dinied
FAILED - Backup does not macth TA partition.Please try again." any one can help..???? thnx before GOD bless u bro
whengzyi said:
" dd: can't open/dev/block/mmcb1kQp1': Permission dinied
Click to expand...
Click to collapse
Is your phone rooted? The backup ta tool uses adb shell to execute commands on your phone. the permission denied line says it is not allowed to access the TA Partition. I guess your phone isn't rooted or you did not allow shell/adb/whatever to access superuser ?
root and acces root # grant.... whats wrong???:crying:
i use in xp and win 7,still get same error.
Your quoted the error message seems wrong.. the TA partition is in /dev/block/mmcblk0p1
Things to check..
1. USB debugging enabled
2. Whether granted root access to adb shell.. (not terminal emulator).
To check.. connect usb to phone.. Open command prompt in PC.. run "adb shell" (no quotes).. then in that shell run "su".. You should see the root prompt.. (and should see a toast saying superuser access granted). otherwise check SuperSU app to see ADB Shell root access granting status.. maybe denied there.
..
Problem solved,thnx guys....Gbu all
xperia Sp wemg

Categories

Resources