2

I searched all over the Internet but I was not able to find if anyone has raised this issue. I want to edit some files in an open source sample project provided by Google (change some methods and the package name of all the files), and then deploy the app on the Play Store.

I have the following questions:

  1. Can I do this?
  2. If I can, do I need to keep any license declaration in my app, or do I need to open source my project?

NOTE: I know that the Google samples are licensed under the Apache License 2.0. But I am not able to find the answers to my questions in the licensing terms.

  • Beware that some Android sample apps uses proprietary libraries such as Play Services. – Nicolas Raoul Oct 7 '16 at 5:20
1
  1. Can I do this?

Yes

  1. If I can, do I need to keep any license declaration in my app, or do I need to open source my project?

You need to keep the original Apache license texts and notices as well as some minimal tracking of the changes you did. See https://enterprise.dejacode.com/license_library/Demo/apache-2.0/#license-text for some details of the requirements

Section 4. of the Apache license is fairly clear on this and quite simple to comply with.

You do not need to make your project open source or Apache-licensed as a whole (though I would strongly encourage this)

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.