Read files on the data directory in the case of a non-root phone

Source: Internet
Author: User

Read files in the data directory without root phone

Errors when using the ADB command if you use the ADB command directly generates the following error:
127| [Email protected]:/$ cd/datacd/data[email Protected]:/data $ lslsopendir failed, Permission denied
is not authorized. Proper use of ADB to read files in the data directory
run-as com.your.packagerun-as com.your.package[email protected]:/data/data/com.your.package $ cd/data/data /com.your.packagecd/data/data/com.your.package[email Protected]:/data/data/com.your.package $ Lslscachedatabaseslibshared_prefs[email protected]:/data/data/com.your.package $ cd DATABASESCD databases[email Protected]:/data/data/com.your.package/databases $ lsyourpackagename.db$ Cat preferences.db >/mnt/sdcard/ Yourpackagename.db   
Copy the db file from the package directory you want to access to sdcard, so you can access it properly!

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.