storebound scan: offline rejection-risk scan of the project itself
Detects the stack (native iOS / Android, React Native, Expo, Capacitor, Cordova, Flutter, Unity, Godot) and the SDKs from a maintained table with versions, file:line and each vendor's disclosure page, then reports App Store and Google Play rejection risks with guideline, evidence, fix, severity and skill: 2.1(a) demo account and placeholder text, 5.1.1(v) account deletion, 4.8 login services, 3.1.1 restore and outside payments, 3.1.2 subscription info, 5.1.2(i) ATT, purpose strings, privacy link, privacy manifest, 2.3.10, 2.3.7, 2.3.8, 4.2 web wrappers, 2.5.1, 2.5.5, ATS, export compliance, 1.3 kids ads, review prompts, privacy labels vs SDKs; Play target SDK 36, delete-account URL, App access, foreground services, exact alarms, QUERY_ALL_PACKAGES, SMS / call log, com.example package name. Proposes Data safety / App Privacy / ATT / privacy manifest answers (detected file:line or ask owner) as a diff against the config; --write adds only the detected ones. scan.ignore records owner-accepted findings. MCP tool scan (read-only), validate includes open findings, desktop Checks tab shows them. Fixtures for iOS, Android, Capacitor, Unity, Flutter, clean and teaser.
This commit is contained in:
parent
02d90de77a
commit
00a38cd305
109 changed files with 3103 additions and 31 deletions
5
tests/fixtures/scan/android/README.md
vendored
Normal file
5
tests/fixtures/scan/android/README.md
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# android fixture
|
||||
|
||||
A made-up Kotlin budget app with planted Google Play problems for `storebound scan` tests: targetSdk 34, the
|
||||
reserved com.example package name, QUERY_ALL_PACKAGES, READ_SMS, USE_EXACT_ALARM, a foreground service without a
|
||||
type, sign-up without a delete-account URL, and AdMob not in the Data safety answers. Not a buildable project.
|
||||
23
tests/fixtures/scan/android/app/build.gradle.kts
vendored
Normal file
23
tests/fixtures/scan/android/app/build.gradle.kts
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
plugins {
|
||||
id("com.android.application")
|
||||
id("org.jetbrains.kotlin.android")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.example.budget"
|
||||
compileSdk = 34
|
||||
defaultConfig {
|
||||
applicationId = "com.example.budget"
|
||||
minSdk = 24
|
||||
targetSdk = 34
|
||||
versionCode = 12
|
||||
versionName = "1.4.0"
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(platform(libs.firebase.bom))
|
||||
implementation(libs.firebase.auth)
|
||||
implementation(libs.play.services.ads)
|
||||
implementation("androidx.work:work-runtime-ktx:2.9.1")
|
||||
}
|
||||
18
tests/fixtures/scan/android/app/src/main/AndroidManifest.xml
vendored
Normal file
18
tests/fixtures/scan/android/app/src/main/AndroidManifest.xml
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
|
||||
<uses-permission android:name="android.permission.READ_SMS" />
|
||||
<uses-permission android:name="android.permission.USE_EXACT_ALARM" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
|
||||
<application android:label="Budget" android:icon="@mipmap/ic_launcher">
|
||||
<activity android:name=".MainActivity" android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<service android:name=".SyncService" android:exported="false" />
|
||||
</application>
|
||||
</manifest>
|
||||
9
tests/fixtures/scan/android/app/src/main/java/com/example/budget/AuthRepository.kt
vendored
Normal file
9
tests/fixtures/scan/android/app/src/main/java/com/example/budget/AuthRepository.kt
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
package com.example.budget
|
||||
|
||||
import com.google.firebase.auth.FirebaseAuth
|
||||
|
||||
class AuthRepository(private val auth: FirebaseAuth = FirebaseAuth.getInstance()) {
|
||||
fun signUp(email: String, password: String) = auth.createUserWithEmailAndPassword(email, password)
|
||||
fun signIn(email: String, password: String) = auth.signInWithEmailAndPassword(email, password)
|
||||
fun deleteAccount() = auth.currentUser?.delete()
|
||||
}
|
||||
8
tests/fixtures/scan/android/gradle/libs.versions.toml
vendored
Normal file
8
tests/fixtures/scan/android/gradle/libs.versions.toml
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[versions]
|
||||
ads = "23.3.0"
|
||||
firebaseBom = "33.4.0"
|
||||
|
||||
[libraries]
|
||||
play-services-ads = { module = "com.google.android.gms:play-services-ads", version.ref = "ads" }
|
||||
firebase-bom = { module = "com.google.firebase:firebase-bom", version.ref = "firebaseBom" }
|
||||
firebase-auth = { group = "com.google.firebase", name = "firebase-auth" }
|
||||
24
tests/fixtures/scan/android/storebound.config.ts
vendored
Normal file
24
tests/fixtures/scan/android/storebound.config.ts
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
// Fixture config (made up, example.com placeholders only).
|
||||
export default {
|
||||
app: {
|
||||
name: 'Budget',
|
||||
profile: 'app',
|
||||
privacyPolicyUrl: 'https://example.com/privacy',
|
||||
supportUrl: 'https://example.com/support',
|
||||
website: 'https://example.com',
|
||||
contactEmail: 'support@example.com',
|
||||
},
|
||||
accounts: { enabled: true, inApp: 'Settings > Account > Delete account' },
|
||||
reviewAccess: { signInRequired: false },
|
||||
languages: [{ id: 'en', play: 'en-US' }],
|
||||
play: { packageName: 'com.example.budget' },
|
||||
dataSafety: {
|
||||
collectsData: true,
|
||||
encryptedInTransit: true,
|
||||
deletionRequest: true,
|
||||
accountCreation: ['PSL_ACM_USER_ID_PASSWORD'],
|
||||
data: {
|
||||
PSL_EMAIL: { shared: false, collect: ['account'] },
|
||||
},
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue