From Newsgroup: alt.os.linux
Maria Sophia wrote:
There are three ways to connect your phone to your PC to control it from
the PC (& which can makes the phone as tall & as wide as your monitor is).
One very nice feature of this PC to Android setup is for automatic archival
of APKs on the PC & automatic installation from the PC to Android.
Here's the flow that I use for universal APKs (one package for all phones).
1. I often download an APK using the PC web browser & save to a USB drive.
2. Most sites will provide a universal APK (such as F-Droid or Github).
3. From the file explorer, when you slide the APK on top of the Android
mirror image, it automatically runs "adb install" to install that APK.
<
https://i.postimg.cc/wvsbcNBz/scrcpy05.jpg>
Note the quick efficiency as you never need to physically copy the APK.
It's automatically archived, and installation is as simple as sliding it.
However.... Google is getting more & more like Apple... in that...
The google play repo is serving almost exclusively the PITA split APKs.
Apparently, Google wants you to use their bundletool to install split APKs
<
https://github.com/google/bundletool/releases>
<
https://github.com/google/bundletool/releases/download/1.18.3/bundletool-all-1.18.3.jar>
Name: bundletool-all-1.18.3.jar
Size: 32520401 bytes (31 MiB)
SHA256: A099CFA1543F55593BC2ED16A70A7C67FE54B1747BB7301F37FDFD6D91028E29
bundletool install-apks --apks=myapp.apks
While you can unzip a split APK and stream over adb to install it
adb install-multiple base.apk config*.apk
what's simpler in most cases is just sliding it over the same way.
However, since it's a split APK, it goes into /sdcard/Downloads and,
from there, you can use SAI or Muntashirakon App Manager to install.
Note: I haven't used all the methods above because I use a simple approach.
--- Synchronet 3.22a-Linux NewsLink 1.2