如题所述
第1个回答 2011-04-08
这个是一种备份服务。研究了一下,先来看看如何来操作才能够backup
android default backup function is disabled
before you do the actions as follow. you should confirm
Settings.Secure.BACKUP_ENABLED and Settings.Secure.BACKUP_PROVISIONED was set 1 in database
bash-4.0#
bash-4.0# bmgr enable true --enable backup
Backup Manager now enabled
bash-4.0# bmgr transport android/com.android.internal.backup.LocalTransport <!--指定一个transport来做backup的动作 具体的功能后面会详讲 -->
Selected transport android/com.android.internal.backup.LocalTransport (formerly android/com.android.internal.backup.LocalTransport)
bash-4.0# bmgr backup com.android.browser <!--制定要备份的packagename-->
bash-4.0# bmgr run <!--开始备份-->
bash-4.0#
备份已经做完了 现在来看看结果
<!-- -->
bash-4.0# cd /data/backup/
bash-4.0# ls
com.android.internal.backup.LocalTransport
processed <!--存储已经备份过的packagename -->
pending <!--存储还需要备份的packagename-->
bash-4.0# cat processed
$com.android.providers.userdictionarycom.android.inputmethod.latinandroidcom.android.providers.settingscom.android.browsercom.android.settingsbash-4.0#
bash-4.0#
bash-4.0# cd pending/
bash-4.0# ls
journal46314.tmp
bash-4.0# cat journal46314.tmp
com.android.providers.settingsbash-4.0
bash-4.0#
bash-4.0# cd ..
bash-4.0# ls
com.android.internal.backup.LocalTransport
processed
pending
bash-4.0# cd com.android.internal.backup.LocalTransport/ <!--该目录下存储 backup state -->
bash-4.0# ls
com.android.providers.settings
android
@pm@
com.android.browser
com.android.providers.userdictionary
com.android.inputmethod.latin
com.android.settings
bash-4.0# cat com.android.browser
bash-4.0#
bash-4.0# cd /cache/backup <!--该目录下存储的才是真正的data -->本回答被网友采纳
android default backup function is disabled
before you do the actions as follow. you should confirm
Settings.Secure.BACKUP_ENABLED and Settings.Secure.BACKUP_PROVISIONED was set 1 in database
bash-4.0#
bash-4.0# bmgr enable true --enable backup
Backup Manager now enabled
bash-4.0# bmgr transport android/com.android.internal.backup.LocalTransport <!--指定一个transport来做backup的动作 具体的功能后面会详讲 -->
Selected transport android/com.android.internal.backup.LocalTransport (formerly android/com.android.internal.backup.LocalTransport)
bash-4.0# bmgr backup com.android.browser <!--制定要备份的packagename-->
bash-4.0# bmgr run <!--开始备份-->
bash-4.0#
备份已经做完了 现在来看看结果
<!-- -->
bash-4.0# cd /data/backup/
bash-4.0# ls
com.android.internal.backup.LocalTransport
processed <!--存储已经备份过的packagename -->
pending <!--存储还需要备份的packagename-->
bash-4.0# cat processed
$com.android.providers.userdictionarycom.android.inputmethod.latinandroidcom.android.providers.settingscom.android.browsercom.android.settingsbash-4.0#
bash-4.0#
bash-4.0# cd pending/
bash-4.0# ls
journal46314.tmp
bash-4.0# cat journal46314.tmp
com.android.providers.settingsbash-4.0
bash-4.0#
bash-4.0# cd ..
bash-4.0# ls
com.android.internal.backup.LocalTransport
processed
pending
bash-4.0# cd com.android.internal.backup.LocalTransport/ <!--该目录下存储 backup state -->
bash-4.0# ls
com.android.providers.settings
android
@pm@
com.android.browser
com.android.providers.userdictionary
com.android.inputmethod.latin
com.android.settings
bash-4.0# cat com.android.browser
bash-4.0#
bash-4.0# cd /cache/backup <!--该目录下存储的才是真正的data -->本回答被网友采纳