ADB on Mac Operation not permitted - Android Software Development

I have installed the SDK and I'm able to run ADB
But when I try to run "adb remount"
it returns remount failed: Operation not permitted, even if I run it as su
as a note I'm running Snow Leopard, newest SDK
And VillainROM 1.0 KE2 on a Galaxy S 2

On my mac i have to enter ./adb remount....
Are u entering the ./ at the beginning of the command?
Sent from my HTC Evo

The ./ is cause the path to your adb isn't set in your shell.
From something awesome

Yes, I am. Otherwise it would have said command not found
I can do adb shell, but not remount
Sent from my GT-I9100 using XDA Premium App

Related

ADB in Linux

I had my adb working with my Droid now when i try to enter
adb shell or adb remount
(Yes i have USB Debugging Enabled, and my sdk is added to my path)
this is what happens
* daemon not running. starting it now *
* daemon started successfully *
error: insufficient permissions for device
not sure if this is because we don't have root. any help would be appreciated.
you are unable to 'adb shell'?
I have shell access, but not remount.
No I cannot get into shell
I have found a fix.
Seems to be that i need to run adb usb as root in Linux.
so for me my path to my sdk is
~/Desktop/androidsdk/tools
so i have to run "sudo ~Desktop/androidsdk/tools/adb"
then adb shell works as does ddms for logcats and screenshots.
cool, if adb is working then maybe I can install the old mail.apk on my incredible as a non-system app.
Hrmmm.... I don't need to use sudo on the mac or linux. What are the permissions on adb?
Sent from my ADR6300 using the XDA mobile application powered by Tapatalk
jrebeiro said:
Hrmmm.... I don't need to use sudo on the mac or linux. What are the permissions on adb?
Sent from my ADR6300 using the XDA mobile application powered by Tapatalk
Click to expand...
Click to collapse
I chmodded 777
permissions are
rwxrwxrwx
This is weird, I had adb working just fine (without doing anything different) on ubuntu 9.10, then I upgraded to 10.04 and I have no permissions, even when I run it using sudo... ugh..
try re installing the sdk, thats what i had to do

Im sorry

