Back up / restore preferred app configuration
Bug 19848104 Change-Id: I84cdfcc44b48a9732984955d7eedf745b5586bdd
This commit is contained in:
@@ -464,7 +464,7 @@ public class BackupTransport {
|
||||
* transport level).
|
||||
*
|
||||
* <p>After this method returns zero, the system will then call
|
||||
* {@link #getNextFullRestorePackage()} to begin the restore process for the next
|
||||
* {@link #nextRestorePackage()} to begin the restore process for the next
|
||||
* application, and the sequence begins again.
|
||||
*
|
||||
* <p>The transport should always close this socket when returning from this method.
|
||||
|
||||
@@ -1,3 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2014 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 android.app.backup;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
@@ -268,6 +268,12 @@ interface IPackageManager {
|
||||
|
||||
void clearCrossProfileIntentFilters(int sourceUserId, String ownerPackage);
|
||||
|
||||
/**
|
||||
* Backup/restore support - only the system uid may use these.
|
||||
*/
|
||||
byte[] getPreferredActivityBackup(int userId);
|
||||
void restorePreferredActivities(in byte[] backup, int userId);
|
||||
|
||||
/**
|
||||
* Report the set of 'Home' activity candidates, plus (if any) which of them
|
||||
* is the current "always use this one" setting.
|
||||
|
||||
Reference in New Issue
Block a user