We found lot's of crash logs in PlayStore Console, but don't have any idea what is this about and can't reproduce it.
java.lang.SecurityException:
at android.os.Parcel.readException (Parcel.java:1689)
at android.database.DatabaseUtils.readExceptionFromParcel (DatabaseUtils.java:183)
at android.database.DatabaseUtils.readExceptionFromParcel (DatabaseUtils.java:135)
at android.content.ContentProviderProxy.insert (ContentProviderNative.java:482)
at android.content.ContentResolver.insert (ContentResolver.java:1279)
at android.content.AsyncQueryHandler$WorkerHandler.handleMessage (AsyncQueryHandler.java:96)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:241)
at android.os.HandlerThread.run (HandlerThread.java:61)
Looks like the exception doesn't depend on any Android version ( at least it happened for 7.1, 7.0, 6.0, 5.1 versions), but as you can see from the screenshot all listed devices are Sony devices
Do you have any guess what this can be related to?
We found a cause of exception.
The exception indeed was Sony specific and was related to notifications.
Here is full stacktrace.
java.lang.SecurityException: Missing permission to insert badges
11-14 19:41:50.414: E/DatabaseUtils(1389): at com.sonymobile.home.resourceprovider.HomeResourceProvider.insertBadge(HomeResourceProvider.java:113)
11-14 19:41:50.414: E/DatabaseUtils(1389): at com.sonymobile.home.resourceprovider.HomeResourceProvider.insert(HomeResourceProvider.java:58)
11-14 19:41:50.414: E/DatabaseUtils(1389): at android.content.ContentProvider$Transport.insert(ContentProvider.java:220)
11-14 19:41:50.414: E/DatabaseUtils(1389): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:167)
11-14 19:41:50.414: E/DatabaseUtils(1389): at android.os.Binder.execTransact(Binder.java:404)
11-14 19:41:50.414: E/DatabaseUtils(1389): at dalvik.system.NativeStart.run(Native Method)
11-14 19:41:50.414: W/dalvikvm(28623): threadid=20: thread exiting with uncaught exception (group=0x415b8d88)
11-14 19:41:50.414: E/AndroidRuntime(28623): FATAL EXCEPTION: AsyncQueryWorker
11-14 19:41:50.414: E/AndroidRuntime(28623): Process: air.com.plexonic.meln2, PID: 28623
11-14 19:41:50.414: E/AndroidRuntime(28623): java.lang.SecurityException: Missing permission to insert badges
11-14 19:41:50.414: E/AndroidRuntime(28623): at android.os.Parcel.readException(Parcel.java:1474)
11-14 19:41:50.414: E/AndroidRuntime(28623): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:185)
11-14 19:41:50.414: E/AndroidRuntime(28623): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:137)
11-14 19:41:50.414: E/AndroidRuntime(28623): at android.content.ContentProviderProxy.insert(ContentProviderNative.java:479)
11-14 19:41:50.414: E/AndroidRuntime(28623): at android.content.ContentResolver.insert(ContentResolver.java:1196)
11-14 19:41:50.414: E/AndroidRuntime(28623): at android.content.AsyncQueryHandler$WorkerHandler.handleMessage(AsyncQueryHandler.java:96)
11-14 19:41:50.414: E/AndroidRuntime(28623): at android.os.Handler.dispatchMessage(Handler.java:102)
11-14 19:41:50.414: E/AndroidRuntime(28623): at android.os.Looper.loop(Looper.java:212)
11-14 19:41:50.414: E/AndroidRuntime(28623): at android.os.HandlerThread.run(HandlerThread.java:61)
Solution was to add specific Sony permissions to the AndroidManifest.
<uses-permission android:name="com.sonyericsson.home.permission.BROADCAST_BADGE"/>
<uses-permission android:name="com.sonymobile.home.permission.PROVIDER_INSERT_BADGE"/>
Related
i am using cordova fingerprint auth plugin in my application, but the application crashes and shows the below errors in logcat.
11-14 11:12:47.671: W/PluginManager(30565): THREAD WARNING: exec()
call to FingerprintAuth.authenticate blocked the main thread for 33ms.
Plugin should use CordovaInterface.getThreadPool().
11-14 11:12:47.712: D/FingerprintAuthDialog(30565): disableBackup:
false 11-14 11:12:47.713: W/ResourceType(30565): No package identifier
when getting value for resource number 0x00000000 11-14
11:12:47.713: D/AndroidRuntime(30565): Shutting down VM 11-14
11:12:47.716: E/AndroidRuntime(30565): FATAL EXCEPTION: main 11-14
11:12:47.716: E/AndroidRuntime(30565): Process: com.fingerPrint, PID:
30565 11-14 11:12:47.716: E/AndroidRuntime(30565):
android.content.res.Resources$NotFoundException: Resource ID #0x0
11-14 11:12:47.716: E/AndroidRuntime(30565): at
android.content.res.Resources.getValue(Resources.java:1351) 11-14
11:12:47.716: E/AndroidRuntime(30565): at
android.content.res.Resources.loadXmlResourceParser(Resources.java:2777)
11-14 11:12:47.716: E/AndroidRuntime(30565): at
android.content.res.Resources.getLayout(Resources.java:1165) 11-14
11:12:47.716: E/AndroidRuntime(30565): at
android.view.LayoutInflater.inflate(LayoutInflater.java:421) 11-14
11:12:47.716: E/AndroidRuntime(30565): at
com.fingerPrint.FingerprintAuthenticationDialogFragment.onCreateView(FingerprintAuthenticationDialogFragment.java:87)
11-14 11:12:47.716: E/AndroidRuntime(30565): at
android.app.Fragment.performCreateView(Fragment.java:2220) 11-14
11:12:47.716: E/AndroidRuntime(30565): at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:973)
11-14 11:12:47.716: E/AndroidRuntime(30565): at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1148)
11-14 11:12:47.716: E/AndroidRuntime(30565): at
android.app.BackStackRecord.run(BackStackRecord.java:793) 11-14
11:12:47.716: E/AndroidRuntime(30565): at
android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1537)
11-14 11:12:47.716: E/AndroidRuntime(30565): at
android.app.FragmentManagerImpl$1.run(FragmentManager.java:482) 11-14
11:12:47.716: E/AndroidRuntime(30565): at
android.os.Handler.handleCallback(Handler.java:746) 11-14
11:12:47.716: E/AndroidRuntime(30565): at
android.os.Handler.dispatchMessage(Handler.java:95) 11-14
11:12:47.716: E/AndroidRuntime(30565): at
android.os.Looper.loop(Looper.java:148) 11-14 11:12:47.716:
E/AndroidRuntime(30565): at
android.app.ActivityThread.main(ActivityThread.java:5443) 11-14
11:12:47.716: E/AndroidRuntime(30565): at
java.lang.reflect.Method.invoke(Native Method) 11-14 11:12:47.716:
E/AndroidRuntime(30565): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
11-14 11:12:47.716: E/AndroidRuntime(30565): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 11-14
11:12:47.718:
E/com.worklight.common.Logger$UncaughtExceptionHandler(30565):
Logger$UncaughtExceptionHandler.uncaughtException in Logger.java:471
:: Uncaught Exception 11-14 11:12:47.718:
E/com.worklight.common.Logger$UncaughtExceptionHandler(30565):
android.content.res.Resources$NotFoundException: Resource ID #0x0
11-14 11:12:47.718:
E/com.worklight.common.Logger$UncaughtExceptionHandler(30565): at
android.content.res.Resources.getValue(Resources.java:1351) 11-14
11:12:47.718:
E/com.worklight.common.Logger$UncaughtExceptionHandler(30565): at
android.content.res.Resources.loadXmlResourceParser(Resources.java:2777)
11-14 11:12:47.718:
E/com.worklight.common.Logger$UncaughtExceptionHandler(30565): at
android.content.res.Resources.getLayout(Resources.java:1165) 11-14
11:12:47.718:
E/com.worklight.common.Logger$UncaughtExceptionHandler(30565): at
android.view.LayoutInflater.inflate(LayoutInflater.java:421) 11-14
11:12:47.718:
E/com.worklight.common.Logger$UncaughtExceptionHandler(30565): at
com.fingerPrint.FingerprintAuthenticationDialogFragment.onCreateView(FingerprintAuthenticationDialogFragment.java:87)
11-14 11:12:47.718:
E/com.worklight.common.Logger$UncaughtExceptionHandler(30565): at
android.app.Fragment.performCreateView(Fragment.java:2220) 11-14
11:12:47.718:
E/com.worklight.common.Logger$UncaughtExceptionHandler(30565): at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:973)
11-14 11:12:47.718:
E/com.worklight.common.Logger$UncaughtExceptionHandler(30565): at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1148)
11-14 11:12:47.718:
E/com.worklight.common.Logger$UncaughtExceptionHandler(30565): at
android.app.BackStackRecord.run(BackStackRecord.java:793) 11-14
11:12:47.718:
E/com.worklight.common.Logger$UncaughtExceptionHandler(30565): at
android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1537)
11-14 11:12:47.718:
E/com.worklight.common.Logger$UncaughtExceptionHandler(30565): at
android.app.FragmentManagerImpl$1.run(FragmentManager.java:482) 11-14
11:12:47.718:
E/com.worklight.common.Logger$UncaughtExceptionHandler(30565): at
android.os.Handler.handleCallback(Handler.java:746) 11-14
11:12:47.718:
E/com.worklight.common.Logger$UncaughtExceptionHandler(30565): at
android.os.Handler.dispatchMessage(Handler.java:95) 11-14
11:12:47.718:
E/com.worklight.common.Logger$UncaughtExceptionHandler(30565): at
android.os.Looper.loop(Looper.java:148) 11-14 11:12:47.718:
E/com.worklight.common.Logger$UncaughtExceptionHandler(30565): at
android.app.ActivityThread.main(ActivityThread.java:5443) 11-14
11:12:47.718:
E/com.worklight.common.Logger$UncaughtExceptionHandler(30565): at
java.lang.reflect.Method.invoke(Native Method) 11-14 11:12:47.718:
E/com.worklight.common.Logger$UncaughtExceptionHandler(30565): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
11-14 11:12:47.718:
E/com.worklight.common.Logger$UncaughtExceptionHandler(30565): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 11-14
11:12:47.723: D/com.worklight.wlclient.api.WLLifecycleHelper(30565):
WLLifecycleHelper.logAppSession in WLLifecycleHelper.java:109 :: Tried
to record an app crash without a starting timestamp
Steps Followed:
Added plugin FingerprintAuth.java, FingerprintAuthenticationDialogFragment‌​.java, FingerprintUiHelper.java files into android/src/com/ folder
Added to config.xml
<feature name="FingerprintAuth">
<param name="android-package" value="com.fingerPrint.FingerprintAuth"/>
</feature>
Added FingerprintAuth.js in common/js folder
Every time add the following in cordova_plugins.js before deploying to device
{ "id": "FingerprintAuth", "file": "../js/FingerprintAuth.js", "clobbers": [ "FingerprintAuth" ] }
5.To check fingerprint authentication added below code in main.js file
FingerprintAuth.isAvailable(function(result) {
if (result.isAvailable) {
var client_id = "Your client ID";
var client_secret = "A very secret client secret (once per device)";
if(result.hasEnrolledFingerprints){
FingerprintAuth.show({
clientId: client_id,
clientSecret: client_secret
}, function (result) {
if (result.withFingerprint) {
alert("Authentication Success");
//$location.path("singin");
} else if (result.withPassword) {
alert("Authenticated with backup password");
}
}, function(error) {
console.log(error); // "Fingerprint authentication not available"
});
}else{
alert("Fingerprint auth available, but no fingerprint registered on the device");
}
}
}, function(message) {
alert("Cannot detect fingerprint device : "+ message);
});
I am not sure this will at all work in a Hybrid app.
Note however that according to the plug-in page this plug-in requires Android API level 23, which was added only recently. Please first be sure to upgrade to the latest iFix of MobileFirst Platform Foundation 7.1
I just loaded my app created by cocos2dx-3.10 and when I open with it an AVD (again I haven't done any modifications to the app) the app crashes and gives the error: Unfortunately, libcocos2dx has crashed.
here is what I get in my android Monitor:
03-05 18:34:56.668 1435-1435/? D/dalvikvm: Not late-enabling CheckJNI (already on)
03-05 18:34:56.989 1435-1435/com.trying.name E/Trace: error opening trace file: No such file or directory (2)
03-05 18:34:57.419 1435-1435/com.trying.name D/AndroidRuntime: Shutting down VM
03-05 18:34:57.419 1435-1435/com.trying.name W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0xb2f2b288)
03-05 18:34:57.518 1435-1435/com.trying.name E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.UnsatisfiedLinkError: Couldn't load cocos2dcpp: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:365)
at java.lang.System.loadLibrary(System.java:535)
at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:248)
at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:263)
at android.app.Activity.performCreate(Activity.java:5008)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
at android.app.ActivityThread.access$600(ActivityThread.java:130)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
03-05 18:35:11.559 1435-1435/? I/Process: Sending signal. PID: 1435 SIG: 9
java.lang.NullPointerException
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4093)
at android.app.ActivityThread.access$1400(ActivityThread.java:140)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1297)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4935)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
at dalvik.system.NativeStart.main(Native Method)
This is the report I got in developer console of Google Play Store. from I am unable to reproduce the issue as I am unsure where it's happening in my application. Found none when I searched for similar stacktraces.
Decided to use Scandit SDK to get the barcode scanning feature in my app. Unfortunately, since I'm relatively new to Android development and Java in general I've run into a few issues that I can't seem to work out. The demo that Scandit provided doesn't give any errors(runs fine) but crashes when I try to start it up (pressing a button from one activity is meant to start it up). I've tried reading the logcat and googling a solution to the problems but I'm not getting the right solutions. Does anyone have an idea of what I'm doing wrong?
Logcat is provided below:
10-08 23:30:00.807 21563-21563/com.kwesimbia.management D/AndroidRuntime? Shutting down VM
10-08 23:30:00.807 21563-21563/com.kwesimbia.management W/dalvikvm? threadid=1: thread exiting with uncaught exception (group=0x40aa4228)
10-08 23:30:00.817 21563-21563/com.kwesimbia.management E/AndroidRuntime? FATAL EXCEPTION: main
java.lang.IllegalStateException: Could not execute method of the activity
at android.view.View$1.onClick(View.java:3082)
at android.view.View.performClick(View.java:3549)
at android.view.View$PerformClick.run(View.java:14393)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:4944)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at android.view.View$1.onClick(View.java:3077)
at android.view.View.performClick(View.java:3549)
at android.view.View$PerformClick.run(View.java:14393)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:4944)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NoClassDefFoundError: com.kwesimbia.management.ScanditSDKDemoSimple
at com.kwesimbia.management.Activity_D.initiateCodeScan(Activity_D.java:63)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at android.view.View$1.onClick(View.java:3077)
at android.view.View.performClick(View.java:3549)
at android.view.View$PerformClick.run(View.java:14393)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:4944)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
10-08 23:30:00.817 32726-587/? E/EmbeddedLogger? App crashed!
Process: com.kwesimbia.management
10-08 23:30:00.817 32726-587/? E/EmbeddedLogger? App crashed!
Package: com.kwesimbia.management v1 (1.0)
10-08 23:30:00.817 32726-587/? E/EmbeddedLogger?
Application Label: firstapp
10-08 23:30:00.827 32726-587/? W/ActivityManager?
Force finishing activity com.kwesimbia.management/.Activity_D
I came across this problem as well, my solution was to extract the library files and put them as their files in the lib folder
The library basically isn't being exported with it
EDIT
So I checked out my project, basically I did these things:
In the libs folder I have a new folder called armeabi and inside that I have libscanditsdk-android-3.3.1.so
Then in my build path I have also referenced the jar file that they provide:
<classpathentry exported="true" kind="lib" path="C:/GIT/Android/FwayScannerProject/FwayScanner/libs/scanditsdk-barcodepicker-android-3.3.1.jar"/>
Facebook Android SDK when running example apps gives
11-14 23:17:58.484: ERROR/HttpOperation.run(1139): class java.net.UnknownHostException api.facebook.com [http://api.facebook.com/restserver.php?api_key=882a8490361da98702bf97a021ddc14d&call_id=1289744278460&format=JSON&method=fql.query&migrations_override=%7B%27empty_json%27%3A+true%7D&query=SELECT+uid%2Cfirst_name%2Clast_name%2Cname%2Cpic_square%2Ccell%2Cother_phone%2Ccontact_email%2Cbirthday_date+FROM+user+WHERE+%28uid+IN+%28SELECT+uid2+FROM+friend+WHERE+uid1%3D1825058169%29%29%3B&session_key=f9902bc179f7592f8ed273ed-1825058169&sig=e299638eb114e77fef3eb2088f270683&v=1.0]
11-14 23:17:58.484: ERROR/HttpOperation(1139): Encountered exception: java.net.UnknownHostException: api.facebook.com
11-14 23:17:58.484: WARN/System.err(1139): java.net.UnknownHostException: api.facebook.com
11-14 23:17:58.484: WARN/System.err(1139): at java.net.InetAddress.lookupHostByName(InetAddress.java:513)
11-14 23:17:58.484: WARN/System.err(1139): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:278)
11-14 23:17:58.484: WARN/System.err(1139): at java.net.InetAddress.getAllByName(InetAddress.java:242)
11-14 23:17:58.484: WARN/System.err(1139): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
11-14 23:17:58.484: WARN/System.err(1139): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
11-14 23:17:58.484: WARN/System.err(1139): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
11-14 23:17:58.484: WARN/System.err(1139): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348)
11-14 23:17:58.484: WARN/System.err(1139): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
11-14 23:17:58.484: WARN/System.err(1139): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
11-14 23:17:58.484: WARN/System.err(1139): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
11-14 23:17:58.484: WARN/System.err(1139): at com.facebook.katana.service.method.HttpOperation.run(HttpOperation.java:163)
You need to add the permission to use the internet to the app. If you don't, the app throws this error.
go into the manifest and add this line:
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
I was getting these errors on my phone. I went to
settings > applications > manage applicatoins > facebook > clear data.
That fixed the problems on my phone.