コード例 #1
0
        /// <summary>
        /// Refreshes the packages.
        /// </summary>
        public void RefreshPackages()
        {
            if (this.Device.IsOffline)
            {
                throw new IOException("Device is offline");
            }

            PackageManagerReceiver pmr = new PackageManagerReceiver(this.Device, this);

            this.Device.ExecuteShellCommand(PM_LIST_FULL, pmr);
        }
コード例 #2
0
ファイル: PackageManager.cs プロジェクト: ngzero/madb
        /// <summary>
        /// Refreshes the packages.
        /// </summary>
        public void RefreshPackages( )
        {
            if ( this.Device.IsOffline ) {
                throw new IOException ( "Device is offline" );
            }

            PackageManagerReceiver pmr = new PackageManagerReceiver ( this.Device, this );
            this.Device.ExecuteShellCommand ( PM_LIST_FULL, pmr );
        }