Get ready for Sen. Al Franken vs. Apple and Google, round two.

Following up on a mobile privacy hearing last month where officials from the tech companies testified, Franken plans to introduce legislation Wednesday that would force smartphone applications to ask for users' consent before collecting mobile phone location data and sharing it with third parties.

The bill is the first the Minnesota Democrat has produced in his new role as chairman of a Senate subcommittee on Privacy, Technology and the Law, which was formed this year.

Franken's bill, co-sponsored by Sen. Richard Blumenthal, D-Conn., stems from an April report that found iPhones were storing users' locations for up to a year, and that Google's Android phones had similar capabilities. Apple said that users' exact locations were not being tracked, and the company later issued a fix to limit location data storage to one week.

Franken criticized Apple and Google at his May hearing for not requiring apps to have privacy policies that spell out what data is collected. He then sent a follow-up letter asking them to do so.

"The same information that allows emergency responders to locate us when we're in trouble is not necessarily information all of us want to share with the rest of the world," Franken said.