asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_
2017-05-21 23:27
1041 查看
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /><uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL"/>
添加了 权限 但是调用相册或者照相机拍照,读取文件,上传图片爆出以上问题:
加入了INTERACT_ACROSS_USERS_FULL,目的在于允许不同用户的应用之间可以产生交互,为了安全,因此在交互时会校验userSerialNumber,发现用户标识不匹配,导致权限校验失败,就会产生startInstrumentation asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL的报错。
如何解决????
相关文章推荐
- startInstrumentation asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
- Permission Denial: null asks to run as user 1771 but is calling from user 0; this requires android.p
- Android:get/set setting for user asks to run as user -2 but is calling from user 0
- 华为mate10 Android8.0报错 SecurityException: Permission Denial: null asks to run as user 49 but is calli
- android.util.AndroidRuntimeException Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? com.uethinking.microvideo.manag
- System error &H80004015 - This class is configured to run as a security id different from the caller.
- VMware:This virtual machine is configured to run with 4 CPUs, but the host has only 2 CPU(s). The virtual machine cannot
- VMWare:This virtual machine is configured to run with 4 CPUs, but the host has only 2 CPU(s).
- AS:Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.
- AS:Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.
- RunningMapReduceExampleTFIDF - hadoop-clusternet - This document describes how to run the TF-IDF MapReduce example against ascii books. - This project is for those who wants to experiment hadoop as a skunkworks in a small cluster (1-10 nodes) - Google Pro
- The goal you specified requires a project to execute but there is no POM in this directory 错误
- maven报错 the goal you specified requires a project to execute but there is no POM in this direct...
- The goal you specified requires a project to execute but there is no POM in this directory
- AS:Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.
- Attempting to badge the application icon but haven't received permission from the user to badge the
- Server asks us to fall back to SIMPLE auth, but this client is configured to only allow secure connections.
- The goal you specified requires a project to execute but there is no POM in this directory...
- Attempting to badge the application icon but haven't received permission from the user to badge the
- The goal you specified requires a project to execute but there is no POM in this directory