mer-hybris / nfcd-binder-plugin Goto Github PK
View Code? Open in Web Editor NEWBinder based adaptation for https://git.sailfishos.org/mer-core/nfcd/
License: Other
Binder based adaptation for https://git.sailfishos.org/mer-core/nfcd/
License: Other
nfcd plugin for Android 8+ based phones. It talks to Android NFC HAL interfaces via /dev/hwbinder.
On all of my ports NFC doesnt work on the current code in 4.5.0.19 ... On the FXTec Pro1 it did work at some point in the past as thats what I used to write some tags.
After a log of debugging and hacking, i believe that the nfcd daemon never requests the binder plugin to power on the adapter. After hacking this into the code, i was able to read tags just fine. see piggz/nfcd@f097db3 in the nfc manager code.
I then found an AlwaysOn setting which sets the adapter power on state in https://github.com/piggz/nfcd/blob/master/plugins/settings/settings_plugin.c#L968
This half fixes the issue ... now, when nfcd starts, it powers on the binder device ok, and tags can be read, however, if the nfc toggle is disabled/enabled then it stats in a powered-off state.
I may be missing something, as there is clearly a lot of code for handling the enabled and powered state, but i can seem to get it to work correctly.
This affects the Pro1, Pro1X and 4x Volla devices, all different SoCs and android versions.
As per https://github.com/mer-hybris/nfcd-binder-plugin/blob/4e92105/src/binder_nfc.h#L1-L31 the source code is licensed under a BSD-3-Clause, yet the repository root is missing a LICENSE
file, which is required to be distributed along with installed binaries.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.