Loading services/backup/java/com/android/server/backup/BackupManagerService.java +2 −4 Original line number Diff line number Diff line Loading @@ -800,8 +800,7 @@ public class BackupManagerService extends IBackupManager.Stub implements BackupM return false; } UserBackupManagerService userBackupManagerService = getServiceForUserIfCallerHasPermission( UserHandle.USER_SYSTEM, "setBackupPassword()"); getServiceForUserIfCallerHasPermission(userId, "setBackupPassword()"); return userBackupManagerService != null && userBackupManagerService.setBackupPassword(currentPassword, newPassword); Loading @@ -815,8 +814,7 @@ public class BackupManagerService extends IBackupManager.Stub implements BackupM return false; } UserBackupManagerService userBackupManagerService = getServiceForUserIfCallerHasPermission( UserHandle.USER_SYSTEM, "hasBackupPassword()"); getServiceForUserIfCallerHasPermission(userId, "hasBackupPassword()"); return userBackupManagerService != null && userBackupManagerService.hasBackupPassword(); } Loading services/backup/java/com/android/server/backup/UserBackupManagerService.java +3 −1 Original line number Diff line number Diff line Loading @@ -2820,6 +2820,7 @@ public class UserBackupManagerService { } } @SuppressWarnings("AndroidFrameworkRequiresPermission") private boolean startConfirmationUi(int token, String action) { try { Intent confIntent = new Intent(action); Loading @@ -2828,7 +2829,8 @@ public class UserBackupManagerService { "com.android.backupconfirm.BackupRestoreConfirmation"); confIntent.putExtra(FullBackup.CONF_TOKEN_INTENT_EXTRA, token); confIntent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); mContext.startActivityAsUser(confIntent, UserHandle.SYSTEM); mContext.startActivityAsUser(confIntent, UserHandle.of(mUserId)); Slog.i(TAG, mLogIdMsg + "Starting confirmation UI"); } catch (ActivityNotFoundException e) { return false; } Loading Loading
services/backup/java/com/android/server/backup/BackupManagerService.java +2 −4 Original line number Diff line number Diff line Loading @@ -800,8 +800,7 @@ public class BackupManagerService extends IBackupManager.Stub implements BackupM return false; } UserBackupManagerService userBackupManagerService = getServiceForUserIfCallerHasPermission( UserHandle.USER_SYSTEM, "setBackupPassword()"); getServiceForUserIfCallerHasPermission(userId, "setBackupPassword()"); return userBackupManagerService != null && userBackupManagerService.setBackupPassword(currentPassword, newPassword); Loading @@ -815,8 +814,7 @@ public class BackupManagerService extends IBackupManager.Stub implements BackupM return false; } UserBackupManagerService userBackupManagerService = getServiceForUserIfCallerHasPermission( UserHandle.USER_SYSTEM, "hasBackupPassword()"); getServiceForUserIfCallerHasPermission(userId, "hasBackupPassword()"); return userBackupManagerService != null && userBackupManagerService.hasBackupPassword(); } Loading
services/backup/java/com/android/server/backup/UserBackupManagerService.java +3 −1 Original line number Diff line number Diff line Loading @@ -2820,6 +2820,7 @@ public class UserBackupManagerService { } } @SuppressWarnings("AndroidFrameworkRequiresPermission") private boolean startConfirmationUi(int token, String action) { try { Intent confIntent = new Intent(action); Loading @@ -2828,7 +2829,8 @@ public class UserBackupManagerService { "com.android.backupconfirm.BackupRestoreConfirmation"); confIntent.putExtra(FullBackup.CONF_TOKEN_INTENT_EXTRA, token); confIntent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); mContext.startActivityAsUser(confIntent, UserHandle.SYSTEM); mContext.startActivityAsUser(confIntent, UserHandle.of(mUserId)); Slog.i(TAG, mLogIdMsg + "Starting confirmation UI"); } catch (ActivityNotFoundException e) { return false; } Loading