We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents be6024d + e7287a0 commit 4ea283aCopy full SHA for 4ea283a
1 file changed
services/java/com/android/server/BackupManagerService.java
@@ -4401,6 +4401,18 @@ void restoreNextAgent() {
4401
return;
4402
}
4403
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
+
4416
if (metaInfo.versionCode > packageInfo.versionCode) {
4417
// Data is from a "newer" version of the app than we have currently
4418
// installed. If the app has not declared that it is prepared to
0 commit comments