From d15fd40296b936d87464d2f94dccc66c99fa5b7e Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Wed, 27 Mar 2024 18:53:30 +0530 Subject: [PATCH] PathUtil: Set default downloads to internal cache directory This allows system to automatically free up space when required as well as users to delete it manually from the app info settings without wiping out aurora store specific configuration. Signed-off-by: Aayush Gupta --- app/src/main/java/com/aurora/store/util/PathUtil.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/aurora/store/util/PathUtil.kt b/app/src/main/java/com/aurora/store/util/PathUtil.kt index cbf5378af..c11a740e9 100644 --- a/app/src/main/java/com/aurora/store/util/PathUtil.kt +++ b/app/src/main/java/com/aurora/store/util/PathUtil.kt @@ -32,7 +32,7 @@ object PathUtil { private const val SPOOF = "SpoofConfigs" fun getDownloadDirectory(context: Context): File { - return File(context.filesDir, DOWNLOADS) + return File(context.cacheDir, DOWNLOADS) } private fun getPackageDirectory(context: Context, packageName: String): File {