Is there any way to reinstall already installed apps? - General Questions and Answers

I used the method of typing
pm uninstall --user 14 com.android.app
To uninstall some system apps. Since I have root, I did not use the -k parameter, but I uninstalled it for another user on my phone. I have the app on my user, but not on the other user. Whenever I try to reinstall it for the other user using
pm install --user 14 /data/app/com.android.app-1/base.apk
I get an error saying the app is already installed. Is there a way I can add the app to the user? Like I said earlier I have root access.

Related

[SOLVED] Remove bloatware (no root) pinyin (Failure [not installed for 0)

I am still with locked bootloader and unrooted for now. Anytime in the future I will probably switch to a custom ROM, but for now I want to 'experience the miui'. I am however removing some bloatware. I was able to do it via the pm uninstall command via adb shell. I removed all (system)apps I wanted to remove but for some reason I could not remove:
com.google.inputmethod.pinyin
It gives me this result:
whyred:/ $ pm uninstall -k --user 0 com.google.inputmethod.pinyin
Failure [not installed for 0]
I disabled MIUI optimization in Develop options and rebooted, but this did not help..
Does anyone know why I cannot uninstall this keyboard?
EDIT: Never mind, it was not a system app I guess. Just uninstalled it via the phone.. LOL :silly:
I'm in a same positionnement as you, I'd be interested if you knowing information to debloat the phones.
thx
dumbl3 said:
I am still with locked bootloader and unrooted for now. Anytime in the future I will probably switch to a custom ROM, but for now I want to 'experience the miui'. I am however removing some bloatware. I was able to do it via the pm uninstall command via adb shell. I removed all (system)apps I wanted to remove but for some reason I could not remove:
com.google.inputmethod.pinyin
It gives me this result:
whyred:/ $ pm uninstall -k --user 0 com.google.inputmethod.pinyin
Failure [not installed for 0]
I disabled MIUI optimization in Develop options and rebooted, but this did not help..
Does anyone know why I cannot uninstall this keyboard?
EDIT: Never mind, it was not a system app I guess. Just uninstalled it via the phone.. LOL :silly:
Click to expand...
Click to collapse
Can you please tell how to debloated the system with commands I also like to do so but lack the knowledge

Complete uninstall of Project Fi?

Can anyone please tell me how I can remove completely uninstall the Project Fi app from my rooted Pixel 2?
After leaving PF I found out that they made it so you can't uninstall it , only disable.
I've searched online and looked in the directories suggested, but the app isn't found since they were doing this on different phones.
adb shell pm -k --user 0 package name here
titanium backup also works well for removing system apps
Sent from my Pixel 2 using Tapatalk

Question Debload OnePlus 9

Hi there,
is there an easy way to debloat the one plus?
In the past it was possible with fastboot and the following command e.g.:
Code:
pm uninstall --user 0 cn.oneplus.nvbackup
But this did not work Any ideas?
Use magisk module Debloater.
I had to use a combination of Debloater along with the pm uninstall commands to remove several things that Debloater did not find (Netflix and YouTube among others).
@deadzombieseverywhere: Thank you. That works
Are there already some "safe" lists to use for the OP9?
@Slikkster2k: I will try that. For my op7 I found a long list, what to delete without issues. For the op9 it did not exist up till now, right? Where did you find Netflix?
Code:
pm uninstall --user 0 com.netflix.partner.activation
this did not work for me
I used
Code:
pm list packages -a
to list all packages, then searched the list for what I wanted to remove, and removed it with
Code:
pm uninstall --user 0 <package>
How is it not working for you? Did you get an error?
Mh, it works perfekt...the problem was me not the phone
Or use this app.
I will try, when necessary again
Question: Did somebody know how to get the ability to change the hosts file?
AdAway won't work, so I tried to change the rights at the hosts file, but even with root I was not able to get access...any suggestions?
Did you set AdAway to work systemlessly? And to use systemless hosts in Magisk?
Yes I did...the funny thing is, I had "full root" Firewall was working, but AdAway did not word. I installed Magisk again in the app and suddenly Adaway was working...strange.

Uninstalling system apps Failure [-1000]

Hello there people I have been trying to uninstall few android apps from a Xiaomi device but it seems some of them are throwing this error
whyred:/ $ pm uninstall -k --user 0 "com.xiaomi.calendar" Failure [-1000]
Does anyone have any idea how do I go about fixing this problem ? I would really appreciate any kind of help.
Thanks
My guess is the mentioned app is installed as a system-privileged app: such apps can only get uninstalled by a user with elevated rights, means he/she must be superuser.
BTW:
Uninstalling an app is applied with command
Code:
adb uninstall <PKG-NAME>

Question How to uninstall pre-installed apps stock rom

Hello, is there any guide in how to uninstall pre-installed apps like youtube and youtube music from the stock rom please?
Also another question - is it safe using apps like Shelter or Insular to use them for banking apps and outlook emails?
you can use adb commands.
first do
Code:
adb shell
then check ur user id (typically 0 but if it isnt then replace accordingly)
Code:
pm list users
to disable or uninstall apps for your user do
Code:
pm disable-user --user 0 com.some.package.name
pm uninstall --user 0 com.some.package.name
to enable or re-install apps for your user do
Code:
pm enable com.some.package.name
pm install-existing com.some.package.name
no idea about your second question, maybe open another thread for it, I doubt many people will find it here after reading the title is about installing apps.

Categories

Resources