0

I'm using FFmpegAndroid library (based on C) on a project in order to compress encode some videos.

The library requires the use of android.permission.ACCESS_COARSE_LOCATION permission.

If I remove it the compression fails, but I get no additional detail on where the lib requires the permission.

The shell command is:

[/data/user/0/app_package/files/ffmpeg, -y, -i, /storage/emulated/0/WhatsApp/Media/WhatsApp Video/VIdidi.mp4, -async, 1, -c:v, libx264, -profile:v, high, -preset, ultrafast, -b:v, 1400k, -maxrate, 1400k, -r, 30, -vf, scale=-1:960, /storage/emulated/0/appname/out.mp4]

Do anyone knows on what this is used? As I don't want my users to be asked for a permission without clear understanding on the usage.

htafoya
  • 18,261
  • 11
  • 80
  • 104
  • That makes little sense, as `ffmpeg` works just fine on platforms that have no notion of identifying the device's location. – CommonsWare Jun 20 '17 at 23:33
  • @CommonsWare actually is a more strange error, it is if i have uses-feature as a permission. If I remove the permission, or use the permission , it doesn't fail. But placing uses-feature causes an error. – htafoya Jun 21 '17 at 00:07
  • "i have uses-feature as a permission" -- I have no idea what this means, sorry. – CommonsWare Jun 21 '17 at 00:11
  • I mean, i include ` `instead of `` in the manifest: `` – htafoya Jun 21 '17 at 00:17
  • you're using android system function. So you need to call for uses-permission not feature. In Nougat all permission is asked when you start the app. – Android Mediocre Jun 21 '17 at 01:25
  • There is no feature named ACCESS_COARSE_LOCATION. That is a nonsense entry. – CommonsWare Jun 21 '17 at 01:26
  • Oh, I thought that i could add any permission to the uses-feature in order to make it optional. According to https://stackoverflow.com/questions/15430272/make-android-uses-permission-optional i should use " " instead. – htafoya Jun 21 '17 at 17:22

1 Answers1

0

The problem was because in the manifest I was using instead of on features that couldn't be declared as features, such as ACCESS_COARSE_LOCATION.

htafoya
  • 18,261
  • 11
  • 80
  • 104