I've connected the smarthpone (rooted) to the PC (Linux) with ADB.
Eveything works fine excepts the fact that I can't unistall apps from shell. I've tried :
adb unistall com.mirsoft.passwordmemory
adb unistall -k com.mirsoft.passwordmemory
And I get the help message as return.
I've also tried:
adb shell pm unistall com.mirsoft.passwordmemory
adb shell pm unistall -k com.mirsoft.passwordmemory
Getting as return
Error: unknown command 'unistall'
followed by the help message.
Other commands works fine.
Am I doing something wrong?
uninstall has an n after the i. Use adb uninstall com.mirsoft.passwordmemory.
You can also try to uninstall with the rm command:
adb shell rm com.mirsoft.passwordmemory
Don't​ forget typically the su command to grant the super user permissions.
Related
Hey guise I want to install an app on several devices in Genymotion by using terminal in ubuntu. Each time I do this:
adb install package.app
It gives me the below error:
error: more than one device/emulator
- waiting for device -
error: more than one device/emulator
I also read about
adb -s udid uninstall package.app
but this is not the solve I want. I don't want to use udid and also I don't know which device has my app from before?
Any suggestions?!
adb help is not extremely clear on what to do:
-d - directs command to the only connected USB device...
-e - directs command to the only running emulator...
-s <serial number> ...
-p <product name or path> ...
The flag you decide to use has to come before the actual adb command:
adb -e install path/to/app.apk
You cannot pass adb commands when there are more than one device connected and running at the same time ; this is a limitation with adb.
Wow finally!
I found this command as my answer:
adb devices | awk 'NR>1{print $1}' | xargs -n1 -I% adb -s % install app.apk
Thanks to sivze
I'm dealing with a pretty major malware issue on an Elite 6.0L+ Sky Device. I'm working with a fellow from the malware bytes forums trying to get it cleaned out. I'm trying to uninstall a few apps through adb via command prompt but it's throwing errors.
adb pm shell pm uninstall com.wouzee.hispanopost
That command throws the error:
Failure [DELETE_FAIL_INTERNAL_ERROR]
If I try it as
adb pm shell -k --user 0 uninstall com.wouzee.hispanopost
Then is throws: Failure [no installed for 0]
I have managed to uninstall other things using these commands but the two things I've been told to remove both throw these same errors when I try to remove them.
Does anyone have any idea how to get around this?
I was having the same problem uninstalling with:
adb shell
pm uninstall <package>
This is what worked for me eventually:
adb shell
pm uninstall --user 0 <package>
Some Apps are prevented from uninstalling. You can disable them instead. Use following command on adb shell:
pm disable-user --user 0 <package>
Here is my solution, I uninstall some system apps come up with [DELETE_FAIL_INTERNAL_ERROR] too
use adb shell su to enter shell mode
then using pm uninstall --user 0 <your-pkg-name> to uninstall
PS: if only use adb shell my situation will generate error too, the su is the key to solve problem
I have an MXQ-4k Box TV and I need to install an app by adb wifi connection since my pc doesn't recognize the USB connection. I can access the device via adb connect ip:5555, but when I try to run adb install , the output is:
Performing Streamed Install
adb: failed to install app.apk: Failure [INSTALL_FAILED_INTERNAL_ERROR]
There is some way of calling the adb install with the path of some application installer locally at the device, e. g. adb install 192.168.15.5:/storage/emulated/app.apk?
Try this:
If you have a sdcard, otherwise change the target path:
adb connect ip:5555
adb push your.apk \$SECONDARY_STORAGE
adb shell pm install -t -r "\$SECONDARY_STORAGE/your.apk"
adb shell "rm \$SECONDARY_STORAGE/your.apk"
You also can try adb install -t "your.apk" and see if it helps.
I installed bluestacks version 0.10.0 on my PC.
When i run adb shell this command work fine,
But when i run adb root command and then run adb shell command it give error:device not found.
If i run adb kill-server and then adb shell it work fine.
Any Help?
What's the difference between installing an app using the install command and using the package manager's pm install command? Do they do the exact same job? Does one command actually call the other in the back?
adb install -r APK_FILE
adb shell pm install APK_FILE
adb install is a command to run from a development host, which uploads a package somewhere temporary and then installs it.
pm install is a command to run locally on the device.
adb does indeed utilize the pm program on the device - see the source code at
https://android.googlesource.com/platform/system/core/+/kitkat-mr2.2-release/adb/commandline.c