I have to enable vibration only on devices with Android 7+. In previous versions we could simply do:
AudioManager aManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
aManager.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);
Permission android.permission.VIBRATE is set.
How can I achive this on Android 7+?