Android笔记:Android 7.0 FileUriEx
2017-08-17 本文已影响23人
2eb56199844d
下边代码可以绕过fileprovider权限检测,直接发送fileuri就可以
http://blog.csdn.net/xiaoyu940601/article/details/54406725
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
StrictMode.setVmPolicy(builder.build());
}