SecurityException indicates a security violation and is thrown when a security error is detected.
Questions tagged [securityexception]
329 questions
2
votes
1 answer
Local notification caused SecurityException
I have made a method that sends a local notification when a progress finishes loading, when I build the App it's all clear without any errors/warnings I received this after releasing with Google console crash report
Here is the notification…

Thorvald
- 3,424
- 6
- 40
- 66
2
votes
1 answer
Cannot change current password in android 7
My app has device administration power. When I tried to update the current password in android 7, This "java.lang.SecurityException: Admin cannot change current password" exception is coming. It's working in android 6. Please tell me How can I reset…

Akshay Kumar S
- 333
- 3
- 12
2
votes
0 answers
java.lang.SecurityException: Permission Denial: on fetching bitmap from uri inside service
I am getting-
java.lang.SecurityException: Permission Denial: opening provider
com.android.providers.media.MediaDocumentsProvider from
ProcessRecord{..} requires android.permission.MANAGE_DOCUMENTS or
android.permission.MANAGE_DOCUMENTS
at
…

Android Developer
- 9,157
- 18
- 82
- 139
2
votes
0 answers
Android M 6.0: cannot remove accounts : java.lang.SecurityException
On Marshmallow, i fell on this Exception when I add a google account type:
" java.lang.SecurityException: uid 10121 cannot remove accounts of
type: com.google at "
I add the accound using
mAccountManager.addAccount("com.google", null, null,…

divol
- 192
- 7
2
votes
0 answers
App gives SecurityException when trying to access already created account after App update
App(version 1), created an account using AccountManager for saving auth tokens. Everything was working fine, was able to fetch and refresh Auth tokens
Sent out an update of the App (version 2), with no changes in the AccountManager code. I can see…

himvz
- 21
- 3
2
votes
1 answer
Security Exception when Uploading From Silverlight to PHP
I am using the official Microsoft example and this example as the basis for my code to upload a file from Silverlight to a PHP script.
I am calling **HttpWebRequest.BeginGetRequestStream()**, writing the file over a file stream, and then calling…

Khirok
- 517
- 1
- 13
- 21
2
votes
0 answers
I'm received the output path that i can't access because It's custom content provider on android
I'm received the output path(EXTRA_OUTPUT) that i can't access because It's custom content provider on android.
My app is supporting the IMAGE_CAPTURE for other apps.
but my app isn't works when I received the capture intent by the chrome…

hohoins
- 81
- 1
- 4
2
votes
1 answer
Security Alert: Your app contains embedded private keys or keystore files
I recently got a mail from Google:
**Security Alert: Your app contains embedded private keys or keystore files
This app contains one or more private keys or keystore files embedded in its published apk as listed at the end of this message. These…

Android_dev
- 320
- 1
- 7
- 26
2
votes
0 answers
No permission grant found for UID and Uri error - Android Xiomi Mi
I am trying to allow the user to upload an image from the gallery.
On click of a button pickFromGallery -
pickFromGallery.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view)…

Mallika Khullar
- 1,725
- 3
- 22
- 37
2
votes
1 answer
Web site works in dev mode; when deployed on IIS causes Security Exception
My ASP.NET web site works fine in development/debug mode, but when I publish it, I'm getting the following error:
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this…

Shaul Behr
- 36,951
- 69
- 249
- 387
2
votes
1 answer
SecurityException when calling BluetoothAdapter.getDefaultAdapter
In onCreate() of my app I call BluetoothAdapter.getAddress(). One single device of hundreds, that are running this app, yields a java.lang.SecurityException:
java.lang.RuntimeException: Unable to start activity
…

red symbol man
- 78
- 1
- 15
2
votes
0 answers
How to use this RTP/RTCP library?
I`d like to use this library: http://www.cs.columbia.edu/~hgs/teaching/ais/1998/projects/java_rtp/report.html
And I have a question: is it even possible to use it when files in this library have in their package names "java.net..." ? When I tried to…

Charlie329
- 21
- 1
2
votes
1 answer
Upgraded to Silverlight 4 cause System.Security.SecurityException
Trying to open a file dialog but I get an exception when calling ShowDialog. This pice of code have always worked fine but I think when I upgrade to Silverlight 4 it caused some problem.
Code:
var dlg = new OpenFileDialog { Filter = "CSV Files…

Silverlight Beginner
- 41
- 2
- 3
2
votes
2 answers
initializationError FAILED java.lang.SecurityException
I'm suddenly starting to get this error when the unit-test are running:
com.mycompany.myfeature.InputTest > initializationError FAILED
java.lang.SecurityException
I have no idea even where to start checking it. Any ideas?
Some info on my env…

Roee Gavirel
- 18,955
- 12
- 67
- 94
2
votes
2 answers
SecurityException: Not allowed to start service Intent REGISTER without permission on Android 5
after updating my device to Android 5, I get the following exception when starting my app:
Caused by: java.lang.SecurityException: Not allowed to start service Intent { act=com.google.android.c2dm.intent.REGISTER pkg=com.google.android.gms (has…

swalkner
- 16,679
- 31
- 123
- 210