Questions tagged [securityexception]

SecurityException indicates a security violation and is thrown when a security error is detected.

329 questions
0
votes
1 answer

Performance counter throws SecurityException

This is the code: private static void CreateCounter() { if (PerformanceCounterCategory.Exists("DemoCategory")) PerformanceCounterCategory.Delete("DemoCategory"); CounterCreationDataCollection ccdArray = new…
Diego Pacheco
  • 985
  • 1
  • 8
  • 14
0
votes
2 answers

Security Exception with ASP.NET project in Visual Studio 11

I get this, to me, completely random error: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Stack Trace:…
reaper_unique
  • 2,916
  • 3
  • 28
  • 48
0
votes
0 answers

SecurityException when trying to disable Bluetooth on Android

I'm using BugSense in by application to get error reports. Today I got this stack trace. java.lang.SecurityException: Calling uid 10104 gave packageandroid which is owned by uid 1000 at android.os.Parcel.readException(Parcel.java:1322) at…
tidbeck
  • 2,363
  • 24
  • 35
0
votes
2 answers

My android xml parsing application has stopped unexpectedly in android emulator

My android xml parsing application has stopped unexpectedly..this is the list of error in logcat: 10-18 17:26:12.965: ERROR/Zygote(33): setreuid() failed. errno: 2 10-18 17:26:12.965: ERROR/Zygote(33): setreuid() failed. errno: 17 10-18…
rockenpeace
  • 1,011
  • 5
  • 18
  • 29
0
votes
1 answer

Eliminating SecurityException with saxon jar in Gradle 8

I have a Gradle 8 Java program that is throwing this exception: java.lang.SecurityException: class "net.sf.saxon.value.UntypedAtomicValue"'s signer information does not match signer information of other classes in the same package The class…
Ellen Spertus
  • 6,576
  • 9
  • 50
  • 101
0
votes
2 answers

EasyMock to test SecurityException

I am trying to use easyMock to write a test, that tests SecurityException in the following code. eg. for NumberFormatException I use the below. EasyMock.expect(mockEntityManager.find(UserProfile.class,"abc")).andThrow(new …
Himalay Majumdar
  • 3,883
  • 14
  • 65
  • 94
0
votes
0 answers

Android 12 crop image get SecurityExectipion

I'm trying to crop media images from MediaStore query,but got this Execption: Caused by: java.lang.SecurityException: UID 10160 does not have permission to content://media/external/images/media/48 [user 0] at…
JiangNan
  • 1
  • 1
0
votes
0 answers

SecurityException using storage access framework in some devices

I want to get content (images & videos) of user selected folder. Code to select the folder is: val intent = Intent(Intent.ACTION_OPEN_DOCUMENT_TREE) intent.addFlags(Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION or…
0
votes
2 answers

Error While Upload Image From Galley Using Drjacky Image Picker And Retrofit 2

hi guys I got an error like the one below when trying to upload an image from the galley: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.media.MediaDocumentsProvider from ProcessRecord{efed650…
0
votes
1 answer

Security Exception while using Android DownloadManager.enqueue()

Getting error : java.lang.SecurityException: Permission Denial: writing com.android.providers.downloads.DownloadProvider uri content://downloads/my_downloads from pid=3608, uid=10081 requires android.permission.INTERNET, or grantUriPermission() …
0
votes
0 answers

Android 11 Api 30 throws java.lang.SecurityException

i have a little problem with my android authenticator app ... this app is working on android 8.1 without any problem but since Android 11 it is throwing this exception : java.lang.SecurityException: Permission Denial: package=android does not belong…
0
votes
0 answers

Access properties\{83da6326-97a6-4088-9453-a1923f573b29} subkey

In my console application I need to retrive some information about last connected time and last disconnected time about USB devices. To do this I need to access to properties{83da6326-97a6-4088-9453-a1923f573b29} subkey foreach key in…
0
votes
1 answer

Kotlin: java.lang.IllegalArgumentException: Couldn't find meta-data for provider with authority xxx

My app includes the classic "Share This App" menu option, which takes two screenshots and send them by mail along with a promotional text. It was working fine before migrating from Java to Kotlin, but now in Kotlin it started to throw an…
Diego Perez
  • 2,188
  • 2
  • 30
  • 58
0
votes
0 answers

How to Debug Security Permission inside Sandbox solution

I have created new AppDomain for Sandbox solution with following permissions: EvidenceBase[] hostEvidence = { new Zone(SecurityZone.Trusted) }; Evidence evidence = new Evidence(hostEvidence, null); PermissionSet permissions =…
Gregor Primar
  • 6,759
  • 2
  • 33
  • 46
0
votes
1 answer

"...potential SecurityException" when trying to connect to BLE device

I'm getting this error in several places even though I have requested BLUETOOTH_CONNECT permissions from the user earlier in my app. Call requires permission which may be rejected by user: code should explicitly check to see if permission is…