Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Activity Recognition Running permissions in android 6.0

I'm trying to implement activity recognition so it will support api 23. I've followed the running permissions guide from here :

https://developer.android.com/guide/topics/security/permissions.html#normal-dangerous

And i cant find if activity recognition is classified as dangerous permission or normal?

Even in google's activity recognition sample they dont target api 23 : https://github.com/googlesamples/android-play-location/tree/master/ActivityRecognition

is it possible that activity recoognition is not supported in android 6.0?

like image 219
WoW Avatar asked Oct 15 '15 13:10

WoW


2 Answers

In the following link you can find more details about permissions in android 23

http://inthecheesefactory.com/blog/things-you-need-to-know-about-android-m-permission-developer-edition/en

The following permissions are automatically granted

android.permission.ACCESS_LOCATION_EXTRA_COMMANDS
android.permission.ACCESS_NETWORK_STATE
android.permission.ACCESS_NOTIFICATION_POLICY
android.permission.ACCESS_WIFI_STATE
android.permission.ACCESS_WIMAX_STATE
android.permission.BLUETOOTH
android.permission.BLUETOOTH_ADMIN
android.permission.BROADCAST_STICKY
android.permission.CHANGE_NETWORK_STATE
android.permission.CHANGE_WIFI_MULTICAST_STATE
android.permission.CHANGE_WIFI_STATE
android.permission.CHANGE_WIMAX_STATE
android.permission.DISABLE_KEYGUARD
android.permission.EXPAND_STATUS_BAR
android.permission.FLASHLIGHT
android.permission.GET_ACCOUNTS
android.permission.GET_PACKAGE_SIZE
android.permission.INTERNET
android.permission.KILL_BACKGROUND_PROCESSES
android.permission.MODIFY_AUDIO_SETTINGS
android.permission.NFC
android.permission.READ_SYNC_SETTINGS
android.permission.READ_SYNC_STATS
android.permission.RECEIVE_BOOT_COMPLETED
android.permission.REORDER_TASKS
android.permission.REQUEST_INSTALL_PACKAGES
android.permission.SET_TIME_ZONE
android.permission.SET_WALLPAPER
android.permission.SET_WALLPAPER_HINTS
android.permission.SUBSCRIBED_FEEDS_READ
android.permission.TRANSMIT_IR
android.permission.USE_FINGERPRINT
android.permission.VIBRATE
android.permission.WAKE_LOCK
android.permission.WRITE_SYNC_SETTINGS
com.android.alarm.permission.SET_ALARM
com.android.launcher.permission.INSTALL_SHORTCUT
com.android.launcher.permission.UNINSTALL_SHORTCUT
like image 178
Durim Avatar answered Oct 27 '22 06:10

Durim


I use this permission in my app and it doesn't require any extra effort on Android 6, you can use it without any problem, it's not "dangerous".

like image 30
greywolf82 Avatar answered Oct 27 '22 04:10

greywolf82