The nonprofit human rights organization Electronic Frontier Foundation has released apkeep, a utility for downloading APK files from a variety of sources. With this tool, users can download packages for the Android platform directly from the command line, from the Google Play Store or from another source, and several APK files can be downloaded at the same time.
By default, the app downloads APKs from a mirror of the official Google store, so no authentication is required to interact with it. Downloading from the Play Store is supported, but the user will have to provide their credentials. In this case, the password is transmitted in clear text, which can lead to its leakage through the buffer with the history of operations on the command line. If necessary, you can enable multithreaded bulk download with the transfer of the list of downloaded packages in a CSV file.
The utility is written in Rust. According to the developers, they tried to make a simple and convenient tool capable of providing a high level of security and proper performance. In the future, it is planned to expand the capabilities of apkeep, integrate support for downloading from the Amazon Appstore, implement the ability to download old versions of applications, etc. Already, the apkeep application available for download in the developer repository on the GitHub platform.