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 <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2024-03-27 18:53:30 +05:30
parent 27496ac27e
commit d15fd40296

View File

@@ -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 {