Reputation: 106
I'm having three not rooted phones here. Two of them have Android 10 and one has Android 8.0. On one with Android 10 I just cant access the app files in /data/data directory with the Device File Explorer in Android Studio. The error I get is:
`run-as: /data has wrong owner: 0/1000, not 1000´
I'm just not finding anything useful to fix this.
Upvotes: 6
Views: 2291
Reputation: 123
Since I had to dive into the comments of the original question to solve it for myself, I'll repeat the answer that helped me.
I uninstalled the app, restarted my phone, installed it again with android studio and it worked like a charm after that.
Upvotes: 1
Reputation: 202
In case you're still looking for an answer.
This most likely happens when your database is created in the past (probably from some code that was a bit off). I advise you to delete the existing database from the device file explorer, make sure your code is right, and re-run the app.
This should create a new database and work.
Upvotes: 0