Security Exception is thrown by the security manager to indicate a security violation.
An example of security violation, is trying to accessing, reading or writing data in android, which your app isn’t allowed to access it by the android security manager possibly due on of the following:
Not declaring sufficient permissions Permissions are declared in the app’s manifest using the <uses-permission> tag. Almost all components and extensions do this already. But in case it doesn’t, you will need to decompile the APK or AAB and add it manually.
The protection level of one of the required declared permissions is dangerous, which means that the user must accept it in the runtime starting from Android 6 ( using the Screen. AskPermission block. ). Most of the components asks the user to accept the permission already, but it’s possible you will need to ask it using the mentioned blocks when using some components or extensions.
One of the features you use requires your app to be signed as a system app.
An example is:
Accessing the user location ( using the location sensor for example or Google Maps), without having the location permissions.
Accessing the internet without the internet permission.
Reading/Writing files from the device’s storage ( excluding app specific directories which apps have access to it by default ) Well explained here.
i confirm this. same issue is also happening in one of my apps.
i did not use location detection in app.
its working best in my infinix hot 8 android 9. but today i tested my app in oppo F1s android 5.1
then i faced the very same error.
the major componets i used are tiny db and web .
and all other are simple alighmnts buttons and lables along with dynamic components extension bt @yusufcihan
scrol handler by @colintree
taifun clipboard by @Taifun
Yup i will
But in another app of mine with same configuration 100% same (but data is changed) everything is fine I have an hypothesis not yet confirmed that tinydb might be the cause. edit
Now i get confirmed details why its happening
Actually i have used perdiza sqlite extension that’s now has become a component but when i created this app i was unaware of the fact that this extension is now a component so i imported that extension and used and later on i used another method to store data with tiny db and forget to remove that extension from my app
Now that extension is causing runtime exception issue… not security issue.
Detailed information is taken from play console and by some permanent users help.
ok, I understand, thank you…
you also used this thread and meanwhile found your solution, which is great… but @Jiks_Devloper actually had another problem…
i found new crease from last 1 week without i update my application.
java.lang.RuntimeException
java.lang.RuntimeException:
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3960)
at android.app.ActivityThread.access$1400 (ActivityThread.java:268)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1993)
at android.os.Handler.dispatchMessage (Handler.java:107)
at android.os.Looper.loop (Looper.java:237)
at android.app.ActivityThread.main (ActivityThread.java:7814)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1075)
Caused by: java.lang.ClassNotFoundException:
at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:196)
at java.lang.ClassLoader.loadClass (ClassLoader.java:379)
at java.lang.ClassLoader.loadClass (ClassLoader.java:312)
at android.app.AppComponentFactory.instantiateReceiver (AppComponentFactory.java:110)
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3953)