コード例 #1
0
        public void PullTest()
        {
            AdbConnection connect     = CreateAdbConnection();
            SyncSession   syncSession = connect.OpenSync();

            syncSession.Pull("/data/test.log", new FileInfo("test.log"));
            syncSession.Close();

            connect.Close();
        }
コード例 #2
0
        public void PushTest()
        {
            using (AdbConnection connect = CreateAdbConnection())
            {
                SyncSession syncSession = connect.OpenSync();
                File.WriteAllText("test.log", "aaaa");
                syncSession.Push("/data/test.log", new FileInfo("test.log"));
                syncSession.Close();

                connect.Close();
            }
        }