I work for a OEM phone vendor. We have a prospective client that wants more RAM in a certain model Android Oreo 8.1 phone to prevent Android’s memory manager from closing the least recently used and RAM-hungriest apps. I propose to provide that by extending the swap partition (thus creating more swap memory) from the existing 0.5GB to 1.5 or better still 2.5GB. The storage is eMMC and there is enough storage (and fast storage) for what I want to do.
Most likely I need to change the partition structure and to do so I expect to have to root the phone. But I also need to be able to “unroot” the phone after. I cannot supply my client with rooted phones. But the other way to do it would be to somehow specify, a swap file (like Windows) on existing partitions. Is that possible? In this way, maybe root is not required? Don’t know.
Either way, additionally, I would like to do this from a command line in order to automate it – hopefully with an MDM/EMM; but that might be “dreaming”.
The volumes are not huge, and therefore, our overseas factory does not want to get involved.
Can anyone help me, please?