Android Question [SOLVED] Admob Mediation with InMobi - error log - crypto

scsjc

Well-Known Member
Licensed User
Longtime User
i use a Admob Mediation with InMobi with the tutorial: https://www.b4x.com/android/forum/threads/admob-mediation-with-inmobi.71396/


and get error in log like : java.security.NoSuchProviderException: no such provider: Crypto


B4X:
.
.
.
.
initialize called from InMobiAdapter.
Could not set socket write timeout: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at com.google.android.gms.org.conscrypt.Platform.setSocketWriteTimeout(:com.google.android.gms@[email protected] (040700-204998136):13)
Caused by: android.system.ErrnoException: setsockopt failed: EBADF (Bad file descriptor)
    at libcore.io.Linux.setsockoptTimeval(Native Method)
    at libcore.io.ForwardingOs.setsockoptTimeval(ForwardingOs.java:175)
Could not set socket write timeout: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at com.google.android.gms.org.conscrypt.Platform.setSocketWriteTimeout(:com.google.android.gms@[email protected] (040700-204998136):13)
Caused by: android.system.ErrnoException: setsockopt failed: EBADF (Bad file descriptor)
    at libcore.io.Linux.setsockoptTimeval(Native Method)
    at libcore.io.ForwardingOs.setsockoptTimeval(ForwardingOs.java:175)
Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true
.
.
.
.
.
.
Initializing chromium process, singleProcess=false
Android Locale: es_ES requires .pak files: [es, es-419]
Failure getting entry for 0x7f120490 (t=17 e=1168) (error -2147483647)
Failed to make and chown /acct/uid_99019: Permission denied
createProcessGroup(99019, 0) failed: Permission denied
Unexpected CPU variant for X86 using defaults: x86
Start proc 16602:com.android.chrome:sandboxed_process0/u0i19 for webview_service xxxxxxxxxxxxx.com/org.chromium.content.app.SandboxedProcessService0
Couldn't load memtrack module
failed to get memory consumption info: -1
[INFO:aw_field_trial_creator.cc(52)] First-WebView-Experiment found, group=Enabled
setgid: Operation not permitted
Creating new ChildProcessService pid=16602
 ********** PLEASE READ ************
 *
 * New versions of the Android SDK no longer support the Crypto provider.
 * If your app was relying on setSeed() to derive keys from strings, you
 * should switch to using SecretKeySpec to load raw key bytes directly OR
 * use a real key derivation function (KDF). See advice here :
 * http://android-developers.blogspot.com/2016/06/security-crypto-provider-deprecated-in.html
 ***********************************
java.security.NoSuchProviderException: no such provider: Crypto
    at sun.security.jca.GetInstance.getService(GetInstance.java:83)
    at sun.security.jca.GetInstance.getInstance(GetInstance.java:206)
    at java.security.SecureRandom.getInstance(SecureRandom.java:384)
    at com.inmobi.commons.core.utilities.a.b.a(RequestEncryptionUtils.java:113)
    at com.inmobi.sdk.InMobiSdk.init(InMobiSdk.java:204)
    at com.google.ads.mediation.inmobi.InMobiAdapter.initialize(InMobiAdapter.java:358)
    at com.google.android.gms.internal.ads.zzyk.zza(Unknown Source:142)
    at com.google.android.gms.internal.ads.zzxr.dispatchTransaction(Unknown Source:324)
    at com.google.android.gms.internal.ads.zzek.onTransact(Unknown Source:22)
    at android.os.Binder.transact(Binder.java:627)
    at mt.b(:com.google.android.gms.dynamite_adsdynamite@[email protected] (040700-204998136):20)
    at com.google.android.gms.ads.internal.mediation.client.g.a(:com.google.android.gms.dynamite_adsdynamite@[email protected] (040700-204998136):65)
    at com.google.android.gms.ads.internal.reward.mediation.c.run(:com.google.android.gms.dynamite_adsdynamite@[email protected] (040700-204998136):6)
    at android.os.Handler.handleCallback(Handler.java:790)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6494)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Server parameters: {"accountid":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx","gwhirl_share_location":"1","placementid":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
Background concurrent copying GC freed 44348(2MB) AllocSpace objects, 74(1764KB) LOS objects, 49% free, 4MB/8MB, paused 462us total 120.692ms
Bundle extras are null
 ********** PLEASE READ ************
 *
 * New versions of the Android SDK no longer support the Crypto provider.
 * If your app was relying on setSeed() to derive keys from strings, you
 * should switch to using SecretKeySpec to load raw key bytes directly OR
 * use a real key derivation function (KDF). See advice here :
 * http://android-developers.blogspot.com/2016/06/security-crypto-provider-deprecated-in.html
 ***********************************
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

scsjc

Well-Known Member
Licensed User
Longtime User
Last edited:
Upvote 0
Top