Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ADB Shell giving bad mode when executing chmod (under su)

I'm having an issue related to the Android ADB Shell. When I try to execute the command chmod he gives me a "Bad Mode". I don't get it why. I'm sure I'm executing under "su", as represented by the '#'. Anyone have any idea why this is happening, and how to make it work? Thanks in advance.

chmod o+rw /dev/ttyS1

like image 281
Comic Sans MS Lover Avatar asked Feb 14 '12 23:02

Comic Sans MS Lover


1 Answers

Bad mode means the permissions on the file are not set correctly, and some versions of chmod don't understand the o+rw notation. All chmods understand octal notation, where 6=read/write, so try

 chmod 666 /dev/ttyS1

I hope this helps.

like image 84
shellter Avatar answered Nov 15 '22 20:11

shellter