attach query flags to content provider uri

Change-Id: I80197a96d5d79cdc553d600acf9a2a8c99c2f8a4