备份Android加密狗

时间:2013-06-17 13:52:01

标签: c# android

我正在研究Android ADB命令从Android设备备份。当我使用此命令在移动设备中弹出显示时,我使用此命令从移动设备上备份“ -s xxxxxxxxxxxxxx backup -apk -all -f backup.ab ”(备份/不接受)备用)。我触摸了备份,一切正常。现在,当我使用相同的命令执行此操作时,我在Android加密狗上,那么我如何点击我在移动设备中获得的选项,因为android stick / dongle没有屏幕。我坚持这个问题。

抱歉错误的英语。

以下是代码

Process p = new Process();
p.StartInfo.FileName = @"adb.exe";
p.StartInfo.Arguments ="-s xxxxxxxxxxxxxx backup -apk -all -f backup.ab"; //"   ";
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.Start();

string regular = p.StandardOutput.ReadToEnd();
string error = p.StandardError.ReadToEnd();

由于 User2493617

0 个答案:

没有答案