Questions tagged [android-securityexception]

Thrown when a security manager check fails.

168 questions
0
votes
1 answer

java.lang.SecurityException: Access not allowed for content://android.media.tv/watched_program

I have compiled the sample TV Input for the STB platform. As per the readme under https://github.com/googlesamples/androidtv-sample-inputs when running live channels app, i am observing following exceptions and app is failing to…
andchak
  • 1
  • 3
0
votes
1 answer

Unable to get phone number from device inspite of declaring required permissions in android manifest

I am trying to get phone number from my device programmatically. I am trying with the following code: TelephonyManager tMgr = (TelephonyManager) getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE); mPhoneNumber =…
0
votes
2 answers

How to handle java.lang.SecurityException: Requires READ_PHONE_STATE for android.text.format.DateFormat.getDateFormat?

My app was sent a stack trace for device Y625-U21 (HWY625-U), the app doesn't ask for READ_PHONE_STATE because the docs say nothing about using this permission for getting dateFormat. We have tested the app in various devices and this doesn't…
0
votes
0 answers

Auto profile changer app show SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.AIRPLANE_MODE

i am working on android app in which i want to change profile automatically from Ringing to Airplane Mode. application work fine on android 2.3 to 4.2 but don't work on 4.4 kitkat. Logcat show this error java.lang.SecurityException: Permission…
0
votes
1 answer

Set Fingerprint as the quality of the password policy on Android

Is there a way on Android for a device admin application to only allow fingerprints as the password policy of the device?
lyc001
  • 777
  • 1
  • 10
  • 25
0
votes
1 answer

How to disable HOME button click in android

I am new in android. I am creating a Lock screen application. In my application, I want to disable all the outside keys like Home key, Back key.. I already disabled the Back key using: @Override public void onBackPressed() { return; // Do…
Abin Thaha
  • 4,493
  • 3
  • 13
  • 41
0
votes
0 answers
0
votes
2 answers

SecurityException: "Unable to start activity Intent" when using a simple startActivity

startActivity(new Intent(this, SettingsActivity.class)); Got me an instance of this error for one of my users on 4.0: java.lang.SecurityException: Not allowed to start activity Intent { cmp=co.bandicoot.ztrader/.activity.SettingsActivity } at…
0
votes
2 answers

Android Security Exception - Don't have permission ACCESS_NETWORK_STATE

Every time I try to start up my application it crashes immediately because it receives this error. Here is my Manifest
0
votes
2 answers

Why am I seeing an error when making a call from the adb shell?

This used to work: adb shell am start -a android.intent.action.CALL tel:1234 However, now I get this error: 09-08 14:35:57.821 W/dalvikvm( 1107): threadid=3: thread exiting with uncaught exception (group=0x4001b200) 09-08 14:35:57.841…
Naseer
  • 1,735
  • 2
  • 21
  • 22
-1
votes
2 answers

How can i disable any android app such that it cannot be opened until i change/press some button in app?

I am trying to build a parental control app. So now i want to disable or lock app (like Whatsapp, Facebook, etc). I have tried using PackageManager.setComponentEnabledSetting(). But it is throwing java.lang.SercurityException. So how can I make a…
-1
votes
1 answer

Showing security exception on Samsung Galaxt S9 (Oreo)

My app runs on all other devices except Samsung Galaxy S9 (Oreo). That is the only phone I have with oreo. All other phones it is working fine (Moto g4 plus, Samsung A8, Samsung galaxy S7, and many other). Was any new security feature added in…
Jack
  • 223
  • 3
  • 13
-1
votes
2 answers

Android permission issue

This code worked my phone.But it didnt worked from my friend phone. I have permission too . I get This error ; Neither user 10109 nor current process has android.permission.READ_PHONE_STATE. Permission ;
-1
votes
1 answer

Apache Cordova Error when publishing app in the google play stores

I had searched every where i havnt got any solution regarding this error and i am not able to understand why i am getting this error i had no dangerous products in it please anybody guide are solution for that please this is the main activity did i…
-1
votes
2 answers

Read_gms permission error

I am developing a google maps application it works fine with android marshmallow in emulator but it shows error when running in android Ics 4.03 emulator it shows error. I tried installing playstore and play services in emulator Thanks in advance …
1 2 3
11
12