Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/david-lev/apkpull
📱 Pull APK's from android devices and emulators
https://github.com/david-lev/apkpull
adb android android-application apk apk-downloader apkpull google-play
Last synced: 25 days ago
JSON representation
📱 Pull APK's from android devices and emulators
- Host: GitHub
- URL: https://github.com/david-lev/apkpull
- Owner: david-lev
- Created: 2022-01-14T00:51:38.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-13T18:35:28.000Z (over 1 year ago)
- Last Synced: 2024-08-09T13:15:46.899Z (3 months ago)
- Topics: adb, android, android-application, apk, apk-downloader, apkpull, google-play
- Language: Shell
- Homepage:
- Size: 104 KB
- Stars: 22
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![Alt Text](https://user-images.githubusercontent.com/42866208/151712735-6cf6ef8a-c5e0-46e8-9b54-53b213aa3ed8.gif)
---
# 📱 APKpull
[![CodeFactor](https://www.codefactor.io/repository/github/david-lev/apkpull/badge)](https://www.codefactor.io/repository/github/david-lev/apkpull)**APKpull provides reliability in downloading apps from Google Play from real Android devices or emulators**
## How to use?
### Run APKpull with one command:
```bash
curl -sL bit.ly/apkpull | bash -s -- com.whatsapp```
> - APKpull get's [PackageName](https://support.google.com/admob/answer/9972781) as the first (required) argument.
> - You can also pull the files into spesific path insted of `~/Downloads/apkpull_dl` by adding `-d /path/to/directory` flag
> - Uninstall the app after the pulling is complete by adding `--uninstall` flag.
> - `--help` to get instructions.
> - For example:
```bash
curl -sL bit.ly/apkpull | bash -s -- com.tranzmate -d ~/Documents/my_apks_dir/ --uninstall
```
### Or, if you want to make changes to the script:
- Clone APKpull:
```bash
git clone https://github.com/david-lev/apkpull.git
```
- Go to script directory:
```bash
cd apkpull && chmod +x apkpull.sh
```
- Make your changes and run the script with package name:
```bash
./apkpull.sh com.whatsapp
```
---
- Because each device may have different splits, several devices can be connected at the same time. Only splits that do not already exist locally will be downloaded again.
- The script's exit codes are: `0` if all success, `1`-`9` for every faild device, `10` if pkg not provided, `20` if adb not found, `30` for INT signal (Ctrl+C), `40` if app not in play store, and `50` if no devices connected
- I would recommend following the device screen for the first few times to see how the automation works. Then you can already run it with your eyes closed...
- APKpull uses [ADB](https://developer.android.com/studio/command-line/adb) to connect to devices, jump into the app page in Google Play, make the necessary clicks based on the existing data on the screen, download the app and finally pull it to local as an APK with Splits and even OBB's (if any).
- While running the script, many tests are performed: checking updates, locked screen, device compatibility or country restrictions, paid apps, network, sign in check and more.
- If there is an untreated end case, after several attempts (Can be increased by raising the number of [`max_rounds`](/apkpull.sh#L31)) a log will be created that will contain a screenshot and dump ui from the device, which can be attached to a new issue on github.
- Due to the way Google Play app is built, most of the tests and clicks are based on text, so English and Hebrew are currently supported. If you want to support other languages as well, fork this repo, create a list of `buttons_lang` at the beginning of the script, fill in the values in the existing format in the other languages and open PR.
- The files are saved by default to the `~/Downloads/apkpull_dl` folder in the next example format:
```bash
.
├── com.flambestudios.picplaypost
│  └── 451
│  ├── com.flambestudios.picplaypost_451
│  │  ├── config.arm64_v8a.apk
│  │  ├── config.armeabi_v7a.apk
│  │  ├── config.en.apk
│  │  └── config.xhdpi.apk
│  └── com.flambestudios.picplaypost-451_base.apk
├── com.microsoft.office.officehubrow
│  └── 42787678
│  ├── com.microsoft.office.officehubrow-42787678.apk
│  └── main.42787678.com.microsoft.office.officehubrow.obb
└── tfilon.tfilon
└── 38
└── tfilon.tfilon-38.apk
```