InstallReferrerClient.startConnection() throwing Caused by java.lang.SecurityException - android

Caused by java.lang.SecurityException
Not allowed to bind to service Intent { act=com.google.android.finsky.BIND_GET_INSTALL_REFERRER_SERVICE cmp=com.android.vending/com.google.android.finsky.externalreferrer.GetInstallReferrerService }
in android project i use new library com.android.installreferrer:installreferrer:1.1
when call this code
referrerClient.startConnection(new InstallReferrerStateListener()
occure the exception
in firebase crashReporter reported this exception in
samsung (Galaxy Note3 ,Galaxy Grand2, Galaxy A7) and HUAWEI (Y5II , G750-U10)
Android 5.1
21%
Android 5.0
10%
Android 5.0.2
21%
Android 4.4.2
16%
Android 4.2.2
i check merged manifest and find this permission
android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE"
but not fount tools:remove tag

It seems to be a Google issue: There's an open ticket in their issue tracker:
https://issuetracker.google.com/issues/72926755

Related

Barcode scanning is not working with vision API

I'm trying to run the barcode-reader example ( https://github.com/googlesamples/android-vision/tree/master/visionSamples/barcode-reader ) as it is on my Nokia 2.1 running Android 8.1.0 and Google Play Services 15.0.90. The camera starts but no barcode is detected and in the logcat I get (continuously while the camera is working) the following error:
2019-02-09 18:17:04.990 3364-3497/com.google.android.gms.samples.vision.barcodereader E/BarcodeNativeHandle: Error Loading module com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0. at com.google.android.gms.dynamite.DynamiteModule.load(Unknown Source:8) at com.google.android.gms.internal.vision.zzl.zzp(Unknown Source:39) at com.google.android.gms.internal.vision.zzl.isOperational(Unknown Source:0) at com.google.android.gms.vision.barcode.BarcodeDetector.isOperational(Unknown Source:2) at com.google.android.gms.vision.Detector.receiveFrame(Unknown Source:16) at com.google.android.gms.samples.vision.barcodereader.ui.camera.CameraSource$FrameProcessingRunnable.run(CameraSource.java:1205) at java.lang.Thread.run(Thread.java:764)
What can I do to be able to run it?
Thanks!
Facing same issue on Nokia 1 Android 8.1.0 Android Go edition.
Seems to be issue with vision API or Google play service issue as mentioned here https://issuetracker.google.com/issues/80454351
Alternately you can use zing library for barcode/qr code scanning, you can try following example, it worked for me.
https://www.androidtutorialpoint.com/basics/learn-by-doing/android-qr-code-scanner-app-tutorial-using-zxing-library/

Crash on Android Login with Fingerprint caused by *INTERACT_ACROSS_USERS*

I applied fingerprint integration within my App to login with fingerprint.
After releasing the App to public, I saw hundreds of crash reports generated by Fabric's Crashlytics caused by this, as below:
Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx.xxxxx/com.xxx.xxxxx.LoginActivity}: java.lang.SecurityException: Permission Denial: getCurrentUser() from pid=26824, uid=10144 requires android.permission.INTERACT_ACROSS_USERS
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3319)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3415)
at android.app.ActivityThread.access$1100(ActivityThread.java:229)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1821)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7406)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
The weird thing is, all crashes are on Samsung devices only!
Galaxy J7 57%
SM-J327P 9%
Galaxy A5 7%
SM-G532F 7%
Galaxy J5 1%
Galaxy S6 Edge 1%
The Manifest file already have the permission as below:
<permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" android:protectionLevel="signature"/>
Is there any suggestions how to trace/fix this problem? I don't have any of the above devices on hand :/
Thanks.
It seems my issue is duplicate to this :
Android Fingerprints: hasEnrolledFingerprints triggers exception on some Samsungs
Credit to:
#david-medenjak
===============
I came across the same problem on a Samsung Galaxy S6, running Android 6.0.1
The Problem was caused by calling
fingerprintManager.hasEnrolledFingerprints()
I fixed it by adding a call to check for hardware before:
fingerprintManager.isHardwareDetected()
&& mFingerprintManager.hasEnrolledFingerprints()
Checking for fingerprints without the hardware available seems to cause this exception on some devices.
===============
Thanks

android.media.MediaCodec.finalize() timed out after 10 seconds

Fatal Exception: java.util.concurrent.TimeoutException
android.media.MediaCodec.finalize() timed out after 10 seconds
I'm receiving this exception from fabric happened with Samsung Galaxy Note 3 (4.3) on the end users side, anybody has any clue on why it happened?
This crash reported by fabric. This is not related to your Application:
https://code.google.com/p/android/issues/detail?id=205978
Devices:
Samsung (62%) : GT-I9300, SM-G7105, GT-I9500, ...
LG (19%) : Nexus 4, H815, D855
Motorola (15%) : XT1058, XT1060, XT1055,...
others (4%)
Android versions:
Android 5.x : 54%
Android 4.x : 45%
Android 6.x : 1%
Following link clearly explains.
How to handle :java.util.concurrent.TimeoutException: android.os.BinderProxy.finalize() timed out after 10 seconds errors?

Google LicensingService crash on Android 6.0

When my app checks for obb expansion file it crashes, giving the following error:
Service Intent must be explicit: Intent { act=com.android.vending.licensing.ILicensingService } - Error.
I know that this exact issue was a problem on Android 5.0+ and it was solved as follows:
https://code.google.com/p/android-developer-preview/issues/detail?id=1674
However, this is happening again on android 6.0+ now. And that fix is not working for 6.0+.
Any idea how to solve this?

Worklight application does not run on device when cordova is updated to 2.9

I was receiving this error
"Could not find class 'android.webkit.WebResourceResponse', referenced from method org.apache.cordova.CordovaWebViewClient.generateWebResourceResponse"
when running a simple android application on an android device. I updated the cordova.jar file within the "libs" folder within the android project folder by downloading the new cordova-2.9.jar file, renaming it to "cordova.jar" and replacing it with the original jar file. Now when I run the app logcat shows no error or warnings but the screen is black and the last seven logcat messages are
07-15 15:07:14.226: D/CordovaWebView(24584): >>> loadUrlNow()
07-15 15:07:14.326: D/CordovaActivity(24584): onMessage(onPageStarted,file:///data/data/com.PrototypeApp/files/www/skinLoader.html)
07-15 15:07:14.366: D/webkit-timers(24584): [JWebCoreJavaBridge::resume] >> do resume
07-15 15:07:14.486: D/dalvikvm(24584): GC_CONCURRENT freed 344K, 44% free 3415K/6023K, external 0K/0K, paused 2ms+3ms
07-15 15:07:15.167: D/Cordova(24584): onPageFinished(file:///data/data/com.PrototypeApp/files/www/skinLoader.html)
07-15 15:07:15.177: D/CordovaActivity(24584): onMessage(onPageFinished,file:///data/data/com.PrototypeApp/files/www/skinLoader.html)
07-15 15:07:17.189: D/CordovaActivity(24584): onMessage(spinner,stop)
No initialization happens of the js and html files within my common and android folder. I am using android api 10 and my phone is android 2.3.4. Does anyone know why there is no initialization or how to fix my problem? Thank you
Some background:
The error you see is in fact an Apache Cordova defect, fixed in Cordova 2.7.
Worklight uses Cordova 2.6.
The defect affects a subset of devices that also happen to use Android OS v2.x; some devices will only show an error in LogCat, others may crash.
This issue will be addressed in a near-future release of Worklight 6.0.0.x.
That said,
Worklight does not support the "upgrade" method (or any method) for Cordova that you've tried to do.

Categories

Resources