Permission denied solution for "turn" ADB console

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.