I have a Droid3 with Android version 2.3.4. I tagged some photos using the Gallery application. For the first keyword tag added to a photo, the tag is stored as XMP data in the JPEG file itself. However, any additional tags are not stored as XMP data. Adding the second tag doesn't even modify the file at all.

Where are the other tags stored?

Is there a way to get the photos along with the tags off my phone?

1 Answer 1


The tags are stored through the media's content provider. In layman's terms, the content-provider is a way of Android interacting with a database backing store.

The location can be found in this directory:


Which is Sqlite3 database that has the following information stored in it, or rather, a combination of certain columns, not all of them, due to the way developers can optionally add the fields of the data to be stored. (If you're un-rooted you will not be able to list the database - if someone can clarify this, just checked on Europa GT-i5500 which is unrooted and issuing ls fails)

If you have a look at this document that details the columns used in the database for the Media (that is a generic columns that is a de-facto within the database), it is combined with this other information

(Now at this stage, your brain is probably turned to mush looking at it but the pertinent information is in the column names which is found in the database)

As for the 'Tag' field you're referring to, quite simply, Android does not store them, there are replacement apps that replaces the stock version of the Gallery with extras such as the 'tag' field you're referring to. The most it can hold was the latitude/longitude/display name of the image and a picasa id in which it may get uploaded to depending if picasa is enabled with your account.

  • Can one access /data/data/com.android.providers.media/databases with a stock Droid3?
    – Bribles
    Commented Jul 13, 2012 at 14:24
  • Would think so, had no problems accessing the directory on a un-rooted GT-i5500 running Eclair 2.1
    – t0mm13b
    Commented Jul 13, 2012 at 14:25
  • I had to root my phone to access the database.
    – Bribles
    Commented Jul 13, 2012 at 18:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .