Developer Preview 2 is now available
Two primary support channels are available to you when developing and testing with the Android M Developer Preview. If you've encountered bugs or have feedback about the M Developer Preview, you can create an issue on our issue tracker. We'll triage the issue for further review and provide updates as needed.
To discuss issues or ideas with other developers working with Android M, join the M Developer Preview Google+ community.
Developer Preview 2
Date: July 2015
Builds: MPZ79M (Nexus 5, 6, 9), MPZ79N (Nexus Player)
Hardware support: Nexus 5, 6, 9, Player
Emulator support: x86 & ARM 32/64-bit
Google Play services: 7.6
Android M Developer Preview 2 is an incremental update to the Android M preview platform that was originally released in May 2015. The update includes a variety of enhancements and bug fixes made across the system, including those related to issues reported by developers through the external issue tracker.
If you are currently developing or testing on Android M, you should update your environment to Developer Preview 2 as soon as possible. This ensures that you are building with the latest platform APIs and testing against the latest behaviors. If you are just getting started with the Android M Developer Preview SDK, follow the instructions in Set up the Preview SDK, then update your environment for Developer Preview 2.
Developer Preview 2 includes an updated SDK with system images, documentation, and samples for developing against the latest Android M platform.
- SDK platform and system images (Nexus and emulator) for building and testing. You can download the updated tools from the SDK Manager, and the system images are available by over-the-air (OTA) update or download (see below).
- Updated documentation. The Behavior Changes, API Overview, and Permissions documents have been updated to reflect the latest changes in the platform. An updated Developer Documentation download package is available, including full reference docs and API diff reports.
- Translations of the documentation are now available. Use the language selector at the bottom right corner of any page to switch languages. Note that some of the translated docs are not yet updated for Developer Preview 2 (coming soon).
- The Android M code samples are also
updated to account for API and behavior changes:
are updated to reflect latest permissions API changes, including
- FingerprintDialog adds a flow to ask for passwords when new fingerprints are added as well as a preference if the app will use fingerprints as a method of authentication.
- RuntimePermissions / RuntimePermissionsBasic are updated to reflect latest permissions API changes, including
- Permissions changes
android.permission.USE_FINGERPRINTpermission now has "normal" protection level, so it is no longer necessary to request this permission directly from the user. The
USE_FINGERPRINTpermission enables fingerprints to be enabled for authentication, but does not give the requesting app access to the enrollment/fingerprint administration flow.
android.permission.WRITE_EXTERNAL_STORAGEpermission has protection level "dangerous", meaning that apps wanting to write to external storage will need to request permission from the user at runtime. Both
WRITE_EXTERNAL_STORAGEare members of the
- Remote Bluetooth/Wi-Fi MAC's now require either the
- Some accounts and identity permissions are moved to
CONTACTSpermissions group and others are removed or granted based on account type. In particular,
android.permission.AUTHENTICATE_ACCOUNTSare ungrouped pending further changes in a later release.
- The Wi-Fi permissions
android.permission.CHANGE_WIFI_MULTICAST_STATEnow have protection level "normal".
- The Bluetooth permissions
android.permission.BLUETOOTH_ADMINnow have protection level "normal".
- Bookmarks and subscribed feeds permissions are removed.
- Apps included in the system image are no longer granted dangerous permissions automatically. All apps should check for and request permissions at runtime.
- Introduces the utility method
Activity.shouldShowRequestPermissionRationale(String), which lets your app see whether users have previously rejected a permission request. This lets you know that your app should explain the the user why it needs that permission. For more information see the Permissions developer guide.
- Other changes
android.app.AssistStructureclasses are moved into a new package,
- Bluetooth Stylus APIs are updated and include new callback events.
View.OnStylusButtonPressListenerclass is renamed to
For a complete list of changes, including renamed and removed APIs, please refer to the API Diff Reports included in the Developer Documentation download package.
- General issues:
- The system Messenger app crashes on the 64-bit emulator.
- After updating to Developer Preview 2, Contacts sync experiences intermittent issues. The workaround is to clear and re-sync Contact Storage data after update. To clear data, go to Settings > Apps > Show system > Contacts Storage. Select "Storage" and then Clear data.
- In YouTube app, it's not possible to share a video. The share window is blank.
- The bundled Google Apps Device Policy app included in Developer Preview 2 is unable to properly set up an Android for Work Profile, so you cannot create a new Work Profile with this app after you update. This issue is specific to the Google Apps Device Policy app, and not the Android for Work platform (or our partner EMM providers). As a workaround for users of the Google Apps Device Policy app, be sure to create a Work Profile in Developer Preview 1 before updating to Developer Preview 2.
- Issues specific to MPZ79N on Nexus Player:
- Bluetooth share crashes after clearing data. Please do not clear app data for system services, otherwise you will need to Factory Reset your device
- Remote control can experience intermittent connectivity issues.
- Movies show black screen with some ANRs on exiting the video.
- In YouTube app, lower-resolution videos have a green bar at the top and some color-ghosting
Get Developer Preview 2
You can download the Developer Preview 2 platform and emulator images from the SDK Manager.
Developer Preview 2 system images for supported Nexus devices are available by download and by over-the-air (OTA) update. The OTA update is available only to supported devices that are currently running Developer Preview 1. If your devices is running Developer Preview 1, you should automatically receive the OTA update within a few days of availability.
If you are just getting started with Android M Developer Preview, and want to receive Developer Preview 2 via OTA, download the appropriate Developer Preview 1 system image, and flash it to your device. Then, leave the device powered on for several hours. It registers with the OTA service, and receives Developer Preview 2 by OTA.
For instructions on how to download and flash your device to the Developer Preview, see the links and instructions on the Downloads page.
For instructions on how to start developing and testing with Android M, read Setting up the SDK.
Developer Preview 1
Date: May 2015
Hardware support: Nexus 5, 6, 9, Player
Emulator support: x86 & ARM (32/64-bit)
Google Play services: 7.5