title: cannot change file permissions on Android Virtual Device (AVD)
body: <p>I am unable to change permissions on a shell script I need to test on an Android Virtual Device (AVD).  The AVD is Google Pixel 2 (API 29) - it was created via Android Studio.  Using Android Debug Bridge (adb) from Android SDK on a MacBook, I did:</p>
  
  <p>%adb push file.sh /sdcard/steve<br></p>
  
  <p>The file.sh script is executable (mode 755) on the MacBook, but when it gets pushed onto the AVD, the mode goes to 660 (i.e. no longer executable).  So then I do:</p>
  
  <p>%adb shell</p>
  
  <p>which opens up an emulator shell session.  I then proceed in the AVD shell session as follows:</p>
  
  <p>%generic_x86: cd /sdcard/steve<br>
  %generic_x86: chmod +x file.sh<br><br>
  This yields no error message and actually no message at all.  There is no change to the permissions for file.sh. It remains not executable.<br><br> Do I need to push the file to a different directory on the AVD? Or is there some other way to make me able to change file permissions once it is pushed onto the AVD (emulator)?<br><br> Note: I have looked at the Android Studio "Device File Explorer" where one can create files and directories on the AVD, however, one cannot change permissions on the files. <br><br>TIA for any tips,<br>Steve</p>