I suspect most DAC chips on phones run at a 44.1 kHz or 48 kHz sampling rate, meaning that 22.05 kHz or 24 kHz is the highest possible frequency that you can generate (even in theory). Quite likely 20 kHz or lower is the actual maximum output, due to a hardware antialias (low-pass) filter.