权限拒绝:来自pid = 31277,uid = 10259的getCurrentUser()需要android.permission.INTERACT_ACROSS_USERS

时间:2019-01-26 18:54:55

标签: android nativescript nativescript-vue

清单文件

<manifest
xmlns:android="http://schemas.android.com/apk/res/android" package="__PACKAGE__" android:versionCode="10000" android:versionName="1.0.0">
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" />
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="__APILEVEL__" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<application android:name="com.tns.NativeScriptApplication" android:allowBackup="true" android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/AppTheme">
    <activity android:name="com.tns.NativeScriptActivity" android:label="@string/title_activity_kimera" android:configChanges="keyboardHidden|orientation|screenSize" android:theme="@style/LaunchScreenTheme">
        <meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name="com.tns.ErrorReportActivity" />
</application>

设备

Galaxy s9 plus

复制步骤

rm -rf平台

tns运行android --bundle

启动应用程序时,出现以下错误

*问题**

System.err: java.lang.SecurityException: Permission Denial: getCurrentUser() from pid=31277, uid=10259 requires android.permission.INTERACT_ACROSS_USERS
System.err:     at android.os.Parcel.readException(Parcel.java:1967)
System.err:     at android.os.Parcel.readException(Parcel.java:1913)
System.err:     at android.sec.clipboard.IClipboardService$Stub$Proxy.isEnabled(IClipboardService.java:757)
System.err:     at com.samsung.android.content.clipboard.SemClipboardManager.isEnabled(SemClipboardManager.java:1008)
System.err:     at android.widget.TextView.getSecClipboardEnabled(TextView.java:16134)
System.err:     at android.widget.EditText.onFocusChanged(EditText.java:250)
..........

0 个答案:

没有答案