Successfully modified file: /home/Messier82/projects/service-book/app/src/androidTest/java/com/yorvana/screenshots/StoreScreenshotBase.kt (1 replacements). Here is the updated code: ... "Failed to capture store screenshot at $outputPath. Shell output: $result" } } private fun outputBucket(): String { val metrics = InstrumentationRegistry.getInstrumentation().targetContext.resources.displayMetrics val width = metrics.widthPixels val height = metrics.heightPixels return when { // Pixel Tablet (GMD) is 1600x2560 or 2560x1600 width >= 1600 || height >= 2560 -> "tablet-10" // Nexus 7 (GMD) is 1200x1920 width >= 1200 || height >= 1920 -> "tablet-7" // Pixel 6 (GMD) is 1080x2400 else -> "phone" } } private fun copyAssetDirectory( assetPath: String, ...