In this post, I want to show a solution that can help to quickly install your set of desired open source Android apps from FDroid, by installing them with adb.
It cannot work out of the box with apps available only via Google Play, since you can't download .apk files for these directly. For that reason and as long as FDroid has really everything we need, it is hardly possible to have a single script running on your computer and bulk-installing all your Android apps on your phone. Instead, I propose to install your set of Android apps on your phone directly, then using App2zip, App2zip Pro or ZIPme to create a .zip file with your apps that you can then install in recovery mode on any phone you want them on.
The process for unattended install of Android apps via
adb works as follows:
- Enable USB debugging on the Android phone. This is needed for adb to work. [instructions]
- Install Google Play. We install a minimized version of Google Apps here that contains just Google Play and required libraries. You can install everything else from Google Apps via the Google Play Store later. [TODO: Minimize this further by installing just the three essential apps, saving 70 more MiB].
- Download the minimized Google Apps package from "[APP][MINIMALISM] Google Play 3.10.10 | Market ONLY Gapps for GB/ICS/JB4.1/JB4.2".
- Push it to the phone's SD card:
adb push jb42-signed.zip /sdcard/jb42-signed.zip
- Reboot into your favorite recovery:
adb reboot recovery
- Install the ZIP file from the SD card with your recovery software.
- Install APKs. For every APK, simply call [see adb command line arguments]:
adb install filename.apk