diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml
index 7a69e8c..d18ad90 100644
--- a/.github/workflows/android-release.yml
+++ b/.github/workflows/android-release.yml
@@ -110,13 +110,19 @@ jobs:
fi
echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_OUTPUT
+ - name: Name APK for distribution
+ shell: bash
+ run: |
+ mv app/build/outputs/apk/release/app-release.apk \
+ "app/build/outputs/apk/release/paperize-${{ steps.get_version.outputs.VERSION_NAME }}.apk"
+
- name: Upload APK as a build artifact
# Archives the generated APK with a dynamic, versioned name. This artifact is essential
# for passing the APK file to the subsequent `release` job.
uses: actions/upload-artifact@v6
with:
name: paperize-${{ steps.get_version.outputs.VERSION_NAME }}
- path: app/build/outputs/apk/release/paperize-v*.apk
+ path: app/build/outputs/apk/release/paperize-${{ steps.get_version.outputs.VERSION_NAME }}.apk
if-no-files-found: error
# ===================================================================
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..d4cf9f4
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,44 @@
+# Changelog
+
+## 4.0.0
+
+Paperize 4 is a ground-up Android 12+ rewrite focused on reliable local wallpaper
+rotation, a modern Compose interface, and a hardware-accelerated live wallpaper mode.
+
+### Highlights
+
+- Added static and live wallpaper modes with independent home/lock configuration.
+- Added scaling, blur, darken, vignette, grayscale, adaptive brightness, parallax,
+ double-tap, shuffle, and interval controls.
+- Added an in-app **Change wallpaper now** action and Quick Settings support.
+- Added current-wallpaper previews that do not require restricted wallpaper access.
+- Removed the obsolete all-files storage permission; selected images and folders use
+ Android's scoped document access.
+- Added live progress while importing folders or individual wallpapers.
+- Reworked folder scanning around the Storage Access Framework and refreshes linked
+ folders whenever Paperize starts.
+
+### Fixes and reliability
+
+- Sets matching home and lock wallpapers atomically when their presentation settings
+ match, preventing one screen from diverging or reverting to the system default.
+- Renders against the largest built-in panel on foldables, even when changed while
+ the device is folded.
+- Correctly handles EXIF-rotated images without applying orientation twice.
+- Preserves distinct FIT, FILL, STRETCH, and NONE behavior on scrolling launchers.
+- Reduces bitmap memory pressure and fixes several bitmap, texture, queue, scheduling,
+ and transient-storage failure paths.
+- Speeds up large folder imports and queue/album refresh operations.
+- Repairs the release workflow so signed APKs are published with a versioned filename.
+
+### Dependencies
+
+- Updated the stable Jetpack Compose platform, Navigation, Kotlin serialization, and
+ reorderable components.
+- Updated the GitHub release action and made Renovate updates safer and less noisy.
+
+### Upgrade note
+
+Upgrading from Paperize 3 performs a one-time local database/settings reset because
+Paperize 4 uses a new storage model. Albums and schedules must be configured again.
+Users of the 4.0.0 alpha have already completed this migration and are not reset again.
diff --git a/README.md b/README.md
index 352bdd8..1e96621 100644
--- a/README.md
+++ b/README.md
@@ -72,8 +72,8 @@ Help translate Paperize into your language! Currently, most translations are pro
| Requirement | Version |
|-------------|---------|
| Java | 17 |
-| Android Gradle Plugin | 8.7.0+ |
-| Gradle | 9.2.1 |
+| Android Gradle Plugin | 9.1.0 |
+| Gradle | 9.4.1 |
| Minimum SDK | 31 (Android 12) |
| Target SDK | 36 |
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index 54f2a98..1f15178 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -32,7 +32,7 @@ android {
applicationId = "com.anthonyla.paperize"
minSdk = 31
targetSdk = 36
- versionCode = 50
+ versionCode = 51
versionName = "4.0.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index b211969..61f52ee 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -11,10 +11,6 @@
-
-
-
= Build.VERSION_CODES.R) {
- Environment.isExternalStorageManager()
- } else {
- // For older versions, we might check READ_EXTERNAL_STORAGE, but the app flow seems to rely on MANAGE for All Files Access
- // Stick to the existing logic which uses Environment.isExternalStorageManager()
- Environment.isExternalStorageManager()
- }
-
- }
}
diff --git a/app/src/main/java/com/anthonyla/paperize/presentation/common/navigation/NavigationGraph.kt b/app/src/main/java/com/anthonyla/paperize/presentation/common/navigation/NavigationGraph.kt
index 357fdef..728316e 100644
--- a/app/src/main/java/com/anthonyla/paperize/presentation/common/navigation/NavigationGraph.kt
+++ b/app/src/main/java/com/anthonyla/paperize/presentation/common/navigation/NavigationGraph.kt
@@ -24,7 +24,6 @@ import com.anthonyla.paperize.presentation.screens.privacy.PrivacyScreen
import com.anthonyla.paperize.presentation.screens.settings.SettingsScreen
import com.anthonyla.paperize.presentation.screens.sort.SortViewScreen
import com.anthonyla.paperize.presentation.screens.startup.StartupScreen
-import com.anthonyla.paperize.presentation.screens.storage.StoragePermissionScreen
import com.anthonyla.paperize.presentation.screens.wallpaper_view.WallpaperViewScreen
/**
@@ -47,7 +46,6 @@ fun NavigationGraph(
if (animate) { { enterTransitionBackward() } } else { { EnterTransition.None } }
val exitBackward: AnimatedContentTransitionScope.() -> ExitTransition =
if (animate) { { exitTransitionBackward() } } else { { ExitTransition.None } }
- // Helper functions for permission checks
val context = androidx.compose.ui.platform.LocalContext.current
NavHost(
@@ -87,10 +85,6 @@ fun NavigationGraph(
navController.navigate(NotificationRoute) {
popUpTo { inclusive = true }
}
- } else if (!PermissionUtil.hasStoragePermission()) {
- navController.navigate(StoragePermissionRoute) {
- popUpTo { inclusive = true }
- }
} else {
onFirstLaunchComplete()
navController.navigate(HomeRoute) {
@@ -109,33 +103,10 @@ fun NavigationGraph(
popExitTransition = exitBackward
) {
NotificationPermissionScreen(
- onContinue = {
- if (!PermissionUtil.hasStoragePermission()) {
- navController.navigate(StoragePermissionRoute) {
- popUpTo { inclusive = true }
- }
- } else {
- onFirstLaunchComplete()
- navController.navigate(HomeRoute) {
- popUpTo { inclusive = true }
- }
- }
- }
- )
- }
-
- // Storage permission screen
- composable(
- enterTransition = enterForward,
- exitTransition = exitForward,
- popEnterTransition = enterBackward,
- popExitTransition = exitBackward
- ) {
- StoragePermissionScreen(
onContinue = {
onFirstLaunchComplete()
navController.navigate(HomeRoute) {
- popUpTo { inclusive = true }
+ popUpTo { inclusive = true }
}
}
)
diff --git a/app/src/main/java/com/anthonyla/paperize/presentation/common/navigation/Routes.kt b/app/src/main/java/com/anthonyla/paperize/presentation/common/navigation/Routes.kt
index fb6bf83..08fdeef 100644
--- a/app/src/main/java/com/anthonyla/paperize/presentation/common/navigation/Routes.kt
+++ b/app/src/main/java/com/anthonyla/paperize/presentation/common/navigation/Routes.kt
@@ -12,9 +12,6 @@ object StartupRoute
@Serializable
object NotificationRoute
-@Serializable
-object StoragePermissionRoute
-
@Serializable
object WallpaperModeSelectionRoute
diff --git a/app/src/main/java/com/anthonyla/paperize/presentation/screens/storage/StoragePermissionScreen.kt b/app/src/main/java/com/anthonyla/paperize/presentation/screens/storage/StoragePermissionScreen.kt
deleted file mode 100644
index 66f53af..0000000
--- a/app/src/main/java/com/anthonyla/paperize/presentation/screens/storage/StoragePermissionScreen.kt
+++ /dev/null
@@ -1,157 +0,0 @@
-package com.anthonyla.paperize.presentation.screens.storage
-import com.anthonyla.paperize.presentation.theme.AppIconSizes
-import com.anthonyla.paperize.presentation.components.OnboardingLayout
-import com.anthonyla.paperize.core.util.PermissionUtil
-
-import android.content.Intent
-import android.provider.Settings
-import androidx.compose.foundation.layout.*
-import androidx.compose.material.icons.Icons
-import androidx.compose.material.icons.filled.Folder
-import androidx.compose.material3.*
-import androidx.compose.runtime.*
-import androidx.compose.ui.Alignment
-import androidx.lifecycle.DefaultLifecycleObserver
-import androidx.lifecycle.LifecycleOwner
-import androidx.lifecycle.compose.LocalLifecycleOwner
-import androidx.compose.ui.Modifier
-import androidx.compose.ui.platform.LocalContext
-import androidx.compose.ui.res.stringResource
-import androidx.compose.ui.text.style.TextAlign
-import androidx.core.net.toUri
-import com.anthonyla.paperize.R
-import androidx.compose.ui.unit.dp
-import com.anthonyla.paperize.presentation.theme.AppSpacing
-
-/**
- * Screen to request storage permission for wallpaper preview
- * Allows optional MANAGE_EXTERNAL_STORAGE permission to read current wallpaper
- */
-@Composable
-fun StoragePermissionScreen(
- onContinue: () -> Unit,
- modifier: Modifier = Modifier
-) {
- val context = LocalContext.current
- var permissionGranted by remember { mutableStateOf(PermissionUtil.hasStoragePermission()) }
- val lifecycleOwner = LocalLifecycleOwner.current
- // Check permission status on resume (when user returns from settings)
- DisposableEffect(lifecycleOwner) {
- val listener = object : DefaultLifecycleObserver {
- override fun onResume(owner: LifecycleOwner) {
- permissionGranted = PermissionUtil.hasStoragePermission()
- }
- }
- lifecycleOwner.lifecycle.addObserver(listener)
-
- onDispose {
- lifecycleOwner.lifecycle.removeObserver(listener)
- }
- }
-
- // Automatically continue when permission is granted
- LaunchedEffect(permissionGranted) {
- if (permissionGranted) {
- onContinue()
- }
- }
-
- OnboardingLayout(
- title = stringResource(R.string.storage_permission_title),
- modifier = modifier,
- iconContent = {
- Icon(
- imageVector = Icons.Default.Folder,
- contentDescription = null,
- modifier = Modifier.size(AppIconSizes.huge),
- tint = MaterialTheme.colorScheme.primary
- )
- },
- content = {
- Column(
- horizontalAlignment = Alignment.CenterHorizontally,
- verticalArrangement = Arrangement.spacedBy(AppSpacing.medium)
- ) {
- // Cleaner explanation card
- Card(
- modifier = Modifier.fillMaxWidth(),
- shape = MaterialTheme.shapes.large,
- colors = CardDefaults.cardColors(
- containerColor = MaterialTheme.colorScheme.tertiaryContainer.copy(alpha = 0.5f)
- ),
- border = androidx.compose.foundation.BorderStroke(
- width = 1.dp,
- color = MaterialTheme.colorScheme.outlineVariant
- )
- ) {
- Column(
- modifier = Modifier.padding(AppSpacing.large),
- verticalArrangement = Arrangement.spacedBy(AppSpacing.small),
- horizontalAlignment = Alignment.CenterHorizontally
- ) {
- Text(
- text = stringResource(R.string.storage_permission_description),
- style = MaterialTheme.typography.bodyLarge,
- textAlign = TextAlign.Center,
- color = MaterialTheme.colorScheme.onTertiaryContainer
- )
-
- Text(
- text = stringResource(R.string.storage_permission_optional),
- style = MaterialTheme.typography.bodySmall,
- color = MaterialTheme.colorScheme.onTertiaryContainer.copy(alpha = 0.8f),
- textAlign = TextAlign.Center,
- fontWeight = androidx.compose.ui.text.font.FontWeight.Medium
- )
- }
- }
- }
- },
- actions = {
- // Allow button
- Button(
- onClick = {
- if (!PermissionUtil.hasStoragePermission()) {
- val intent = Intent(Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION).apply {
- data = "package:${context.packageName}".toUri()
- }
- context.startActivity(intent)
- } else {
- onContinue()
- }
- },
- modifier = Modifier.fillMaxWidth(),
- shape = MaterialTheme.shapes.large
- ) {
- Text(
- text = if (permissionGranted) {
- stringResource(R.string.permission_granted)
- } else {
- stringResource(R.string.allow)
- },
- style = MaterialTheme.typography.labelLarge,
- fontWeight = androidx.compose.ui.text.font.FontWeight.SemiBold,
- modifier = Modifier.padding(vertical = AppSpacing.small)
- )
- }
-
- // Continue without permission button
- FilledTonalButton(
- onClick = onContinue,
- modifier = Modifier.fillMaxWidth(),
- shape = MaterialTheme.shapes.large,
- colors = ButtonDefaults.filledTonalButtonColors(
- containerColor = MaterialTheme.colorScheme.surfaceVariant,
- contentColor = MaterialTheme.colorScheme.onSurfaceVariant
- )
- ) {
- Text(
- text = stringResource(R.string.continue_without_storage),
- style = MaterialTheme.typography.labelLarge,
- fontWeight = androidx.compose.ui.text.font.FontWeight.Medium,
- modifier = Modifier.padding(vertical = AppSpacing.small)
- )
- }
- }
- )
-}
diff --git a/app/src/main/java/com/anthonyla/paperize/service/livewallpaper/gl/GLWallpaperService.kt b/app/src/main/java/com/anthonyla/paperize/service/livewallpaper/gl/GLWallpaperService.kt
index d1a99cb..b289e71 100644
--- a/app/src/main/java/com/anthonyla/paperize/service/livewallpaper/gl/GLWallpaperService.kt
+++ b/app/src/main/java/com/anthonyla/paperize/service/livewallpaper/gl/GLWallpaperService.kt
@@ -155,7 +155,9 @@ abstract class GLWallpaperService : WallpaperService() {
// where the GL thread held `lock` while acquiring `eventQueue`, and callers held
// `eventQueue` while trying to acquire `lock` in requestRender().
private val eventQueue = LinkedBlockingQueue()
- @Suppress("UseKotlinAny")
+ // java.lang.Object is intentional: this monitor uses wait()/notifyAll(), which
+ // Kotlin's Any does not expose directly.
+ @Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN")
private val lock = Object()
@Volatile private var shouldExit = false
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 3faa6a7..d6b2c46 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -102,10 +102,6 @@
Allow Paperize to send notifications about wallpaper changes and when the app is running in the background. You can change this anytime in settings.
Skip
Permission Granted
- Storage Access (Optional)
- Allow Paperize to access storage to preview your current wallpaper in the app.
- This permission is optional. Paperize can still function normally without it, but you won\'t be able to see wallpaper previews.
- Continue Without Storage Access
Clear selection
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index d3925e0..78c39e1 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -10,7 +10,7 @@ coil = "3.4.0"
accompanist-permissions = { module = "com.google.accompanist:accompanist-permissions", version = "0.37.3" }
androidx-activity-compose = { module = "androidx.activity:activity-compose", version = "1.13.0" }
androidx-animation = { module = "androidx.compose.animation:animation" }
-androidx-compose-bom = { module = "androidx.compose:compose-bom", version = "2026.06.00" }
+androidx-compose-bom = { module = "androidx.compose:compose-bom", version = "2026.06.01" }
androidx-core-ktx = { module = "androidx.core:core-ktx", version = "1.18.0" }
androidx-core-splashscreen = { module = "androidx.core:core-splashscreen", version = "1.2.0" }
androidx-datastore-preferences = { module = "androidx.datastore:datastore-preferences", version = "1.2.1" }