Android android M 以下版本的运行时权限?

Android runtime permissions on android versions below M?

最近我的 ola cabs application,在最新更新后,在运行时请求位置权限。它没有打开位置设置屏幕,但只需单击“是”,设备的我的位置 (GPS) 就会打开,应用程序会继续进行,而不会转到位置设置或任何设置屏幕。此功能即将在 android M 中推出,并且仅在 MNC 预览版中可用,因此我猜测目前无法在设备中使用。那么这个应用程序是如何实现这个功能的呢?

using SettingsApi in the Play Services SDK 7.0+, to display the location settings dialog.