TodaysAndroid M announcementatGoogle I/O 2015already got us pretty excited.

To get started, youll need to have your gear unlocked.

Youll also needADB and fastbootinstalled on your gear and have at leasta vague working knowledge of both.

Then, stick to this:

Download the factory imagefor your equipment here.

Unzip the file and save it somewhere easy to find.

Connect your machine to your system via USB cable and ensure debugging mode is enabled.

Open an ADB command line.

Enteradb reboot bootloaderto access your devices bootloader.

(OS X users should add ./ before this command.)

Navigate to the folder containing your factory image.

Enterflash-allto trigger the installation script.

(OS X users, same caveat as step 5.)

The script will take a few minutes.

Once the unit boots up, enter and have fun!

Android M Preview Images|System Image Flashing Instructions| Google