Keep in mind that Android is an operating environment. The commands that you can use within the shell are standard POSIX commands.

On the Android server, user-installed applications are kept in the /data/app directory. Using cd, navigate to the app directory, as shown in the following illustration.

33 Command Prompt - adb shell

I n x

Microsoft Hindou.-, ïuiirsion G.$.6000] Copyright <c> 2886 Microsoft Corporation.

fill rights reserved.

":\Users\JFDiMarnio>adb shell S cd data cd data l( cd app cd app

B _

Run the command ls to list all the files in this directory. You should see a file named HelloWorldCommandLine.apk. This file represents the installation of your Activity.

Now that you have located the application on the Android server, you can remove it. Use the command syntax rm HelloWorldCommandLine.apk to remove the application. The following illustration shows that the rm command, if run correctly, gives no feedback. A subsequent use of ls shows that the file has been removed.

BBS Command Prompt - adb shell


Microsoft Windows EUirsion 6.8.68881 Copyright (c) 2006 Microsoft Corporation.

All rights reserved.

C:\Users\JFDiMarzio>adb shell fl cd data cd data tl cd app cd app fl rn He IloUo r IdConnirifidLine . apk rm HelloUorldConiciandLine .apk «

0 0

Post a comment