bmgr
bmgr
是一項殼層工具,可讓您在 Android 裝置 2.2 (API 等級 8) 以上版本中與備份管理員互動。這項工具會提供指令來啟動備份與還原作業,如此一來就不必重複抹除資料或採取類似的干擾步驟,以便測試應用程式的備份功能。bmgr
本工具支援自動備份和金鑰/數值備份。
注意:bmgr restore
不適用於加密備份。
您可以透過 adb shell 在裝置上執行 bmgr
指令,然後使用 logcat 監控指令的輸出內容。如需可用指令的清單和說明,請執行 bmgr
工具 (不含引數)。如需觸發備份與還原作業的資訊,請參閱測試備份與還原一文。
如需在應用程式中新增備份支援的資訊,請參閱資料備份一文
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-05-06 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]