• Announcements

    • andrewilley

      Poweramp v3 Project Update   04/24/2017

      As you may be aware, the Poweramp developer has been working hard on an updated material design user interface for Poweramp v3 which required a full ground-up rebuild of the code. It is hoped this will be ready for final beta-testing by the end of the May. See forum thread for more details and to discuss.    
TheoKlink

Accessing the //com.maxmpz.audioplayer.data/ provider with Marshmallow

2 posts in this topic

In testing the latest version of New Playlist Manager on android AVD (Android Virtual Device) Marsmallow, I notice that when I select Update mp3 tag, it generates a crash for Poweramp.

It appears to be related to a permission issue when my app tries to access the provider //com.maxmpz.audioplayer.data/. 

The debug log shows the following

 avc: denied { search } for name="com.maxmpz.audioplayer" dev="mtdblock1" ino=14140 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
11-28 10:11:06.730 1023-1023/? W/debuggerd: type=1400 audit(0.0:66): avc: denied { search } for name="com.maxmpz.audioplayer" dev="mtdblock1" ino=14140 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
11-28 10:11:06.730 1023-1023/? W/debuggerd: type=1400 audit(0.0:67): avc: denied { search } for name="com.maxmpz.audioplayer" dev="mtdblock1" ino=14140 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
11-28 10:11:06.730 1023-1023/? W/debuggerd: type=1400 audit(0.0:68): avc: denied { search } for name="com.maxmpz.audioplayer" dev="mtdblock1" ino=14140 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
11-28 10:11:06.730 1023-1023/? W/debuggerd: type=1400 audit(0.0:69): avc: denied { search } for name="com.maxmpz.audioplayer" dev="mtdblock1" ino=14140 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0

 

It appears that access is denied to the device mtdblock1.

 
The acronym AVC refers to the Access Vector Cache, which stores the access vector decisions made by the sepolicy engine of the Linux kernel (see "Understanding SE Android policy files" for more details). The AVC only stores the results of decisions, the main SELinux component of the kernel creates the avc messages and sends them to the klog buffer (a fixed length buffer that stores kernel messages). Although SELinux documentation focuses on "avc: denied" messages, there also are avc informational messages.

 

 

 

Is there any assistance on how to deal with this?

 

 

Share this post


Link to post
Share on other sites

I have now tested on v6 on android and have not found any issues. Conclusion, it must be the AVD (android virtual device).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now