MNC and MCC access: why needed?

VLC for Android and Chrome OS specific usage questions
p301R2
New Cone
New Cone
Posts: 2
Joined: 26 Aug 2014 15:36

MNC and MCC access: why needed?

Postby p301R2 » 26 Aug 2014 15:53

Hi everybody,

I am using XPrivacy from the XPosed framework to control which data apps are allowed to access. VLC for Android asks for quite some permissions; among these there are mobile country code (MCC) and mobile network code (MNC). Can somebody please explain to me why this is necessary for the function of VLC for Android?

Thanks!

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: MNC and MCC access: why needed?

Postby edwardw » 26 Aug 2014 20:01

In Android "read phone status and identity" comes as one permission which includes both incoming call notification and phone identity and cannot be split. We need this permission in order to pause music during incoming calls.

p301R2
New Cone
New Cone
Posts: 2
Joined: 26 Aug 2014 15:36

Re: MNC and MCC access: why needed?

Postby p301R2 » 27 Aug 2014 15:19

We need this permission in order to pause music during incoming calls.
I'm ok with that. (Bugger, Android's security/privacy policy is a real mess. :D )
In Android "read phone status and identity" comes as one permission which includes both incoming call notification and phone identity and cannot be split.


Could you specify what are the exact permissions needed for pausing the playback?

Are you familiar with XPrivacy (within the XPosed framework)? I'm looking into the permissions of apps using XPrivacy, blocking/randomising stuff which I believe are not needed for the functionality of an app. Interestingly, MCC and MNC are accessed by VLC, on startup. Other permissions in the 'Phone' group are not. I guess android.intent.action.PHONE_STATE would be the thing to allow, as apparently VLC gets the info of an incoming call here. FYI, VLC still works as intended when I restrict access to MCC and MNC.

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: MNC and MCC access: why needed?

Postby edwardw » 28 Aug 2014 01:34

We ask for android.permission.READ_PHONE_STATE.

fende23
New Cone
New Cone
Posts: 1
Joined: 12 Mar 2015 19:42

Re: MNC and MCC access: why needed?

Postby fende23 » 12 Mar 2015 19:46

you can use: AudioManager.OnAudioFocusChangeListener

So you avoid asking permission READ_PHONE_STATE
And you can stop the music also when the alarm clock rings

you can have a look at:
https://android.googlesource.com/platfo ... elper.java
https://android.googlesource.com/platfo ... sicPlayer/

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: MNC and MCC access: why needed?

Postby edwardw » 13 Mar 2015 02:45

That is API 8 and later only; we support 7+.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: MNC and MCC access: why needed?

Postby Jean-Baptiste Kempf » 13 Mar 2015 09:43

Yep.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 12 guests