Jump to content

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


flyingdutchman

Recommended Posts

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?

 

 

Link to comment
Share on other sites

  • 2 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...