Questions tagged [android-securityexception]

Thrown when a security manager check fails.

168 questions
1
vote
0 answers

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." However, I am using WebView and not WebRTC. How do I fix…
1
vote
0 answers

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 decompressing the downloaded file and in the code there is nothing…
1
vote
0 answers

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 working on android 12 and on versions before.…
1
vote
0 answers

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 string or message which claimed to have negative…
c-an
  • 3,543
  • 5
  • 35
  • 82
1
vote
2 answers

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 get this error java.lang.RuntimeException: Unable…
1
vote
0 answers

How to import and export AES secret key to Android KeyStore?

I gave ECDH KeyAgreement for generating AES Secret Key based on EC public and private keys: keyAgreement.init(privateKey) keyAgreement.doPhase(publicKey, true) val secretKey = keyAgreement.generateSecret(KeyProperties.KEY_ALGORITHM_AES) And I want…
1
vote
0 answers

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 vulnerability. Please see this bellow…
1
vote
0 answers

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. getDeviceId: The user 10214 does not meet the requirements…
1
vote
1 answer

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 used…
1
vote
1 answer

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.SecurityException: Unsupported path…
1
vote
0 answers

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 setDefaultHostnameVerifier or setHostnameVerifier. I am…
1
vote
0 answers

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 unsafe implementation of the HostnameVerifier…
1
vote
0 answers

DevicePolicyManager throws SecurityException

I am creating an application using Samsung Knox and Device Administration. I am trying to disable the keyguard but I keep getting a SecurityException with the message: Admin…
1
vote
2 answers

I get: java.lang.SecurityException: "gps" location provider requires ACCESS_FINE_LOCATION permission

I'm working with the map to my app and so I have here a weird error message that it says java.lang.SecurityException: "GPS" location provider requires ACCESS_FINE_LOCATION permission. every time I launch the app and crashes due to this error, though…
User Unknown
  • 1,079
  • 1
  • 7
  • 17
1
vote
2 answers

How to fix java.lang.SecurityException warning?

I have this exception in my app, under warnings in the Logcat. The app is a system app. java.lang.reflect.InvocationTargetException W/System.err: at java.lang.reflect.Method.invoke(Native Method) W/System.err: at…
Keselme
  • 3,779
  • 7
  • 36
  • 68