trying to transfer a large (13 GB) folder via USB to my phone with adb push. if I try singular, smaller files they go through, pushing the whole folder hangs adb and then gets OOM killed.

adb pull from phone #1 worked without issues, pushing it to phone #2 starts eating up all RAM (16 GB) and then gets killed. so I created a 16 GB swap file, swapon, push - same thing, eats up all RAM, then all swap, then OOM manager kills konsole. no files are created on the phone.

transferring via MTP isn’t viable, it’s like 700 bytes/sec.

tried everything suggested here.

edit: tried adb over wifi, different terminal, same deal.