To use with ADB Console, only tested with Samsung devices (A10s/A04e - Android 10+)
(DISCLAIMER: Script is provided as it is, I dont hold any responsability for damages or misuse of this script in any way.)
First, make sure you have your device with Developer options enabled, if you don't, Google is your friend
Open Developer options and enable USB Debugging there
Then, download Android's Debug Bridge SDK Platform-Tools
Connect the device on your pc using USB cable, if any prompt shows up, tap on Allow
On your PC, extract the zip archive you downloaded and open that folder, you should have access to a executable named "adb"
Open any console window to that folder and make sure you have device up and running with that script:
adb devices
There, the console return should be your device's serial number, if says unauthourized, check your phone for authorization to use USB debugging, tick the option called "Always allow from this computer" and then tap Allow.
Run adb devices again, if everything is fine, you should see your device serial number and device
And now, use those commands below to activate:
adb shell settings put global ram_expand_size 1
adb shell settings put global ram_expand_size_list 2,4
First line activates the RAM Plus option on your device, on second line creates a aditional 2 and 4GB ram plus option but you can change that to any number as you like, for instance, if you like to have 1, 3, and 5GB with ram plus, at the end of second line should be like this: ram_expand_size_list 1,3,5; additionally, if you want to deactivate RAM Plus, the below should be used:
adb shell settings put global ram_expand_size 0
Or consider using the option ram_expand_size_list 0.
RAM Plus uses your device's internal storage to work alongside with RAM, don't expect your device getting quicker with that option enabled, also make sure you have enough space since RAM Plus create some sort of swap file inside your internal storage to work as RAM Plus.