aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2010-04-05 16:18:21 -0700
committerJean-Baptiste Queru <jbq@google.com>2010-04-05 16:18:21 -0700
commit223669e41d1f6b250ab44080af09237ba011aa58 (patch)
tree48fc7525bd6aeb6aeb5b2083cca588fae9983027
parentb4b6fced74341091180b10529c509a7f2d9327fe (diff)
downloadsample-tools_r8.tar.gz
Example of a backup overlay to control the default setting providerandroid-sdk-tools_r7android-adt-0.9.9android-adt-0.9.8tools_r9tools_r8tools_r7froyo-plus-aosp
Bug: 2564562 Change-Id: I7b0378707ecf187aac71b5d106f8a3d7cb6c6a06
-rw-r--r--overlays/backup/frameworks/base/packages/SettingsProvider/res/values/defaults.xml21
-rw-r--r--products/backup_overlay.mk22
2 files changed, 43 insertions, 0 deletions
diff --git a/overlays/backup/frameworks/base/packages/SettingsProvider/res/values/defaults.xml b/overlays/backup/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
new file mode 100644
index 0000000..21f3167
--- /dev/null
+++ b/overlays/backup/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/**
+ * Copyright (c) 2009, The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+<resources>
+ <string name="def_backup_transport">com.google.android.backup/.BackupTransportService</string>
+</resources>
diff --git a/products/backup_overlay.mk b/products/backup_overlay.mk
new file mode 100644
index 0000000..c7f293c
--- /dev/null
+++ b/products/backup_overlay.mk
@@ -0,0 +1,22 @@
+#
+# Copyright (C) 2008 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# This is an example of how to set an overlay that configures the
+# default backup transport. In this example, the configuration points
+# to the Google implementation, to show the exact syntax in a real-world
+# example.
+
+PRODUCT_PACKAGE_OVERLAYS := device/sample/overlays/backup