Skip to content

Commit

Permalink
add license header for each source file
Browse files Browse the repository at this point in the history
This doesn't affect use of the software in any means under the terms of
Apache License
  • Loading branch information
cfig committed May 23, 2021
1 parent 6a7d379 commit 1cc54f4
Show file tree
Hide file tree
Showing 75 changed files with 1,049 additions and 18 deletions.
19 changes: 13 additions & 6 deletions avbImpl/src/avbVerifier/cpp/main.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
/*
* main.cpp
* Copyright (C) 2020 yu <[email protected]>
*
* Distributed under terms of the MIT license.
*/
// Copyright 2021 [email protected]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include <cstdio>
#include <iostream>
Expand Down
14 changes: 14 additions & 0 deletions avbImpl/src/avbx/cpp/CfigAvbOps.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 [email protected]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//
// Created by yu on 8/30/19.
//
Expand Down
19 changes: 13 additions & 6 deletions avbImpl/src/avbx/cpp/helper.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
/*
* helper.cpp
* Copyright (C) 2020 yu <[email protected]>
*
* Distributed under terms of the MIT license.
*/
// Copyright 2021 [email protected]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "helper.hpp"
#include <sstream>
Expand Down
16 changes: 16 additions & 0 deletions avbImpl/src/avbx/headers/CfigAvbOps.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2021 [email protected]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

//
// Created by yu on 8/30/19.
//
Expand Down
19 changes: 13 additions & 6 deletions avbImpl/src/avbx/headers/helper.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
/*
* helper.h
* Copyright (C) 2020 yu <[email protected]>
*
* Distributed under terms of the MIT license.
*/
// Copyright 2021 [email protected]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef HELPER_H
#define HELPER_H
Expand Down
14 changes: 14 additions & 0 deletions bbootimg/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 [email protected]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
Expand Down
14 changes: 14 additions & 0 deletions bbootimg/src/main/kotlin/EnvironmentVerifier.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 [email protected]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package cfig

import org.apache.commons.exec.CommandLine
Expand Down
14 changes: 14 additions & 0 deletions bbootimg/src/main/kotlin/avb/AVBInfo.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 [email protected]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package avb

import avb.blob.AuthBlob
Expand Down
14 changes: 14 additions & 0 deletions bbootimg/src/main/kotlin/avb/Avb.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 [email protected]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package cfig

import avb.AVBInfo
Expand Down
14 changes: 14 additions & 0 deletions bbootimg/src/main/kotlin/avb/alg/Algorithm.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 [email protected]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package avb.alg

data class Algorithm(
Expand Down
14 changes: 14 additions & 0 deletions bbootimg/src/main/kotlin/avb/alg/Algorithms.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 [email protected]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package avb.alg

import cfig.io.Struct3
Expand Down
14 changes: 14 additions & 0 deletions bbootimg/src/main/kotlin/avb/blob/AuthBlob.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 [email protected]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package avb.blob

import avb.alg.Algorithms
Expand Down
14 changes: 14 additions & 0 deletions bbootimg/src/main/kotlin/avb/blob/AuxBlob.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 [email protected]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package avb.blob

import avb.alg.Algorithm
Expand Down
14 changes: 14 additions & 0 deletions bbootimg/src/main/kotlin/avb/blob/Footer.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 [email protected]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package avb.blob

import cfig.io.Struct3
Expand Down
14 changes: 14 additions & 0 deletions bbootimg/src/main/kotlin/avb/blob/Header.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 [email protected]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package avb.blob

import cfig.Avb
Expand Down
14 changes: 14 additions & 0 deletions bbootimg/src/main/kotlin/avb/desc/ChainPartitionDescriptor.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 [email protected]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package avb.desc

import cfig.Avb
Expand Down
14 changes: 14 additions & 0 deletions bbootimg/src/main/kotlin/avb/desc/Descriptor.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 [email protected]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package avb.desc

@OptIn(ExperimentalUnsignedTypes::class)
Expand Down
14 changes: 14 additions & 0 deletions bbootimg/src/main/kotlin/avb/desc/HashDescriptor.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 [email protected]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package avb.desc

import avb.blob.Header
Expand Down
14 changes: 14 additions & 0 deletions bbootimg/src/main/kotlin/avb/desc/HashTreeDescriptor.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 [email protected]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package avb.desc

import avb.blob.Header
Expand Down
14 changes: 14 additions & 0 deletions bbootimg/src/main/kotlin/avb/desc/KernelCmdlineDescriptor.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 [email protected]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package avb.desc

import cfig.helper.Helper
Expand Down
14 changes: 14 additions & 0 deletions bbootimg/src/main/kotlin/avb/desc/PropertyDescriptor.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2021 [email protected]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package avb.desc

import cfig.helper.Helper
Expand Down
Loading

0 comments on commit 1cc54f4

Please sign in to comment.