Thursday, September 1, 2016

Using Viper4Android on OPO with SElinux Enforcing?

Hi all.

Is anyone using Viper4Android with SElinux enforcing mode?

I was able to make V4A run in SElinux enforcing but found out that doing so, breaks the microphone during a call.
Example:
1. Perform a call
2. Switch from handset to Speaker mode <- so far so good
3. Switch back to handset <- the other party can't hear you anymore.
4. Switch back to speaker mode <- the other party can hear you again

The way I made V4A work in SElinux enforcing is by adding these lines to the '50Viper.sh' file under the 'su.d' folder.

Code:

#! /system/bin/sh
/su/bin/supolicy --live "allow mediaserver mediaserver_tmpfs:file { execute };"
supolicy --live "allow mediaserver mediaserver_tmpfs:file { read write execute };"

If you are running V4A in SElinux enforcing, do you encounter the issue I described?


from xda-developers http://ift.tt/2bUeqRo
via IFTTT

No comments:

Post a Comment