The humans that survive such an event will not be the smartphone engineers, but the subsistence farmers.
But also as the world collapses a thousand motivated people could and would relocate a basic computer fab to a safe location. Guaranteed.
I strongly doubt that. Electronics are not designed to last that long; components age. Also, planned obsolescence is king these days.
Our technology stack is like a house of cards. Smartphones are at the top. There's no way they will be of any use in the event that the foundation and the walls collapse.