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!