File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
services/java/com/android/server Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -4401,6 +4401,18 @@ void restoreNextAgent() {
44014401 return ;
44024402 }
44034403
4404+ if (packageInfo .applicationInfo .backupAgentName == null
4405+ || "" .equals (packageInfo .applicationInfo .backupAgentName )) {
4406+ if (DEBUG ) {
4407+ Slog .i (TAG , "Data exists for package " + packageName
4408+ + " but app has no agent; skipping" );
4409+ }
4410+ EventLog .writeEvent (EventLogTags .RESTORE_AGENT_FAILURE , packageName ,
4411+ "Package has no agent" );
4412+ executeNextState (RestoreState .RUNNING_QUEUE );
4413+ return ;
4414+ }
4415+
44044416 if (metaInfo .versionCode > packageInfo .versionCode ) {
44054417 // Data is from a "newer" version of the app than we have currently
44064418 // installed. If the app has not declared that it is prepared to
You can’t perform that action at this time.
0 commit comments