Background

In our line of work, we tend to test the apps frequently, ideally with each code merge.

But as we all know, the defects can come back after it’s been fixed. In such situation, we might to test old version to verify.

In a perfect world, we should have all the versions saved somewhere, most likely the cloud. But in reality, the old versions can be deleted for a number of reasons. So we might need to pull the old version from a device, rather than a cloud storage.

Here’s what we can do it.

Solution

The key to export APK is to find the file path. So it might be a little more work than you expected.

Here’re the steps to get the job done.

  1. Find the package name

list-packages

  1. Get the file path

file_path

  1. Export APK file

extract-apk