xref: /aosp_15_r20/external/android-key-attestation/CONTRIBUTING.md (revision 7ca207924212edeca68cc84bb4fcd356338eb385)
1*7ca20792SAndroid Build Coastguard Worker# How to become a contributor and submit your own code
2*7ca20792SAndroid Build Coastguard Worker
3*7ca20792SAndroid Build Coastguard Worker## Contributor License Agreements
4*7ca20792SAndroid Build Coastguard Worker
5*7ca20792SAndroid Build Coastguard WorkerWe'd love to accept your sample apps and patches! Before we can take them, we
6*7ca20792SAndroid Build Coastguard Workerhave to jump a couple of legal hurdles.
7*7ca20792SAndroid Build Coastguard Worker
8*7ca20792SAndroid Build Coastguard WorkerPlease fill out either the individual or corporate Contributor License Agreement
9*7ca20792SAndroid Build Coastguard Worker(CLA).
10*7ca20792SAndroid Build Coastguard Worker
11*7ca20792SAndroid Build Coastguard Worker  * If you are an individual writing original source code and you're sure you
12*7ca20792SAndroid Build Coastguard Worker    own the intellectual property, then you'll need to sign an [individual CLA]
13*7ca20792SAndroid Build Coastguard Worker    (http://code.google.com/legal/individual-cla-v1.0.html).
14*7ca20792SAndroid Build Coastguard Worker  * If you work for a company that wants to allow you to contribute your work,
15*7ca20792SAndroid Build Coastguard Worker    then you'll need to sign a [corporate CLA]
16*7ca20792SAndroid Build Coastguard Worker    (http://code.google.com/legal/corporate-cla-v1.0.html).
17*7ca20792SAndroid Build Coastguard Worker
18*7ca20792SAndroid Build Coastguard WorkerFollow either of the two links above to access the appropriate CLA and
19*7ca20792SAndroid Build Coastguard Workerinstructions for how to sign and return it. Once we receive it, we'll be able to
20*7ca20792SAndroid Build Coastguard Workeraccept your pull requests.
21*7ca20792SAndroid Build Coastguard Worker
22*7ca20792SAndroid Build Coastguard Worker## Contributing a Patch
23*7ca20792SAndroid Build Coastguard Worker
24*7ca20792SAndroid Build Coastguard Worker1. Sign a Contributor License Agreement, if you have not yet done so (see
25*7ca20792SAndroid Build Coastguard Worker   details above).
26*7ca20792SAndroid Build Coastguard Worker1. Create your change to the repo in question.
27*7ca20792SAndroid Build Coastguard Worker    * Fork the desired repo, develop and test your code changes.
28*7ca20792SAndroid Build Coastguard Worker    * Ensure that your code is clear and comprehensible.
29*7ca20792SAndroid Build Coastguard Worker    * Ensure that your code has an appropriate set of unit tests which all pass.
30*7ca20792SAndroid Build Coastguard Worker1. Submit a pull request.
31*7ca20792SAndroid Build Coastguard Worker1. The repo owner will review your request. If it is approved, the change will
32*7ca20792SAndroid Build Coastguard Worker   be merged. If it needs additional work, the repo owner will respond with
33*7ca20792SAndroid Build Coastguard Worker   useful comments.
34*7ca20792SAndroid Build Coastguard Worker
35