Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @TKBurner
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Copyright 2025 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
#
# 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.
name: Build AndroidDeveloperVerificationAPKSigningExample

on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
merge_group:
types: [checks_requested]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
changes:
runs-on: ubuntu-latest
outputs:
sample: ${{ steps.filter.outputs.sample }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3
id: filter
with:
filters: |
sample:
- 'AndroidDeveloperVerificationAPKSigningExample/**'
- '.github/workflows/Build_AndroidDeveloperVerificationAPKSigningExample.yml'

build:
name: Build AndroidDeveloperVerificationAPKSigningExample
needs: changes
if: ${{ needs.changes.outputs.sample == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 30

defaults:
run:
working-directory: AndroidDeveloperVerificationAPKSigningExample

steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT || github.token }}

- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Make gradlew executable
run: chmod +x ./gradlew

- name: Build All
run: ./gradlew build --stacktrace
73 changes: 73 additions & 0 deletions .github/workflows/Build_BiometricAuthentication.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Copyright 2025 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
#
# 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.
name: Build BiometricAuthentication

on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
merge_group:
types: [checks_requested]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
changes:
runs-on: ubuntu-latest
outputs:
sample: ${{ steps.filter.outputs.sample }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3
id: filter
with:
filters: |
sample:
- 'BiometricAuthentication/**'
- '.github/workflows/Build_BiometricAuthentication.yml'

build:
name: Build BiometricAuthentication
needs: changes
if: ${{ needs.changes.outputs.sample == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 30

defaults:
run:
working-directory: BiometricAuthentication

steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT || github.token }}

- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Make gradlew executable
run: chmod +x ./gradlew

- name: Build All
run: ./gradlew build --stacktrace
74 changes: 74 additions & 0 deletions .github/workflows/Build_BiometricLoginKotlin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Copyright 2025 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
#
# 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.
name: Build BiometricLoginKotlin

on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
merge_group:
types: [checks_requested]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
changes:
runs-on: ubuntu-latest
outputs:
sample: ${{ steps.filter.outputs.sample }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3
id: filter
with:
filters: |
sample:
- 'BiometricLoginKotlin/**'
- '.github/workflows/Build_BiometricLoginKotlin.yml'

build:
name: Build BiometricLoginKotlin
needs: changes
if: ${{ needs.changes.outputs.sample == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 30

defaults:
run:
working-directory: BiometricLoginKotlin

steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT || github.token }}

- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Make gradlew executable
run: chmod +x ./gradlew

- name: Build All
run: ./gradlew build --stacktrace

73 changes: 73 additions & 0 deletions .github/workflows/Build_DirectBoot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Copyright 2025 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
#
# 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.
name: Build DirectBoot

on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
merge_group:
types: [checks_requested]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
changes:
runs-on: ubuntu-latest
outputs:
sample: ${{ steps.filter.outputs.sample }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3
id: filter
with:
filters: |
sample:
- 'DirectBoot/**'
- '.github/workflows/Build_DirectBoot.yml'

build:
name: Build DirectBoot
needs: changes
if: ${{ needs.changes.outputs.sample == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 30

defaults:
run:
working-directory: DirectBoot

steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT || github.token }}

- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Make gradlew executable
run: chmod +x ./gradlew

- name: Build All
run: ./gradlew build --stacktrace
31 changes: 0 additions & 31 deletions .github/workflows/copy-branch.yml

This file was deleted.

15 changes: 15 additions & 0 deletions AndroidDeveloperVerificationAPKSigningExample/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#
# Copyright (C) 2019 The Android Open Source Project
# Copyright 2025 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
#
# http://www.apache.org/licenses/LICENSE-2.0
# 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,
Expand All @@ -24,9 +23,6 @@ categories: [Security]
languages: [Kotlin]
solutions: [Mobile]
github: android/security-samples
level: INTERMEDIATE
icon: screenshots/notes-list.png
level: BEGINNER
apiRefs:
- android:androidx.security.crypto.EncryptedFile
- android:androidx.security.crypto.EncryptedSharedPreferences
license: apache2
5 changes: 5 additions & 0 deletions AndroidDeveloperVerificationAPKSigningExample/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Android Developer Verification APK Signing Example

Are you preparing to sign an APK for the Android developer verification proof of ownership process?

This project shows you exactly which file to create (adi-registration.properties) and provides the necessary folder structure to guide you. Use this template to check your placement of the file and ensure the correct insertion of your unique developer 'snippet' for successful verification.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
Loading