aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Marshall <tdm.code@gmail.com>2020-03-06 18:50:31 +0100
committerAlessandro Astone <ales.astone@gmail.com>2020-03-25 23:38:47 +0100
commit3f55a863ac34969f95bfb38641747d2fd9939630 (patch)
tree31385f0fbccd3f585291594082e632a363514f0b
parent13c4f098c6ddd7bd197dbae14ee4e164e5d2133f (diff)
downloadandroid_bootable_recovery-3f55a863ac34969f95bfb38641747d2fd9939630.tar.gz
android_bootable_recovery-3f55a863ac34969f95bfb38641747d2fd9939630.tar.bz2
android_bootable_recovery-3f55a863ac34969f95bfb38641747d2fd9939630.zip
recovery: increase free memory for sideload cache
* Too low of a value causes out of memory exceptions when sideloading big files (compared to the device's available ram) * 400MB was determined by increasingly trying different values, 100MB at a time, on a 2GB device when sideloading 1.9GB of data. Change-Id: I8faac2deb7b1c2ddbd9dcb21914e34d6cd672575
-rw-r--r--fuse_sideload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fuse_sideload.cpp b/fuse_sideload.cpp
index dd325569..8407c19f 100644
--- a/fuse_sideload.cpp
+++ b/fuse_sideload.cpp
@@ -72,7 +72,7 @@ static constexpr int NO_STATUS = 1;
using SHA256Digest = std::array<uint8_t, SHA256_DIGEST_LENGTH>;
-#define INSTALL_REQUIRED_MEMORY (100 * 1024 * 1024)
+#define INSTALL_REQUIRED_MEMORY (400 * 1024 * 1024)
struct fuse_data {
android::base::unique_fd ffd; // file descriptor for the fuse socket