Imagine those on the attic, connected to a internet connection, forming a mesh-net with all houses nearby- and activated if distributed computation power is needed.
I don't know about you, but my old phones struggle with room tempurature air, I'd hate to see how they do in an attic. That with the battery (most can't run without one because of spikes in the current draw) is a bit of a fire hazard.
There a bunch of LAMP apps on Android. You just need a phone that open enough to let you 'share' a connections. Otherwise you would just be better off with RPi setup as an access point.