Audio signal trying to go back to zero zeroes
That'll be because you're creating an audio signal - an audio signal is AC coupled, and will always want to drift towards ground since ground is what it is centred around.

An android phone's headphone socket cannot create reliable digital waveforms since it's an analog output.  You should instead choose something that is suited to what you want, instead of trying to use something that is completely wrong and getting terrible results.