Created
June 22, 2024 15:06
-
-
Save tokland/867814e1a4c50e07037b29eca9da0c5d to your computer and use it in GitHub Desktop.
Download APK files from APKPure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e -u -o pipefail | |
| download_apk() { | |
| local app_id=$1 | |
| # https://github.com/EFForg/apkeep/blob/master/src/apkpure.rs#L18C54-L18C61 | |
| curl -sS "https://api.pureapk.com/m/v3/cms/app_version?hl=en-US&package_name=$app_id" \ | |
| -H 'x-sv: 29' \ | |
| -H 'x-abis: arm64-v8a,armeabi-v7a,armeabi' \ | |
| -H 'x-gp: 1' | | |
| strings | | |
| grep "/APK" | # Download latest version in APK format | |
| head -n1 | | |
| xargs -rt curl -L -D >(grep -i "^content-disposition:") -o "$app_id.apk" | |
| } | |
| download_apk "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you choose to download APK files from APKPure, make sure you’re careful and verify the app’s authenticity before installing anything on your device. APKs from third-party sources should always be checked for permissions, version details, and user feedback to reduce security risks. For apps that are frequently discussed in the community, many users prefer to download the delta executor app from the website rather than relying on mirrors, as official sources are more likely to provide updated and unmodified files. Always keep your device protected, enable security scans, and remember that installing third-party apps comes with responsibility—especially when dealing with tools like delta executor.