IntelliJ IDEA Android Database Sync Not Happening

Viewed 2375

I am using Intellij IDEA 13 Ultimate for Android Development. As you may know, they offered a nice plugin which connects to installed Android application database and allows you to modify its data or schema and later you can click on the sync button to send all these changes to the device. (or this is what it supposed to do at least)

For some reason this is not happening to me. I am connected to the device and changing some data and click on it but it seems it performs some updates, even I get the updated data when I connect and sync again but nothing happening in the UI? Any ideas why? For example, I have a list shown on the UI and after I change its title from database using this tool, it doesn't reflect anything to the UI even if I completely destroy the app from Task Manager and re-open it.

enter image description here

Update 1:

So I've tried Upload button but this is the error I received:

Data Source Synchronization Error Cannot upload 'Android SQLite': /system/bin/sh: cannot create /data/data/com.something.someapp/databases/someappdb: Permission denied

so I guess this means, it is not really working.

2 Answers

I have the same problem.
I now found a solution to change the permissions of the database files, but it doesn't seem to effect anything.

you can run follwoing commands:

adb shell
run-as <your-package-name-of-the-app>
chmod 777 databases

Just run the commands one after the other. Probably you can find a way to use this to connect to the android database ^^

Related