Get APK by pack name

by Ricardo Fernández Serrata

Version 1 (June 21, 2021)

Download (21 downloads)

An explanation of my APK copier script:

1. The list of filenames (usually just 1) of APKs associated with the input package name is stored in the x shell variable.

2. The x var is splitted by its lines and converted to an array of strings instead of a "flat string".

3. The directory "Automate/APK" is created only if it doesn't exist.

4. The first array element of x (the 1st line) is selected, the "package:" substring is removed, and then read by cp cmd as the source path to copy. The file is copied into the "Automate/APK/" directory and gets named as its package name with the ".apk" file extension.

Everything is wrapped inside "sh -c " because it allows powerful scripting.

AM's package name is used as an example here, but it should be compatible with any package name and Android version.

See it in action! llamalab.com/automate/community/flows/38806

4.0 average rating from 1 reviews

5 stars
0
4 stars
1
3 stars
0
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.