Whenever I run the following line
adb -d shell "run-as com.package.name ls /data/user/0/com.package.name/databases/"
I get the following error
/data/user/0/com.package.name/databases/ no such file or directory
This is how I'm creating the database
public SQLiteHelper(Context context, String DatabaseName) {
super(context, DatabaseName+".db", null, 1);
this.context = context;
this.DatabaseName = DatabaseName+".db";
Log.d(TAG, "DB: " + DatabaseName);
Log.d(TAG, "Path: " + context.getDatabasePath(this.DatabaseName).toString());
}
The Log cat however displays the following
Path: /data/user/0/com.package.name/databases/test1.db
Signaling that the database has been created. Why is the command prompt telling me no such file or directory exists?
Hours ago I entered the line
adb shell pm clear com.package.name
As I wanted to delete the previous databases that I found on the device. But when I started to have problems I simply uninstalled using
adb uninstall com.package.name
However, I'm still experiencing problems. My overall main goal is to simply view the contents of my databases for development purposes. I currently have a Nexus 5 (Android Version 6.0.1 unrooted phone) connected to a PC.
Does anyone have an idea on what the problem might be?