20

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

Comic Sans MS Lover
  • 1,729
  • 5
  • 26
  • 52

2 Answers2

33

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.

shellter
  • 36,525
  • 7
  • 83
  • 90
0

use /system/xbin/busybox chmod

example:

busybox chmod u+s /system/xbin/busybox

CS QGB
  • 297
  • 1
  • 3
  • 12