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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion tests/GosCompatTests/GosCompatCheckApp/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,36 @@ cc_library_shared {
stl: "none",
}

cc_library_shared {
name: "libgoscompat_dmabuf_release_jni",
srcs: ["jni/dmabuf_release_jni.cpp"],
// The helper app is SDK-built, so the JNI dependency needs a matching SDK variant.
sdk_version: "current",
header_libs: ["jni_headers"],
shared_libs: [
"libEGL",
"libGLESv2",
"liblog",
],
cflags: [
"-Wall",
"-Wextra",
"-Werror",
],
stl: "c++_static",
}

android_test_helper_app {
name: "GosCompatCheckApp",
srcs: [
"src/**/*.java",
"src/**/*.kt",
],
manifest: "AndroidManifest.xml",
jni_libs: ["libgoscompat_maps_scan_jni"],
jni_libs: [
"libgoscompat_maps_scan_jni",
"libgoscompat_dmabuf_release_jni",
],
// Keep the JNI library inside the standalone helper APK loaded by Tradefed and manual installs.
use_embedded_native_libs: true,
// Build both ABIs so the helper can run under either app process ABI in multi-ABI test runs.
Expand Down
22 changes: 22 additions & 0 deletions tests/GosCompatTests/GosCompatCheckApp/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,28 @@
android:process=":maps_scan"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />

<!-- Shell holds DUMP; gate this exported WebView startup trigger to shell-driven tests. -->
<activity
android:name=".webviewua.WebViewUaStartupActivity"
android:exported="true"
android:permission="android.permission.DUMP"
android:process=":webview_ua_startup"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />

<!-- Shell holds DUMP; gate this exported kernel crash reproducer to shell-driven tests. -->
<activity
android:name=".dmabuf.DmaBufReleaseActivity"
android:exported="true"
android:permission="android.permission.DUMP"
android:process=":dmabuf_release"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />

<activity
android:name=".dmabuf.DmaBufReleaseManualActivity"
android:exported="false"
android:process=":dmabuf_release"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />

<provider
android:name=".MapsScanProvider"
android:authorities="app.grapheneos.goscompat.checks.maps_scan_provider"
Expand Down
Loading