ADBを介してすべてのAndroid設定とアプリケーションをバックアップして復元することが可能なかどうかを尋ねたいです。
私は試してみました:
<事前> <コード> adb backup -all adb: unable to connect for backup他のすべてのコマンドが機能している間は機能していません。
この bmgr ?
ADBを介してすべてのAndroid設定とアプリケーションをバックアップして復元することが可能なかどうかを尋ねたいです。
私は試してみました:
<事前> <コード> adb backup -all adb: unable to connect for backup他のすべてのコマンドが機能している間は機能していません。
この bmgr ?
I would like to ask if it possible to backup and restore all Android Settings and applications through ADB.
I tried:
adb backup -all adb: unable to connect for backup
It is not working, while all other commands are working.
Is it possible to use this bmgr ?
デバッグが有効になっていて、デバイスが接続されていることを確認してください。また、デバイス自体の「マイデータのバックアップ」ボタンを実際に選択することを忘れないでください(デバイスでは確認が必要です)。デバイスにそのような画面が表示されない場合は、おそらくPre-IC(&lt; 4.0)電話を実行しているため、残念ながら機能がありません。
また、 adb pull /data/app ./0
はこれには解決策ではありません。バックアップAPI アプリケーション内のバックアップエージェント上の「バックアップ」と「復元」メソッドを手動で発射し、デバイスにシェルしたり、開発マシンとの間でデータをコピーしたりすることはできません。
Make sure debugging is enabled and the device is connected. Also, remember to actually select the "backup my data" button on the device itself (the device requires confirmation). If you don't see such a screen on your device, you're quite possibly running a pre-ICS (< 4.0) phone, which will unfortunately will not have the feature.
Also, bmgr
is not a solution for this- It's a tool for testing apps that handle their own backups using the backup API by manually firing the "backup" and "restore" methods on the backup agent in the application, not shelling into the device and copying data to/from the development machine.
これは物事を補うための私のコマンドを
<事前> <コード> adb pull /data/app ./1許可が拒否されたファイルがいくつかあります - しかし、このバックアップはデバイスをルートするために行われるので、私はより多くの権限を得ることができません:(
Here is my command for backing things up
./adb shell ls -l -a | grep '^[^l]' | sed -e 's/^d.* \([^ ]*\)\r$/mkdir sav\/\1; .\/adb pull \/\1 sav\/\1/' -e 's/-.* \([^ ]*\)\r$/.\/adb pull \/\1 sav\/\1/' | /bin/bash
There are some files where I get a permission denied - but as this backup is made in order to root the device, I can not get more permissions :(
あなたを正しく理解しているなら、このリンク探しているものかもしれません。要約する:
1)実行<コード> デバイスが接続されていることを確認します。
2) を実行する
をすべてのApp APKをつかみ、それらを現在のフォルダに入れます。
A)または<コード> adb pull /system/sd/app ./ を実行して、SDカードのアプリを取得します。
3)設定はさまざまな場所にありますので、同じ 9988776665435
コマンドを見つけて使用してください。
とリンクは、MacまたはWindowsに基づいて復元する方法を詳述します。
あるいは、 bmgr
コマンドは、いくつかの単純なコマンド( 9988766554338
に復元するためのコード>に> をバックアップと 9988776665544338
)でも機能します。 )。あなたはそれを探していますか?
If I understand you correctly, this link might be what you are looking for. To summarize:
1) Run adb devices
to make sure your device is attached.
2) Run adb pull /data/app ./
to grab all the app APKs and put them in the current folder.
a) Or Run adb pull /system/sd/app ./
to get apps on the SD card.
3) Settings are located in various places, so find out where and then use the same adb pull
command to grab them.
And then the link details how to restore based on Mac or Windows.
Alternatively, it looks like the bmgr
command you mentioned would also work with a few simple commands (adb shell bmgr backup <package>
to backup and adb shell bmgr restore <package>
to restore). What more are you looking for?
問題は、おそらく複数の装置/エミュレータが接続されているためです。
check <コード> adb devices 複数のデバイスを表示する場合は、 ./adb shell ls -l -a | grep '^[^l]' | sed -e 's/^d.* ([^ ]*) $/mkdir sav/1; ./adb pull /1 sav/1/' -e 's/-.* ([^ ]*) $/./adb pull /1 sav/1/' | /bin/bash 0
を接続できない可能性があります。
RUN adb pull /data/app ./11
他のデバイスを再起動し、次にUSBケーブルを切断/再接続して実行します。
<コード> adb pull /data/app ./12
それは1つの装置だけを示すべきです。
今すぐ
<コード> ./adb shell ls -l -a | grep '^[^l]' | sed -e 's/^d.* ([^ ]*) $/mkdir sav/1; ./adb pull /1 sav/1/' -e 's/-.* ([^ ]*) $/./adb pull /1 sav/1/' | /bin/bash 3
とあなたは行くのが良いはずです:)
problem is probably due to more than one device/emulator connected.
check adb devices
if it shows more than one device then it might not be able to connect specialy to emulators
.
run adb usb
it will restart other devices, then disconnect/reconncet usb cable, now run
adb devices
it should show only one device.
now do
adb backup -all
and you should be good to go :)
SDKアップデートを実行し、具体的にはGoogle USBドライバのボックスを確認してSDKを更新してください。
デバイスでUSBデバッグを有効にしてPCに接続したら、ドライバのインストールのプロンプトを取得する必要があります。 Open Device Managerを成功してお使いの携帯電話を検索しても、右クリックしてドライバを右クリックしてアップデートし、 SDK > Extras > Google USB
のGoogle USBドライバフォルダにポイントし、ドライバを更新します。
それからあなたはあなたのデバイスから完全なバックアップを引き出すことができるはずです。
Make sure to run the SDK update and specifically check the box for Google USB Drivers and update the SDK.
After enabling USB debugging on your device and plugging into your PC, you should get a prompt about installing drivers. Even if its successful open device manager and find your phone, right click and update drivers and point it to the Google USB driver folder in the SDK > Extras > Google USB
and let it update the drivers.
Then you should be able to pull full backups off your device.
私はバックアップに必要なGS4を持っていて、残念ながらこのエラーに進んでいます。ちょっとしたヘッドスクラッチ(そして誓う)の後、私はあなたのために働くことを望んでいるという修正を見つけました。 abd
を実行してヘルプのマニュアルをスクロールするだけでこれを見つけることができました。 adb -d backup -apk -shared -all -f C:UsersNAMEackup.ab32
は、「接続されているUSBデバイスにコマンドを指示する」というパラメータです。それで、差し込んだ後、私はそれを私のために働くためにそれを得ました。私が使用したコマンドは次のとおりです。
<コード> adb -d backup -apk -shared -all -f C:UsersNAMEackup.ab3
私が持っていた同じ問題を持っている人のためにこれが働くことを願っています。
I have a GS4 that I needed to backup and unfortunately ran into this error. after a bit of head scratching (and swearing) I found a fix that I hope will work for you. I was able to find this by just running abd
and scrolling through the help documentation. I found that -d
is a parameter that "directs command to the only connected USB device". So after plugging and chugging I got it to work for me. The command I used was:
adb -d backup -apk -shared -all -f C:\Users\NAME\backup.ab
Hope this works for someone having the same issue I had.
私は同じ問題を持っていて、事前ICSもありました。私がそれを回避するために何をしたのは、<コード> 99887766544334 とAWK(リンクをスキップするためのgrepを使って)を使用して、各実際のディレクトリをPC上のディレクトリに引き出すバッチファイルを作成しました。
I had the same issue and am also pre-ICS. What I did to work around it was used an ls of /
and awk (with grep to skip links) to create a batch file that pulls each actual directory onto a directory on my PC.
© 2022 cndgn.com All Rights Reserved. Q&Aハウス 全著作権所有