GithubHelp home page GithubHelp logo

Comments (4)

mattmook avatar mattmook commented on September 6, 2024

Hi @darwind,

What manufacturers do you see this across?

According to the docs SHA-256 should be supported across all Android OS versions (since API 1).

Throwing random thoughts out there, do you use any JNI in your app? https://stackoverflow.com/questions/17877419/android-messagedigest-nosuchalgorithmexception-after-calling-jni-function

from certificate-transparency-android.

darwind avatar darwind commented on September 6, 2024

Hi @darwind,

What manufacturers do you see this across?

According to the docs SHA-256 should be supported across all Android OS versions (since API 1).

Throwing random thoughts out there, do you use any JNI in your app? https://stackoverflow.com/questions/17877419/android-messagedigest-nosuchalgorithmexception-after-calling-jni-function

Thanks for getting back to me.

Yes I would also expect all devices to support SHA-256, unless the manufacturers mess up something of course.

We see this on:
Huawei (P30 lite, P20 Pro, P smart 2019, Mate 9 Pro and P20 Lite)
Samsung (Galaxy S9 and Galaxy A41)
OnePlus (6T)

However we've only seen roughly 10 crashes with 10 different users, but with a userbase of roughly 300.000 users on Android it's not affecting a lot of users obviously.

I went digging through our 3rd party libraries and we're actually using an OCR engine, which is a proprietary library so I don't have access to the source code apart from the obfuscated code and this OCR engine is actually using RenderScript, so yes indirectly we're using JNI I suppose :-) The OCR engine is initialised inside our Application class as the first thing we're doing and then the first call to our backend is made a little later when the user presses a button, so I guess this could actually be the issue.

I don't have access to any of the users that experience this issue so it's gonna be hard to test out whether changing the call order will fix this issue of course.

from certificate-transparency-android.

mattmook avatar mattmook commented on September 6, 2024

I can put a workaround in by having a fallback implementation of SHA-256, however, I am concerned it's just going to shift the problem elsewhere in the code.

Of course it's hard to know if it is the OCR library causing the issues... seems other Android libraries have experienced similar issues with no real resolution (Mixpanel, Amplitude-Android).

from certificate-transparency-android.

mattmook avatar mattmook commented on September 6, 2024

Next release will use SHA256 directly from BC rather than through MessageDigest so the above exception can no longer occur. I guess we'll have to see whether there are any further unexplained exceptions further down the line

from certificate-transparency-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.