コード例 #1
0
        protected override void OnExecute(object parameter)
        {
            if (_path == null || !_path.EndsWith(".apk"))
            {
                throw new Exception("Path should end with .apk extension");
            }
            if (!File.Exists(_path))
            {
                throw new FileNotFoundException($"File at path {_path} not found");
            }

            // #TODO - Remove the -r, that should happen outside this function
            var installCommand = new CMDCommand($"adb install -r \"{_path}\"");

            installCommand.Execute(parameter);
        }
コード例 #2
0
        protected override void OnExecute(object parameter)
        {
            var commandLine = new CMDCommand($"adb uninstall {_appID}");

            commandLine.Execute(parameter);
        }