How it works
To display all installed apps the 🔗 device_packages
package is used and the apk extraction (that is a simple copy/paste operation between two files) is possible by 🔗 shared_storage
package.
The above mentioned packages are using Storage Access Framework along with the PackageManager API.