From e6f564a63434481d3eae4a4645e32819e8fb3a3c Mon Sep 17 00:00:00 2001 From: Rob Clifford Date: Fri, 22 May 2026 14:00:00 -0400 Subject: [PATCH 1/4] Addressing missing licenses on source files for new PIA sample --- .../android-client/app/build.gradle.kts | 14 ++++++++++++++ .../samples/playintegrityapi/HomeScreenTest.kt | 14 ++++++++++++++ .../app/src/main/AndroidManifest.xml | 16 ++++++++++++++++ .../playintegrityapi/PlayIntegrityApplication.kt | 14 ++++++++++++++ .../navigation/HomeNavigation.kt | 14 ++++++++++++++ .../security/samples/playintegrityapi/ui/Home.kt | 14 ++++++++++++++ .../samples/playintegrityapi/ui/MainActivity.kt | 14 ++++++++++++++ .../main/res/drawable/ic_launcher_background.xml | 16 ++++++++++++++++ .../main/res/drawable/ic_launcher_foreground.xml | 16 ++++++++++++++++ .../main/res/mipmap-anydpi-v26/ic_launcher.xml | 16 ++++++++++++++++ .../res/mipmap-anydpi-v26/ic_launcher_round.xml | 16 ++++++++++++++++ .../app/src/main/res/values/colors.xml | 16 ++++++++++++++++ .../app/src/main/res/values/strings.xml | 16 ++++++++++++++++ .../app/src/main/res/values/themes.xml | 16 ++++++++++++++++ .../app/src/main/res/xml/backup_rules.xml | 16 ++++++++++++++++ .../src/main/res/xml/data_extraction_rules.xml | 16 ++++++++++++++++ .../src/main/res/xml/network_security_config.xml | 16 ++++++++++++++++ .../playintegrityapi/ui/HomeScreenShotTest.kt | 14 ++++++++++++++ PlayIntegrityAPI/android-client/build.gradle.kts | 14 ++++++++++++++ .../core/integrity/build.gradle.kts | 14 ++++++++++++++ .../core/integrity/src/main/AndroidManifest.xml | 16 ++++++++++++++++ .../core/integrity/IntegrityRepository.kt | 14 ++++++++++++++ .../playintegrityapi/core/integrity/Utils.kt | 14 ++++++++++++++ .../core/integrity/di/IntegrityModule.kt | 14 ++++++++++++++ .../android-client/core/network/build.gradle.kts | 14 ++++++++++++++ .../core/network/src/main/AndroidManifest.xml | 16 ++++++++++++++++ .../core/network/NetworkConstants.kt | 14 ++++++++++++++ .../core/network/di/NetworkModule.kt | 14 ++++++++++++++ .../android-client/core/ui/build.gradle.kts | 14 ++++++++++++++ .../core/ui/src/main/AndroidManifest.xml | 16 ++++++++++++++++ .../core/ui/components/LoadableButton.kt | 14 ++++++++++++++ .../playintegrityapi/core/ui/theme/Color.kt | 14 ++++++++++++++ .../playintegrityapi/core/ui/theme/Shape.kt | 14 ++++++++++++++ .../playintegrityapi/core/ui/theme/Theme.kt | 14 ++++++++++++++ .../playintegrityapi/core/ui/theme/Type.kt | 14 ++++++++++++++ .../core/ui/src/main/res/values/strings.xml | 16 ++++++++++++++++ .../android-client/feature/bank/build.gradle.kts | 14 ++++++++++++++ .../feature/bank/BankScreenTest.kt | 14 ++++++++++++++ .../feature/bank/src/main/AndroidManifest.xml | 16 ++++++++++++++++ .../feature/bank/data/remote/BankApiService.kt | 14 ++++++++++++++ .../bank/data/repository/BankRepository.kt | 14 ++++++++++++++ .../feature/bank/di/BankModule.kt | 14 ++++++++++++++ .../bank/domain/SubmitSecureTransferUseCase.kt | 14 ++++++++++++++ .../feature/bank/ui/BankScreen.kt | 14 ++++++++++++++ .../feature/bank/ui/BankViewModel.kt | 14 ++++++++++++++ .../feature/bank/ui/navigation/BankNavigation.kt | 14 ++++++++++++++ .../feature/bank/src/main/res/values/strings.xml | 16 ++++++++++++++++ .../domain/SubmitSecureTransferUseCaseTest.kt | 14 ++++++++++++++ .../feature/bank/ui/BankViewModelTest.kt | 14 ++++++++++++++ .../android-client/feature/game/build.gradle.kts | 14 ++++++++++++++ .../feature/game/GameScreenTest.kt | 14 ++++++++++++++ .../feature/game/src/main/AndroidManifest.xml | 16 ++++++++++++++++ .../feature/game/data/remote/GameApiService.kt | 14 ++++++++++++++ .../game/data/repository/GameRepository.kt | 14 ++++++++++++++ .../feature/game/di/GameModule.kt | 14 ++++++++++++++ .../feature/game/domain/GameResult.kt | 14 ++++++++++++++ .../game/domain/GenerateIntervalTokenUseCase.kt | 14 ++++++++++++++ .../feature/game/domain/GetGameUseCase.kt | 14 ++++++++++++++ .../feature/game/domain/InitiateGameUseCase.kt | 14 ++++++++++++++ .../game/domain/SubmitGameScoreUseCase.kt | 14 ++++++++++++++ .../feature/game/ui/GameScreen.kt | 14 ++++++++++++++ .../feature/game/ui/GameViewModel.kt | 14 ++++++++++++++ .../game/ui/components/ConfettiCelebration.kt | 14 ++++++++++++++ .../feature/game/ui/components/GameArena.kt | 14 ++++++++++++++ .../feature/game/ui/components/GameControls.kt | 14 ++++++++++++++ .../game/ui/components/LeaderboardStatusCard.kt | 14 ++++++++++++++ .../feature/game/ui/components/PlanetaryCore.kt | 14 ++++++++++++++ .../feature/game/ui/components/PulseAnimation.kt | 14 ++++++++++++++ .../game/ui/components/SecurityChecklist.kt | 14 ++++++++++++++ .../feature/game/ui/navigation/GameNavigation.kt | 14 ++++++++++++++ .../feature/game/src/main/res/values/strings.xml | 16 ++++++++++++++++ .../game/domain/SubmitGameScoreUseCaseTest.kt | 14 ++++++++++++++ .../feature/game/ui/GameViewModelTest.kt | 14 ++++++++++++++ .../feature/streaming/build.gradle.kts | 14 ++++++++++++++ .../feature/streaming/StreamingScreenTest.kt | 14 ++++++++++++++ .../streaming/src/main/AndroidManifest.xml | 16 ++++++++++++++++ .../domain/GetSecureStreamingConfigUseCase.kt | 14 ++++++++++++++ .../feature/streaming/ui/StreamingScreen.kt | 14 ++++++++++++++ .../feature/streaming/ui/StreamingViewModel.kt | 14 ++++++++++++++ .../feature/streaming/ui/VideoPlayerWidget.kt | 14 ++++++++++++++ .../ui/navigation/StreamingNavigation.kt | 14 ++++++++++++++ .../streaming/src/main/res/values/strings.xml | 16 ++++++++++++++++ .../GetSecureStreamingConfigUseCaseTest.kt | 14 ++++++++++++++ .../streaming/ui/StreamingViewModelTest.kt | 14 ++++++++++++++ .../android-client/settings.gradle.kts | 14 ++++++++++++++ PlayIntegrityAPI/node-server/app.js | 14 ++++++++++++++ .../node-server/src/config/constants.js | 14 ++++++++++++++ .../src/features/bank/bank.controller.js | 14 ++++++++++++++ .../src/features/bank/bank.controller.test.js | 14 ++++++++++++++ .../src/features/bank/bank.integration.test.js | 14 ++++++++++++++ .../node-server/src/features/bank/bank.policy.js | 14 ++++++++++++++ .../src/features/bank/bank.policy.test.js | 14 ++++++++++++++ .../src/features/game/game.controller.js | 14 ++++++++++++++ .../src/features/game/game.controller.test.js | 14 ++++++++++++++ .../src/features/game/game.integration.test.js | 14 ++++++++++++++ .../node-server/src/features/game/game.policy.js | 14 ++++++++++++++ .../src/features/game/game.policy.test.js | 14 ++++++++++++++ .../src/features/streaming/manifest.service.js | 14 ++++++++++++++ .../features/streaming/manifest.service.test.js | 14 ++++++++++++++ .../features/streaming/streaming.constants.js | 14 ++++++++++++++ .../features/streaming/streaming.controller.js | 14 ++++++++++++++ .../streaming/streaming.integration.test.js | 14 ++++++++++++++ .../src/features/streaming/streaming.policy.js | 14 ++++++++++++++ .../features/streaming/streaming.policy.test.js | 14 ++++++++++++++ .../src/middleware/integrity.middleware.js | 14 ++++++++++++++ .../src/middleware/integrity.middleware.test.js | 14 ++++++++++++++ .../node-server/src/services/crypto.service.js | 14 ++++++++++++++ .../src/services/crypto.service.test.js | 14 ++++++++++++++ .../src/services/integrity.service.js | 14 ++++++++++++++ .../src/services/integrity.service.test.js | 14 ++++++++++++++ 110 files changed, 1582 insertions(+) diff --git a/PlayIntegrityAPI/android-client/app/build.gradle.kts b/PlayIntegrityAPI/android-client/app/build.gradle.kts index 597ba7d2..4c0865b3 100644 --- a/PlayIntegrityAPI/android-client/app/build.gradle.kts +++ b/PlayIntegrityAPI/android-client/app/build.gradle.kts @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// 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 +// +// https://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. + plugins { alias(libs.plugins.android.application) alias(libs.plugins.kotlin.compose) diff --git a/PlayIntegrityAPI/android-client/app/src/androidTest/java/com/android/security/samples/playintegrityapi/HomeScreenTest.kt b/PlayIntegrityAPI/android-client/app/src/androidTest/java/com/android/security/samples/playintegrityapi/HomeScreenTest.kt index 10e94586..d739a04d 100644 --- a/PlayIntegrityAPI/android-client/app/src/androidTest/java/com/android/security/samples/playintegrityapi/HomeScreenTest.kt +++ b/PlayIntegrityAPI/android-client/app/src/androidTest/java/com/android/security/samples/playintegrityapi/HomeScreenTest.kt @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// 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 +// +// https://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 com.android.security.samples.playintegrityapi import androidx.activity.ComponentActivity diff --git a/PlayIntegrityAPI/android-client/app/src/main/AndroidManifest.xml b/PlayIntegrityAPI/android-client/app/src/main/AndroidManifest.xml index 643f31b7..7ce02ac3 100644 --- a/PlayIntegrityAPI/android-client/app/src/main/AndroidManifest.xml +++ b/PlayIntegrityAPI/android-client/app/src/main/AndroidManifest.xml @@ -1,4 +1,20 @@ + + diff --git a/PlayIntegrityAPI/android-client/app/src/main/java/com/android/security/samples/playintegrityapi/PlayIntegrityApplication.kt b/PlayIntegrityAPI/android-client/app/src/main/java/com/android/security/samples/playintegrityapi/PlayIntegrityApplication.kt index 26b671dd..d0ad98c6 100644 --- a/PlayIntegrityAPI/android-client/app/src/main/java/com/android/security/samples/playintegrityapi/PlayIntegrityApplication.kt +++ b/PlayIntegrityAPI/android-client/app/src/main/java/com/android/security/samples/playintegrityapi/PlayIntegrityApplication.kt @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// 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 +// +// https://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 com.android.security.samples.playintegrityapi import android.app.Application diff --git a/PlayIntegrityAPI/android-client/app/src/main/java/com/android/security/samples/playintegrityapi/navigation/HomeNavigation.kt b/PlayIntegrityAPI/android-client/app/src/main/java/com/android/security/samples/playintegrityapi/navigation/HomeNavigation.kt index db77b1d4..5f6e942c 100644 --- a/PlayIntegrityAPI/android-client/app/src/main/java/com/android/security/samples/playintegrityapi/navigation/HomeNavigation.kt +++ b/PlayIntegrityAPI/android-client/app/src/main/java/com/android/security/samples/playintegrityapi/navigation/HomeNavigation.kt @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// 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 +// +// https://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 com.android.security.samples.playintegrityapi.navigation import androidx.navigation.NavController diff --git a/PlayIntegrityAPI/android-client/app/src/main/java/com/android/security/samples/playintegrityapi/ui/Home.kt b/PlayIntegrityAPI/android-client/app/src/main/java/com/android/security/samples/playintegrityapi/ui/Home.kt index 61e4159c..aa7d5733 100644 --- a/PlayIntegrityAPI/android-client/app/src/main/java/com/android/security/samples/playintegrityapi/ui/Home.kt +++ b/PlayIntegrityAPI/android-client/app/src/main/java/com/android/security/samples/playintegrityapi/ui/Home.kt @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// 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 +// +// https://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 com.android.security.samples.playintegrityapi.ui import androidx.compose.foundation.BorderStroke diff --git a/PlayIntegrityAPI/android-client/app/src/main/java/com/android/security/samples/playintegrityapi/ui/MainActivity.kt b/PlayIntegrityAPI/android-client/app/src/main/java/com/android/security/samples/playintegrityapi/ui/MainActivity.kt index d8fbffd7..96a8cbe5 100644 --- a/PlayIntegrityAPI/android-client/app/src/main/java/com/android/security/samples/playintegrityapi/ui/MainActivity.kt +++ b/PlayIntegrityAPI/android-client/app/src/main/java/com/android/security/samples/playintegrityapi/ui/MainActivity.kt @@ -1,3 +1,17 @@ +// Copyright 2026 Google LLC +// +// 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 +// +// https://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 com.android.security.samples.playintegrityapi.ui import android.os.Bundle diff --git a/PlayIntegrityAPI/android-client/app/src/main/res/drawable/ic_launcher_background.xml b/PlayIntegrityAPI/android-client/app/src/main/res/drawable/ic_launcher_background.xml index 07d5da9c..961ff1db 100644 --- a/PlayIntegrityAPI/android-client/app/src/main/res/drawable/ic_launcher_background.xml +++ b/PlayIntegrityAPI/android-client/app/src/main/res/drawable/ic_launcher_background.xml @@ -1,4 +1,20 @@ + + + + + diff --git a/PlayIntegrityAPI/android-client/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/PlayIntegrityAPI/android-client/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml index 6f3b755b..d1cbb5d5 100644 --- a/PlayIntegrityAPI/android-client/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +++ b/PlayIntegrityAPI/android-client/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -1,4 +1,20 @@ + + diff --git a/PlayIntegrityAPI/android-client/app/src/main/res/values/colors.xml b/PlayIntegrityAPI/android-client/app/src/main/res/values/colors.xml index f8c6127d..b0d2df32 100644 --- a/PlayIntegrityAPI/android-client/app/src/main/res/values/colors.xml +++ b/PlayIntegrityAPI/android-client/app/src/main/res/values/colors.xml @@ -1,4 +1,20 @@ + + #FFBB86FC #FF6200EE diff --git a/PlayIntegrityAPI/android-client/app/src/main/res/values/strings.xml b/PlayIntegrityAPI/android-client/app/src/main/res/values/strings.xml index 474ab9f1..506dff56 100644 --- a/PlayIntegrityAPI/android-client/app/src/main/res/values/strings.xml +++ b/PlayIntegrityAPI/android-client/app/src/main/res/values/strings.xml @@ -1,3 +1,19 @@ + + PlayIntegrityAPI diff --git a/PlayIntegrityAPI/android-client/app/src/main/res/values/themes.xml b/PlayIntegrityAPI/android-client/app/src/main/res/values/themes.xml index 6d230a9f..e4112688 100644 --- a/PlayIntegrityAPI/android-client/app/src/main/res/values/themes.xml +++ b/PlayIntegrityAPI/android-client/app/src/main/res/values/themes.xml @@ -1,4 +1,20 @@ + +