Hello,im sorry for asking all theese questions lately but i am really confused.could someone post how to adb push and adb shell from like the first cmd line.because i do
cd C:\android-sdk-windows\tools
adb remount
Remount failed no such file or directory
extra info. i am rooted i have recovery and su i have samsung driver installed usb debugging checked.thank you everyone i really appreciate all the help.
Can Any1 Help?
II5StarII Swag said:
Can Any1 Help?
Click to expand...
Click to collapse
Adb push is to send something to the phone. You needt to put that file in your tools directory on the computer, then navigate there as you demonstrated properly.
Adb push FILENAME /Location/
To access the shell
Adb shell
$ not root access
# root access
To mount the file system with th adb remount command, you need busybox installed. Otherwise you have to mount it from the shell (sorry don't have the long ass command memorized, but its all over here)
Sent from my SPH-D700 using XDA App

feeling like a serious noob today--ADB linux help

ok well i've been using adb for a while now via windows on our desktop, my laptop however runs ubuntu. but i've run into a problem.....I CAN'T OPEN ADB IN LINUX! using terminal i navigate to the proper location then i initiate adb shell but i get an error saying the command doesn't exist...what am i doing wrong?
tried ./adb ?
if you haven't added ADB to path it won't be recognized as a command, then you'd have to execute it using ./adb
Hi, adb
is located in <android-sdk-folder>/platform-tools folder. You could add it into your $PATH variable in .bashrc . Than it's ready to use from anywhere

[Q] Shell, terminal emulator, how to...?!

Greetings to all!
Can You tell me how can i use shell in WF, what can i do in/with shell, is shell useful for working with, where can i find commands for android shell...?!
I'v installed it but when i type "Su" there is no action only "command not found" also when i type some other commands...
You must be rooted and have Superuser installed to allow terminal emulator to access SU.
Im rooted!
Have you got the Superuser App? Because, at the very least, atleast the "su" command should work on the terminal emulator, irrespective of others.
Anyway, some read through threads for shell and it's commands:
http://forum.xda-developers.com/showthread.php?t=718264
http://forum.xda-developers.com/showthread.php?t=826769
Yes, i have...Thats why is strange for me...
I rooted WF on my Linux Ubuntu 10.10...
You'll need the android development kit from google. Extra the tools to your personal user bin folder. (~/bin) add into your path statement. Open interval in you should not have adb working. In the terminal using adb issue adb shell. You will now be in a shell on your phone through your computer
Sent from my Incredible using Tapatalk
I know about Adb using phone shell with my Pc but i dont want that, i thought that shell can use only with phone without Pc...To bad...
Or i didnt understand you...!?

[Q] ADB Remount: Remount failed: Operation not permitted

So I was trying earlier to use ADB while trying to add WIFI to one of the ROMs.. I guess I mistyped something and now it is giving me this error..
How can I fix this? It's not really irking me but sometimes I just want to push a file through ADB and I don't want to keep having this error..
Code:
C:\adt-bundle-windows\sdk\platform-tools>adb remount
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
remount failed: Operation not permitted
C:\adt-bundle-windows\sdk\platform-tools>adb remount
remount failed: Operation not permitted
C:\adt-bundle-windows\sdk\platform-tools>adb devices
List of devices attached
003cf8f9ded1abcc device
C:\adt-bundle-windows\sdk\platform-tools>adb root
adbd cannot run as root in production builds
C:\adt-bundle-windows\sdk\platform-tools>adb remount
remount failed: Operation not permitted
C:\adt-bundle-windows\sdk\platform-tools>adb shell
[email protected]:/ $ su
su
[email protected]:/ # exit
exit
[email protected]:/ $ exit
exit
C:\adt-bundle-windows\sdk\platform-tools>adb root
adbd cannot run as root in production builds
C:\adt-bundle-windows\sdk\platform-tools>adb remount
remount failed: Operation not permitted
C:\adt-bundle-windows\sdk\platform-tools>
For some reason if I delete the whole adt-bundle-windows and extract it again from the .zip file.. It mounts but keeps getting the error
Code:
C:\adt-bundle-windows\sdk\platform-tools>adb remount
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
remount failed: Operation not permitted
I'll be going to sleep soon, so if you need me to do something, I might not get back to you till morning.
Thanks for helping me!
You need an insecure kernel to have root in adb. Or root your phone.
klin1344 said:
You need an insecure kernel to have root in adb. Or root your phone.
Click to expand...
Click to collapse
i'm using franco.kernel - test 5.. and i am rooted? i can use supersu, ti backup, root explorer
Sent from my Nexus 4 using Tapatalk 2
Bump, any help on this?
Bumping this. I am having the same issue. Rooted on the latest stock andriod. Custom kernel as well.
You need an insecure boot.img
Either download the one on this post or enable root over adb if you are running CyanogenMod or AOKP.
Use the set of commands in the sticky.
Doesn't need an insecure kernel.
I've had this happen before. I fixed it by first killing adb with "adb kill-server", then do "adb root" to make adb run as root. Then you can "adb remount" to write to the filesystem, then push away! Hope that helps.
ess.boyer said:
I've had this happen before. I fixed it by first killing adb with "adb kill-server", then do "adb root" to make adb run as root. Then you can "adb remount" to write to the filesystem, then push away! Hope that helps.
Click to expand...
Click to collapse
This worked for me. I was pulling my hair out trying to get the system rw. adb root, did the trick. Make sure you set the phone in to root for adb in Settings/Developer option/Root Access
You are the f'ing man.
What is "adb kill-server".
ess.boyer said:
I've had this happen before. I fixed it by first killing adb with "adb kill-server", then do "adb root" to make adb run as root. Then you can "adb remount" to write to the filesystem, then push away! Hope that helps.
Click to expand...
Click to collapse
@ess.boyer;35057736 , thanks in advance , boss I am new user of android. I use Lenovo A789(ICS 4.0.4, MKT6577 from China) .I have rooted by mobile with SP_Flash_Tool_v3.1222.00 . Now I have remount problem. I want to solve it. What is "adb kill-server" . How can I get"adb kill-server"
and how can I able "adb remount" to write to the filesystem . Please help.
GUYS GUYS
i had this problem with Cyanogen and my kernel is Googy max
ye ADB ROOT command will work. But you can use adbd insecure APP and you don't need adb root command any more
what do i do with the img file??

Categories

Resources