Androidsdkemulator
From WeWeWeb Wiki
Jump to navigationJump to searchStart the emulator
emulator -avd <avd_name>
Installing the package
adb install bin\LunarLander-debug.apk
Uninstalling Android packages
All the installed packages can be removed from the emulator using the adb program. First, we should run the shell:
> adb shell #
The # sign is the shell prompt we should wait for. When the shell is ready, we have to go to the packages directory:
# cd /data/app
Now, we have to find out the files in this directory:
# ls com.example.android.lunarlander.apk ApiDemos.apk
As we can see, our LunarLander project is there. We can remove it ("uninstall") with the command:
# rm com.example.android.lunarlander.apk
The shell session can be finished with the exit command.
When we know the name of the package to uninstall, it can be done with single command. For example, in our case we could've done:
> adb shell rm /data/app/com.example.android.lunarlander.apk
or
> adb uninstall com.example.android.lunarlander
Read Console (Debug) Log
adb logcat
Dex Dump
adb shell dexdump -d -f -h /data/dalvik-cache/data@app@net.weweweb.android.bridge.apk@classes.dex > text.txt