3

I wanted to get database file from the emulator. So, I tried to change the permission of package folder using adb shell. When I use the below command:

adb shell su -c chmod 777 /data/data/com.mypackage.test

It always returns:

Chmod: need 2 arguments

I have changed permission some days ago using above command. But recently I'm always getting the above warning. I have searched a lot and found large information regarding using above command but no one mentioned about this warning issue.

Alex P.
  • 30,437
  • 17
  • 118
  • 169
Patriotic
  • 2,103
  • 4
  • 26
  • 36

2 Answers2

0

I have overcome this issue instead of running adb shell su -c "chmod 777 /data", I run the adb shell first and then the following command : su -c "chmod 777 /data".

enter image description here

Patriotic
  • 2,103
  • 4
  • 26
  • 36
  • I have a same problem please check [link](https://stackoverflow.com/questions/56628647/android-room-database-file-is-invalid-file-format-in-db-browser) – milad salimi Jun 17 '19 at 10:36
0

I have overcome this issue : adb shell su -c 'chmod 777 /data/data/com.mypackage.test'

KONGLZ
  • 1
  • 1