コード例 #1
0
 private static void CopyXMLToSDCard(AdbCommandRunner runner)
 {
     runner.RunShellScriptPrivileged(new string[1]
     {
         string.Format("cp {0} {1}", (object)BlueStacks.ConfigHttpProxy.ConfigHttpProxy.ORIG_FILE_PATH, (object)BlueStacks.ConfigHttpProxy.ConfigHttpProxy.SDCARD_FILE_PATH)
     });
 }
コード例 #2
0
 private static void MoveXMLToOrigLocationAndFixPermissions(AdbCommandRunner runner)
 {
     if (runner.RunShellScriptPrivileged(new string[3]
     {
         string.Format("mv {0} {1}", (object)BlueStacks.ConfigHttpProxy.ConfigHttpProxy.SDCARD_FILE_PATH, (object)BlueStacks.ConfigHttpProxy.ConfigHttpProxy.ORIG_FILE_PATH),
         string.Format("chown system:system {0}", (object)BlueStacks.ConfigHttpProxy.ConfigHttpProxy.ORIG_FILE_PATH),
         string.Format("chmod 600 {0}", (object)BlueStacks.ConfigHttpProxy.ConfigHttpProxy.ORIG_FILE_PATH)
     }))
     {
         return;
     }
     Console.Error.WriteLine("Cannot configure proxy parameters.");
     Environment.Exit(1);
 }