

There are three places for the system to keep the apks based on the different types of apks: Of course the system have to store all apks somewhere.

We could get these information from debug output like following. After that, the tool will use the pm command to install, it will delete the temporary apk in /data/local/tmp/ after the successful installation. When we install the apk from debug tool, directly invoke adb install or from eclipse/android studio, the apk will be transferred ( adb push) to a public read and writable directory, usually /data/local/tmp/. Install from development/debug tool (adb, eclipse, android studio) Other third-party marketplaces might have the different behaviors. Google play doesn't keep the apk after the installation. It's the behavior of marketplace whether to keep the apk after installation.
