Do Apple Inc. and Alphabet Inc.’s Google hold the key for tracking the spread of Covid-19 and possibly reopening the global economy?

The tech giants on Friday said they will release tools for software developers to create so-called contact-tracing apps that record when smartphones come into close contact with each other. Such apps could warn users if they were nearby someone later diagnosed as positive for Covid-19.

The...