Related
I came across this guide that explained how to get a sideloaded apk to work with Android Auto.
It got me thinking, there are always some apps that don't respond well to integrations due to the getInstallerPackageName() method of checking the install source.
Would someone be kind enough to create a module that does this so we do not need to connect our phones to the PC every time we update the APK just for a few apps?
There's no need to connect to your computer (and neither for a Magisk module, really). You should be ably to simply run the command in a Terminal emulator instead (without the ADB shell part).
As Didgeridoohan said and you could try as
Code:
pm set-installer "PACKAGE" "com.android.vending"
Replacing PACKAGE with the package name of app installed already you want to change its installer to Google Play.
Can't you do this in titanium backup by clicking on the app and going to special features tab and clicking attach to market?
This pm set-installer didn't work for me. What did was just installing the package (as root , not sure it's needed) with:
pm install -i "com.android.vending" <apk>
Hello.
I uninstalled Find Device (pm uninstall -k --user 0 com.xiaomi.finddevice) to avoid its periodic enabling reminders.
However now sometimes "find device has been destroyed" appears as a toast. Also the Security Status in the Settings now crashes.
After finding this message (despite it is other phone model) I'm frightened about a future reboot of my phone. Can my phone really enter in a boot loop the next time I reboot? I have the miui optimization disabled, though.
I have tried to install it back, downloading the 9.0 apk, but it says INSTALL_FAILED_ALREADY_EXISTS. Using the "-r" switch also doesn't works ("com.xiaomi.finddevice is a persistent app. Persistent apps are not updateable"). I assume that this is due to haven't erased the app data (uninstalled with -k) but "pm clean" doesn't seems to clean it. I also have tried the -p option for partial installation, but returns a null exception.
Ah, my device is not rooted. MIUI Global 10.2 stable.
I managed to restore the application with the following adb command:
Code:
pm install-existing com.xiaomi.finddevice
It also works with applications uninstalled without "-k 0".
By the way, I used to use "pm disable", but now it seems it is called "pm disable-user".
So, next time I'll preferably use it instead of uninstalling, if works as expected.
Note that it doesn't allows to disable finddevice:
Code:
$ pm disable-user com.xiaomi.finddevice
Package com.xiaomi.finddevice new state: default
The package still continues in default state, unlike when it actually works:
Code:
$ pm disable-user com.miui.player
Package com.miui.player new state: disabled-user
Credits for these great discoverings to this blog post (eskerahn.dk/wordpress/?p=2462) [add the https prefix, I can't yet post urls!]
is there a any way to uninstall this application without trouble (without bootloop)?
i have the same question is there a any way to uninstall this application without trouble (without bootloop)?
If it doesn't boot, it's awesome tho.
Without modifying the vendor ROM image there is no way to get rid of it.
Hello Friends,
When I was on MIUI 11, I had removed Mi apps like Mi pay, Mi video, Poco launcher, Mi browser and Mi music by adb. Now I have updated to latest MIUI 12 but I am not able to remove Mi calendar, Mi browser via adb. I get an error message, "failure [-1000]". Why is it happening and how I can remove the bloatware?
Hi Friends,
I am using MIUI 12.0.2.0 China stable ROM on my K20 Pro & I removed all the bloatwares apps included in this rom. For removings apps I use XiaomiADBFastbootTools.jar .I suggest you download this tool & install JDK (java development kit) for the removal process. I am very haappy with this tool. I also use it on XIAOMI.EU rom.
I hope your problem will be solved with this great tool.
On global rom the tool cannot remove these apps, no idea why not.
boomboomer said:
On global rom the tool cannot remove these apps, no idea why not.
Click to expand...
Click to collapse
You try this tool on global ROM?
i try that tool on global miui 12 and it cant remove that apps.
But on latest beta orange fox recovery exist option to remove system apps. didnt try as i change miui 12 global to Xiaomi.eu weekly and tool can remove that apps.
so global stable cant remove and xiaomi.eu weekly can remove
I tried with both Szaki's tool and OrangeFox Recovery tool, none of them work.
I confirm that following apps can't be removed on Global (12.0.1) MIUI 12
Code:
com.mi.android.globalminusscreen
com.mi.globalbrowser
com.xiaomi.calendar
com.miui.player
com.miui.videoplayer
com.miui.weather2
Following error occurs when I try to uninstall any of these apps:
Code:
pm uninstall --user 0 com.mi.android.globalminusscreen
Failure [-1000]
I removed it
renr29 said:
I removed it
Click to expand...
Click to collapse
This affirmation without an explanation is sh*t
bartito said:
This affirmation without an explanation is sh*t
Click to expand...
Click to collapse
we can remove it on custom miui roms
slavke1976 said:
we can remove it on custom miui roms
Click to expand...
Click to collapse
MIUI custom ROMs are not in question.
You allways can remove these sh*t apps on a custom ROM or, if can't be removed by "pm uninstall" command, you can remove by recovery.
The question is to remove these apps from unrooted and unlocked MIUI 12 global
bartito said:
MIUI custom ROMs are not in question.
You allways can remove these sh*t apps on a custom ROM or, if can't be removed by "pm uninstall" command, you can remove by recovery.
The question is to remove these apps from unrooted and unlocked MIUI 12 global
Click to expand...
Click to collapse
I understand, but the answer is that we cant from miui 12 global. My phone is unlocked and i had magisk. and miui global stable, removing that apps is not possible with that debloater tool or commands. Didnt try other metods. but with debloater tools as sakis, it doesnt work.
bartito said:
I confirm that following apps can't be removed on Global (12.0.1) MIUI 12
Following error occurs when I try to uninstall any of these apps:
Click to expand...
Click to collapse
The smallest ADB package for PC that is enough for ADB is Minimal ADB and Fastboot (find a thread on XDA)
According to your error, it was the following ADB command that failed:
adb shell pm uninstall -k --user 0 <pkg-name>
Try instead the other ADB command:
adb shell pm disable-user <pkg-name>
Where <pkg-name> stands for:
com.mi.android.globalminusscreen com.mi.globalbrowser
...
or package name for any other system app you want to disable - use AppInspector from Playstore to read package names corresponding to the apps
I'm not using any windows command but the adb shell command to access the device then exec pm uninstall command.
I also confirm that I've tried also pm disable and pm disable-user and both fails to remove/disable the related apps
zgfg said:
Instead of using a jar (not knowing what's inside), you can use ADB commands - simply install Minimal ADB and Fastboot package to PC
According to your error, jar executes the following ADB command:
adb shell pm uninstall -k --user 0 <pkg-name>
Try instead the other ADB command:
adb shell pm disable-user <pkg-name>
Where <pkg-name> stands for:
or package name for any other system app you want to disable - use AppInspector from Playstore to read package names corresponding to the apps
Click to expand...
Click to collapse
bartito said:
I'm not using any windows command but the adb shell command to access the device then exec pm uninstall command.
I also confirm that I've tried also pm disable and pm disable-user and both fails to remove/disable the related apps
Click to expand...
Click to collapse
By AppInspector, find the system or data folder and apk name where the corresponding app is installed
By using TWRP (root not required) or e.g. MiXPlorer (root required), go to that folder and rename <app-name>.apk to <app-name>.bak and reboot
If you disabled a critical app causing e.g. a boot failure, use TWRP and rename bak file back to the original apk extension
To use twrp root isn't required but bootloader unlocked.
My bootloader is locked
zgfg said:
By AppInspector, find the system or data folder and apk name where the corresponding app is installed
By using TWRP (root not required) or e.g. MiXPlorer (root required), go to that folder and rename <app-name>.apk to <app-name>.bak and reboot
If you disabled a critical app causing e.g. a boot failure, use TWRP and rename bak file back to the original apk
Click to expand...
Click to collapse
zgfg said:
The smallest ADB package for PC that is enough for ADB is Minimal ADB and Fastboot (find a thread on XDA)
According to your error, it was the following ADB command that failed:
adb shell pm uninstall -k --user 0 <pkg-name>
Try instead the other ADB command:
adb shell pm disable-user <pkg-name>
Where <pkg-name> stands for:
com.mi.android.globalminusscreen com.mi.globalbrowser
...
or package name for any other system app you want to disable - use AppInspector from Playstore to read package names corresponding to the apps
Click to expand...
Click to collapse
Thanks a ton!! The MIUI browser (com.mi.globalbrowser) had been bothering me for quite some time, and because of you I was able to get rid of it! Thanks!
I can also confirm that using the disable function works on both the browser and calender apps, you can't uninstall but it will accept disable - problem solved
boomboomer said:
I can also confirm that using the disable function works on both the browser and calender apps, you can't uninstall but it will accept disable - problem solved
Click to expand...
Click to collapse
Btw, there is not much difference in disabling and 'uninstalling' - i.e., don't think that
adb shell pm uninstall -k --user 0 <pkg-name>
would really remove the package from your system
It only uninstalls for the current user 0 - but the app is still available on the system for user 999
And the opposite command:
adb shell cmd package install-existing <pkg-name>
would reinstall it (for user 0), hence package was not really deleted from the system (to save some MBs or so)
---
The only differences between disabling and uninstalling (both make it for user 0) are
- Disabled apps are still visible in Settings, Apps and some of them can be re-enabled by click from there.
Playstore will show you an update of disabled app and if you want to prevent its automatic update (and re-enabling) you have to disable its auto-update in Playstore.
Similarly for System apps updater from Xiaomi (disable auto-updating and when it offers to update an app you have disabled, click to ignore the update)
- 'Uninstalled' ones are not visible in Settings, Apps. If you want to 're-install' them you have to remember what you have 'uninstalled'' and their package names.
Playstore and System apps updater will not bother you about their updates
Thanks, but this is just with the ADBFastbootTools.jar and the uninstall option failed for the new Mi Browser and Calender, but the disable option worked. Both are annoying bloatware that can't be fully removed without root, so this is the next best option.
So, I was going through and removing bloat from my phone and was trying to remove the Samsung Contacts app through `adb`, but apparently I removed the wrong thing and now the Phone, Messages, and Contacts app are crashing every time I try to open them. I removed "package:/system/priv-app/SamsungContactsProvider/SamsungContactsProvider.apk=com.samsung.android.providers.contacts" which is apparently a core service. I'm wondering if anyone might know how I could reinstall that APK?
install this apk should solve the problem
If worse comes to worse a factory reset will.
A lot of the bloatware is useful. I prefer to use a package disabler as I can easily toggle them on or off as needed real time.
rtd4 said:
install this apk should solve the problem
Click to expand...
Click to collapse
It sat for a minute trying to install and then came up with, "App not installed" and says that every time I retry.
Trying install via adb I get: "
Performing Streamed Install
adb: failed to install /home/mhicks/Downloads/SamsungContactsProvider.apk: Failure [INSTALL_FAILED_DUPLICATE_PERMISSION: Package com.samsung.android.providers.contacts attempting to redeclare permission android.permission.SEND_CALL_LOG_CHANGE already owned by com.android.providers.contacts]"
Hmmm, perhaps I should remove Google Contacts first...
Okay, that helped, but now I'm getting: "
Performing Streamed Install
adb: failed to install /home/mhicks/Downloads/SamsungContactsProvider.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]"
I thought deleting the "com.samsung.android.providers.contacts" might solve the problem, but trying gave me: "
./adb -d uninstall com.samsung.android.providers.contacts
Failure [DELETE_FAILED_INTERNAL_ERROR]"
darkfrog26 said:
It sat for a minute trying to install and then came up with, "App not installed" and says that every time I retry.
Click to expand...
Click to collapse
try these commands on pc
adb shell cmd package install-existing com.samsung.android.providers.contacts
adb shell pm install -r --user 0 /system/priv-app/SamsungContactsProvider/SamsungContactsProvider.apk
The first command returns: "Package com.samsung.android.providers.contacts installed for user: 0", but the second command returns: "Failure [-3001: INSTALL_FAILED_REJECTED_BY_BUILDTYPE]"
If you have deleted the apk with root you just have to paste it again in the folder /system/priv-app/SamsungContactsProvider
@rtd4, unfortunately, this device isn't rooted.
darkfrog26 said:
@rtd4, unfortunately, this device isn't rooted.
Click to expand...
Click to collapse
It is somewhat complicated to recover the device without wipe in the past I had these problems, it was solved with a higher version of the application
@rtd4, I suppose it's time for a wipe... Thanks for trying to help me.
If you had made a copy of all your apps including system apks with ApkExport you could now use that copy to restore it.
Now before you factory reset make a copy of your installed apps and any system updates then save it on the PC or SD card. After the reload you won't need Playstore. It speeds things up a lot...
APK Export (Backup & Share) - Apps on Google Play
Manage and extract your apps.
play.google.com
@blackhawk, thanks for the tip. Right now, I'm trying to set up a Telegram account so I can root my phone (US version) if I'm going to go through the trouble of wiping. Unfortunately, Telegram's SMS verification appears to be broken or at least doesn't like Mint Mobile... Fun day.
darkfrog26 said:
@blackhawk, thanks for the tip. Right now, I'm trying to set up a Telegram account so I can root my phone (US version) if I'm going to go through the trouble of wiping. Unfortunately, Telegram's SMS verification appears to be broken or at least doesn't like Mint Mobile... Fun day.
Click to expand...
Click to collapse
You're welcome.
You really don't need to root.
Consider the possible consequences carefully.
Package Disabler will easily block apks you don't want running.
Well, it would appear it's moot anyway since I'm at Baseband v4 and only v1 can be rooted apparently...
darkfrog26 said:
Well, it would appear it's moot anyway since I'm at Baseband v4 and only v1 can be rooted apparently...
Click to expand...
Click to collapse
This is the one I use:
Home - Package Disabler
The only NON-root solution that letβs you disable any unwanted packages that come pre-installed / installed with your phone / tablet.
www.packagedisabler.com
It has an interactive widget that allows you to toggle selected entries on/off. It runs even in Safe mode so be careful what you disable. I've never had to do a factory reset because of it but the potential is there.
Unfortunately it no longer disables Google play Services but will disable all carrier bloatware including OTA updates.
darkfrog26 said:
@rtd4, unfortunately, this device isn't rooted.
Click to expand...
Click to collapse
Then how come you have removed apk from system?
In case you have used command like
pm disable packageName . Then try pm enable packageName
Or
If you have used
pm hide packageName then try
pm unhide packageName
darkfrog26 said:
So, I was going through and removing bloat from my phone and was trying to remove the Samsung Contacts app through `adb`, but apparently I removed the wrong thing and now the Phone, Messages, and Contacts app are crashing every time I try to open them. I removed "package:/system/priv-app/SamsungContactsProvider/SamsungContactsProvider.apk=com.samsung.android.providers.contacts" which is apparently a core service. I'm wondering if anyone might know how I could reinstall that APK?
Click to expand...
Click to collapse
Next time use this, so you don't make mistakes:
[TOOL] ADB AppControl 1.8.0 π Ultimate App Manager & Debloat Tool + Tweaks
ADB AppControl π Root is not required. Works with any Android device. Can do almost everything you dreamed about with applications. ADB AppControl - the desktop program, that will allow you to easily manage applications on your android device...
forum.xda-developers.com
Due to my previous wrong operation, I cannot manage su now.
I tried to download Magisk uninstall.zip in git tonight, uninstall and then install, install and uninstall, Magisk app is always there (because it was installed by me as a system application).
I have tried adb uninstall (adb uninstall com.topjohnwu.magisk), but I cannot get root privileges.
I tried both of the two uninstall methods in the app, but they didn't work. Every time I restarted, it was still the same.
I cannot use magisk to authorize other applications, nor can I uninstall it from the system software.
In addition, after every restart, it will say that the `su database is damaged, the database will be rebuilt`, and then I restarted again, opening magisk is still the same prompt.