Original URL: http://blog.csdn.net/wkl305268748/article/details/13504171
"Premise" The phone must be root
In the console, you want to import the tcpdump file from drive C on your computer into/data/local/tcpdump
The ADB push c:/tcpdump/data/local/tcpdump command is used, but prompts permission denied not have permission
Then use the command adb shell to go to the super user to see:
In the D rwx rwx--x
The first rwx represents "user", which is the owner of a file or directory
The second rwx represents "group user", that is, all users who have the same group ID as the file owner.
Finally--x represents "other (others) users".
R readable
W Writable
X executable
The reason why permission denied occurs is because we do not have read and write access as a others user, so we can add read and write permissions (because we are now super admins)
Using the command chmod 777 data
An explanation of command chmod is here: http://blog.csdn.net/wkl305268748/article/details/13505103
You can see the permissions for the data file become D rwx rwx rwx
This will allow you to run the ADB push c:/tcpdump/data/local/tcpdump command again.
Someone might ask, why not just copy the file to the phone in the super user, I tried this command, and then I got an error:
* Daemon not running. Starting it now on Port 5038 *
* Daemon started successfully *
Error:device not found
is because the device does not start, hit the ADB devices command to see a bit, and sure enough not to find devices
When I quit, I hit this order, but I found devices.
I think it may be from the ADB into the super-user, the device is estimated to be occupied, I hope the master can give me a solution
Permission denied solution for "turn" ADB console