Legislation will be key to convincing Australians to install a contact tracing app on their phones.