I am doing testing of app on Android emulator. I am able to install my app via this:
adb install camera_test_debug.apk
After installing, the app name appear in the list is "camera_test". However, I can't do the uninstall with adb uninstall camera_test. It will return failure message.
Why can't I uninstall? What should be the name I put in to be able to uninstall?
Thank you.
adb uninstall package.yourapk.name
not
adb uninstall filename.apk
Check the AndroidManifest.xml, get the package name of your camera_test_debug.apk, eg. com.example.cameratest.
Then use "adb uninstall com.example.cameratest" to remove that apk.
you should uninstall your app by your package name so check your package name in manifest , then be sure that your app is debuggable.
Related
My native settings app crushing when I start it, how to install the different settings application or from another shell/environment?
You mean same package name but not same app currently installed device?
I think you should install using adb with some option.
Please try,
adb install -r -d [your app].apk
I am trying to uninstall a few Google APKs that were preinstalled on an older smartphone I have.
I must do it via ADB because it's not possible to do it via regular uninstall
I found a guide on how to remove those APKs using ADB, but when I try to remove a certain Google package, for example com.google.apps.plus, using the following command:
pm uninstall -k --user 0 com.google.apps.plus
I get the following error: Failure - not installed for 0
What am I missing?
Even I was facing the same issue. For solving this problem just make sure that you have the latest USB drivers for your device. You can get your drivers from Android Devs Website. This is a list of all major OEM's compiled by google. Then download ADB tools from here. After ensuring the above steps, download any App Inspector application from play store for getting the exact package name of the apps.
In your device's Developer Options,turn on USB debugging. Open Windows PowerShell where you have downloaded the ADB tools.To see if ADB is working use .\adb command.
Then use .\adb shell for activating adb shell. Then use this command for removing the packages pm uninstall -k --user 0 <package name>. You will get package name in the App Inspector application.
In my case I had the weverse app, what I did was:
Open the app (it required me to update it)
Update the app in the PlayStore
Close the app Uninstall with the common command
pm uninstall -k --user 0 "package name"
I make my own APK and I installed it on phone. Then I change something, and I raise the versionCode from 10 to 11. But when I want to re-isntall the massage said that: "Application was not installed".
Before everything was working. When I check APK by aapt dump I see updated version in Manifest. What can I do to fix it?
Try this one:
adb uninstall <package_name>
adb install apk_file.apk
or you can use -d and -r with adb
adb install -r -d your_apk.apk
"App not installed" shows when an app with same package already installed in same device. just completely delete the first apk from your device.
Go to the Settings --> Apps --> Click on your App. ---> from menu select " Uninstall for All users ". Your app will be completely uninstalled and now you can try installing the new version with no issue.
Hope this will help you
In Android phone, by default, there are two users, one is me, the other one is Guest.
I am doing Android app development. I install the debug mode apk by run command :
adb install myapp.apk
But when I uninstall it from :
Settings -> Apps -> (click into the app) Uninstall
the app is uninstalled but the app icon is still showing there & there is a text says it is uninstalled, if I adb install myapp.apk again now, the installation fails.
To get rid of this, I have to always switch to "Guest" user, and uninstall also from there. It is very annoying. Why adb install myapp.apk installs the APK on both users?
How can I only install the app in current user with adb so that when I uninstall it from settings it could be uninstalled completely without bothering me to switch to Guest user to uninstall again?
adb install -rf apk
This helps you in doing forceful re-installation
I make an apk with odex on Android 4.0. And try to install it to emulator.
adb shell install test.apk
Get error message is Failure Failure [INSTALL_FAILED_DEXOPT].
Also try to push apk and odex file to /system/app, it not works.
How to install this apk?
adb install -r test.apk
-r is for reinstallation.
Update:
If you are now facing [INSTALL_FAILED_DEXOPT] error then you need to uninstall old version of application. There may be a chance that two applications are having same package name, so uninstall the application who is having the same package as your application has.
It seems like the apk is already installed you have to uninstall the apk using the package name
adb uninstall com.sunil// com.sunil is the package name of application
To resolve the ODEX issue please wipe your data, start the emulator once again from the Android SDK and AVD Manager by selecting the option Wipe User Data.
Click here