如何修复AVC被拒绝

时间:2019-07-28 05:48:02

标签: android gridview

我正在从数据库中检索pdf文件,并在一个片段中显示with gridview,但是每次我运行它时,都会收到该警告:

W/RenderThread: type=1400 audit(0.0:260859): avc: denied { read } for name="boot_mode" dev="sysfs" ino=5287 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0'

任何人都可以帮助我android编程的新手

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) 
{
   super.onCreate(savedInstanceState);
   View rootView= inflater.inflate(R.layout.fragment_home,container,false);

   final GridView myGridView= rootView.findViewById(R.id.myGridView);
   Button btnRetrieve= rootView.findViewById(R.id.downloadBtn);
   final ProgressBar myProgressBar= rootView.findViewById(R.id.myProgressBar);
   myGridView.setAdapter(new GridViewAdapter(getContext(),pdfDocuments));
   btnRetrieve.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) 
        {
            //Requesting storage permission
            requestStoragePermission();
            new JSONDownloader(getActivity()).retrieve(myGridView,myProgressBar);
        }
    }); 
    return rootView;
}

0 个答案:

没有答案