草庐IT

securityException

全部标签

android - Web View java.lang.SecurityException : No permission to modify given thread

我有一个使用多个WebView的应用程序。我没有通过WebSettings设置渲染线程的优先级,尽管我仍然得到下面的异常。到目前为止,它似乎只发生在android4.0.4上,我还没有找到它的源代码。有人遇到过这个问题和/或知道解决方案吗?谢谢!java.lang.SecurityException:Nopermissiontomodifygiventhreadatandroid.os.Process.setThreadPriority(NativeMethod)atandroid.webkit.WebViewCore$WebCoreThread$1.handleMessage(Web

asp.net - 写入事件日志时出现 System.Security.SecurityException

我正在尝试将ASP.NET应用程序从Server2003(和IIS6)移植到Server2008(IIS7)。当我尝试在浏览器上访问该页面时,我得到了这个:ServerErrorin‘/’Application.SecurityExceptionDescription:Theapplicationattemptedtoperformanoperationnotallowedbythesecuritypolicy.Tograntthisapplicationtherequiredpermissionpleasecontactyoursystemadministratororchanget

java - 线程 "main"java.lang.SecurityException : Invalid signature file digest for Manifest main attributes 中的异常

Exceptioninthread"main"java.lang.SecurityException:InvalidsignaturefiledigestforManifestmainattributesatsun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:240)atsun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:193)atjava.util.jar.JarVerifier.

java.lang.SecurityException : BLUETOOTH permission crash.(仅限三星设备)

我遇到了以下崩溃,但这只发生在某些三星设备上(不是全部,我们在三星设备上开发/测试)崩溃日志:java.lang.SecurityException:NeedBLUETOOTHpermission:Neitheruser10025norcurrentprocesshasandroid.permission.BLUETOOTH.atandroid.os.Parcel.readException(Parcel.java:1540)atandroid.os.Parcel.readException(Parcel.java:1493)atandroid.bluetooth.IBluetooth

java.lang.SecurityException : attempting to read gservices without permission 错误

我最近从adMob6.4.1更改为GooglePlayServicesrev15,并且刚刚收到我不理解的新崩溃报告的通知:java.lang.SecurityException:attemptingtoreadgserviceswithoutpermission:Neitheruser10158norcurrentprocesshascom.google.android.providers.gsf.permission.READ_GSERVICES.atandroid.os.Parcel.readException(Parcel.java:1425)atandroid.os.Parce

android - 如何在运行时检查权限而不抛出 SecurityException?

我设计了一个函数,它可以从SD获取/设置资源,如果从sd中找不到,则从Asset中获取它,如果可能,将Assets写回SD此函数可以通过方法调用检查SD是否已安装且可访问...booleanbSDisAvalaible=Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED);我设计的功能可以从一个应用程序(项目)使用到另一个应用程序(有或没有android.permission.WRITE_EXTERNAL_STORAGE)然后我想检查当前应用程序是否具有此特定权限而不使用SecurityExcep

android - 如何在运行时检查权限而不抛出 SecurityException?

我设计了一个函数,它可以从SD获取/设置资源,如果从sd中找不到,则从Asset中获取它,如果可能,将Assets写回SD此函数可以通过方法调用检查SD是否已安装且可访问...booleanbSDisAvalaible=Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED);我设计的功能可以从一个应用程序(项目)使用到另一个应用程序(有或没有android.permission.WRITE_EXTERNAL_STORAGE)然后我想检查当前应用程序是否具有此特定权限而不使用SecurityExcep

c# - System.Security.SecurityException : The source was not found, 但无法搜索部分或所有事件日志。无法访问的日志:安全

我正在尝试创建一个Windows服务,但是当我尝试安装它时,它回滚给我这个错误:System.Security.SecurityException:Thesourcewasnotfound,butsomeoralleventlogscouldnotbesearched.Inaccessiblelogs:Security.我不知道这意味着什么-我的应用程序只有最低限度,因为我只是先测试一下。我的安装程序代码:namespaceWindowsService1{[RunInstaller(true)]publicpartialclassProjectInstaller:System.Conf

android - java.lang.SecurityException : Permission Denial: reading com. android.providers.media.MediaProvider 在从画廊拍照时在 Android

我正在尝试从图库中选择图像,但我的应用程序出现“出现问题”消息的异常。我以为我正确设置了androidWRITE_EXTERNAL_STORAGE和READ_EXTERNAL_STORAGE权限,但我不断收到错误我应该怎么做才能让它工作?这是我的日志猫错误06-0712:07:27.5671692-1711/?E/DatabaseUtils﹕Writingexceptiontoparceljava.lang.SecurityException:PermissionDenial:readingcom.android.providers.media.MediaProvideruricont

android - java.lang.SecurityException : Permission Denial: not allowed to send broadcast android. intent.action.MEDIA_MOUNTED 仅在 KitKat 上

我正在使用DownloadManager从我们的服务器下载图像,并将文件放在externalFilesDir中。我正在发送广播Intent,因为我不希望这些下载的图像出现在图库中。sendBroadcast(newIntent(Intent.ACTION_MEDIA_MOUNTED,Uri.parse("file://"+context.getExternalFilesDir(null))));我之前只在我的GalaxyS3JellyBean4.3上测试过它并且它可以工作,但是当我在KitKat4.4上测试它时,它会导致应用程序崩溃。有没有更好的方法使从DownloadManager下