If you can control the INTERNAL AWG via SCPI, then simply create a BODE_APP (android one) which will call AWG via scpi, do set sine, a freq and ampl, and then it will make a measurement in CH1 and CH2 simultaneously (with some param), do repeat for all freqs, you get N .csv files (best placed in the ramdisk as I wrote above) and the BODE_APP will then crunch out a nice picture from all those files

Easy..
For DHO800 and none-S owners we may easily use an external generator (of any kind). We will not call internal AWG via scpi, but the external myGenerator via simple commands via the USB connector in the front panel (all under our control). We may add some relay clicking for an attenuator/amplifier in myBode black box.. Setting a DDS/PLL/etc.,etc. chip via SPI/I2C and banging with relays cannot be a big problem off the android via any MCU, imho..
The process and result in both cases shall be the same, btw..