Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the deployed apk file? how to uninstall it with adb?

I have tried to install my apk using adb like this:

D:\C_Desktop\Development\Android SDK\platform-tools>adb install "C:\test_haxe\bin\android\bin\bin\testhaxe-debug.apk"
4274 KB/s (3702929 bytes in 0.846s)
        pkg: /data/local/tmp/testhaxe-debug.apk
Success

so, its installed fine, but at my phone, I couldn't find the apk file, is it deleted after being installed?!

also, I tried to uninstall it like this:

adb uninstall com.ketab.haxe

but I get

Failure

Because I have no emulator, I will have to install the app each time to see the progress, so I will need to uninstall it and then install the new app on my phone, is this the right way to go any way?

like image 350
simo Avatar asked Jan 29 '13 07:01

simo


People also ask

How do you uninstall application with adb?

To remove the app go into your Android device's shell by running adb shell . Once there, run pm uninstall -k --user 0 package.name (replacing package.name with the name of the package you searched for earlier). You can also run adb shell pm uninstall -k --user 0 package.name if you choose.

What is adb APK?

Android Debug Bridge (adb) is a versatile command-line tool that lets you communicate with a device. The adb command facilitates a variety of device actions, such as installing and debugging apps, and it provides access to a Unix shell that you can use to run a variety of commands on a device.


1 Answers

to find out the apk file location after installation use pm path <package> command:

adb shell pm path com.ketab.haxe

you could try uninstalling the package with:

adb shell pm uninstall com.ketab.haxe

in case of failure check the error message with:

adb logcat -d -s PackageManager:*
like image 77
Alex P. Avatar answered Sep 28 '22 07:09

Alex P.