176 questions
0
votes
0
answers
110
views
Android 15 - Foreground Service with Microphone Crashes After Long Background Running
I am developing an Android app that runs a foreground service to track location and record audio continuously on an Android 15 (Motorola) device.
The service works fine when started, but after ...
0
votes
1
answer
150
views
Android startForeground() causes Exceptions on some Devices
I have written and published an app “Sensor Recording” which reads out and displays the measured values of some sensors (position, acceleration, orientation, microphone, etc.).
The app records sensor ...
0
votes
0
answers
27
views
How to send images out of database from fragment to fragment in Android Studio using Glide
I try to send an image that is stored in the database from one fragment to the other.
In the first one (using a recyclerview) it gets displayed, but in the second one (normal fragment) it doesnt work ...
2
votes
1
answer
740
views
No persistable permission grants found for UID and Uri
I'm building an app that:
creates an object that has a field for an image
picks an image from a device storage gallery
stores that object into a room database
shows the data with the image from ...
4
votes
1
answer
897
views
Android MAUI App: GeneralSecurityException during Release Authentication but Works in Debug
I am developing a mobile application using .NET MAUI. Everything works perfectly in debug mode, but when I switch to the release mode and try to authenticate, I encounter the following error:
...
1
vote
1
answer
66
views
java.lang.SecurityException on Ads.setBannerAd (play-services-ads)
Since we started supporting Android 14 we see the following Crash in our Firebase Crashlytics.
It crashes right after the start of the app, with the initialisation of Google Ads.
Stacktraces:
Fatal ...
1
vote
0
answers
108
views
java.lang.SecurityException: iccOpenLogicalChannel
I want to run applet that is installed on sim card using android app and receive results. so i tried Telephony API and OMAPI but I catch "java.lang.SecurityException" when i try to create ...
3
votes
0
answers
299
views
SecurityException: The number of child package elements exceeded the max allowed in queries
On android 14 I get an error when adding more than 1000 elements inside a element in AndroidManifest.
Caused by: java.lang.SecurityException: The number of child package elements
exceeded the max ...
0
votes
1
answer
487
views
Hide tap jacking alerts on android app below Android 12
I want to hide tap-jacking alerts in my Android app. I was able to do it on Android 12 and above by using getWindow().setHideOverlayWindows(true);. Can someone help me achieve this on versions below ...
3
votes
1
answer
998
views
WorkManager on Android 11 causes SecurityException: Missing WAKE_LOCK permission
In our activity we use WorkManager to run a quick syncronization job through a coroutineworker:
WorkManager.getInstance(this@MainActivity)
.enqueue(MySyncWorker.getWorkRequest())
The ...
0
votes
0
answers
179
views
ContentProvider throws Permission Denial when permission is present in manifest
The Idea:
I've got two Android applications, one has a service that will grab file assets to display (service_app). The other application has a ContentProvider and file assets (content_app). The ...
0
votes
1
answer
445
views
Create a secure ContentProvider (Custom) get SecurityException after adding knownSigner
I have 2 applications (different signing keys) which I want to have secure content provider between these 2 apps, I researched and the conclusion was using permission like below:
<permission ...
1
vote
1
answer
239
views
SecurityException in Samsung Android 7,8, and 9 devices
I am getting
Fatal Exception: java.lang.SecurityException: Permission Denial: broadcast from android asks to run as user -1 but is calling from user 0; this requires android.permission....
20
votes
4
answers
22k
views
Problems encountered when developing apps with Android 14
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.dex' ...
2
votes
0
answers
812
views
SecurityException open data intent from Gmail attachment
I am getting this error:
java.lang.SecurityException: Permission Denial: reading com.google.android.gm.sapi.SapiUiProvider uri content://com.google.android.gm.sapi/[email protected]/...
45
votes
5
answers
19k
views
Getting 'No active admin' SecurityException in Android 10 - how to resolve?
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....
2
votes
0
answers
982
views
Get android device name (not model name) where SDK version is greater than 31
I displayed the bluetooth name as the device name in my application in the following way:
public static String getDeviceName(ContentResolver contentResolver) {
String userDeviceName = ...
1
vote
1
answer
1k
views
Android 13 FileProvider: Unable to access file descriptor from URI despite granting temporary permissions
For some time we have been using the FileProvider APIs to reading/writing a file in App A's internal data directory (/data/data/app.a.package/files/someFile) from App B using a BroadcastReceiver. ...
1
vote
1
answer
476
views
java.lang.SecurityException: Need android.permission.BLUETOOTH_SCAN permission for android.content.AttributionSource
I have been trying to build an Android App with the capability of connecting to
a bluetooth device called ESP32 on BLE mode. I have found some posts helping me in these
regards but I also have to ...
0
votes
1
answer
734
views
App crashes on launch after renaming module in Android Studio
Here's what my modules look like
I changed my module name in Android Studio from app to wear, after I decided to add another module called mobile. I didn't see any issues until my app update got ...
1
vote
1
answer
81
views
Stored image URI for later use, but it throws SecurityException
In the SecondActivity, it has an ImageViewand a Button
public class SecondActivity extends AppCompatActivity
{
private ImageView galleryImage;
@Override
protected void onCreate(Bundle ...
5
votes
2
answers
8k
views
Android SecurityException accesing content
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 ...
0
votes
0
answers
376
views
Security exception while fetching android device IMEI number
I need to access the IMEI number of android device. I'm not going to publish this android app on playstore. It's for personal use in the organization. Is there any workaround to fetch the IMEI number? ...
0
votes
0
answers
334
views
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....
1
vote
0
answers
641
views
How to fix apps with bad WebRTC versions
I am an Android developer.
I released an app for internal public testing and the following error was listed in the pre-release report summary.
"How to fix apps with bad WebRTC versions."
...
1
vote
0
answers
89
views
Zip Path Traversal com.android.vending.expansion.downloader.R$string.decompress
I am using this code to download expansion file. and I am getting alert "Zip Path Traversal" "com.android.vending.expansion.downloader.R$string.decompress"
Noting that I am not ...
2
votes
0
answers
3k
views
Android 13 crash: Getting securityException (calling identity is not authorized) crash on android 13
facebookincubator/Battery-Metrics repo's getSnapshot method in class SystemMetricsCollector is crashing because of java.lang.SecurityException: Calling identity is not authorized on android 13. It was ...
2
votes
1
answer
1k
views
NotificationManager.notify() throwing securityException only on android 11 and 12
On my alarm clock app, I have 180 crashes (impacted 42 users) of java.lang.SecurityException caused by NotificationManager.notify().
Since I have around 50K active users I guess it happens only under ...
4
votes
1
answer
436
views
Monkey throwing security exception even though they are disabled
He everyone, I am getting this exception
java.lang.SecurityException: Permission Denial: android.intent.action.CLOSE_SYSTEM_DIALOGS
and Im not sure where its coming from as the app im testing doesnt ...
0
votes
0
answers
162
views
Implicit Internal Intent vulnerability. Can't set package name
I have that vulnerability according to google play console.
It's supposed that the solution is to add .setPackage() or .setClassName() to the intent but now the activity is not being recognized. How ...
1
vote
0
answers
332
views
Android InvalidProtocolBufferException error
java.lang.RuntimeException: Unable to create application com.example.me.MyApplication: com.google.crypto.tink.shaded.protobuf.InvalidProtocolBufferException: CodedInputStream encountered an embedded ...
1
vote
2
answers
2k
views
How to view pictures stored in gallery via URI
I have am creating an app that will allow a user to pick a photo from the gallery. Once they click on the photo I am saving the uri to my room db. When I try to go back and view the photo in my app I ...
2
votes
1
answer
1k
views
google play console - zip path traversal error
I've created a simple unity game and i don't use any kind of file or zip file structure in my game.
but google play notice this error:
Zip Path Traversal
Your app contains an unsafe unzipping pattern ...
2
votes
2
answers
625
views
Why does SHOW_ALARMS need SET_ALARMS permission on GALAXY S21?
Here is my code:-
public void onClick(View v) {
try {
startActivity(new Intent(
"android.intent.action....
7
votes
2
answers
7k
views
Android: java.lang.SecurityException: Package com.android.phone (uid=1001) does not match provided uid 10246
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)
....
2
votes
0
answers
980
views
SecurityException: Permission Denial: isUidActive from pid=XXXX, uid=XXXX requires android.permission.PACKAGE_USAGE_STATS
I'm getting this (for me) unknown crash in my crashlytics log trying to call enableReaderMode() in NfcAdapter class:
Caused by java.lang.SecurityException: Permission Denial: isUidActive from pid=XXXX,...
1
vote
0
answers
310
views
Intent Based Android Security Vulnerabilities, Violating the Device and Network Abuse policy
We have got this mail from google says,
During review, we found that your app violates the Device and Network Abuse policy:
We don’t allow code that introduces or exploits security vulnerabilities. ...
2
votes
0
answers
216
views
No matching key found for the ciphertext in the stream
I am getting an exception while decrypting the encrypted file.
Exception happening in the decryptFile() method. Line where exception happening is
while (fileInputStream.read(buffer).also { read = it }...
1
vote
0
answers
240
views
Android Security | Malicious Behaviour or User Data policy | androidx.fragment.app.FragmentActivity.startActivityForResult
Recently, My app update got rejected due to Security Vulnerability INTENT REDIRECTION. And as per Google Play console - Security Alerts. Following is the error.
Your app contains an Intent Redirection ...
1
vote
0
answers
2k
views
getDeviceId: The user 10214 does not meet the requirements to access device identifiers
I am trying to modify this app. But for the first time I have to solve the permission problem which is not happening to me. I have pasted the code and the logcat. Please tell me a solution.
...
2
votes
1
answer
1k
views
How to check an activity of external App has "exported=false" without actually starting the activity
Some custom OS by manufacturers has implemented customized features or hidden features in settings.(example: ColorOS, MIUI, FlymeOS, EMUI) I've tried to open some activities of those system APP. I ...
2
votes
1
answer
910
views
How to fix SecurityException: Permission Denial: opening provider that is not exported from uid
I want to open another application with an import window and send a file to it for processing.
final Intent sendIntent = new Intent(Intent.ACTION_MAIN);
sendIntent.setComponent(new ComponentName("...
2
votes
1
answer
3k
views
DownloadManager throws SecurityException on Android Q
Download Manager gets the error below on Android 10 devices. The target version is 29.
I added android:requestLegacyExternalStorage="true" tag to the Manifest, but it didn't work.
java.lang....
1
vote
0
answers
185
views
Unsafe implementation of the HostnameVerifier interface when there is no implementation in code
I uploaded a new build to play store and my build got rejected. Reasons for rejecting is HostnameVerifier Vulnerability. I check all my code and couldn't find any use of HostnameVerifier or ...
2
votes
2
answers
542
views
SecurityException Huawei phone
Our app is getting a SecurityEception on a Huawei device (Huawei P30 Pro, Android 10). We have no idea what might be causing this, and Googling for it gave no results.
The complete stacktrace:
java....
3
votes
1
answer
4k
views
Permission Denial: Security Exception while sharing file with FileProvider Android 11 phone
I am getting below exception on the Android 11 device but able to share those files in the email without any issue.
Java:Lang:SecurityException: Permission Denial:Reading androidx.core.content....
8
votes
0
answers
2k
views
Permission denial -> requires oppo.permission.OPPO_COMPONENT_SAFE but it's already on the AndroidManifest.xml
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 the ...
1
vote
0
answers
233
views
Android app using an unsafe implementation of the HostnameVerifier interface(Kotlin)
The app is developed in Kotlin and I have used okHttpClient to make API calls
I am trying to host it on play store but they give me a vulnerability issue:
HostnameVerifier
Your app(s) are using an ...
2
votes
0
answers
549
views
Your app(s) are vulnerable to Intent Redirection from Play Store
App was developed in React Native
Play Stopre Issue-
found that your app uses software that contains security vulnerabilities for users. Apps with these vulnerabilities can expose user information or ...
0
votes
0
answers
101
views
Android accessing files by uri results with SecurityExcepption
I´m stuck with an security exception. I save audio file in my app and can play it. It works fine until device reboot. After reboot the app the trouble begins.
What I try to do is just start a media ...