With AMP, you can modify the source and ... ... run your own search engine???
Android is software in the traditional sense. AMP is a protocol, even though it's phrased as software. The principles of free software apply to software, and protect your freedom when applied to software. They don't work right when applied to protocols.