Search code examples
androideclipsesqliteroot

Can't open data directory on rooted android phone


I just rooted my phone because I need acces to the database my application is using. However, even though my phone is rooted, I still can't open the data folder in Eclipse File Explorer.

Is there something I've forgotten? Do I need to tell Eclipse I'm a superuser or something? I can access the data folder on the emulator, but not on my actual device.

And I really want to develop on my device, the emulator is much slower and I can't get the internet connection to work.

Any ideas?


Solution

  • Yet another option is to check the database using Root Explorer from the device itself. It can read .db files. If you need to modify them, there is SQLite editor (by the same company), but I do not have much experience with it.


    Update: I was playing with my phone after reaching this page: http://www.screaming-penguin.com/node/7742

    Instead of the emulator as in that post, I had my phone connected to the usb (Samsung Captivate, custom 2.2 ROM), with usb debugging enabled.

    I run the following commands, as an example:

    $adb -d shell
    # su
    # cd /dbdata/databases/com.android.browser
    # sqlite3 browser.db
    sqlite> .tables
    .tables
    android_metadata  bookmarks    folders    searches
    sqlite> select * from bookmarks;
    (listed all my bookmarks)
    

    Basically, you can run any SQL command from adb on any database you open (provided you run it as su)