summaryrefslogtreecommitdiffstats
path: root/res/values
diff options
context:
space:
mode:
authorMakoto Onuki <omakoto@google.com>2012-07-18 16:13:23 -0700
committerMakoto Onuki <omakoto@google.com>2012-07-19 15:46:19 -0700
commit8a6e02add7c70666cdb506310c134af7d91c323c (patch)
treeef7bf64789d80ba98b4eb1c5988199aa99962a02 /res/values
parentbcc85acf1b911a8a58c2411a103aa7d61d70d1a6 (diff)
downloadpackages_providers_ContactsProvider-8a6e02add7c70666cdb506310c134af7d91c323c.zip
packages_providers_ContactsProvider-8a6e02add7c70666cdb506310c134af7d91c323c.tar.gz
packages_providers_ContactsProvider-8a6e02add7c70666cdb506310c134af7d91c323c.tar.bz2
Add debug activity to export all data files as a zip
This will allow us to collect contacts database files even from user build devices where "adb root" is disabled. This is simialr to what CalendarProvider does in CalendarDebugActivity. The difference is it'll export all files under "/data/data/com.android.providers.contacts/", including the profile db and highres photo files. To launch the activity: adb shell am start -a com.android.providers.contacts.DUMP_DATABASE I'm planning to add somethig to the people app to fire off this intent, so that users will be able to do it without adb. The activity will show a warning message with "Start", "Delete" and "Cancel" buttons. - "Cancel" will close the dialog. - "Start" will create a zip file. After that, it'll present the activity chooser to let the user choose which app to use to send it with. - "Delete" will delete the ZIP file. We need to make sure to ask the user to do this once sending email is succeessfully finished (unfortunately there's no way for us to detect it programmatically), as any apps with the "read sdcard" parmission will be able to read it otherwise. In the future, we may want to add options to, for example, exclude the profile db or exclude highres pictures. Bug 6813842 Change-Id: Id181efad65194ed39b0a0bc1226252da62b8927e
Diffstat (limited to 'res/values')
-rw-r--r--res/values/strings.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index aaa7f44..e17b5ed 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -58,4 +58,26 @@
Note that the trailing space is important, and that to achieve it we have to wrap the
string in double quotes. -->
<string name="voicemail_from_column">"Voicemail from "</string>
+
+ <!-- Debug tool - title of the dialog which copies the contact database into the external storage. [CHAR LIMIT=NONE] -->
+ <string name="debug_dump_title">Copy contacts database</string>
+
+ <!-- Debug tool - message shown to the user on the dialog which copies the contact database into the external storage. [CHAR LIMIT=NONE] -->
+ <string name="debug_dump_database_message">You are about to 1) make a copy of your database which includes all contacts related information and all call log to the SD card/USB storage, which is readable by any app, and 2) email it. Remember to delete the copy as soon as you have successfully copied it off the device or the email is received.</string>
+
+ <!-- Debug tool - dialog button- delete file now [CHAR LIMIT=NONE] -->
+ <string name="debug_dump_delete_button">Delete now</string>
+
+ <!-- Debug tool - dialog button - start copying [CHAR LIMIT=NONE] -->
+ <string name="debug_dump_start_button">Start</string>
+
+ <!-- Debug tool - email subject [CHAR LIMIT=NONE] -->
+ <string name="debug_dump_email_sender_picker">Choose a program to send your file</string>
+
+ <!-- Debug tool - email subject [CHAR LIMIT=NONE] -->
+ <string name="debug_dump_email_subject">Contacts Db attached</string>
+
+ <!-- Debug tool - email body [CHAR LIMIT=NONE] -->
+ <string name="debug_dump_email_body">Attached is my contacts database with all my contacts information. Handle with care.</string>
+
</resources>