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?
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.
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.
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:*
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With