What apps are installed on my Android devices?

I would like to know what apps are installed on my devices.

My stock install of CyanogenMod 12.1 (with Pico GApps) on my Amazon Fire has the following apps on it:

  • AudioFX
  • Browser
  • Calculator
  • Calendar
  • Camera
  • Clock
  • Contacts
  • Downloads
  • Email
  • File Manager
  • Gallery
  • Google Settings
  • Music
  • Play Store
  • Settings
  • Sound Recorder
  • Themes

List package names with adb shell pm list packages. This lists 84 packages of which only the above 17 have app icons.

List attributes for single package with adb shell 'dumpsys | grep -A18 "Package \[org.cyanogenmod.audiofx\]"'

Dumpsys

Dumpsys is an android tool that runs on the device and dumps interesting information about the status of system services. To see all of the subcommands of dumpsys do either

$ adb shell dumpsys | grep "DUMP OF SERVICE"

or

$ adb shell service list

You can request help on a service:

$ adb dumpsys package -h

See also here.

C-Apps

C-Apps are the CyanogenOS (not CyanogenMod) apps that can be installed onto CyanogenMod. The latest version of CM 12.1 is required for C-Apps to run properly.

The Cyanogen Apps Package gives users of CyanogenMod access to apps previously only available on Cyanogen OS, the commercial version that comes preloaded on retail smartphones.

Removed Apps

System packages are locaked in /system/app/<pkg> where <pkg> is a directory named after the package and that contains the <pkg>/apk file (e.g Calculator/Calculator.apk.

Removed like this

$ adb shell
shell@ford:/ $ su
root@ford:/ # mount -o remount,rw /system
root@ford:/ # cd /system/app
root@ford:/system/app # rm -r Calculator Email Browser
root@ford:/system/app # reboot

Some say you need this (but it didn't work for me):

root@ford:/system/app # pm uninstall com.android.calculator2
Failure [DELETE_FAILED_INTERNAL_ERROR]

You can also try pm disable com.android.calculator2 to disable instead of uninstall if which allows it to be re-enabled.

Installed Apps

This section lists apps that I install myself, either via G-Play, F-Droid or sideloading (adb install /srv/media/software/android/apk/blah).

  • VLC (org.videolan.vlc.betav7neon)
  • CM Calculator (
  • FireFox

commands:

$ adb install /srv/media/software/android/apk/org.mozilla.firefox-2.apk
$ adb install /srv/media/software/android/apk/com.owncloud.android-1.ap
$ adb install /srv/media/software/android/apk/org.connectbot-2.apk

APP Package

download signing tool:

$ wget http://www.learn2crack.com/download/SignApk.zip
$ unzip SignApk.zip

create a working directory (name is irrelevant):

$ mkdir apkzip
$ cd apkzip

create required structure

$ mkdir -p META-INF/com/google/android system/app
$ cat > META-INF/com/google/android/update-script
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
set_perm_recursive 0 0 0755 0644 SYSTEM:app
show_progress 0.1 10
<CTRL-D>

make signed apps.ZIP

$ zip -FSr /tmp/apps.zip *
$ cd ../SignApk
$ java -jar signapk.jar certificate.pem key.pk8 /tmp/apps.zip /srv/transfer/android/apps.zip

(the -FS option to zip is in case /tmp/apps.zip already exists. It ensures the archive contains only what is in the diretory tree (removing anything from the archive that isn't in the directory tree). The -r option causes directory recursion so that all files in the directory tree are included in the archive.)

push to device

$ adb push apps.zip /mnt/media_rw/sdcard1/

Now reboot to recovery and flash or, in the case of the Amazon Fire, use FlashFire. Choose a location that your recovery (or FlashFire) can see.

http://android.stackexchange.com/questions/156336/can-i-make-a-flashable-zip-containing-one-or-more-apks
http://android.stackexchange.com/questions/143304/a-way-to-automate-the-creation-of-flashable-zips/143308#143308

http://androidforums.com/threads/how-to-make-your-own-flashable-zip-kitkat-edition.826761/
http://forum.xda-developers.com/showthread.php?t=2633379

note: I discovered that FlashFire does not work if installed in /system. No idea why. It sticks on Acquiring Root even after root given.

aapt

The aapt is the Android Asset Packaging Tool.

To get on Arch Linux without installing the full SDK, download

$ curl -J -O https://android.izzysoft.de/downloads.php?file=adb-binaries-linux-1.0.32.tar.gz
$ tar xf adb-binaries-linux-1.0.32.tar.gz

or simply TEST THIS!

$ curl -s https://android.izzysoft.de/downloads.php?file=adb-binaries-linux-1.0.32.tar.gz | tar zxf - aapt

Enable multilib in /etc/pacman.conf and install the 32-bit dependencies if necessary
$ sudo pacman -Sy $ sudo pacman -S lib32-{glibc,gcc-libs,zlib}