Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ask all permissions during app installation on API > 23

Since android M the only way to ask permissions is to do so ant runtime but VK client app somehow manages to ask all of its permissions upon installation on all android versions. Below is a screenshot from pixel phone. Can anyone tell me how is it even possible?

enter image description here

like image 787
Arnis Shaykh Avatar asked Jan 03 '23 04:01

Arnis Shaykh


1 Answers

They use targetSdkVersion lower than 23:

"If the device is running Android 6.0 (API level 23) or higher, and the app's targetSdkVersion is 23 or higher, the app requests permissions from the user at run-time [...] If the device is running Android 5.1.1 (API level 22) or lower, or the app's targetSdkVersion is 22 or lower, the system asks the user to grant the permissions when the user installs the app"

https://developer.android.com/guide/topics/permissions/requesting.html

like image 119
Alessio Avatar answered Jan 17 '23 16:01

Alessio