Google and Epic Games have agreed on a deal that will potentially end their long-running dispute and pave the way for third-party app stores to be made available on Android worldwide.