Git Product home page Git Product logo

Comments (12)

klassm avatar klassm commented on July 29, 2024

Hey, sorry I didn't see that issue for quite some time and stumbled upon it today. There's an open issue about this also in the underlying library, so I swapped that one now. I'll release a new beta version when the build completes successfully. Maybe you can have a look then.
Matthias

from andfhem.

klassm avatar klassm commented on July 29, 2024

Beta version has been released. Can you please check whether that works for you?

from andfhem.

zilon84 avatar zilon84 commented on July 29, 2024

Hello,
thank you for providing the beta version. File browsing in general is now possible, but I observed the limitation that only PNG and JPG files are visible. So I still can't use the P12 file with the client cert.

Thank you and BR
Zilon

from andfhem.

klassm avatar klassm commented on July 29, 2024

That's a strange thing - it seems like Android deprecated some APIs - which now results in only images being shown. Weird. I changed it to scoped storage now and will release another version ....

from andfhem.

klassm avatar klassm commented on July 29, 2024

And another beta version ...

from andfhem.

klassm avatar klassm commented on July 29, 2024

@zilon84 Did you have a chance to try it out one more time?

from andfhem.

zilon84 avatar zilon84 commented on July 29, 2024

Hello,

yes I was able to successfully test the new version. I can access the client cert and use it with andFHEM.

The only strange thing that occurs after some time is that the app seems to lose the ability to use the cert. In the administration menu of andFHEM everything seems to be OK. There is still a path to the cert written. Anyhow, I have to add the cert again and everything is working fine again.

Does andFHEM store a copy of the cert? Maybe this copy is deleted due to some cleanup routine of Android. After the cert is added again this copy is on its place and the app works.

Thanks and BR
Zilon

from andfhem.

klassm avatar klassm commented on July 29, 2024

Hi @zilon84 ,

No it doesn't. However, Android 11 changed the storage implementation, so you cannot access files any more. Don't ask me why, but now everyone has to adapt.
What I did now is load the certificate to the andFHEM connection and save it internally. This should probably make it work again, as now there's only one time loading the file - which is directly after selecting it in the file picker. However, most probably this means that you will have to reselect the certificate again.
I will release another beta version and hopefully it fixed the issue. Unfortunately I don't have a client certificate configured here. So I am doing my best on guessing how it could work ....
Matthias

from andfhem.

klassm avatar klassm commented on July 29, 2024

After some weird issues, there's now a new Beta version. Maybe you can have a look again.

from andfhem.

zilon84 avatar zilon84 commented on July 29, 2024

So, I just checked the new beta version.

Changed behavior ist the following: After selecting the cert with the file picker, it ssems to be imported into andFHEM. At the location where typically the path to the cert is displayed, I now see many weird characters and symbols.

Access to the FHEM system is no longer possible.

from andfhem.

zilon84 avatar zilon84 commented on July 29, 2024

The latest beta seems to solve the issue. Even after a restart of the device the app is still able to login via the client cert.
Thank you!

from andfhem.

klassm avatar klassm commented on July 29, 2024

Cool, thanks for the info :-). That was basically the last try - now to copy the certificate from your location to an andFHEM internal location - and read it from the file when doing a request.
I'll give it some more time though whether it really works.

from andfhem.

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.