gpt4 book ai didi

android - 如何删除自动备份数据

转载 作者:行者123 更新时间:2023-11-29 20:07:28 25 4
gpt4 key购买 nike

我读了this文章。如您所见,它说我需要执行以下命令:

adb shell bmgr wipe <TRANSPORT> <PACKAGE>

请注意,我使用的是 Windows 操作系统。

为了获取 Transport 值,我执行了以下命令:

adb shell bmgr list transports

它返回了以下列表:

    android/com.android.internal.backup.LocalTransport
* com.google.android.gms/.backup.BackupTransportService

我尝试使用以下所有命令删除数据:

adb shell bmgr wipe android/com.android.internal.backup.LocalTransport com.myapp
adb shell bmgr wipe * com.google.android.gms/.backup.BackupTransportService com.myapp
adb shell bmgr wipe com.google.android.gms/.backup.BackupTransportService com.myapp
adb shell bmgr wipe com.google.android.gmsandroid/com.android.internal.backup.LocalTransport com.myapp
adb shell bmgr wipe com.google.android.gms* com.google.android.gms/.backup.BackupTransportService com.myapp
adb shell bmgr wipe com.google.android.gmscom.google.android.gms/.backup.BackupTransportService com.myapp
adb shell bmgr wipe com.google.android.gms.android/com.android.internal.backup.LocalTransport com.myapp
adb shell bmgr wipe com.google.android.gms.* com.google.android.gms/.backup.BackupTransportService com.myapp
adb shell bmgr wipe com.google.android.gms.com.google.android.gms/.backup.BackupTransportService com.myapp

但它们都不起作用,即在安装应用程序后,仍然有以前安装的数据。那么我应该使用哪个命令来删除自动备份数据?

最佳答案

我想知道我也必须以哪种形式进入 TRANSPORT。感谢您的测试!如果您想删除备份但由于不清楚如何正确调用删除而无法删除,您可以尝试禁用和启用自动备份。

adb shell bmgr enable false
adb shell bmgr enable true

引自 https://developer.android.com/studio/command-line/bmgr.html最后一段:

Warning! When backup is disabled, the current backup transport will explicitly wipe the entire active data set from its backend storage. This is so that when a user says they do not want their data backed up, the Backup Manager respects that wish. No further data will be saved from the device, and no restore operations will be possible, unless the Backup Manager is re-enabled (either through Settings or through the above bmgr command).

关于android - 如何删除自动备份数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35459053/

25 4 0
文章推荐: javascript - 从页面移动到另一个页面时从 Sqlite 数据库中删除的数据
文章推荐: javascript - 如何在页面加载后注册事件处理程序?
文章推荐: javascript -
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com