Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some system apps show 'waiting to back up...', no log, only status: -2001 #755

Closed
grote opened this issue Sep 27, 2024 · 3 comments
Closed

Comments

@grote
Copy link
Collaborator

grote commented Sep 27, 2024

Chromium, Calculator, Messaging, Work profile never get backup status recorded, because the system doesn't call the normal API callbacks. We only see this in the log:

2024-09-27 10:32:57.145 27291-27379 Notificati...upObserver com.stevesoltys.seedvault            I  Completed. Target: org.chromium.chrome, status: -2001
2024-09-27 10:32:57.145 27291-27379 Notificati...upObserver com.stevesoltys.seedvault            I  Showing progress notification for org.calyxos.bellis 504/695
2024-09-27 10:32:57.149 27291-27379 Notificati...upObserver com.stevesoltys.seedvault            I  504/695 - Chromium (org.chromium.chrome)
2024-09-27 10:32:57.151 27291-27379 Notificati...upObserver com.stevesoltys.seedvault            I  Completed. Target: org.fdroid.fdroid.privileged, status: -2001
2024-09-27 10:32:57.151 27291-27379 Notificati...upObserver com.stevesoltys.seedvault            I  Showing progress notification for org.chromium.chrome 505/695

Best start for debugging this is recompiling AOSP with more verbose DEBUG logging enabled and see if anything gets logged there to give a clue.

@grote
Copy link
Collaborator Author

grote commented Sep 27, 2024

    /**
     * Indicates that backup is either not enabled at all or
     * backup for the package was rejected by backup service
     * or backup transport,
     *
     * @hide
     */
    @SystemApi
    public static final int ERROR_BACKUP_NOT_ALLOWED = -2001;

May be related to D2D of system apps. Strange, that I saw this as an intermittent error for bromite as well in CI integration tests.

@grote
Copy link
Collaborator Author

grote commented Sep 27, 2024

Ok so the problem is that affected system apps have set allowBackup="false" and even when using D2D, the system honors that (for system apps only).

@grote
Copy link
Collaborator Author

grote commented Oct 14, 2024

#750 now exposes the real reason, not showing "waiting for backup".

@grote grote closed this as completed Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant