@dansup
As others said: publishing code different from what 's in the stores is problematic.

How about creating a library with the camera code and a really strong license? Add some features that will make it easily identifyable but can't be removed easily. That way copycats will either be identified quickly or have to put in enough effort to make copying unattractive.
If they violate the license there are a lot of organisation (FSF and others) that might help with taking legal actions.