android-securityexception Questions
4
Solved
I found that after my app reached a fair size (e.g. by adding multiple libraries), running the app threw java.lang.SecurityException: writable dex file '.../code_cache/.overlay/base.apk/classes2.de...
Sorry asked 17/6, 2023 at 23:32
4
I have a device manager application and I am trying to use setScreenCaptureDisabled(..) function of DevicePolicyManager class available since API 21.
DevicePolicyManager pManager = (android.app.ad...
Voletta asked 30/3, 2015 at 12:33
3
Solved
I'm trying to use ActivityRecognition. However I get an error when i'm trying to get a transition update for DetectedActivity.TILTING or DetectedActivity.UNKNOWN. For all the other activity types I...
Misery asked 25/3, 2018 at 11:32
5
I am encountering an error in the pre-launch report on the Google Play Console during testing. The error message is as follows:
java.lang.SecurityException: No active admin ComponentInfo{com.google...
Nonresistance asked 2/6, 2023 at 16:0
2
I've developed an Android app that reads a file from the device, copies it into the app's internal storage and analyzes it.
It has been working OK for almost 100% of my users/devices, but since a c...
Neuralgia asked 23/11, 2022 at 12:52
2
Solved
Scenario: We are sending SMS to particular number if user grantees the SMS permission.
Devices: Only Samsung devices with Android 11.
Code:
SmsManager.getSmsManagerForSubscriptionId(subscriptionId)...
Logogram asked 17/11, 2021 at 10:54
0
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_PERSISTABL...
Archeology asked 9/11, 2022 at 4:17
2
I have a NotificationService class that listens to notifications. However when I call getActiveNotifications(), it throws a SecurityException. Yes I have checked for permission before calling this ...
Holding asked 1/8, 2017 at 3:13
2
I am getting-
java.lang.SecurityException: Permission Denial: opening provider com.android.providers.media.MediaDocumentsProvider from ProcessRecord{f1d408f 5594:firebasejobscheduler.test.com.firb...
Conjectural asked 7/2, 2017 at 10:58
12
Solved
I'm trying to start a ACTION_IMAGE_CAPTURE activity in order to take a picture in my app and I'm getting the error in the subject.
Stacktrace:
FATAL EXCEPTION: main
Process: il.ac.shenkar.david.t...
Lechery asked 13/3, 2016 at 17:17
0
I can't open intents in oppo devices.
I've put required permissions on manifest <uses-permission android:name="oppo.permission.OPPO_COMPONENT_SAFE"/> but never works... always show ...
Compendious asked 9/10, 2020 at 11:4
2
I have been unable to reproduce this problem myself, but so far 5 users have reported it. I did recently publish an app update that changed the target SDK from 27 to 28 which I sure plays a part in...
Squamous asked 10/1, 2019 at 1:18
1
I am trying to download a file from server to Download folder of andorid
As expected it is working fine
Problem
When user clones my app (dual app) , the cloned app (2nd app) throws SecurityExcep...
Monocycle asked 29/4, 2019 at 11:0
3
Solved
I have an app that uses Android AccountManager (package name: com.mycompany.accounts), that adds accounts to the device and provides a login screen. I have another app (com.mycomp.actualapp), that ...
Danyelldanyelle asked 28/9, 2015 at 6:42
0
In my Android-O device, below two background services communicating each other though AIDL.
Native/c++ android service
Starts through init rc
Runs with system linux-user
Deployed in /system par...
Aylmar asked 25/3, 2019 at 10:10
1
I've got the below exception trace.
Fatal Exception: java.lang.RuntimeException: Unable to create application com.myapp.MyApplication: java.lang.SecurityException: Unable to start service Intent ...
Aggression asked 4/8, 2016 at 10:12
1
I have 2 apps - Demo and Pro. Demo has a content provider and when Pro is installed it needs to transfer all files from the demo provider.
Demo app (provider):
<provider
android:name="***.pro...
Winze asked 18/2, 2016 at 9:30
1
The exception only occurs in Android 7.0 Nougat (emulator) devices.
java.lang.SecurityException: MODE_WORLD_READABLE no longer supported
My code:
public void SessionMaintainence(Context conte...
Tattered asked 24/8, 2016 at 10:41
2
Solved
Here is how I'm sending email through Gmail App.
Intent emailIntent = new Intent(Intent.ACTION_SEND);
emailIntent.setClassName("com.google.android.gm", "com.google.android.gm.ComposeActivityGma...
Recollected asked 16/11, 2016 at 8:37
2
Using NotificationManagerCompat to cancel all notification.
NotificationManagerCompat manager =
NotificationManagerCompat.from(ctx.getApplicationContext());
manager.cancelAll();
It got excepti...
Patency asked 14/4, 2016 at 21:6
1
Solved
My app use camera to take a photo and use it for long term.
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
Uri resultUri = null;
resultUri = getContentResolver().insert(MediaStore.Im...
Optional asked 22/7, 2016 at 19:21
4
Solved
I'm creating a music player application in Android. It works fine but whenever I scroll in songs list it starts crashing and gives this exception
Process: com.example.lenovo.musicplayer, PID: 3110...
Columbuscolumbyne asked 11/4, 2016 at 10:16
3
Solved
I have an app that, when notified by a ContentObserver of a change to a ContentProvider, attempts to query the provider on a background thread. This causes an SecurityException to be thrown:
8-10...
Delia asked 10/8, 2015 at 22:1
1
© 2022 - 2024 — McMap. All rights reserved.