Did some more tests. Was looking at the wrong string, it looks like adb push does work.
~/Desktop/ubports/halium-install$ cp ubuntu-touch-android9-arm64.tar.gz ubutuarchiverenamed
~/Desktop/ubports/halium-install$ adb push ubutuarchiverenamed /data
adb: error: failed to read copy response
ubutuarchiverenamed: 1 file pushed, 0 ...108.0 MB/s (616134854 bytes in 5.438s)
adb: error: failed to read copy response
~/Desktop/ubports/halium-install$ adb push ubuntu-touch-android9-arm64.tar.gz /data
adb: error: failed to read copy response.tar.gz
ubuntu-touch-android9-arm64.tar.gz: 1 ...102.3 MB/s (616134854 bytes in 5.741s)
adb: error: failed to read copy response
~/Desktop/ubports/halium-install$ adb push system.img /data
adb: error: failed to read copy response
system.img: 1 file pushed, 0 skipped. 63.1 MB/s (365404512 bytes in 5.520s)
adb: error: failed to read copy response
~/Desktop/ubports/halium-install$ adb push twrp-3.5.0_9-0-taimen.img /data
adb: error: failed to read copy response
twrp-3.5.0_9-0-taimen.img: 1 file push...d. 7.8 MB/s (41943040 bytes in 5.136s)
adb: error: failed to read copy response
~/Desktop/ubports/halium-install$ adb push vendor.img /data
adb: error: failed to read copy response
vendor.img: 1 file pushed, 0 skipped. 64.2 MB/s (363557072 bytes in 5.404s)
adb: error: failed to read copy response
I also tried to use the install script without the password and user parameters which allows the system image to push, but it fails pushing the rootfs :
~/Desktop/ubports/halium-install$ sudo ./halium-install-standalone.sh ubuntu-touch-android9-arm64.tar.gz system.img
D: Chosen rootfs is ubuntu-touch-android9-arm64.tar.gz
D: Chosen android image is system.img
D: Chosen release is none
D: Compress images before pushing: false
I: Writing rootfs into mountable image
I: Writing android image into mountable image
I: Running post installation tasks
I: Shrinking images
e2fsck 1.45.5 (07-Jan-2020)
resize2fs 1.45.5 (07-Jan-2020)
Resizing the filesystem on .halium-install-imgs.uXTvp/system.img to 231448 (4k) blocks.
Begin pass 3 (max = 20)
Scanning inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The filesystem on .halium-install-imgs.uXTvp/system.img is now 231448 (4k) blocks long.
I: Unmounting images
I: Pushing rootfs and android image to /data via ADB
I: Pushing rootfs to /data via ADB
adb: error: 65544-byte write failed: Success
I: Pushing android image to /data via ADB
adb: error: failed to read copy response
.halium-install-imgs.uXTvp/system.img:...147.9 MB/s (948011008 bytes in 6.112s)
adb: error: failed to read copy response
real 0m12.719s
user 0m0.045s
sys 0m1.496s
I: Cleaning up
umount: .halium-install-rootfs.Hcs48: not mounted.
But if I try to use the script using "-P" or "-S" I get the following:
~/Desktop/ubports/halium-install$ sudo ./halium-install-standalone.sh -p ut -s ubuntu-touch-android9-arm64.tar.gz system.img
D: Chosen rootfs is ubuntu-touch-android9-arm64.tar.gz
D: Chosen android image is system.img
D: Chosen release is ut
D: Compress images before pushing: false
I: Writing rootfs into mountable image
I: Writing android image into mountable image
I: Running post installation tasks
enabling SSH ... [done]
Please enter a new password for the user 'phablet':
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
I: Shrinking images
e2fsck 1.45.5 (07-Jan-2020)
resize2fs 1.45.5 (07-Jan-2020)
Resizing the filesystem on .halium-install-imgs.V34FH/system.img to 231448 (4k) blocks.
Begin pass 3 (max = 20)
Scanning inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The filesystem on .halium-install-imgs.V34FH/system.img is now 231448 (4k) blocks long.
I: Unmounting images
I: Pushing rootfs and android image to /data via ADB
I: Pushing rootfs to /data via ADB
adb: error: failed to get feature set: device offline
I: Pushing android image to /data via ADB
adb: error: failed to get feature set: device offline
I: Renaming to system-as-root compatible system image
adb: device offline
real 0m0.016s
user 0m0.008s
sys 0m0.005s
Error: Couldn't copy the files to the device, is it connected?
I: Cleaning up
umount: .halium-install-rootfs.mFbra: not mounted.
adb: device offline
~/Desktop/ubports/halium-install$ sudo ./halium-install-standalone.sh -p ut -s ubuntu-touch-android9-arm64.tar.gz system.img
D: Chosen rootfs is ubuntu-touch-android9-arm64.tar.gz
D: Chosen android image is system.img
D: Chosen release is ut
D: Compress images before pushing: false
I: Writing rootfs into mountable image
I: Writing android image into mountable image
I: Running post installation tasks
enabling SSH ... [done]
Please enter a new password for the user 'phablet':
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
I: Shrinking images
e2fsck 1.45.5 (07-Jan-2020)
resize2fs 1.45.5 (07-Jan-2020)
Resizing the filesystem on .halium-install-imgs.2YQgD/system.img to 231448 (4k) blocks.
Begin pass 3 (max = 20)
Scanning inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The filesystem on .halium-install-imgs.2YQgD/system.img is now 231448 (4k) blocks long.
I: Unmounting images
I: Pushing rootfs and android image to /data via ADB
I: Pushing rootfs to /data via ADB
adb: error: 65544-byte write failed: Success
I: Pushing android image to /data via ADB
adb: error: failed to get feature set: device offline
I: Renaming to system-as-root compatible system image
adb: device offline
real 0m6.227s
user 0m0.019s
sys 0m0.715s
Error: Couldn't copy the files to the device, is it connected?
I: Cleaning up
umount: .halium-install-rootfs.dqGZa: not mounted.
adb: device offline