diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000..84352e59
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,2 @@
+app/src/main/assets/appverifier_rs-third-party-licenses.html linguist-detectable=false
+appverifier_rs/about.hbs linguist-detectable=false
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000..2623dcb3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,24 @@
+*.iml
+.gradle
+/local.properties
+/.idea/caches
+/.idea/libraries
+/.idea/modules.xml
+/.idea/workspace.xml
+/.idea/navEditor.xml
+/.idea/assetWizardSettings.xml
+/.idea/deploymentTargetDropDown.xml
+.DS_Store
+/build
+/captures
+.externalNativeBuild
+.cxx
+local.properties
+/app/release/app-release.aab
+/app/release/AppVerifier-release.apks
+/app/release/output-metadata.json
+/app/release/app-release.apk
+/app/release/AppVerifier-app-release.apks
+/app/release/bundletool-all-1.15.5.jar
+/app/release/apk/release/app-release.apk
+/app/release/apk/release/output-metadata.json
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 00000000..783f1b73
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,5 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Annoying and useless
+/deploymentTargetDropDown.xml
\ No newline at end of file
diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
new file mode 100644
index 00000000..330be499
--- /dev/null
+++ b/.idea/codeStyles/Project.xml
@@ -0,0 +1,134 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ xmlns:android
+
+ ^$
+
+
+
+
+
+
+
+
+ xmlns:.*
+
+ ^$
+
+
+ BY_NAME
+
+
+
+
+
+
+ .*:id
+
+ http://schemas.android.com/apk/res/android
+
+
+
+
+
+
+
+
+ .*:name
+
+ http://schemas.android.com/apk/res/android
+
+
+
+
+
+
+
+
+ name
+
+ ^$
+
+
+
+
+
+
+
+
+ style
+
+ ^$
+
+
+
+
+
+
+
+
+ .*
+
+ ^$
+
+
+ BY_NAME
+
+
+
+
+
+
+ .*
+
+ http://schemas.android.com/apk/res/android
+
+
+ ANDROID_ATTRIBUTE_ORDER
+
+
+
+
+
+
+ .*
+
+ .*
+
+
+ BY_NAME
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml
new file mode 100644
index 00000000..79ee123c
--- /dev/null
+++ b/.idea/codeStyles/codeStyleConfig.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 00000000..b589d56e
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
new file mode 100644
index 00000000..f0b73556
--- /dev/null
+++ b/.idea/gradle.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 00000000..44ca2d9b
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml
new file mode 100644
index 00000000..ae3f30ae
--- /dev/null
+++ b/.idea/kotlinc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/migrations.xml b/.idea/migrations.xml
new file mode 100644
index 00000000..f8051a6f
--- /dev/null
+++ b/.idea/migrations.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 00000000..89f2530a
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml
new file mode 100644
index 00000000..2b63946d
--- /dev/null
+++ b/.idea/uiDesigner.xml
@@ -0,0 +1,124 @@
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 00000000..94a25f7f
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 00000000..56659377
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,14 @@
+# Contributing
+
+Thanks for your interest in contributing!
+
+If you want to suggest a feature or notify us about a bug, please use the issue tracker.
+
+If you need help with development or have questions its recommended to join the AppVerifier room on matrix at
+https://matrix.to/#/#appverifier:matrix.org and ask for help there from [soupslurpr](https://github.com/soupslurpr),
+the lead developer.
+
+Java code is not accepted, we will only use Kotlin and Rust if needed (this project is currently 100% Rust free).
+
+Views should be avoided at all costs and only Jetpack Compose should be used unless there is no other way, but it
+has to be very important (unlikely).
\ No newline at end of file
diff --git a/LICENSE.material-symbols.txt b/LICENSE.material-symbols.txt
new file mode 100644
index 00000000..965226a9
--- /dev/null
+++ b/LICENSE.material-symbols.txt
@@ -0,0 +1,203 @@
+A copy of the license for the verified material symbol used in the app icon is provided below.
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ 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.
\ No newline at end of file
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 00000000..b1c6672b
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,15 @@
+ISC License
+
+Copyright (c) 2024 soupslurpr
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
diff --git a/README.md b/README.md
new file mode 100644
index 00000000..c086ae64
--- /dev/null
+++ b/README.md
@@ -0,0 +1,31 @@
+# AppVerifier
+
+AppVerifier is an app signing certificate hash viewer and verifier.\
+It enables you to easily verify your apps with others!\
+Simply share the verification info to others and receive verification info from them and
+share the received verification info to AppVerifier and you will see the verification status.\
+AppVerifier does the heavy lifting for you 💪
+
+## Download
+
+AppVerifier is available on the [Accrescent](https://accrescent.app) app store and GitHub releases.
+[Accrescent](https://accrescent.app) is the recommended way to get AppVerifier as it is more secure than GitHub
+releases.
+The package name and sha-256 hash of the signing certificate is below, so you can verify AppVerifier with
+[apksigner](https://developer.android.com/studio/command-line/apksigner#usage-verify) verify --print-certs if you
+are downloading the apk. If you are downloading from [Accrescent](https://accrescent.app) then you should verify
+[Accrescent](https://accrescent.app) itself [here](https://accrescent.app/faq#verifying).
+
+dev.soupslurpr.appverifier
+3A:04:A8:0B:2A:88:33:4C:74:74:85:F0:B2:15:16:40:A3:8B:B3:D2:D7:3A:8E:AB:81:DF:50:3E:0F:02:02:B2
+
+[//]: # (## About)
+
+[//]: # ()
+
+[//]: # (Check out the official website at https://appverifier.soupslurpr.dev/ for more info and download.)
+
+## Contributing
+
+Check [CONTRIBUTING.md](https://github.com/soupslurpr/AppVerifier/blob/master/CONTRIBUTING.md) for things to know
+if you want to contribute.
diff --git a/app/.gitignore b/app/.gitignore
new file mode 100644
index 00000000..42afabfd
--- /dev/null
+++ b/app/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
new file mode 100644
index 00000000..c091dcc2
--- /dev/null
+++ b/app/build.gradle.kts
@@ -0,0 +1,88 @@
+plugins {
+ id("com.android.application")
+ id("org.jetbrains.kotlin.android")
+}
+
+android {
+ namespace = "dev.soupslurpr.appverifier"
+ compileSdk = 34
+
+ defaultConfig {
+ applicationId = "dev.soupslurpr.appverifier"
+ minSdk = 28
+ targetSdk = 34
+ versionCode = 1
+ versionName = "0.1.0"
+
+ testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
+ vectorDrawables {
+ useSupportLibrary = true
+ }
+ }
+
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_17
+ targetCompatibility = JavaVersion.VERSION_17
+ }
+ kotlinOptions {
+ jvmTarget = "17"
+ }
+ buildFeatures {
+ compose = true
+ }
+ composeOptions {
+ kotlinCompilerExtensionVersion = "1.5.7"
+ }
+ packaging {
+ resources {
+ excludes += "/META-INF/{AL2.0,LGPL2.1}"
+ }
+ }
+ androidResources {
+ generateLocaleConfig = true
+ }
+ buildTypes {
+ release {
+ isMinifyEnabled = true
+ isShrinkResources = true
+ proguardFiles(
+ getDefaultProguardFile("proguard-android-optimize.txt"),
+ "proguard-rules.pro"
+ )
+ }
+ getByName("debug") {
+ applicationIdSuffix = ".debug"
+ versionNameSuffix = "-debug"
+ signingConfig = signingConfigs.getByName("debug")
+ }
+ create("staging") {
+ initWith(getByName("release"))
+ applicationIdSuffix = ".debug"
+ versionNameSuffix = "-debug"
+ signingConfig = signingConfigs.getByName("debug")
+ }
+ }
+ bundle {
+ language {
+ /** Disable splits for language for now since Accrescent does not support automatically
+ * fetching language splits when language is changed and instead needs a reinstall of the app.
+ * Remove once Accrescent gets support.
+ */
+ enableSplit = false
+ }
+ }
+}
+
+dependencies {
+ implementation("androidx.core:core-ktx:1.12.0")
+ implementation("androidx.activity:activity-compose:1.8.2")
+ implementation("androidx.navigation:navigation-compose:2.7.6")
+ implementation("com.google.android.material:material:1.11.0")
+ implementation("com.google.accompanist:accompanist-drawablepainter:0.33.2-alpha")
+
+ implementation(platform("androidx.compose:compose-bom:2023.10.01"))
+ implementation("androidx.compose.ui:ui-tooling-preview")
+ implementation("androidx.compose.material3:material3")
+
+ implementation("androidx.datastore:datastore-preferences:1.0.0")
+}
\ No newline at end of file
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
new file mode 100644
index 00000000..ff59496d
--- /dev/null
+++ b/app/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.kts.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/app/release/signing-command.txt b/app/release/signing-command.txt
new file mode 100644
index 00000000..5ee1e4b4
--- /dev/null
+++ b/app/release/signing-command.txt
@@ -0,0 +1 @@
+java -jar ./bundletool-all-1.15.5.jar build-apks --bundle="./app-release.aab" --output="./BeauTyXT-app-release.apks" --overwrite --ks-key-alias="key0" --ks="/Users/user/BeauTyXTkeystore.jks" --ks-pass=pass:""
\ No newline at end of file
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
new file mode 100644
index 00000000..3d592c6d
--- /dev/null
+++ b/app/src/main/AndroidManifest.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/ic_launcher-accrescent.png b/app/src/main/ic_launcher-accrescent.png
new file mode 100644
index 00000000..0a55da63
Binary files /dev/null and b/app/src/main/ic_launcher-accrescent.png differ
diff --git a/app/src/main/kotlin/dev/soupslurpr/appverifier/AppVerifier.kt b/app/src/main/kotlin/dev/soupslurpr/appverifier/AppVerifier.kt
new file mode 100644
index 00000000..6b98c4a0
--- /dev/null
+++ b/app/src/main/kotlin/dev/soupslurpr/appverifier/AppVerifier.kt
@@ -0,0 +1,151 @@
+package dev.soupslurpr.appverifier
+
+import android.graphics.drawable.Drawable
+import androidx.annotation.StringRes
+import androidx.compose.foundation.layout.calculateEndPadding
+import androidx.compose.foundation.layout.calculateStartPadding
+import androidx.compose.foundation.layout.padding
+import androidx.compose.material3.Scaffold
+import androidx.compose.runtime.Composable
+import androidx.compose.runtime.collectAsState
+import androidx.compose.runtime.saveable.rememberSaveable
+import androidx.compose.ui.Modifier
+import androidx.compose.ui.unit.LayoutDirection
+import androidx.navigation.compose.NavHost
+import androidx.navigation.compose.composable
+import androidx.navigation.compose.rememberNavController
+import dev.soupslurpr.appverifier.preferences.PreferencesViewModel
+import dev.soupslurpr.appverifier.ui.AppListScreen
+import dev.soupslurpr.appverifier.ui.CreditsScreen
+import dev.soupslurpr.appverifier.ui.LicenseScreen
+import dev.soupslurpr.appverifier.ui.PrivacyPolicyScreen
+import dev.soupslurpr.appverifier.ui.SettingsScreen
+import dev.soupslurpr.appverifier.ui.StartupScreen
+import dev.soupslurpr.appverifier.ui.VerifyAppScreen
+import dev.soupslurpr.appverifier.ui.VerifyAppViewModel
+import kotlin.random.Random
+
+enum class AppVerifierScreens(@StringRes val title: Int) {
+ Start(title = R.string.app_name),
+ AppList(title = R.string.app_list),
+ VerifyApp(title = R.string.verify_app),
+ Settings(title = R.string.settings),
+ License(title = R.string.license),
+ PrivacyPolicy(title = R.string.privacy_policy),
+ Credits(title = R.string.credits),
+}
+
+@Composable
+fun AppVerifierAppBar(
+) {
+
+}
+
+@Composable
+fun AppVerifierApp(
+ modifier: Modifier,
+ verifyAppViewModel: VerifyAppViewModel,
+ preferencesViewModel: PreferencesViewModel,
+ isActionSend: Boolean,
+) {
+ val verifyAppUiState = verifyAppViewModel.uiState.collectAsState()
+
+ val navController = rememberNavController()
+
+// val backStackEntry by navController.currentBackStackEntryAsState()
+
+// val currentScreen = AppVerifierScreens.valueOf(
+// backStackEntry?.destination?.route ?: AppVerifierScreens.Start.name
+// )
+
+ val randomValue = Random.nextInt(0, 10)
+ val splashMessage = rememberSaveable {
+ when (randomValue) {
+ 0 -> "Gotta verify 'em all!"
+ else -> "App verification, but easy."
+ }
+ }
+
+ Scaffold(
+ topBar = {
+ AppVerifierAppBar()
+ }
+ ) { innerPadding ->
+ NavHost(
+ navController = navController,
+ startDestination = if (isActionSend) {
+ AppVerifierScreens.VerifyApp.name
+ } else {
+ AppVerifierScreens.Start.name
+ },
+ modifier = modifier.padding(
+ innerPadding.calculateStartPadding(LayoutDirection.Ltr),
+ innerPadding.calculateTopPadding(),
+ innerPadding.calculateEndPadding(LayoutDirection.Ltr)
+ ),
+ ) {
+ composable(route = AppVerifierScreens.Start.name) {
+ StartupScreen(
+ modifier = modifier,
+ splashMessage = splashMessage,
+ onSettingsButtonClicked = {
+ navController.navigate(AppVerifierScreens.Settings.name)
+ },
+ onAppListButtonClicked = {
+ navController.navigate(AppVerifierScreens.AppList.name)
+ },
+ verifyAppViewModel = verifyAppViewModel,
+ )
+ }
+ composable(route = AppVerifierScreens.AppList.name) {
+ AppListScreen(
+ { name: String, packageName: String, hash: String, icon: Drawable ->
+ verifyAppViewModel.setAppVerificationInfo(name, packageName, hash)
+ verifyAppViewModel.setAppIcon(icon)
+ navController.navigate(AppVerifierScreens.VerifyApp.name)
+ },
+ { verifyAppViewModel.clearUiState() },
+ { verifyAppViewModel.getHashHexFromPackageInfo(it) }
+ )
+ }
+ composable(route = AppVerifierScreens.VerifyApp.name) {
+ VerifyAppScreen(
+ verifyAppUiState.value.icon.value,
+ verifyAppUiState.value.name.value,
+ verifyAppUiState.value.packageName.value,
+ verifyAppUiState.value.hash.value,
+ verifyAppUiState.value.verificationStatus.value,
+ verifyAppUiState.value.appNotFound.value,
+ { verifyAppViewModel.verifyFromText(it) },
+ verifyAppUiState.value.invalidFormat.value,
+ )
+ }
+ composable(route = AppVerifierScreens.Settings.name) {
+ SettingsScreen(
+ onLicenseIconButtonClicked = {
+ navController.navigate(AppVerifierScreens.License.name)
+ },
+ onPrivacyPolicyIconButtonClicked = {
+ navController.navigate(AppVerifierScreens.PrivacyPolicy.name)
+ },
+ onCreditsIconButtonClicked = {
+ navController.navigate(AppVerifierScreens.Credits.name)
+ },
+ preferencesViewModel = preferencesViewModel
+ )
+ }
+ composable(route = AppVerifierScreens.License.name) {
+ LicenseScreen()
+ }
+ composable(route = AppVerifierScreens.PrivacyPolicy.name) {
+ PrivacyPolicyScreen()
+ }
+ composable(route = AppVerifierScreens.Credits.name) {
+ CreditsScreen()
+ }
+ }
+ }
+}
+
+
+
diff --git a/app/src/main/kotlin/dev/soupslurpr/appverifier/MainActivity.kt b/app/src/main/kotlin/dev/soupslurpr/appverifier/MainActivity.kt
new file mode 100644
index 00000000..166a4d2f
--- /dev/null
+++ b/app/src/main/kotlin/dev/soupslurpr/appverifier/MainActivity.kt
@@ -0,0 +1,83 @@
+package dev.soupslurpr.appverifier
+
+import android.content.Context
+import android.content.Intent
+import android.os.Bundle
+import androidx.activity.ComponentActivity
+import androidx.activity.compose.setContent
+import androidx.activity.enableEdgeToEdge
+import androidx.compose.runtime.collectAsState
+import androidx.compose.runtime.getValue
+import androidx.compose.ui.Modifier
+import androidx.datastore.core.DataStore
+import androidx.datastore.preferences.core.Preferences
+import androidx.datastore.preferences.preferencesDataStore
+import androidx.lifecycle.viewmodel.compose.viewModel
+import dev.soupslurpr.appverifier.preferences.PreferencesViewModel
+import dev.soupslurpr.appverifier.ui.ReviewPrivacyPolicyAndLicense
+import dev.soupslurpr.appverifier.ui.VerifyAppViewModel
+import dev.soupslurpr.appverifier.ui.theme.AppVerifierTheme
+
+val Context.dataStore: DataStore by preferencesDataStore(name = "preferences")
+
+class MainActivity : ComponentActivity() {
+ override fun onCreate(savedInstanceState: Bundle?) {
+ enableEdgeToEdge()
+ super.onCreate(savedInstanceState)
+
+ setContent {
+ val verifyAppViewModel: VerifyAppViewModel = viewModel()
+
+ val preferencesViewModel: PreferencesViewModel = viewModel(
+ factory = PreferencesViewModel.PreferencesViewModelFactory(dataStore)
+ )
+
+ val isActionSend =
+ (intent.action == Intent.ACTION_SEND)
+
+ if (isActionSend) {
+ val lines = intent.getStringExtra(Intent.EXTRA_TEXT)?.trim()?.lines()
+
+ if (lines != null) {
+ if (lines[0].contains(' ')) {
+ val split = lines[0].trim('"').split(' ')
+ if (split.size == 2) {
+ val packageName = split[0].trim()
+ val hash = split[1].trim()
+
+ verifyAppViewModel.findAndSetAppVerificationInfoFromPackageName(packageName, packageManager)
+ verifyAppViewModel.verifyFromText("$packageName\n$hash")
+ } else {
+ verifyAppViewModel.setInvalidFormat(true)
+ }
+ } else if (lines.size == 2) {
+ val packageName = lines[0].trim()
+ val hash = lines[1].trim()
+
+ verifyAppViewModel.findAndSetAppVerificationInfoFromPackageName(packageName, packageManager)
+ verifyAppViewModel.verifyFromText("$packageName\n$hash")
+ } else {
+ verifyAppViewModel.setInvalidFormat(true)
+ }
+ }
+ }
+
+ val preferencesUiState by preferencesViewModel.uiState.collectAsState()
+
+ AppVerifierTheme(
+ preferencesViewModel = preferencesViewModel
+ ) {
+ if (!preferencesUiState.acceptedPrivacyPolicyAndLicense.second.value) {
+ ReviewPrivacyPolicyAndLicense(preferencesViewModel = preferencesViewModel)
+ } else if (preferencesUiState.acceptedPrivacyPolicyAndLicense.second.value) {
+ AppVerifierApp(
+ modifier = Modifier,
+ verifyAppViewModel = verifyAppViewModel,
+ preferencesViewModel = preferencesViewModel,
+ isActionSend = isActionSend,
+ )
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/kotlin/dev/soupslurpr/appverifier/data/VerifyAppUiState.kt b/app/src/main/kotlin/dev/soupslurpr/appverifier/data/VerifyAppUiState.kt
new file mode 100644
index 00000000..d68ccbd2
--- /dev/null
+++ b/app/src/main/kotlin/dev/soupslurpr/appverifier/data/VerifyAppUiState.kt
@@ -0,0 +1,83 @@
+package dev.soupslurpr.appverifier.data
+
+import android.graphics.drawable.Drawable
+import androidx.compose.runtime.MutableState
+import androidx.compose.runtime.mutableStateOf
+import androidx.compose.ui.graphics.Color
+
+data class VerifyAppUiState(
+ val name: MutableState = mutableStateOf(""),
+ val packageName: MutableState = mutableStateOf(""),
+ val hash: MutableState = mutableStateOf(""),
+ val icon: MutableState = mutableStateOf(null),
+ val verificationStatus: MutableState = mutableStateOf(VerificationStatus.UNKNOWN),
+ val appNotFound: MutableState = mutableStateOf(false),
+ val invalidFormat: MutableState = mutableStateOf(false),
+)
+
+enum class SimpleVerificationStatus(val color: Color) {
+ UNKNOWN(Color.Gray),
+ SUCCESS(Color.Green),
+ WARNING(Color.Red.copy(red = 161f / 256f, green = 102f / 256f, blue = 14f / 256f)),
+ FAILURE(Color.Red)
+}
+
+enum class VerificationStatus(val info: String, val simpleVerificationStatus: SimpleVerificationStatus) {
+ UNKNOWN(
+ "Since you haven't provided any verification information, I'm unable to determine your verification status",
+ SimpleVerificationStatus.UNKNOWN,
+ ),
+ MATCH(
+ "Both the package name and signing certificate hash match with the expected values",
+ SimpleVerificationStatus.SUCCESS,
+ ),
+ NOMATCH(
+ "Both the package name and the signing certificate hash DO NOT match with the expected values. Please make " +
+ "sure you are verifying the correct app and check the formatting.",
+ SimpleVerificationStatus.FAILURE,
+ ),
+ PKG_NOT_GIVEN_BUT_SIG_HASH_MATCH(
+ "The package name was not given but the signing certificate hash matches",
+ SimpleVerificationStatus.SUCCESS,
+ ),
+ PKG_MATCH_BUT_SIG_HASH_NOT_GIVEN(
+ "The package name matched with the expected value but the signing certificate hash was not given",
+ SimpleVerificationStatus.FAILURE,
+ ),
+ PKG_MATCH_BUT_SIG_HASH_CONTAINS(
+ "The package name matched with the expected value but the signing certificate hash is included with other " +
+ "text in the given text. Please make sure you are verifying the correct app and check the formatting.",
+ SimpleVerificationStatus.WARNING,
+ ),
+ PKG_MATCH_BUT_SIG_HASH_NOMATCH(
+ "The package name matches but the signing certificate hash DOES NOT match. Be wary, the application might " +
+ "be non-genuine.",
+ SimpleVerificationStatus.FAILURE
+ ),
+ PKG_CONTAINS_AND_SIG_HASH_CONTAINS(
+ "Both the package name and signing certificate hash is only contained in the " +
+ "given text. Please make sure you are verifying the correct app and check the formatting.",
+ SimpleVerificationStatus.WARNING,
+ ),
+ PKG_CONTAINS_BUT_SIG_HASH_MATCH(
+ "The package name is contained in the given text, and the signing certificate " +
+ "hash matches. Please make sure you are verifying the correct app and check the formatting.",
+ SimpleVerificationStatus.WARNING,
+ ),
+ PKG_CONTAINS_BUT_SIG_HASH_NOMATCH(
+ "The package name is contained in the given text, but the signing certificate " +
+ "hash DOES NOT match. Please make sure you are verifying the correct app and check the formatting.",
+ SimpleVerificationStatus.FAILURE,
+ ),
+ PKG_NOMATCH_BUT_SIG_HASH_CONTAINS(
+ "The package name does not match but the signing " +
+ "certificate hash is included with other text in the given text. Please make sure you are verifying the " +
+ "correct app and check the formatting.",
+ SimpleVerificationStatus.WARNING,
+ ),
+ PKG_NOMATCH_BUT_SIG_HASH_MATCH(
+ "The package name does not match but the signing certificate hash matches. Please make sure you are verifying" +
+ " the correct app.",
+ SimpleVerificationStatus.WARNING,
+ ),
+}
\ No newline at end of file
diff --git a/app/src/main/kotlin/dev/soupslurpr/appverifier/preferences/PreferencesUiState.kt b/app/src/main/kotlin/dev/soupslurpr/appverifier/preferences/PreferencesUiState.kt
new file mode 100644
index 00000000..8583c805
--- /dev/null
+++ b/app/src/main/kotlin/dev/soupslurpr/appverifier/preferences/PreferencesUiState.kt
@@ -0,0 +1,21 @@
+package dev.soupslurpr.appverifier.settings
+
+import androidx.compose.runtime.MutableState
+import androidx.compose.runtime.mutableStateOf
+import androidx.datastore.preferences.core.Preferences
+import androidx.datastore.preferences.core.booleanPreferencesKey
+
+/** Preference pairs, the first is the preference key, and the second is the default value. */
+data class PreferencesUiState(
+ /** Whether the user has accepted the privacy policy and license. */
+ val acceptedPrivacyPolicyAndLicense: Pair, MutableState> = Pair(
+ (booleanPreferencesKey("ACCEPTED_PRIVACY_POLICY_AND_LICENSE")),
+ mutableStateOf(false)
+ ),
+
+ /** Pitch black background. */
+ val pitchBlackBackground: Pair, MutableState> = Pair(
+ (booleanPreferencesKey("PITCH_BLACK_BACKGROUND")),
+ mutableStateOf(false)
+ ),
+)
\ No newline at end of file
diff --git a/app/src/main/kotlin/dev/soupslurpr/appverifier/preferences/PreferencesViewModel.kt b/app/src/main/kotlin/dev/soupslurpr/appverifier/preferences/PreferencesViewModel.kt
new file mode 100644
index 00000000..2ad38238
--- /dev/null
+++ b/app/src/main/kotlin/dev/soupslurpr/appverifier/preferences/PreferencesViewModel.kt
@@ -0,0 +1,77 @@
+package dev.soupslurpr.appverifier.preferences
+
+import androidx.compose.runtime.mutableStateOf
+import androidx.datastore.core.DataStore
+import androidx.datastore.preferences.core.Preferences
+import androidx.datastore.preferences.core.edit
+import androidx.lifecycle.ViewModel
+import androidx.lifecycle.ViewModelProvider
+import androidx.lifecycle.viewModelScope
+import dev.soupslurpr.appverifier.settings.PreferencesUiState
+import kotlinx.coroutines.flow.MutableStateFlow
+import kotlinx.coroutines.flow.StateFlow
+import kotlinx.coroutines.flow.asStateFlow
+import kotlinx.coroutines.flow.collect
+import kotlinx.coroutines.flow.map
+import kotlinx.coroutines.flow.update
+import kotlinx.coroutines.launch
+
+class PreferencesViewModel(private val dataStore: DataStore) : ViewModel() {
+ /**
+ * Settings state
+ */
+ private val _uiState = MutableStateFlow(PreferencesUiState())
+ val uiState: StateFlow = _uiState.asStateFlow()
+
+ init {
+ viewModelScope.launch {
+ populateSettingsFromDatastore()
+ }
+ }
+
+ /**
+ * Populate the values of the settings from the Preferences DataStore.
+ * This function is only called from this ViewModel's init
+ */
+ private suspend fun populateSettingsFromDatastore() {
+ dataStore.data.map { settings ->
+ _uiState.update { currentState ->
+ currentState.copy(
+ acceptedPrivacyPolicyAndLicense = Pair(
+ uiState.value.acceptedPrivacyPolicyAndLicense.first,
+ mutableStateOf(
+ settings[uiState.value.acceptedPrivacyPolicyAndLicense.first] ?: uiState.value
+ .acceptedPrivacyPolicyAndLicense.second.value
+ )
+ ),
+ pitchBlackBackground = Pair(
+ uiState.value.pitchBlackBackground.first,
+ mutableStateOf(
+ settings[uiState.value.pitchBlackBackground.first] ?: uiState.value
+ .pitchBlackBackground.second.value
+ )
+ ),
+ )
+ }
+ }.collect()
+ }
+
+ /**
+ * Set a preference to a value and save to Preferences DataStore
+ */
+ suspend fun setPreference(key: Preferences.Key, value: Boolean) {
+ dataStore.edit { preferences ->
+ preferences[key] = value
+ }
+ }
+
+ class PreferencesViewModelFactory(private val dataStore: DataStore) : ViewModelProvider.Factory {
+ override fun create(modelClass: Class): T {
+ if (modelClass.isAssignableFrom(PreferencesViewModel::class.java)) {
+ @Suppress("UNCHECKED_CAST")
+ return PreferencesViewModel(dataStore) as T
+ }
+ throw IllegalArgumentException("Unknown ViewModel class $modelClass")
+ }
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/AppListScreen.kt b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/AppListScreen.kt
new file mode 100644
index 00000000..017365e5
--- /dev/null
+++ b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/AppListScreen.kt
@@ -0,0 +1,95 @@
+package dev.soupslurpr.appverifier.ui
+
+import android.content.pm.PackageInfo
+import android.content.pm.PackageManager
+import android.graphics.drawable.Drawable
+import androidx.compose.foundation.Image
+import androidx.compose.foundation.clickable
+import androidx.compose.foundation.layout.size
+import androidx.compose.foundation.lazy.LazyColumn
+import androidx.compose.foundation.lazy.items
+import androidx.compose.material3.ListItem
+import androidx.compose.material3.Text
+import androidx.compose.runtime.Composable
+import androidx.compose.runtime.LaunchedEffect
+import androidx.compose.ui.Modifier
+import androidx.compose.ui.platform.LocalContext
+import androidx.compose.ui.unit.dp
+import com.google.accompanist.drawablepainter.rememberDrawablePainter
+
+@Composable
+fun AppListScreen(
+ onClickAppItem: (
+ name: String,
+ packageName: String,
+ hash: String,
+ icon: Drawable
+ ) -> Unit,
+ onLaunchedEffect: () -> Unit,
+ getHashHexFromPackageInfo: (packageInfo: PackageInfo) -> String,
+) {
+ val context = LocalContext.current
+
+ val packageManager: PackageManager = context.packageManager
+
+ val systemPackages = packageManager.getInstalledPackages(PackageManager.MATCH_SYSTEM_ONLY)
+
+ val userInstalledPackages = packageManager.getInstalledPackages(0)
+
+ userInstalledPackages.removeIf { userInstalledPackage ->
+ userInstalledPackage.packageName == systemPackages.firstOrNull {
+ it.packageName == userInstalledPackage.packageName
+ }?.packageName
+ }
+
+ LaunchedEffect(key1 = Unit) {
+ onLaunchedEffect()
+ }
+
+ LazyColumn {
+ items(userInstalledPackages) {
+ // Do not show AppVerifier in the list as there is no point in using it to verify itself.
+ if (it.packageName != context.packageName) {
+ val packageInfo = packageManager.getPackageInfo(it.packageName, PackageManager.GET_SIGNING_CERTIFICATES)
+
+ val hashHex = getHashHexFromPackageInfo(packageInfo)
+
+ AppItem(
+ name = packageManager.getApplicationLabel(packageInfo.applicationInfo).toString(),
+ packageName = packageInfo.packageName,
+ hash = hashHex,
+ icon = packageManager.getApplicationIcon(packageInfo.applicationInfo),
+ onClickAppItem = onClickAppItem,
+ )
+ }
+ }
+ }
+}
+
+@Composable
+fun AppItem(
+ name: String,
+ packageName: String,
+ hash: String,
+ icon: Drawable,
+ onClickAppItem: (name: String, packageName: String, hash: String, icon: Drawable) -> Unit,
+) {
+ ListItem(
+ modifier = Modifier.clickable {
+ onClickAppItem(name, packageName, hash, icon)
+ },
+ headlineContent = {
+ Text(name)
+ },
+ overlineContent = {
+ Text(packageName)
+ },
+ leadingContent = {
+ Image(
+ rememberDrawablePainter(drawable = icon),
+ null,
+ Modifier.size(50.dp),
+ )
+ }
+ )
+}
\ No newline at end of file
diff --git a/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/CreditsScreen.kt b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/CreditsScreen.kt
new file mode 100644
index 00000000..e267a020
--- /dev/null
+++ b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/CreditsScreen.kt
@@ -0,0 +1,1181 @@
+package dev.soupslurpr.appverifier.ui
+
+import androidx.compose.foundation.clickable
+import androidx.compose.foundation.layout.padding
+import androidx.compose.foundation.lazy.LazyColumn
+import androidx.compose.material.icons.Icons
+import androidx.compose.material.icons.filled.Info
+import androidx.compose.material3.Icon
+import androidx.compose.material3.ListItem
+import androidx.compose.material3.MaterialTheme.typography
+import androidx.compose.material3.Text
+import androidx.compose.runtime.Composable
+import androidx.compose.runtime.getValue
+import androidx.compose.runtime.mutableStateOf
+import androidx.compose.runtime.saveable.rememberSaveable
+import androidx.compose.runtime.setValue
+import androidx.compose.ui.Modifier
+import androidx.compose.ui.semantics.Role
+import androidx.compose.ui.unit.dp
+
+const val APACHE2LICENSE = "\n" +
+ " Apache License\n" +
+ " Version 2.0, January 2004\n" +
+ " http://www.apache.org/licenses/\n" +
+ "\n" +
+ " TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n" +
+ "\n" +
+ " 1. Definitions.\n" +
+ "\n" +
+ " \"License\" shall mean the terms and conditions for use, reproduction,\n" +
+ " and distribution as defined by Sections 1 through 9 of this document.\n" +
+ "\n" +
+ " \"Licensor\" shall mean the copyright owner or entity authorized by\n" +
+ " the copyright owner that is granting the License.\n" +
+ "\n" +
+ " \"Legal Entity\" shall mean the union of the acting entity and all\n" +
+ " other entities that control, are controlled by, or are under common\n" +
+ " control with that entity. For the purposes of this definition,\n" +
+ " \"control\" means (i) the power, direct or indirect, to cause the\n" +
+ " direction or management of such entity, whether by contract or\n" +
+ " otherwise, or (ii) ownership of fifty percent (50%) or more of the\n" +
+ " outstanding shares, or (iii) beneficial ownership of such entity.\n" +
+ "\n" +
+ " \"You\" (or \"Your\") shall mean an individual or Legal Entity\n" +
+ " exercising permissions granted by this License.\n" +
+ "\n" +
+ " \"Source\" form shall mean the preferred form for making modifications,\n" +
+ " including but not limited to software source code, documentation\n" +
+ " source, and configuration files.\n" +
+ "\n" +
+ " \"Object\" form shall mean any form resulting from mechanical\n" +
+ " transformation or translation of a Source form, including but\n" +
+ " not limited to compiled object code, generated documentation,\n" +
+ " and conversions to other media types.\n" +
+ "\n" +
+ " \"Work\" shall mean the work of authorship, whether in Source or\n" +
+ " Object form, made available under the License, as indicated by a\n" +
+ " copyright notice that is included in or attached to the work\n" +
+ " (an example is provided in the Appendix below).\n" +
+ "\n" +
+ " \"Derivative Works\" shall mean any work, whether in Source or Object\n" +
+ " form, that is based on (or derived from) the Work and for which the\n" +
+ " editorial revisions, annotations, elaborations, or other modifications\n" +
+ " represent, as a whole, an original work of authorship. For the purposes\n" +
+ " of this License, Derivative Works shall not include works that remain\n" +
+ " separable from, or merely link (or bind by name) to the interfaces of,\n" +
+ " the Work and Derivative Works thereof.\n" +
+ "\n" +
+ " \"Contribution\" shall mean any work of authorship, including\n" +
+ " the original version of the Work and any modifications or additions\n" +
+ " to that Work or Derivative Works thereof, that is intentionally\n" +
+ " submitted to Licensor for inclusion in the Work by the copyright owner\n" +
+ " or by an individual or Legal Entity authorized to submit on behalf of\n" +
+ " the copyright owner. For the purposes of this definition, \"submitted\"\n" +
+ " means any form of electronic, verbal, or written communication sent\n" +
+ " to the Licensor or its representatives, including but not limited to\n" +
+ " communication on electronic mailing lists, source code control systems,\n" +
+ " and issue tracking systems that are managed by, or on behalf of, the\n" +
+ " Licensor for the purpose of discussing and improving the Work, but\n" +
+ " excluding communication that is conspicuously marked or otherwise\n" +
+ " designated in writing by the copyright owner as \"Not a Contribution.\"\n" +
+ "\n" +
+ " \"Contributor\" shall mean Licensor and any individual or Legal Entity\n" +
+ " on behalf of whom a Contribution has been received by Licensor and\n" +
+ " subsequently incorporated within the Work.\n" +
+ "\n" +
+ " 2. Grant of Copyright License. Subject to the terms and conditions of\n" +
+ " this License, each Contributor hereby grants to You a perpetual,\n" +
+ " worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n" +
+ " copyright license to reproduce, prepare Derivative Works of,\n" +
+ " publicly display, publicly perform, sublicense, and distribute the\n" +
+ " Work and such Derivative Works in Source or Object form.\n" +
+ "\n" +
+ " 3. Grant of Patent License. Subject to the terms and conditions of\n" +
+ " this License, each Contributor hereby grants to You a perpetual,\n" +
+ " worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n" +
+ " (except as stated in this section) patent license to make, have made,\n" +
+ " use, offer to sell, sell, import, and otherwise transfer the Work,\n" +
+ " where such license applies only to those patent claims licensable\n" +
+ " by such Contributor that are necessarily infringed by their\n" +
+ " Contribution(s) alone or by combination of their Contribution(s)\n" +
+ " with the Work to which such Contribution(s) was submitted. If You\n" +
+ " institute patent litigation against any entity (including a\n" +
+ " cross-claim or counterclaim in a lawsuit) alleging that the Work\n" +
+ " or a Contribution incorporated within the Work constitutes direct\n" +
+ " or contributory patent infringement, then any patent licenses\n" +
+ " granted to You under this License for that Work shall terminate\n" +
+ " as of the date such litigation is filed.\n" +
+ "\n" +
+ " 4. Redistribution. You may reproduce and distribute copies of the\n" +
+ " Work or Derivative Works thereof in any medium, with or without\n" +
+ " modifications, and in Source or Object form, provided that You\n" +
+ " meet the following conditions:\n" +
+ "\n" +
+ " (a) You must give any other recipients of the Work or\n" +
+ " Derivative Works a copy of this License; and\n" +
+ "\n" +
+ " (b) You must cause any modified files to carry prominent notices\n" +
+ " stating that You changed the files; and\n" +
+ "\n" +
+ " (c) You must retain, in the Source form of any Derivative Works\n" +
+ " that You distribute, all copyright, patent, trademark, and\n" +
+ " attribution notices from the Source form of the Work,\n" +
+ " excluding those notices that do not pertain to any part of\n" +
+ " the Derivative Works; and\n" +
+ "\n" +
+ " (d) If the Work includes a \"NOTICE\" text file as part of its\n" +
+ " distribution, then any Derivative Works that You distribute must\n" +
+ " include a readable copy of the attribution notices contained\n" +
+ " within such NOTICE file, excluding those notices that do not\n" +
+ " pertain to any part of the Derivative Works, in at least one\n" +
+ " of the following places: within a NOTICE text file distributed\n" +
+ " as part of the Derivative Works; within the Source form or\n" +
+ " documentation, if provided along with the Derivative Works; or,\n" +
+ " within a display generated by the Derivative Works, if and\n" +
+ " wherever such third-party notices normally appear. The contents\n" +
+ " of the NOTICE file are for informational purposes only and\n" +
+ " do not modify the License. You may add Your own attribution\n" +
+ " notices within Derivative Works that You distribute, alongside\n" +
+ " or as an addendum to the NOTICE text from the Work, provided\n" +
+ " that such additional attribution notices cannot be construed\n" +
+ " as modifying the License.\n" +
+ "\n" +
+ " You may add Your own copyright statement to Your modifications and\n" +
+ " may provide additional or different license terms and conditions\n" +
+ " for use, reproduction, or distribution of Your modifications, or\n" +
+ " for any such Derivative Works as a whole, provided Your use,\n" +
+ " reproduction, and distribution of the Work otherwise complies with\n" +
+ " the conditions stated in this License.\n" +
+ "\n" +
+ " 5. Submission of Contributions. Unless You explicitly state otherwise,\n" +
+ " any Contribution intentionally submitted for inclusion in the Work\n" +
+ " by You to the Licensor shall be under the terms and conditions of\n" +
+ " this License, without any additional terms or conditions.\n" +
+ " Notwithstanding the above, nothing herein shall supersede or modify\n" +
+ " the terms of any separate license agreement you may have executed\n" +
+ " with Licensor regarding such Contributions.\n" +
+ "\n" +
+ " 6. Trademarks. This License does not grant permission to use the trade\n" +
+ " names, trademarks, service marks, or product names of the Licensor,\n" +
+ " except as required for reasonable and customary use in describing the\n" +
+ " origin of the Work and reproducing the content of the NOTICE file.\n" +
+ "\n" +
+ " 7. Disclaimer of Warranty. Unless required by applicable law or\n" +
+ " agreed to in writing, Licensor provides the Work (and each\n" +
+ " Contributor provides its Contributions) on an \"AS IS\" BASIS,\n" +
+ " WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n" +
+ " implied, including, without limitation, any warranties or conditions\n" +
+ " of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n" +
+ " PARTICULAR PURPOSE. You are solely responsible for determining the\n" +
+ " appropriateness of using or redistributing the Work and assume any\n" +
+ " risks associated with Your exercise of permissions under this License.\n" +
+ "\n" +
+ " 8. Limitation of Liability. In no event and under no legal theory,\n" +
+ " whether in tort (including negligence), contract, or otherwise,\n" +
+ " unless required by applicable law (such as deliberate and grossly\n" +
+ " negligent acts) or agreed to in writing, shall any Contributor be\n" +
+ " liable to You for damages, including any direct, indirect, special,\n" +
+ " incidental, or consequential damages of any character arising as a\n" +
+ " result of this License or out of the use or inability to use the\n" +
+ " Work (including but not limited to damages for loss of goodwill,\n" +
+ " work stoppage, computer failure or malfunction, or any and all\n" +
+ " other commercial damages or losses), even if such Contributor\n" +
+ " has been advised of the possibility of such damages.\n" +
+ "\n" +
+ " 9. Accepting Warranty or Additional Liability. While redistributing\n" +
+ " the Work or Derivative Works thereof, You may choose to offer,\n" +
+ " and charge a fee for, acceptance of support, warranty, indemnity,\n" +
+ " or other liability obligations and/or rights consistent with this\n" +
+ " License. However, in accepting such obligations, You may act only\n" +
+ " on Your own behalf and on Your sole responsibility, not on behalf\n" +
+ " of any other Contributor, and only if You agree to indemnify,\n" +
+ " defend, and hold each Contributor harmless for any liability\n" +
+ " incurred by, or claims asserted against, such Contributor by reason\n" +
+ " of your accepting any such warranty or additional liability.\n" +
+ "\n" +
+ " END OF TERMS AND CONDITIONS\n" +
+ "\n" +
+ " APPENDIX: How to apply the Apache License to your work.\n" +
+ "\n" +
+ " To apply the Apache License to your work, attach the following\n" +
+ " boilerplate notice, with the fields enclosed by brackets \"[]\"\n" +
+ " replaced with your own identifying information. (Don't include\n" +
+ " the brackets!) The text should be enclosed in the appropriate\n" +
+ " comment syntax for the file format. We also recommend that a\n" +
+ " file or class name and description of purpose be included on the\n" +
+ " same \"printed page\" as the copyright notice for easier\n" +
+ " identification within third-party archives.\n" +
+ "\n" +
+ " Copyright [yyyy] [name of copyright owner]\n" +
+ "\n" +
+ " Licensed under the Apache License, Version 2.0 (the \"License\");\n" +
+ " you may not use this file except in compliance with the License.\n" +
+ " You may obtain a copy of the License at\n" +
+ "\n" +
+ " http://www.apache.org/licenses/LICENSE-2.0\n" +
+ "\n" +
+ " Unless required by applicable law or agreed to in writing, software\n" +
+ " distributed under the License is distributed on an \"AS IS\" BASIS,\n" +
+ " WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n" +
+ " See the License for the specific language governing permissions and\n" +
+ " limitations under the License."
+
+@Composable
+fun CreditsScreen() {
+ LazyColumn(
+ modifier = Modifier
+ ) {
+ item {
+ CreditsItem(
+ dependencyName = "Coil",
+ dependencyPackageName = "io.coil-kt:coil\nio.coil-kt:coil-compose\nio.coil-kt:coil-svg",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Noto Serif",
+ dependencyPackageName = "",
+ dependencyLicense = "Copyright 2022 The Noto Project Authors (https://github.com/notofonts/latin-greek-cyrillic)\n" +
+ "\n" +
+ "This Font Software is licensed under the SIL Open Font License, Version 1.1.\n" +
+ "This license is copied below, and is also available with a FAQ at:\n" +
+ "http://scripts.sil.org/OFL\n" +
+ "\n" +
+ "\n" +
+ "-----------------------------------------------------------\n" +
+ "SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\n" +
+ "-----------------------------------------------------------\n" +
+ "\n" +
+ "PREAMBLE\n" +
+ "The goals of the Open Font License (OFL) are to stimulate worldwide\n" +
+ "development of collaborative font projects, to support the font creation\n" +
+ "efforts of academic and linguistic communities, and to provide a free and\n" +
+ "open framework in which fonts may be shared and improved in partnership\n" +
+ "with others.\n" +
+ "\n" +
+ "The OFL allows the licensed fonts to be used, studied, modified and\n" +
+ "redistributed freely as long as they are not sold by themselves. The\n" +
+ "fonts, including any derivative works, can be bundled, embedded, \n" +
+ "redistributed and/or sold with any software provided that any reserved\n" +
+ "names are not used by derivative works. The fonts and derivatives,\n" +
+ "however, cannot be released under any other type of license. The\n" +
+ "requirement for fonts to remain under this license does not apply\n" +
+ "to any document created using the fonts or their derivatives.\n" +
+ "\n" +
+ "DEFINITIONS\n" +
+ "\"Font Software\" refers to the set of files released by the Copyright\n" +
+ "Holder(s) under this license and clearly marked as such. This may\n" +
+ "include source files, build scripts and documentation.\n" +
+ "\n" +
+ "\"Reserved Font Name\" refers to any names specified as such after the\n" +
+ "copyright statement(s).\n" +
+ "\n" +
+ "\"Original Version\" refers to the collection of Font Software components as\n" +
+ "distributed by the Copyright Holder(s).\n" +
+ "\n" +
+ "\"Modified Version\" refers to any derivative made by adding to, deleting,\n" +
+ "or substituting -- in part or in whole -- any of the components of the\n" +
+ "Original Version, by changing formats or by porting the Font Software to a\n" +
+ "new environment.\n" +
+ "\n" +
+ "\"Author\" refers to any designer, engineer, programmer, technical\n" +
+ "writer or other person who contributed to the Font Software.\n" +
+ "\n" +
+ "PERMISSION & CONDITIONS\n" +
+ "Permission is hereby granted, free of charge, to any person obtaining\n" +
+ "a copy of the Font Software, to use, study, copy, merge, embed, modify,\n" +
+ "redistribute, and sell modified and unmodified copies of the Font\n" +
+ "Software, subject to the following conditions:\n" +
+ "\n" +
+ "1) Neither the Font Software nor any of its individual components,\n" +
+ "in Original or Modified Versions, may be sold by itself.\n" +
+ "\n" +
+ "2) Original or Modified Versions of the Font Software may be bundled,\n" +
+ "redistributed and/or sold with any software, provided that each copy\n" +
+ "contains the above copyright notice and this license. These can be\n" +
+ "included either as stand-alone text files, human-readable headers or\n" +
+ "in the appropriate machine-readable metadata fields within text or\n" +
+ "binary files as long as those fields can be easily viewed by the user.\n" +
+ "\n" +
+ "3) No Modified Version of the Font Software may use the Reserved Font\n" +
+ "Name(s) unless explicit written permission is granted by the corresponding\n" +
+ "Copyright Holder. This restriction only applies to the primary font name as\n" +
+ "presented to the users.\n" +
+ "\n" +
+ "4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font\n" +
+ "Software shall not be used to promote, endorse or advertise any\n" +
+ "Modified Version, except to acknowledge the contribution(s) of the\n" +
+ "Copyright Holder(s) and the Author(s) or with their explicit written\n" +
+ "permission.\n" +
+ "\n" +
+ "5) The Font Software, modified or unmodified, in part or in whole,\n" +
+ "must be distributed entirely under this license, and must not be\n" +
+ "distributed under any other license. The requirement for fonts to\n" +
+ "remain under this license does not apply to any document created\n" +
+ "using the Font Software.\n" +
+ "\n" +
+ "TERMINATION\n" +
+ "This license becomes null and void if any of the above conditions are\n" +
+ "not met.\n" +
+ "\n" +
+ "DISCLAIMER\n" +
+ "THE FONT SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +
+ "EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +
+ "MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\n" +
+ "OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE\n" +
+ "COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n" +
+ "INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\n" +
+ "DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n" +
+ "FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM\n" +
+ "OTHER DEALINGS IN THE FONT SOFTWARE.\n"
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Roboto",
+ dependencyPackageName = "",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "STIX Two",
+ dependencyPackageName = "",
+ dependencyLicense = "Copyright 2001-2021 The STIX Fonts Project Authors (https://github.com/stipub/stixfonts), with Reserved Font Name \"TM Math\". STIX Fontsâ„¢ is a trademark of The Institute of Electrical and Electronics Engineers, Inc.\n" +
+ "\n" +
+ "This Font Software is licensed under the SIL Open Font License, Version 1.1.\n" +
+ "This license is copied below, and is also available with a FAQ at:\n" +
+ "http://scripts.sil.org/OFL\n" +
+ "\n" +
+ "-----------------------------------------------------------\n" +
+ "SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\n" +
+ "-----------------------------------------------------------\n" +
+ "\n" +
+ "PREAMBLE\n" +
+ "The goals of the Open Font License (OFL) are to stimulate worldwide\n" +
+ "development of collaborative font projects, to support the font creation\n" +
+ "efforts of academic and linguistic communities, and to provide a free and\n" +
+ "open framework in which fonts may be shared and improved in partnership\n" +
+ "with others.\n" +
+ "\n" +
+ "The OFL allows the licensed fonts to be used, studied, modified and\n" +
+ "redistributed freely as long as they are not sold by themselves. The\n" +
+ "fonts, including any derivative works, can be bundled, embedded, \n" +
+ "redistributed and/or sold with any software provided that any reserved\n" +
+ "names are not used by derivative works. The fonts and derivatives,\n" +
+ "however, cannot be released under any other type of license. The\n" +
+ "requirement for fonts to remain under this license does not apply\n" +
+ "to any document created using the fonts or their derivatives.\n" +
+ "\n" +
+ "DEFINITIONS\n" +
+ "\"Font Software\" refers to the set of files released by the Copyright\n" +
+ "Holder(s) under this license and clearly marked as such. This may\n" +
+ "include source files, build scripts and documentation.\n" +
+ "\n" +
+ "\"Reserved Font Name\" refers to any names specified as such after the\n" +
+ "copyright statement(s).\n" +
+ "\n" +
+ "\"Original Version\" refers to the collection of Font Software components as\n" +
+ "distributed by the Copyright Holder(s).\n" +
+ "\n" +
+ "\"Modified Version\" refers to any derivative made by adding to, deleting,\n" +
+ "or substituting -- in part or in whole -- any of the components of the\n" +
+ "Original Version, by changing formats or by porting the Font Software to a\n" +
+ "new environment.\n" +
+ "\n" +
+ "\"Author\" refers to any designer, engineer, programmer, technical\n" +
+ "writer or other person who contributed to the Font Software.\n" +
+ "\n" +
+ "PERMISSION & CONDITIONS\n" +
+ "Permission is hereby granted, free of charge, to any person obtaining\n" +
+ "a copy of the Font Software, to use, study, copy, merge, embed, modify,\n" +
+ "redistribute, and sell modified and unmodified copies of the Font\n" +
+ "Software, subject to the following conditions:\n" +
+ "\n" +
+ "1) Neither the Font Software nor any of its individual components,\n" +
+ "in Original or Modified Versions, may be sold by itself.\n" +
+ "\n" +
+ "2) Original or Modified Versions of the Font Software may be bundled,\n" +
+ "redistributed and/or sold with any software, provided that each copy\n" +
+ "contains the above copyright notice and this license. These can be\n" +
+ "included either as stand-alone text files, human-readable headers or\n" +
+ "in the appropriate machine-readable metadata fields within text or\n" +
+ "binary files as long as those fields can be easily viewed by the user.\n" +
+ "\n" +
+ "3) No Modified Version of the Font Software may use the Reserved Font\n" +
+ "Name(s) unless explicit written permission is granted by the corresponding\n" +
+ "Copyright Holder. This restriction only applies to the primary font name as\n" +
+ "presented to the users.\n" +
+ "\n" +
+ "4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font\n" +
+ "Software shall not be used to promote, endorse or advertise any\n" +
+ "Modified Version, except to acknowledge the contribution(s) of the\n" +
+ "Copyright Holder(s) and the Author(s) or with their explicit written\n" +
+ "permission.\n" +
+ "\n" +
+ "5) The Font Software, modified or unmodified, in part or in whole,\n" +
+ "must be distributed entirely under this license, and must not be\n" +
+ "distributed under any other license. The requirement for fonts to\n" +
+ "remain under this license does not apply to any document created\n" +
+ "using the Font Software.\n" +
+ "\n" +
+ "TERMINATION\n" +
+ "This license becomes null and void if any of the above conditions are\n" +
+ "not met.\n" +
+ "\n" +
+ "DISCLAIMER\n" +
+ "THE FONT SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +
+ "EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +
+ "MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\n" +
+ "OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE\n" +
+ "COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n" +
+ "INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\n" +
+ "DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n" +
+ "FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM\n" +
+ "OTHER DEALINGS IN THE FONT SOFTWARE.\n"
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Material Components For Android",
+ dependencyPackageName = "com.google.android.material:material",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Navigation Common",
+ dependencyPackageName = "androidx.navigation:navigation-common",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Navigation Runtime",
+ dependencyPackageName = "androidx.navigation:navigation-runtime",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Navigation Common Kotlin Extensions",
+ dependencyPackageName = "androidx.navigation:navigation-common-ktx",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Navigation Runtime Kotlin Extensions",
+ dependencyPackageName = "androidx.navigation:navigation-runtime-ktx",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Compose Navigation",
+ dependencyPackageName = "androidx.navigation:navigation-compose",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Compose Material3 Components",
+ dependencyPackageName = "androidx.compose.material3:material3-android",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "ConstraintLayout",
+ dependencyPackageName = "androidx.constraintlayout:constraintlayout",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Resources Library",
+ dependencyPackageName = "androidx.appcompat:appcompat-resources",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android AppCompat Library",
+ dependencyPackageName = "androidx.appcompat:appcompat",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "ViewPager2",
+ dependencyPackageName = "androidx.viewpager2:viewpager2",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Support Library Fragment",
+ dependencyPackageName = "androidx.fragment:fragment",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Activity",
+ dependencyPackageName = "androidx.activity:activity",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Activity Compose",
+ dependencyPackageName = "androidx.activity:activity-compose",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Compose Material Ripple",
+ dependencyPackageName = "androidx.compose.material:material-ripple-android",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Compose Material Icons Core",
+ dependencyPackageName = "androidx.compose.material:material-icons-core-android",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Compose Material Components",
+ dependencyPackageName = "androidx.compose.material:material-android",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Compose Foundation",
+ dependencyPackageName = "androidx.compose.foundation:foundation-android",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Compose Animation",
+ dependencyPackageName = "androidx.compose.animation:animation-core-android",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Compose Animation",
+ dependencyPackageName = "androidx.compose.animation:animation-android",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Compose Layouts",
+ dependencyPackageName = "androidx.compose.foundation:foundation-layout-android",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Compose Util",
+ dependencyPackageName = "androidx.compose.ui:ui-util-android",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Compose Unit",
+ dependencyPackageName = "androidx.compose.ui:ui-unit-android",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Compose UI Text",
+ dependencyPackageName = "androidx.compose.ui:ui-text-android",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Compose Geometry",
+ dependencyPackageName = "androidx.compose.ui:ui-geometry-android",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Compose UI Preview Tooling",
+ dependencyPackageName = "androidx.compose.ui:ui-tooling-preview-android",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Compose Graphics",
+ dependencyPackageName = "androidx.compose.ui:ui-graphics-android",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Dynamic Animation",
+ dependencyPackageName = "androidx.dynamicanimation:dynamicanimation",
+ dependencyLicense = APACHE2LICENSE
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Legacy Support Core Utils",
+ dependencyPackageName = "androidx.legacy:legacy-support-core-utils",
+ dependencyLicense = APACHE2LICENSE
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Loader",
+ dependencyPackageName = "androidx.loader:loader",
+ dependencyLicense = APACHE2LICENSE
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Emoji2 Views Helper",
+ dependencyPackageName = "androidx.emoji2:emoji2-views-helper",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Emoji2",
+ dependencyPackageName = "androidx.emoji2:emoji2",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Lifecycle Process",
+ dependencyPackageName = "androidx.lifecycle:lifecycle-process",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Lifecycle Livedata",
+ dependencyPackageName = "androidx.lifecycle:lifecycle-livedata",
+ dependencyLicense = APACHE2LICENSE
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Lifecycle Livedata Core",
+ dependencyPackageName = "androidx.lifecycle:lifecycle-livedata-core",
+ dependencyLicense = APACHE2LICENSE
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Lifecycle Common java8l",
+ dependencyPackageName = "androidx.lifecycle:lifecycle-common-java8",
+ dependencyLicense = APACHE2LICENSE
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Lifecycle ViewModel Ktx",
+ dependencyPackageName = "androidx.lifecycle:lifecycle-viewmodel-ktx",
+ dependencyLicense = APACHE2LICENSE
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Savedstate Ktx",
+ dependencyPackageName = "androidx.savedstate:savedstate-ktx",
+ dependencyLicense = APACHE2LICENSE
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Savedstate",
+ dependencyPackageName = "androidx.savedstate:savedstate",
+ dependencyLicense = APACHE2LICENSE
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Lifecycle Common",
+ dependencyPackageName = "androidx.lifecycle:lifecycle-common",
+ dependencyLicense = APACHE2LICENSE
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Lifecycle ViewModel",
+ dependencyPackageName = "androidx.lifecycle:lifecycle-viewmodel",
+ dependencyLicense = APACHE2LICENSE
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Lifecycle ViewModel Compose",
+ dependencyPackageName = "androidx.lifecycle:lifecycle-viewmodel-compose",
+ dependencyLicense = APACHE2LICENSE
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Compose UI Android",
+ dependencyPackageName = "androidx.compose.ui:ui-android",
+ dependencyLicense = APACHE2LICENSE
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Activity Ktx",
+ dependencyPackageName = "androidx.activity:activity-ktx",
+ dependencyLicense = APACHE2LICENSE
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Customview Poolingcontainer",
+ dependencyPackageName = "androidx.customview:customview-poolingcontainer",
+ dependencyLicense = APACHE2LICENSE
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Core Ktx",
+ dependencyPackageName = "androidx.core:core-ktx",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Coordinatorlayout",
+ dependencyPackageName = "androidx.coordinatorlayout:coordinatorlayout",
+ dependencyLicense = APACHE2LICENSE
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Drawerlayout",
+ dependencyPackageName = "androidx.drawerlayout:drawerlayout",
+ dependencyLicense = APACHE2LICENSE
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Transition",
+ dependencyPackageName = "androidx.transition:transition",
+ dependencyLicense = APACHE2LICENSE
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Lifecycle ViewModel with SavedState",
+ dependencyPackageName = "androidx.lifecycle:lifecycle-viewmodel-savedstate",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Compose UI",
+ dependencyPackageName = "androidx.compose.ui:ui",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Autofill",
+ dependencyPackageName = "androidx.autofill:autofill",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Support AnimatedVectorDrawable",
+ dependencyPackageName = "androidx.vectordrawable:vectordrawable-animated",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Support VectorDrawable",
+ dependencyPackageName = "androidx.vectordrawable:vectordrawable",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Support RecyclerView",
+ dependencyPackageName = "androidx.recyclerview:recyclerview",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Support Library View Pager",
+ dependencyPackageName = "androidx.viewpager:viewpager",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Support Library Custom View",
+ dependencyPackageName = "androidx.customview:customview",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Support Library Compat",
+ dependencyPackageName = "androidx.core:core",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Lifecycle Runtime",
+ dependencyPackageName = "androidx.lifecycle:lifecycle-runtime",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Lifecycle Kotlin Extensions",
+ dependencyPackageName = "androidx.lifecycle:lifecycle-runtime-ktx",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Compose Saveable",
+ dependencyPackageName = "androidx.compose.runtime:runtime-saveable-android",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Compose Runtime",
+ dependencyPackageName = "androidx.compose.runtime:runtime-android",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Preferences DataStore",
+ dependencyPackageName = "androidx.datastore:datastore-preferences",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android DataStore",
+ dependencyPackageName = "androidx.datastore:datastore",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Preferences DataStore Core",
+ dependencyPackageName = "androidx.datastore:datastore-preferences-core",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android DataStore Core",
+ dependencyPackageName = "androidx.datastore:datastore-core",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Kotlin Coroutines Core",
+ dependencyPackageName = "org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Kotlin Coroutines Android",
+ dependencyPackageName = "org.jetbrains.kotlinx:kotlinx-coroutines-android",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Kotlin Stdlib Jdk8",
+ dependencyPackageName = "org.jetbrains.kotlin:kotlin-stdlib-jdk8",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Kotlin Stdlib Jdk7",
+ dependencyPackageName = "org.jetbrains.kotlin:kotlin-stdlib-jdk7",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Experimental Annotation",
+ dependencyPackageName = "androidx.annotation:annotation-experimental",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Profileinstaller",
+ dependencyPackageName = "androidx.profileinstaller:profileinstaller",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Support CardView V7",
+ dependencyPackageName = "androidx.cardview:cardview",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Support Library Interpolators",
+ dependencyPackageName = "androidx.interpolator:interpolator",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "VersionedParcelable",
+ dependencyPackageName = "androidx.versionedparcelable:versionedparcelable",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Arch Runtime",
+ dependencyPackageName = "androidx.arch.core:core-runtime",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Arch Common",
+ dependencyPackageName = "androidx.arch.core:core-common",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Collections Kotlin Extensions",
+ dependencyPackageName = "androidx.collection:collection-ktx",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Support Library Collections",
+ dependencyPackageName = "androidx.collection:collection",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "AndroidX Futures",
+ dependencyPackageName = "androidx.concurrent:concurrent-futures",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android App Startup Runtime",
+ dependencyPackageName = "androidx.startup:startup-runtime",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Support Library Cursor Adapter",
+ dependencyPackageName = "androidx.cursoradapter:cursoradapter",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Resource Inspection Annotations",
+ dependencyPackageName = "androidx.resourceinspection:resourceinspection-annotation",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Tracing",
+ dependencyPackageName = "androidx.tracing:tracing",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Support Library Document File",
+ dependencyPackageName = "androidx.documentfile:documentfile",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Support Library Local Broadcast Manager",
+ dependencyPackageName = "androidx.localbroadcastmanager:localbroadcastmanager",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Support Library Print",
+ dependencyPackageName = "androidx.print:print",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Support Library Annotations",
+ dependencyPackageName = "androidx.annotation:annotation-jvm",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Kotlin Stdlib",
+ dependencyPackageName = "org.jetbrains.kotlin:kotlin-stdlib",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Kotlin Stdlib Common",
+ dependencyPackageName = "org.jetbrains.kotlin:kotlin-stdlib-common",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Error Prone Annotations",
+ dependencyPackageName = "com.google.errorprone:error_prone_annotations",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "JetBrains Java Annotations",
+ dependencyPackageName = "org.jetbrains:annotations",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Guava ListenableFuture Only",
+ dependencyPackageName = "com.google.guava:listenablefuture",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android ConstraintLayout Solver",
+ dependencyPackageName = "androidx.constraintlayout:constraintlayout-solver",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Android Sample Code",
+ dependencyPackageName = "https://developer.android.com/",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Jetpack Compose BOM",
+ dependencyPackageName = "androidx.compose:compose-bom",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Java Native Access (JNA)",
+ dependencyPackageName = "net.java.dev.jna:jna",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "grapheneos.org website",
+ dependencyPackageName = "",
+ dependencyLicense = "Copyright © 2014-2023 GrapheneOS\n" +
+ "\n" +
+ "Permission is hereby granted, free of charge, to any person obtaining a copy\n" +
+ "of this software and associated documentation files (the \"Software\"), to deal\n" +
+ "in the Software without restriction, including without limitation the rights\n" +
+ "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n" +
+ "copies of the Software, and to permit persons to whom the Software is\n" +
+ "furnished to do so, subject to the following conditions:\n" +
+ "\n" +
+ "The above copyright notice and this permission notice shall be included in\n" +
+ "all copies or substantial portions of the Software.\n" +
+ "\n" +
+ "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n" +
+ "IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n" +
+ "FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n" +
+ "AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n" +
+ "LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n" +
+ "OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n" +
+ "THE SOFTWARE."
+ )
+ }
+ item {
+ CreditsItem(
+ dependencyName = "Material Symbols",
+ dependencyPackageName = "",
+ dependencyLicense = APACHE2LICENSE,
+ )
+ }
+ }
+}
+
+@Composable
+fun CreditsItem(
+ dependencyName: String,
+ dependencyPackageName: String,
+ dependencyLicense: String,
+) {
+ var dropped by rememberSaveable { mutableStateOf(false) }
+
+ ListItem(
+ modifier = Modifier.clickable(
+ onClickLabel = "View $dependencyName's license",
+ role = Role.DropdownList,
+ onClick = { dropped = !dropped },
+ ),
+ headlineContent = { Text(text = dependencyName) },
+ supportingContent = { Text(text = dependencyPackageName) },
+ trailingContent = {
+ Icon(imageVector = Icons.Filled.Info, contentDescription = null)
+ }
+ )
+ if (dropped) {
+ Text(
+ modifier = Modifier.padding(horizontal = 16.dp),
+ style = typography.bodySmall,
+ text = dependencyLicense,
+ )
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/LicenseScreen.kt b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/LicenseScreen.kt
new file mode 100644
index 00000000..dc51ec88
--- /dev/null
+++ b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/LicenseScreen.kt
@@ -0,0 +1,24 @@
+package dev.soupslurpr.appverifier.ui
+
+import androidx.compose.foundation.layout.Column
+import androidx.compose.foundation.layout.padding
+import androidx.compose.foundation.rememberScrollState
+import androidx.compose.foundation.verticalScroll
+import androidx.compose.material3.Text
+import androidx.compose.runtime.Composable
+import androidx.compose.ui.Modifier
+import androidx.compose.ui.res.stringResource
+import androidx.compose.ui.unit.dp
+import dev.soupslurpr.appverifier.R
+
+@Composable
+fun LicenseScreen() {
+ Column(
+ modifier = Modifier.verticalScroll(rememberScrollState())
+ ) {
+ Text(
+ modifier = Modifier.padding(horizontal = 15.dp),
+ text = stringResource(R.string.full_license)
+ )
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/PrivacyPolicyScreen.kt b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/PrivacyPolicyScreen.kt
new file mode 100644
index 00000000..416136b1
--- /dev/null
+++ b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/PrivacyPolicyScreen.kt
@@ -0,0 +1,24 @@
+package dev.soupslurpr.appverifier.ui
+
+import androidx.compose.foundation.layout.Column
+import androidx.compose.foundation.layout.padding
+import androidx.compose.foundation.rememberScrollState
+import androidx.compose.foundation.verticalScroll
+import androidx.compose.material3.Text
+import androidx.compose.runtime.Composable
+import androidx.compose.ui.Modifier
+import androidx.compose.ui.res.stringResource
+import androidx.compose.ui.unit.dp
+import dev.soupslurpr.appverifier.R
+
+@Composable
+fun PrivacyPolicyScreen() {
+ Column(
+ modifier = Modifier.verticalScroll(rememberScrollState())
+ ) {
+ Text(
+ modifier = Modifier.padding(horizontal = 15.dp),
+ text = stringResource(R.string.full_privacy_policy)
+ )
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/ReviewPrivacyPolicyAndLicense.kt b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/ReviewPrivacyPolicyAndLicense.kt
new file mode 100644
index 00000000..9d0ba00b
--- /dev/null
+++ b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/ReviewPrivacyPolicyAndLicense.kt
@@ -0,0 +1,80 @@
+package dev.soupslurpr.appverifier.ui
+
+import androidx.compose.foundation.layout.Column
+import androidx.compose.foundation.layout.padding
+import androidx.compose.foundation.rememberScrollState
+import androidx.compose.foundation.verticalScroll
+import androidx.compose.material3.Button
+import androidx.compose.material3.Checkbox
+import androidx.compose.material3.ExperimentalMaterial3Api
+import androidx.compose.material3.LargeTopAppBar
+import androidx.compose.material3.Scaffold
+import androidx.compose.material3.Text
+import androidx.compose.runtime.Composable
+import androidx.compose.runtime.collectAsState
+import androidx.compose.runtime.getValue
+import androidx.compose.runtime.mutableStateOf
+import androidx.compose.runtime.remember
+import androidx.compose.runtime.rememberCoroutineScope
+import androidx.compose.runtime.setValue
+import androidx.compose.ui.Modifier
+import androidx.compose.ui.res.stringResource
+import androidx.compose.ui.text.font.FontWeight
+import androidx.compose.ui.unit.dp
+import dev.soupslurpr.appverifier.R
+import dev.soupslurpr.appverifier.preferences.PreferencesViewModel
+import kotlinx.coroutines.launch
+
+@OptIn(ExperimentalMaterial3Api::class)
+@Composable
+fun ReviewPrivacyPolicyAndLicense(
+ preferencesViewModel: PreferencesViewModel,
+) {
+ val preferencesUiState by preferencesViewModel.uiState.collectAsState()
+ val coroutineScope = rememberCoroutineScope()
+ var checked by remember { mutableStateOf(false) }
+
+ Scaffold(
+ topBar = {
+ LargeTopAppBar(
+ title = {
+ Text(text = stringResource(R.string.review_privacy_policy_and_license))
+ }
+ )
+ }
+ ) { innerPadding ->
+ Column(
+ modifier = Modifier
+ .verticalScroll(rememberScrollState())
+ .padding(16.dp)
+ .padding(innerPadding)
+ ) {
+ Text(
+ text = stringResource(R.string.full_privacy_policy) + "\n\n\n\n" + stringResource(R.string.full_license) + "\n\n\n\n"
+ )
+ Text(
+ text = stringResource(R.string.privacy_policy_and_license_checkbox_text),
+ fontWeight = FontWeight.Bold
+ )
+ Checkbox(
+ checked = checked,
+ onCheckedChange = {
+ checked = it
+ }
+ )
+ Button(
+ onClick = {
+ coroutineScope.launch {
+ preferencesViewModel.setPreference(
+ preferencesUiState.acceptedPrivacyPolicyAndLicense.first,
+ checked
+ )
+ }
+ },
+ enabled = checked
+ ) {
+ Text(text = stringResource(R.string.continue_to_app))
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/SettingsScreen.kt b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/SettingsScreen.kt
new file mode 100644
index 00000000..49f858ca
--- /dev/null
+++ b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/SettingsScreen.kt
@@ -0,0 +1,190 @@
+package dev.soupslurpr.appverifier.ui
+
+import androidx.compose.foundation.clickable
+import androidx.compose.foundation.layout.Arrangement
+import androidx.compose.foundation.layout.Column
+import androidx.compose.foundation.layout.padding
+import androidx.compose.foundation.rememberScrollState
+import androidx.compose.foundation.selection.toggleable
+import androidx.compose.foundation.verticalScroll
+import androidx.compose.material.icons.Icons
+import androidx.compose.material.icons.filled.ExitToApp
+import androidx.compose.material.icons.filled.Info
+import androidx.compose.material3.Icon
+import androidx.compose.material3.ListItem
+import androidx.compose.material3.MaterialTheme
+import androidx.compose.material3.MaterialTheme.typography
+import androidx.compose.material3.Switch
+import androidx.compose.material3.Text
+import androidx.compose.runtime.Composable
+import androidx.compose.runtime.collectAsState
+import androidx.compose.runtime.getValue
+import androidx.compose.runtime.rememberCoroutineScope
+import androidx.compose.ui.Modifier
+import androidx.compose.ui.platform.LocalUriHandler
+import androidx.compose.ui.res.stringResource
+import androidx.compose.ui.text.font.FontWeight
+import androidx.compose.ui.text.style.TextAlign
+import androidx.compose.ui.unit.dp
+import dev.soupslurpr.appverifier.R
+import dev.soupslurpr.appverifier.preferences.PreferencesViewModel
+import kotlinx.coroutines.launch
+
+/**
+ * Composable for settings screen
+ */
+@Composable
+fun SettingsScreen(
+ onLicenseIconButtonClicked: () -> Unit,
+ onPrivacyPolicyIconButtonClicked: () -> Unit,
+ onCreditsIconButtonClicked: () -> Unit,
+ preferencesViewModel: PreferencesViewModel,
+) {
+ val localUriHandler = LocalUriHandler.current
+ val preferencesUiState by preferencesViewModel.uiState.collectAsState()
+ val coroutineScope = rememberCoroutineScope()
+
+ Column(
+ modifier = Modifier
+ .verticalScroll(rememberScrollState()),
+ verticalArrangement = Arrangement.spacedBy(16.dp)
+ ) {
+ Column {
+ SettingsCategoryText(category = stringResource(id = R.string.theme))
+ SettingsItem(
+ name = stringResource(id = R.string.pitch_black_background_setting_name),
+ description = stringResource(id = R.string.pitch_black_background_setting_description),
+ hasSwitch = true,
+ checked = preferencesUiState.pitchBlackBackground.second.value,
+ onCheckedChange = {
+ coroutineScope.launch {
+ preferencesViewModel.setPreference(preferencesUiState.pitchBlackBackground.first, it)
+ }
+ }
+ )
+ }
+
+ Column {
+ SettingsCategoryText(category = stringResource(id = R.string.about))
+// SettingsItem(
+// name = stringResource(id = R.string.open_appverifier_website_setting_name),
+// description = stringResource(id = R.string.open_appverifier_website_setting_description),
+// hasIcon = true,
+// onClickIconSetting = {
+// localUriHandler.openUri("https://appverifier.soupslurpr.dev")
+// },
+// icon = {
+// Icon(
+// imageVector = Icons.Filled.ExitToApp,
+// contentDescription = null
+// )
+// }
+// )
+ SettingsItem(
+ name = stringResource(id = R.string.view_source_code_setting_name),
+ description = stringResource(id = R.string.view_source_code_setting_description),
+ hasIcon = true,
+ onClickIconSetting = {
+ localUriHandler.openUri("https://github.com/soupslurpr/AppVerifier")
+ },
+ icon = {
+ Icon(
+ imageVector = Icons.Filled.ExitToApp,
+ contentDescription = null
+ )
+ }
+ )
+ SettingsItem(
+ name = stringResource(id = R.string.license_setting_name),
+ description = stringResource(id = R.string.license_setting_description),
+ hasIcon = true,
+ onClickIconSetting = { onLicenseIconButtonClicked() },
+ icon = {
+ Icon(
+ imageVector = Icons.Filled.Info,
+ contentDescription = null
+ )
+ }
+ )
+ SettingsItem(
+ name = stringResource(id = R.string.privacy_policy_setting_name),
+ description = stringResource(id = R.string.privacy_policy_setting_description),
+ hasIcon = true,
+ onClickIconSetting = { onPrivacyPolicyIconButtonClicked() },
+ icon = {
+ Icon(
+ imageVector = Icons.Filled.Info,
+ contentDescription = null,
+ )
+ }
+ )
+ SettingsItem(
+ name = stringResource(id = R.string.credits_setting_name),
+ description = stringResource(id = R.string.credits_setting_description),
+ hasIcon = true,
+ onClickIconSetting = { onCreditsIconButtonClicked() },
+ icon = {
+ Icon(
+ imageVector = Icons.Filled.Info,
+ contentDescription = null
+ )
+ }
+ )
+ }
+ }
+}
+
+/**
+ * An individual settings item
+ */
+@Composable
+fun SettingsItem(
+ name: String,
+ description: String,
+ hasSwitch: Boolean = false,
+ hasIcon: Boolean = false,
+ onCheckedChange: (Boolean) -> Unit = {},
+ checked: Boolean = false,
+ onClickIconSetting: () -> Unit = {},
+ icon: @Composable () -> Unit = {},
+) {
+ ListItem(
+ modifier = when {
+ hasIcon -> Modifier.clickable(onClick = { onClickIconSetting() })
+ hasSwitch -> Modifier.toggleable(
+ value = checked,
+ onValueChange = { onCheckedChange(it) }
+ )
+
+ else -> Modifier
+ },
+ headlineContent = {
+ Text(
+ text = name,
+ fontWeight = FontWeight.SemiBold
+ )
+ },
+ supportingContent = { Text(text = description) },
+ trailingContent = {
+ when {
+ hasIcon -> icon()
+ hasSwitch -> Switch(
+ checked = checked,
+ onCheckedChange = null,
+ )
+ }
+ }
+ )
+}
+
+@Composable
+fun SettingsCategoryText(category: String) {
+ Text(
+ text = category,
+ textAlign = TextAlign.Center,
+ color = MaterialTheme.colorScheme.primary,
+ modifier = Modifier.padding(8.dp),
+ style = typography.bodyMedium,
+ fontWeight = FontWeight.Bold
+ )
+}
\ No newline at end of file
diff --git a/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/StartupScreen.kt b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/StartupScreen.kt
new file mode 100644
index 00000000..03743148
--- /dev/null
+++ b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/StartupScreen.kt
@@ -0,0 +1,103 @@
+package dev.soupslurpr.appverifier.ui
+
+import androidx.compose.foundation.Image
+import androidx.compose.foundation.background
+import androidx.compose.foundation.layout.Arrangement
+import androidx.compose.foundation.layout.Box
+import androidx.compose.foundation.layout.Column
+import androidx.compose.foundation.layout.Spacer
+import androidx.compose.foundation.layout.fillMaxSize
+import androidx.compose.foundation.layout.fillMaxWidth
+import androidx.compose.foundation.layout.padding
+import androidx.compose.foundation.layout.requiredSize
+import androidx.compose.foundation.layout.size
+import androidx.compose.foundation.layout.width
+import androidx.compose.foundation.rememberScrollState
+import androidx.compose.foundation.shape.CircleShape
+import androidx.compose.foundation.verticalScroll
+import androidx.compose.material.icons.Icons
+import androidx.compose.material.icons.filled.List
+import androidx.compose.material.icons.filled.Settings
+import androidx.compose.material3.FilledTonalButton
+import androidx.compose.material3.Icon
+import androidx.compose.material3.MaterialTheme.typography
+import androidx.compose.material3.Text
+import androidx.compose.runtime.Composable
+import androidx.compose.runtime.LaunchedEffect
+import androidx.compose.ui.Alignment
+import androidx.compose.ui.Modifier
+import androidx.compose.ui.draw.clip
+import androidx.compose.ui.res.colorResource
+import androidx.compose.ui.res.painterResource
+import androidx.compose.ui.res.stringResource
+import androidx.compose.ui.text.style.TextAlign
+import androidx.compose.ui.unit.dp
+import dev.soupslurpr.appverifier.R
+
+@Composable
+fun StartupScreen(
+ modifier: Modifier,
+ splashMessage: String,
+ onSettingsButtonClicked: () -> Unit,
+ onAppListButtonClicked: () -> Unit,
+ verifyAppViewModel: VerifyAppViewModel,
+) {
+ // clear VerifyAppUiState when exiting VerifyAppScreen and going back to AppListScreen.
+ LaunchedEffect(key1 = Unit) {
+ verifyAppViewModel.clearUiState()
+ }
+
+ Column(
+ modifier = modifier
+ .padding(16.dp)
+ .fillMaxSize()
+ .verticalScroll(rememberScrollState()),
+ horizontalAlignment = Alignment.CenterHorizontally,
+ verticalArrangement = Arrangement.spacedBy(16.dp)
+ ) {
+ Box(
+ contentAlignment = Alignment.Center,
+ modifier = Modifier
+ .size(200.dp)
+ .clip(CircleShape)
+ .background(colorResource(id = R.color.ic_launcher_background))
+ ) {
+ Image(
+ painter = painterResource(R.drawable.ic_launcher_foreground),
+ contentDescription = null,
+ modifier = modifier.requiredSize(300.dp)
+ )
+ }
+ Text(
+ text = stringResource(R.string.welcome),
+ style = typography.headlineLarge
+ )
+ Text(
+ text = splashMessage,
+ style = typography.bodySmall,
+ textAlign = TextAlign.Center
+ )
+ FilledTonalButton(
+ modifier = modifier.fillMaxWidth(),
+ onClick = { onAppListButtonClicked() }
+ ) {
+ Icon(
+ imageVector = Icons.Filled.List,
+ contentDescription = null
+ )
+ Spacer(modifier = modifier.width(8.dp))
+ Text("App List")
+ }
+ FilledTonalButton(
+ modifier = modifier.fillMaxWidth(),
+ onClick = { onSettingsButtonClicked() }
+ ) {
+ Icon(
+ imageVector = Icons.Filled.Settings,
+ contentDescription = null
+ )
+ Spacer(modifier = modifier.width(8.dp))
+ Text(stringResource(R.string.settings))
+ }
+ }
+}
diff --git a/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/VerifyAppScreen.kt b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/VerifyAppScreen.kt
new file mode 100644
index 00000000..06d4f2d7
--- /dev/null
+++ b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/VerifyAppScreen.kt
@@ -0,0 +1,173 @@
+package dev.soupslurpr.appverifier.ui
+
+import android.app.ActivityOptions
+import android.content.Intent
+import android.graphics.drawable.Drawable
+import androidx.compose.foundation.Image
+import androidx.compose.foundation.layout.Arrangement
+import androidx.compose.foundation.layout.Column
+import androidx.compose.foundation.layout.Row
+import androidx.compose.foundation.layout.Spacer
+import androidx.compose.foundation.layout.fillMaxSize
+import androidx.compose.foundation.layout.fillMaxWidth
+import androidx.compose.foundation.layout.padding
+import androidx.compose.foundation.layout.size
+import androidx.compose.foundation.layout.width
+import androidx.compose.foundation.rememberScrollState
+import androidx.compose.foundation.verticalScroll
+import androidx.compose.material.icons.Icons
+import androidx.compose.material.icons.filled.Info
+import androidx.compose.material3.AlertDialog
+import androidx.compose.material3.Button
+import androidx.compose.material3.FilledTonalButton
+import androidx.compose.material3.Icon
+import androidx.compose.material3.MaterialTheme.typography
+import androidx.compose.material3.Text
+import androidx.compose.material3.TextButton
+import androidx.compose.runtime.Composable
+import androidx.compose.runtime.getValue
+import androidx.compose.runtime.mutableStateOf
+import androidx.compose.runtime.saveable.rememberSaveable
+import androidx.compose.runtime.setValue
+import androidx.compose.ui.Alignment
+import androidx.compose.ui.Modifier
+import androidx.compose.ui.platform.LocalClipboardManager
+import androidx.compose.ui.platform.LocalContext
+import androidx.compose.ui.res.stringResource
+import androidx.compose.ui.text.font.FontFamily
+import androidx.compose.ui.unit.dp
+import androidx.core.content.ContextCompat.startActivity
+import com.google.accompanist.drawablepainter.rememberDrawablePainter
+import dev.soupslurpr.appverifier.data.VerificationStatus
+
+@Composable
+fun VerifyAppScreen(
+ icon: Drawable?,
+ name: String,
+ packageName: String,
+ hash: String,
+ verificationStatus: VerificationStatus,
+ appNotFound: Boolean,
+ onVerifyFromClipboard: (String) -> Unit,
+ invalidFormat: Boolean,
+) {
+ val context = LocalContext.current
+
+ val clipboardManager = LocalClipboardManager.current
+
+ val verticalScroll = rememberScrollState()
+
+ var showMoreInfoAboutVerificationStatusDialog by rememberSaveable { mutableStateOf(false) }
+
+ Column(
+ modifier = Modifier
+ .fillMaxSize()
+ .padding(horizontal = 16.dp)
+ .verticalScroll(verticalScroll),
+ verticalArrangement = Arrangement.Center,
+ horizontalAlignment = Alignment.CenterHorizontally,
+ ) {
+ if (appNotFound) {
+ Text("APP NOT INSTALLED")
+ Text(
+ "The package name provided does not correspond to any installed user app." +
+ "\nPlease note system apps are not included in the search."
+ )
+ } else if (invalidFormat) {
+ Text("INVALID FORMAT")
+ Text(
+ "The provided text doesn't seem to be in the correct format. Please make sure it is like the " +
+ "following:\n\ncom.example.app\n96:C0:2C:55:75:5C:17:1C:68:13:70:29:3B:37:11:2B:4A:5D:F7:B9:82:C2:C5:58:05:4C:45:51:AD:F5:50:DC"
+ )
+ } else {
+ if (icon != null) {
+ Image(
+ rememberDrawablePainter(drawable = icon),
+ null,
+ Modifier.size(150.dp),
+ )
+ }
+ Text(
+ text = name,
+ style = typography.titleLarge
+ )
+ Text(text = packageName)
+ Text(
+ text = hash,
+ fontFamily = FontFamily.Monospace
+ )
+ Button(onClick = {
+ val sendIntent = Intent().apply {
+ action = Intent.ACTION_SEND
+ putExtra(Intent.EXTRA_TEXT, "$packageName\n$hash")
+ type = "plain/text"
+ }
+
+ val shareIntent = Intent.createChooser(
+ sendIntent,
+ null,
+ )
+
+ startActivity(context, shareIntent, ActivityOptions.makeBasic().toBundle())
+ }) {
+ Text("Share/Copy Verification Info")
+ }
+ Button(onClick = {
+ if (clipboardManager.hasText()) {
+ onVerifyFromClipboard(clipboardManager.getText()!!.text)
+ } else {
+
+ }
+ }) {
+ Text("Verify from clipboard")
+ }
+ Text(
+ "Verification Status:",
+ )
+ Row {
+ FilledTonalButton(
+ onClick = { showMoreInfoAboutVerificationStatusDialog = true },
+ ) {
+ Text(
+ verificationStatus.simpleVerificationStatus.name,
+ style = typography.headlineLarge
+ )
+ Spacer(Modifier.width(8.dp))
+ Icon(
+ Icons.Default.Info,
+ "More info about verification status",
+ tint = verificationStatus.simpleVerificationStatus.color,
+ )
+ }
+ }
+ }
+ }
+
+ if (showMoreInfoAboutVerificationStatusDialog) {
+ AlertDialog(
+ onDismissRequest = { showMoreInfoAboutVerificationStatusDialog = false },
+ confirmButton = {
+ TextButton(
+ { showMoreInfoAboutVerificationStatusDialog = false }
+ ) {
+ Text(stringResource(id = android.R.string.ok))
+ }
+ },
+ title = {
+ Column(
+ modifier = Modifier.fillMaxWidth(),
+ horizontalAlignment = Alignment.CenterHorizontally,
+ ) {
+ Text(
+ verificationStatus.name,
+ style = typography.headlineSmall,
+ color = verificationStatus.simpleVerificationStatus.color,
+ )
+ }
+ },
+ text = {
+ Text(verificationStatus.info)
+ }
+ )
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/VerifyAppViewModel.kt b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/VerifyAppViewModel.kt
new file mode 100644
index 00000000..395448b5
--- /dev/null
+++ b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/VerifyAppViewModel.kt
@@ -0,0 +1,179 @@
+package dev.soupslurpr.appverifier.ui
+
+import android.content.pm.PackageInfo
+import android.content.pm.PackageManager
+import android.graphics.drawable.Drawable
+import androidx.lifecycle.ViewModel
+import dev.soupslurpr.appverifier.data.VerificationStatus
+import dev.soupslurpr.appverifier.data.VerifyAppUiState
+import kotlinx.coroutines.flow.MutableStateFlow
+import kotlinx.coroutines.flow.StateFlow
+import kotlinx.coroutines.flow.asStateFlow
+import java.security.MessageDigest
+
+class VerifyAppViewModel : ViewModel() {
+
+ /**
+ * App verification info
+ */
+ private val _uiState = MutableStateFlow(VerifyAppUiState())
+ val uiState: StateFlow = _uiState.asStateFlow()
+
+ fun setAppVerificationInfo(name: String, packageName: String, hash: String) {
+ _uiState.value.name.value = name
+ _uiState.value.packageName.value = packageName
+ _uiState.value.hash.value = hash
+ }
+
+ fun clearUiState() {
+ _uiState.value = VerifyAppUiState()
+ }
+
+ fun setAppIcon(icon: Drawable) {
+ _uiState.value.icon.value = icon
+ }
+
+ fun verifyFromText(text: String) {
+ _uiState.value.verificationStatus.value = parseTextToVerificationStatus(text)
+ }
+
+ private fun parseTextToVerificationStatus(text: String): VerificationStatus {
+ val trimmedText = text.trim()
+ val lines = trimmedText.lines()
+
+ return if (lines.size == 1) {
+ val line0 = lines[0].trim()
+
+ if (lines[0].contains(' ') && (lines[0].trim('"').split(' ').size == 2)) {
+ val split = lines[0].trim('"').split(' ')
+ val packageName = split[0].trim()
+ val hash = split[1].trim()
+
+ parseTextToVerificationStatus("$packageName\n$hash")
+ } else if (line0 == uiState.value.packageName.value) {
+ VerificationStatus.PKG_MATCH_BUT_SIG_HASH_NOT_GIVEN
+ } else if ((lines[0].trim() == uiState.value.hash.value) || (lines[0].trim().iterator().run {
+ var convertedHash = ""
+ this.withIndex().forEach {
+ convertedHash += it.value
+ if (it.index % 2 != 0 && (it.index != lines[0].trim().length.dec())) {
+ convertedHash += ":"
+ }
+ }
+ return@run convertedHash.uppercase() == uiState.value.hash.value
+ })) {
+ VerificationStatus.PKG_NOT_GIVEN_BUT_SIG_HASH_MATCH
+ } else if (
+ (lines[0].trim().contains(uiState.value.packageName.value))
+ && (lines[0].trim().contains(uiState.value.hash.value))
+ ) {
+ VerificationStatus.PKG_CONTAINS_AND_SIG_HASH_CONTAINS
+ } else {
+ VerificationStatus.NOMATCH
+ }
+ } else if (lines.size == 2) {
+ val isLine0EqualToPackageName = lines[0].trim() == uiState.value.packageName.value
+ val isLine1EqualToSigHash = lines[1].trim() == uiState.value.hash.value
+ val isLine0ContainPackageName = lines[0].trim().contains(uiState.value.packageName.value)
+ val isLine1ContainSigHash = lines[1].trim().contains(uiState.value.hash.value)
+
+ if ((lines[0].trim() + ":" + lines[1].trim()) == uiState.value.hash.value) {
+ VerificationStatus.PKG_NOT_GIVEN_BUT_SIG_HASH_MATCH
+ } else if (isLine0EqualToPackageName && isLine1EqualToSigHash) {
+ VerificationStatus.MATCH
+ } else if (isLine0EqualToPackageName && isLine1ContainSigHash) {
+ VerificationStatus.PKG_MATCH_BUT_SIG_HASH_CONTAINS
+ } else if ((!isLine0EqualToPackageName && isLine0ContainPackageName) && isLine1EqualToSigHash) {
+ VerificationStatus.PKG_CONTAINS_BUT_SIG_HASH_MATCH
+ } else if ((isLine0ContainPackageName) && (isLine1ContainSigHash)) {
+ VerificationStatus.PKG_CONTAINS_AND_SIG_HASH_CONTAINS
+ } else if ((!trimmedText.contains(uiState.value.packageName.value)
+ && isLine1EqualToSigHash)
+ ) {
+ VerificationStatus.PKG_NOMATCH_BUT_SIG_HASH_MATCH
+ } else if (!trimmedText.contains(uiState.value.packageName.value)
+ && trimmedText.contains(uiState.value.hash.value)
+ ) {
+ VerificationStatus.PKG_NOMATCH_BUT_SIG_HASH_CONTAINS
+ } else if (isLine0EqualToPackageName && !trimmedText.contains(uiState.value.hash.value)) {
+ VerificationStatus.PKG_MATCH_BUT_SIG_HASH_NOMATCH
+ } else if (trimmedText.contains(uiState.value.packageName.value)
+ && !trimmedText.contains(uiState.value.hash.value)
+ ) {
+ VerificationStatus.PKG_CONTAINS_BUT_SIG_HASH_NOMATCH
+ } else {
+ VerificationStatus.NOMATCH
+ }
+ } else {
+ if ((trimmedText.contains(uiState.value.packageName.value))
+ && (trimmedText.contains(uiState.value.hash.value))
+ ) {
+ VerificationStatus.PKG_CONTAINS_AND_SIG_HASH_CONTAINS
+ } else if ((!trimmedText.contains(uiState.value.packageName.value))
+ && (trimmedText.contains(uiState.value.hash.value))
+ ) {
+ VerificationStatus.PKG_NOMATCH_BUT_SIG_HASH_CONTAINS
+ } else if ((trimmedText.contains(uiState.value.packageName.value))
+ && (!trimmedText.contains(uiState.value.hash.value))
+ ) {
+ VerificationStatus.PKG_CONTAINS_BUT_SIG_HASH_NOMATCH
+ } else {
+ VerificationStatus.NOMATCH
+ }
+ }
+ }
+
+ fun getHashHexFromPackageInfo(packageInfo: PackageInfo): String {
+ val signingInfo = packageInfo.signingInfo
+ val signatures = if (signingInfo.hasMultipleSigners()) {
+ signingInfo.apkContentsSigners
+ } else {
+ signingInfo.signingCertificateHistory
+ }
+
+ val firstCertificate = signatures.first().toByteArray()
+
+ val digest = MessageDigest.getInstance("SHA-256")
+ val hashByteArray = digest.digest(firstCertificate)
+
+ return hashByteArray.joinToString(":") { "%02x".format(it) }.uppercase()
+ }
+
+ fun findAndSetAppVerificationInfoFromPackageName(packageName: String, packageManager: PackageManager) {
+ val systemPackages = packageManager.getInstalledPackages(PackageManager.MATCH_SYSTEM_ONLY)
+
+ val userInstalledPackages = packageManager.getInstalledPackages(0)
+
+ userInstalledPackages.removeIf { userInstalledPackage ->
+ userInstalledPackage.packageName == systemPackages.firstOrNull {
+ it.packageName == userInstalledPackage.packageName
+ }?.packageName
+ }
+
+ userInstalledPackages.find { packageInfo: PackageInfo? -> packageInfo?.packageName == packageName }.run {
+ if (this != null) {
+ val packageInfo =
+ packageManager.getPackageInfo(this.packageName, PackageManager.GET_SIGNING_CERTIFICATES)
+
+ val hashHex = getHashHexFromPackageInfo(packageInfo)
+
+ setAppVerificationInfo(
+ packageManager.getApplicationLabel(packageInfo.applicationInfo).toString(),
+ packageInfo.packageName,
+ hashHex,
+ )
+ setAppIcon(packageManager.getApplicationIcon(packageInfo.applicationInfo))
+ } else {
+ setAppNotFound(true)
+ }
+ }
+ }
+
+ fun setAppNotFound(b: Boolean) {
+ _uiState.value.appNotFound.value = b
+ }
+
+ fun setInvalidFormat(b: Boolean) {
+ _uiState.value.invalidFormat.value = b
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/theme/Color.kt b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/theme/Color.kt
new file mode 100644
index 00000000..5a359e88
--- /dev/null
+++ b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/theme/Color.kt
@@ -0,0 +1,11 @@
+package dev.soupslurpr.appverifier.ui.theme
+
+import androidx.compose.ui.graphics.Color
+
+val Purple80 = Color(0xFFD0BCFF)
+val PurpleGrey80 = Color(0xFFCCC2DC)
+val Pink80 = Color(0xFFEFB8C8)
+
+val Purple40 = Color(0xFF6650a4)
+val PurpleGrey40 = Color(0xFF625b71)
+val Pink40 = Color(0xFF7D5260)
\ No newline at end of file
diff --git a/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/theme/Theme.kt b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/theme/Theme.kt
new file mode 100644
index 00000000..fdd48ea5
--- /dev/null
+++ b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/theme/Theme.kt
@@ -0,0 +1,93 @@
+package dev.soupslurpr.appverifier.ui.theme
+
+import android.os.Build
+import androidx.compose.foundation.isSystemInDarkTheme
+import androidx.compose.material3.MaterialTheme
+import androidx.compose.material3.darkColorScheme
+import androidx.compose.material3.dynamicDarkColorScheme
+import androidx.compose.material3.dynamicLightColorScheme
+import androidx.compose.material3.lightColorScheme
+import androidx.compose.runtime.Composable
+import androidx.compose.runtime.collectAsState
+import androidx.compose.runtime.getValue
+import androidx.compose.ui.graphics.Color
+import androidx.compose.ui.platform.LocalContext
+import dev.soupslurpr.appverifier.preferences.PreferencesViewModel
+
+/**
+ * Dark color scheme for devices < Android 12, which do not support dynamic color.
+ */
+private val DarkColorScheme = darkColorScheme(
+ primary = Purple80,
+ secondary = PurpleGrey80,
+ tertiary = Pink80,
+)
+
+/**
+ * Light color scheme for devices < Android 12, which do not support dynamic color.
+ */
+private val LightColorScheme = lightColorScheme(
+ primary = Purple40,
+ secondary = PurpleGrey40,
+ tertiary = Pink40,
+
+ /* Other default colors to override
+ background = Color(0xFFFFFBFE),
+ surface = Color(0xFFFFFBFE),
+ onPrimary = Color.White,
+ onSecondary = Color.White,
+ onTertiary = Color.White,
+ onBackground = Color(0xFF1C1B1F),
+ onSurface = Color(0xFF1C1B1F),
+ */
+)
+
+@Composable
+fun AppVerifierTheme(
+ darkTheme: Boolean = isSystemInDarkTheme(),
+ // Dynamic color is available on Android 12+
+ dynamicColor: Boolean = true,
+ preferencesViewModel: PreferencesViewModel,
+ content: @Composable () -> Unit
+) {
+ val settingsUiState by preferencesViewModel.uiState.collectAsState()
+
+ val pitchBlackBackground = settingsUiState.pitchBlackBackground.second.value and darkTheme
+
+ val colorScheme = when {
+ dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> {
+ val context = LocalContext.current
+ if (darkTheme) {
+ if (pitchBlackBackground) {
+ dynamicDarkColorScheme(context).copy(
+ background = Color.Black,
+ surface = Color.Black,
+ )
+ } else {
+ dynamicDarkColorScheme(context)
+ }
+ } else {
+ dynamicLightColorScheme(context)
+ }
+ }
+
+ darkTheme -> {
+ if (pitchBlackBackground) {
+ DarkColorScheme.copy(
+ background = Color.Black,
+ surface = Color.Black
+ )
+ } else {
+ DarkColorScheme
+ }
+ }
+
+ else -> LightColorScheme
+ }
+
+ MaterialTheme(
+ colorScheme = colorScheme,
+ typography = Typography,
+ content = content
+ )
+}
\ No newline at end of file
diff --git a/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/theme/Type.kt b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/theme/Type.kt
new file mode 100644
index 00000000..e6d49bba
--- /dev/null
+++ b/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/theme/Type.kt
@@ -0,0 +1,34 @@
+package dev.soupslurpr.appverifier.ui.theme
+
+import androidx.compose.material3.Typography
+import androidx.compose.ui.text.TextStyle
+import androidx.compose.ui.text.font.FontFamily
+import androidx.compose.ui.text.font.FontWeight
+import androidx.compose.ui.unit.sp
+
+// Set of Material typography styles to start with
+val Typography = Typography(
+ bodyLarge = TextStyle(
+ fontFamily = FontFamily.Default,
+ fontWeight = FontWeight.Normal,
+ fontSize = 16.sp,
+ lineHeight = 24.sp,
+ letterSpacing = 0.5.sp
+ )
+ /* Other default text styles to override
+ titleLarge = TextStyle(
+ fontFamily = FontFamily.Default,
+ fontWeight = FontWeight.Normal,
+ fontSize = 22.sp,
+ lineHeight = 28.sp,
+ letterSpacing = 0.sp
+ ),
+ labelSmall = TextStyle(
+ fontFamily = FontFamily.Default,
+ fontWeight = FontWeight.Medium,
+ fontSize = 11.sp,
+ lineHeight = 16.sp,
+ letterSpacing = 0.5.sp
+ )
+ */
+)
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml
new file mode 100644
index 00000000..c2a19718
--- /dev/null
+++ b/app/src/main/res/drawable/ic_launcher_foreground.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable/ic_launcher_monochrome.xml b/app/src/main/res/drawable/ic_launcher_monochrome.xml
new file mode 100644
index 00000000..9771f943
--- /dev/null
+++ b/app/src/main/res/drawable/ic_launcher_monochrome.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 00000000..f30783b2
--- /dev/null
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 00000000..ac94b34f
--- /dev/null
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/resources.properties b/app/src/main/res/resources.properties
new file mode 100644
index 00000000..d5a3ddc9
--- /dev/null
+++ b/app/src/main/res/resources.properties
@@ -0,0 +1 @@
+unqualifiedResLocale=en-US
\ No newline at end of file
diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml
new file mode 100644
index 00000000..25bfa8e6
--- /dev/null
+++ b/app/src/main/res/values-night/themes.xml
@@ -0,0 +1,16 @@
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
new file mode 100644
index 00000000..f8c6127d
--- /dev/null
+++ b/app/src/main/res/values/colors.xml
@@ -0,0 +1,10 @@
+
+
+ #FFBB86FC
+ #FF6200EE
+ #FF3700B3
+ #FF03DAC5
+ #FF018786
+ #FF000000
+ #FFFFFFFF
+
\ No newline at end of file
diff --git a/app/src/main/res/values/ic_launcher_background.xml b/app/src/main/res/values/ic_launcher_background.xml
new file mode 100644
index 00000000..0d231235
--- /dev/null
+++ b/app/src/main/res/values/ic_launcher_background.xml
@@ -0,0 +1,4 @@
+
+
+ #9c169c
+
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
new file mode 100644
index 00000000..5163da9a
--- /dev/null
+++ b/app/src/main/res/values/strings.xml
@@ -0,0 +1,32 @@
+
+ AppVerifier
+ Settings
+ Back
+ Welcome to AppVerifier!
+ Source code
+ View AppVerifier\'s source code on the GitHub website in your web browser
+ Privacy policy
+ View AppVerifier\'s privacy policy in app
+ License
+ Privacy policy
+ AppVerifier\'s License
+ View AppVerifier\'s License in app
+ Credits
+ Credits
+ View open source licenses of code that AppVerifier uses in app
+ Pitch black background
+ Replaces background with pitch black background when dark theme is on
+ About
+ Theme
+ AppVerifier\'s Website
+ Open AppVerifier\'s website in your web browser
+ Review AppVerifier\'s privacy policy and license (scroll down)
+ AppVerifier privacy policy\n\nThis app makes no internet
+ connections, and does not store any data other than preferences. This app can see which apps are installed on your device for the purpose of viewing and verifying their signing certificate\'s validity. You can share and copy the package name and hash of an app\'s signing certificate to other apps using the share/copy button and also verify the package name and hash by pasting from your clipboard or sharing the verification info received from others to this app. The clipboard content is not stored and is only used to calculate if the given package name and hash matches with the one you are verifying against. The content shared to this app is not stored and is only used to calculate if the given package name and hash matches with the one you are verifying against.\n\nAppVerifier\'s privacy policy may be updated from time to time. When it does, you will be prompted to accept the new policy upon opening the app.\n\nLast updated: December 24, 2023.
+ ISC License\n\nCopyright (c) 2024 soupslurpr\n\nPermission to
+ use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.
+ By checking the checkbox and continuing, you agree to AppVerifier\'s privacy policy and license, which are shown above.
+ Continue
+ Verify App
+ App List
+
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
new file mode 100644
index 00000000..5bfcb8d9
--- /dev/null
+++ b/app/src/main/res/values/themes.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/xml/backup_rules.xml b/app/src/main/res/xml/backup_rules.xml
new file mode 100644
index 00000000..fa0f996d
--- /dev/null
+++ b/app/src/main/res/xml/backup_rules.xml
@@ -0,0 +1,13 @@
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/xml/data_extraction_rules.xml b/app/src/main/res/xml/data_extraction_rules.xml
new file mode 100644
index 00000000..9ee9997b
--- /dev/null
+++ b/app/src/main/res/xml/data_extraction_rules.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/build.gradle.kts b/build.gradle.kts
new file mode 100644
index 00000000..2d6d9d04
--- /dev/null
+++ b/build.gradle.kts
@@ -0,0 +1,5 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+plugins {
+ id("com.android.application") version "8.2.0" apply false
+ id("org.jetbrains.kotlin.android") version "1.9.21" apply false
+}
\ No newline at end of file
diff --git a/gradle.properties b/gradle.properties
new file mode 100644
index 00000000..3c5031eb
--- /dev/null
+++ b/gradle.properties
@@ -0,0 +1,23 @@
+# Project-wide Gradle settings.
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app's APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
+# Kotlin code style for this project: "official" or "obsolete":
+kotlin.code.style=official
+# Enables namespacing of each library's R class so that its R class includes only the
+# resources declared in the library itself and none from the library's dependencies,
+# thereby reducing the size of the R class for that library
+android.nonTransitiveRClass=true
\ No newline at end of file
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..e708b1c0
Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..a5952066
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,5 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/gradlew b/gradlew
new file mode 100644
index 00000000..4f906e0c
--- /dev/null
+++ b/gradlew
@@ -0,0 +1,185 @@
+#!/usr/bin/env sh
+
+#
+# Copyright 2015 the original author or authors.
+#
+# 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.
+#
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn () {
+ echo "$*"
+}
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=`expr $i + 1`
+ done
+ case $i in
+ 0) set -- ;;
+ 1) set -- "$args0" ;;
+ 2) set -- "$args0" "$args1" ;;
+ 3) set -- "$args0" "$args1" "$args2" ;;
+ 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=`save "$@"`
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+exec "$JAVACMD" "$@"
diff --git a/gradlew.bat b/gradlew.bat
new file mode 100644
index 00000000..107acd32
--- /dev/null
+++ b/gradlew.bat
@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/ic_launcher.svg b/ic_launcher.svg
new file mode 100644
index 00000000..58d5979a
--- /dev/null
+++ b/ic_launcher.svg
@@ -0,0 +1,46 @@
+
+
+
diff --git a/mask-icon.png b/mask-icon.png
new file mode 100644
index 00000000..0a55da63
Binary files /dev/null and b/mask-icon.png differ
diff --git a/mask-icon.svg b/mask-icon.svg
new file mode 100644
index 00000000..cbec7595
--- /dev/null
+++ b/mask-icon.svg
@@ -0,0 +1,50 @@
+
+
+
diff --git a/settings.gradle.kts b/settings.gradle.kts
new file mode 100644
index 00000000..207a14bf
--- /dev/null
+++ b/settings.gradle.kts
@@ -0,0 +1,17 @@
+pluginManagement {
+ repositories {
+ google()
+ mavenCentral()
+ gradlePluginPortal()
+ }
+}
+dependencyResolutionManagement {
+ repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.name = "AppVerifier"
+include(":app")