How to find applications

To find what apps are installed on the device, you will need to run the following, either in adb shell, or the device's term:

ls /system/app or ls /data/app

You can also list installed packages using the package manager, either in Terminal Emulator or via adb shell:

pm list packages

To see a list of installed packages along with their associated files:

pm list packages -f

At a lower level, you can pull the packages.xml and the packages.list files using adb and examine them directly to determine what is installed and what the related .apk file is called and where it is stored. packages.xml will show you the package name and the .apk file installation path and name. In packages.list
you can look up the package name and locate the data path. Both of
these files will tell you a great deal more, these are the things that
pertain to the present article.

adb pull /data/system/packages.xml

adb pull /data/system/packages.list

Generally, any apps you install from the market or otherwise manually install will be in /data/app, while any apps that come pre-installed will be in /system/app.

How to remove applications

Remember to watch the case of all files, directories, apk names, and package names!

Case matters. Example.apk and example.apk are two different things.

ADB

/system apps

/data apps

adb remount

adb shell rm -f /system/app/.apk

adb uninstall

Term (on device)

/system apps

/data apps

su

mount -o rw,remount /system

rm -f /system/app/.apk

su

mount -o rw,remount /data

rm -f /data/app/.apk

pm uninstall

How to ADD applications

Become root first. # cd /mnt # cd sdcard # cd Apps this folder contains all the new apks that you want.