have not tried this on x86 android but i have the same approach as unman (i borrow from https://github.com/QubesOS/qubes-issues/issues/3494#issuecomment-427698388)
i hacked my stubdom init file to do the workarounds if the qube name end with ‘-ide’
i really need a github but here is the process:
note: ‘hacking’ is the name of the qube you will do the hacking in to modify the stubdom rootfs
- in dom0 (send the stubdom root to hacking qube):
qvm-copy-to-vm hacking /usr/lib/xen/boot/stubdom-linux-rootfs
- hacking qube (patch init file):
cd ~/QubesIncoming/dom0
mkdir stubdom && cd stubdom
zcat ../stubdom-linux-rootfs|cpio -i -d -H newc --no-absolute-filenames
cat << 'INITPATCH' > ../patch.tmp
case "$(xenstore-read "/local/domain/$domid/name")" in
*-ide)
echo "performing IDE hack since qube ends with -ide"
SP=$'\x1b'
dm_args=$(echo "$dm_args" | sed "s/-drive${SP}file=\/dev\/xvd\(.\),if=none,id=disk\(.\),format=host_device,cache=writeback,readonly=off${SP}-device${SP}scsi-hd,bus=scsi0.0,drive=disk.,wwn=0x352540005175626./-drive${SP}if=ide,media=disk,file=\/dev\/xvd\1,id=disk\2,format=host_device,cache=writeback,readonly=off/g")
;;
esac
INITPATCH
#super hacky patching since fedora did not have patch by def
sed -i "/^IFS=\\$'\\\x1b.*/r ../patch.tmp" init
find . -print0 | cpio --null -ov --format=newc | gzip -9 > ../stubdom-linux-rootfs.idehack
cat <<'DOM0INSTALL' > ../install-idehack.sh
#!/bin/sh
cd /usr/lib/xen/boot
sudo cp -p stubdom-linux-rootfs stubdom-linux-rootfs.backup
sudo cp ~/stubdom-linux-rootfs.idehack stubdom-linux-rootfs
DOM0INSTALL
- back in dom0 (install):
cd ~
qvm-run --pass-io hacking 'tar -C ~/QubesIncoming/dom0 -cf - stubdom-linux-rootfs.idehack install-idehack.sh' | tar -xv
sh install-idehack.sh
this way all i do is create hvm and make sure name ends with -ide and it will get ide drive
ps: xen updates or qubes os might over write the stubdom. this is just a hack!