Search code examples
androidlicensinglgpl

Licensing: Android, LGPL and the ZBar QR Code scanner


I have integrated zbar code scanner in my Android-app in minutes (great library!), nevertheless I am thinking of replacing it with another QR code reader now. The reason is, that there is much scepticism[1][2] on the web whether LGPL is compatible with commercial Android projects.

Can someone tell me why zbar uses LGPL but nevertheless are supporting android? (the even have a android section in their support forum...)

Is there a way to make sure my app meets the license requirements?

[1] http://source.android.com/source/licenses.html

[2] http://www.gnu.org/licenses/lgpl-java.html


Solution

  • Android platform project has different licensing requirements from 3rd party app developers. While it is possible to replace and reverse engineer LGPL libraries in 3rd party apps, it is not so for LGPL libraries in read-only firmware.

    Key parts of Android zbar are distributed in binary .so files. As such, they are replaceable in your distributed app in terms compliant with LGPL.

    For the Java adapter code (zbar.jar), make sure you're not using ProGuard or other obfuscation on it.

    For reference, here's how the droidText project addresses LGPL compliance: https://code.google.com/p/droidtext/wiki/LGPLCompliance

    (Standard I-am-not-a-lawyer disclaimer applies.)