am 5416d7c9: Merge change 5317 into donut
Merge commit '5416d7c905e723a978ac29ccaf22a91b76e9d5c2' * commit '5416d7c905e723a978ac29ccaf22a91b76e9d5c2': Start backing up wallpaper
This commit is contained in:
committed by
The Android Open Source Project
commit
cc79800a74
35
core/java/com/android/internal/backup/SystemBackupAgent.java
Normal file
35
core/java/com/android/internal/backup/SystemBackupAgent.java
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
package com.android.internal.backup;
|
||||
|
||||
import android.backup.AbsoluteFileBackupHelper;
|
||||
import android.backup.BackupHelperAgent;
|
||||
|
||||
/**
|
||||
* Backup agent for various system-managed data
|
||||
*/
|
||||
public class SystemBackupAgent extends BackupHelperAgent {
|
||||
// the set of files that we back up whole, as absolute paths
|
||||
String[] mFiles = {
|
||||
/* WallpaperService.WALLPAPER_FILE */
|
||||
"/data/data/com.android.settings/files/wallpaper",
|
||||
};
|
||||
|
||||
public void onCreate() {
|
||||
addHelper("system_files", new AbsoluteFileBackupHelper(this, mFiles));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user