Push partition image to an Android phone
Prepare your device In your Android phone, enter recovery mode and enable ADB (usually, you need a custom recovery like TWRP, OrangeFox or LineageOS' recovery… etc). On a Linux machine, forward a local TCP port to a remote port on the Android device (let say local 6789, remote 9876). adb forward tcp:6789 tcp:9876 adb shell Netcat your file Once connected to the device's shell, start netcat in listen mode on port 9876, and redirect stdout to the partition block device: