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
Related
I installed SuperSu v2.67 on a Nexus 5 running stock Marshmallow 6.0.1, and SuperSu works great for me so far!
The only (minor) issue I've encountered thus far is that the SuperSu icon seems to be missing from the Google Now launcher home screen and app drawer.
I can still launch SuperSu by searching for it in the Google Play store and clicking "Open", and it still pops up when an unauthorized app is requesting root access.
I've tried to do a complete unroot + reinstall, change the SuperSu icon from the app's settings etc. - without success.
Has anyone else encountered this? Is there any way to get SuperSu icon to show up?
Thanks in advance.
Try this with your computer:
adb uninstall eu.chainfire.supersu
Reboot back into Android, then reboot into recovery and reflash, or extract the APK from the zip and "adb install" it.
Edit:
Correction! Found the icon. It was buried in the app drawer all along. What threw me off was that for some reason, when I write "SuperSu" or any prefix of the name in the search box at the top, it doesn't find SuperSu, like it does pretty much any other app. Weird.
Anyway, thanks for the help and sorry about the false alarm.
Chainfire said:
Try this with your computer:
adb uninstall eu.chainfire.supersu
Reboot back into Android, then reboot into recovery and reflash, or extract the APK from the zip and "adb install" it.
Click to expand...
Click to collapse
I'm having a similar problem as the OP except that 2.6.7 binaries don't install on a T-Mobile Note 4 (SM-910T3) in either Lollipop or Marshmallow using either the Normal or TWRP methods. 2.6.5 and 2.6.6 binaries install properly, however.
I tried the command in recovery and got the following error:
In other words, you have a completely different problem that isn't even vaguely related. Not enough info, wrong thread.
Also, adb uninstall doesn't work from recovery, only full Android.
Chainfire said:
In other words, you have a completely different problem that isn't even vaguely related. Not enough info, wrong thread.
Also, adb uninstall doesn't work from recovery, only full Android.
Click to expand...
Click to collapse
You're right I didn't explain things right. My ROM comes preinstalled with SuperSU 2.6.6 and I have the same issue as the OP as the app doesn't appear in either app drawer and I can't launch it from the Play Store either. I'll try adb uninstall properly.
The 2.6.7 failed install is a separate issue. Do I start another thread here in the same forum? What info do you need?
Mate if adb shell not working then use this as i got same issues before anyway go to setting/application manger then roll down to find this
eu.chainfire.supersu
Then uninstall it & reboot then re install supersu app extracted from supersu zip it should work for u ok
thereassaad said:
Mate if adb shell not working then use this as i got same issues before anyway go to setting/application manger then roll down to find this
eu.chainfire.supersu
Then uninstall it & reboot then re install supersu app extracted from supersu zip it should work for u ok
Click to expand...
Click to collapse
Thanks. I got it to uninstall and was able to reinstall, but it still wouldn't show up in app drawer or open from the Play Store.
I recently acquired a 2013 Moto X 1058 (AT&T Variant) and I've unlocked the bootloader with Sunshine, I've flashed Lineage OS 13 and Open Gapps but certain apps (facebook, snapchat, facebook messenger, google chrome) among apps will not download, instead immedietly throw the error "cannot install Facebook, try again later if the problem persists get troubleshooting help error code:0" and it does it for most apps. Few apps install, like Firefox, Kik, Android Messages but I cannot get this fixed, I've tried multiple gapps, redownloaded gapps, flashed different roms and i can't get it working.
EDIT: the unofficial TWRP 3 is poorly built and doesnt set permissions correctly, I had to use the terminal and do this
chown -R media_rw:media_rw /data/media/
find /data/media/ -type d -exec chmod 775 {} ';'
find /data/media/ -type f -exec chmod 664 {} ';'
Just download it from TWRP themselves.
go seting -->goole play store --> give all permission
I was not able to put in those commands into terminator emulator, kept saying access denied. Any ideas on how to get access or whatever?
I am suffering the same exact problem. I've tried clearing app cache, removing account, wiping cache in TWRP and so on. Nothing is working. I'm not even able to restore the apps via TiBu. Unfortunately it doesn't appear many ppl suffer from error code: 0
weaver11b said:
I was not able to put in those commands into terminator emulator, kept saying access denied. Any ideas on how to get access or whatever?
I am suffering the same exact problem. I've tried clearing app cache, removing account, wiping cache in TWRP and so on. Nothing is working. I'm not even able to restore the apps via TiBu. Unfortunately it doesn't appear many ppl suffer from error code: 0
Click to expand...
Click to collapse
Try that commands with root
Type in terminal su after flash the root
YedanyXD said:
Try that commands with root
Type in terminal su after flash the root
Click to expand...
Click to collapse
hi, after trying your method, I still cant DL using playstore, tried via adb and twrp terminal
I have error code 0 too
I have a Huawei MediaPad 7 youth and some days ago I noticed Google Play Store was uninstalled. I have my tablet rooted, and prior to this everything was fine. I reinstalled Google Play via an APK file on Lucky Patcher's official page (there's the modded Play Store and the original Play Store APKs, I installed the original cause the modded one couldn't install), and I tried to use Lucky Patcher to make it a system app again, but it said it couldn't cause there was few space on /system/app (I have no idea where this folder is, I looked everywhere with my native Android file manager but I can't find it) and told me to free some space on there. So I decided to let Google Play as an user app, but be careful not to uninstall again. Today I opened Play Store for first time since reinstallation, and tried to install two different VPNs, but they both gave me error code 0. Please help me!
It worked on my HTC One M7 Sense 7 Viper 9.0.0 ROM after getting code 0 for multiple apps! Never had this issue before.
Thank you, OP.
I repeat, OP is not telling you to put in random Linux commands. This method actually works! (for me)
Poororo said:
hi, after trying your method, I still cant DL using playstore, tried via adb and twrp terminal
Click to expand...
Click to collapse
You can install terminal apps and from there give root access and execute above cmd.
Yalp Store FTW
Having the same issue I found, downloaded and installed Yalp Store From F-Droid. It finally let me donwload and install/update apps without needing to access play store directly.
I know some might've solved their issues already, but for those who are on CM/LineageOS and need to gain root access, remember that you can enable root in the developer settings... For Lineage 14.1 I'd google, as there are a few steps before that I think.
Hope it helps someone
Can any one help me with bootloader unlocking
I broke my head over this, but it worked!! Thanks!
smitharro said:
I broke my head over this, but it worked!! Thanks!
Click to expand...
Click to collapse
How did you do that please ?
futchy4u said:
How did you do that please ?
Click to expand...
Click to collapse
Simple: I followed the instructions in the OP.
smitharro said:
Simple: I followed the instructions in the OP.
Click to expand...
Click to collapse
Thanks, I already did that but it didn't fix it.
I got it fixed by swapping internal SD with the ExternalSD
Thanx bro, it's working...
Need your help, bro
RedDeadDorito said:
It worked on my HTC One M7 Sense 7 Viper 9.0.0 ROM after getting code 0 for multiple apps! Never had this issue before.
Thank you, OP.
I repeat, OP is not telling you to put in random Linux commands. This method actually works! (for me)
Click to expand...
Click to collapse
I have the same error on my One M7 with Viper 9.0.0 ROM. And I can't fix it. Please help me. Explain how you fixed it. Thanks, bro.
I'm getting the same error.. Ive tried flashing other versions of TWRP and Roms. No clean flash will correct it. What is the deal with this?
Me too. By the way, what's "OP"? where is it?
RunAway15 said:
I'm getting the same error.. Ive tried flashing other versions of TWRP and Roms. No clean flash will correct it. What is the deal with this?
Click to expand...
Click to collapse
I fixed this error. Follow this instruction: android-fix.com/google-play-problems/51-error-code-0.html
I do "Set permissions with Android Debug Bridge". And everything 's ok now.
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>
First of all i highly recommend you update your phone to latest version of Flyme as of day i write this guide newest stable version is 7.0.0.0G. It brings various bug fixes as well as security update and new functions. It fixed the weather problem too when it would not appear on secondary screen. This is my experience based on the standard model with Helio P25 chip.
JUST IN CASE BACKUP ALL OF YOUR DATA FIRST
Grab it at http://www.flymeos.com/firmwarelist?modelId=88&type=1
Installation is pretty straightforward:
-switch off your phone
-now press volume up button and power button at same time, then release power button when meizu logo appears
-phone now will enter update mode, connect it to pc and it should show up as removable drive named recovery, copy the update.zip over it
-once copied tap the start button to begin. the process itself and first boot will take a while
-when done and phone boots up just log in to your accounts and set up everything as normal or whatever
ta-dah ! you should be running latest software now.
Next problem i've encountered was big number of unwanted apps and you will need working ADB for that. I've always used custom roms which did not contain bloatware. Now im giving you one of the way of disabling them (not permanent removal).
For this to be done you need to activate developer mode and usb debugging, simply go to settings->about phone->and now tap on your build number several times
After you activate it it will be available in accessibility options under developer settings. just check the usb debugging and you're good to go
DISCLAIMER: dont ask me about adb drivers for your phone, since i had issues installing them under win 10 x64 build 1803 i thought "aw f*ck it" and just did it on linux where everything worked out of the box.
The application you will need is called Ice Box (you will find it here https://play.google.com/store/apps/details?id=com.catchingnow.icebox&hl=en_US) and install it.
After you install the app its necessary that you remove ALL of your accounts including your Google account. We will need to grant the app device owner permission. Also if multi-user or guest mode has been set on your device, it need to be closed or deleted.
When you have that done just type in your command line , terminal or whatever "adb shell dpm set-device-owner com.catchingnow.icebox/.receiver.DPMReceiver "
Now reboot and add your accounts back, and disable/freeze uwanted apps.
Last - the night mode. As its no longer availble in Flyme 7 if you want to use it you need to manually bring it back by installing Flyme Lab and enabling it trough quickshortcutmanager. Install both apps, then open quickshortcutmanager and search for Flyme Lab. expand it and choose the activity named com.meizu.flymelab/com.meizu.flymelab.component.nightmode.NightModeSettingsActivity .Create shortcut and open it. You should be able to enter the night mode.
Nice guides, thanks.
It's also nice that Flyme 7 still supports rooting, therefore I'm using Titanium Backup to freeze unwanted apps. I bought it when I was using another phone so, for me, it's still worth it. Altough, for uninstalling system apps I'm using separate ADB commands for each app.
cris2d2 said:
Nice guides, thanks.
It's also nice that Flyme 7 still supports rooting, therefore I'm using Titanium Backup to freeze unwanted apps. I bought it when I was using another phone so, for me, it's still worth it. Altough, for uninstalling system apps I'm using separate ADB commands for each app.
Click to expand...
Click to collapse
Its first time for me writing a guide so good word is always appreciated. What im trying to show here is the no root way of getting rid of apps for ppl like me who dont want to root their phone. As i bought it literally two days ago and i dont want to mess with it too much and loose warranty or/and OTA updates.
I also been considering posting a root guide once i tried it myself to confirm it working.
non.verbal said:
Its first time for me writing a guide so good word is always appreciated. What im trying to show here is the no root way of getting rid of apps for ppl like me who dont want to root their phone. As i bought it literally two days ago and i dont want to mess with it too much and loose warranty or/and OTA updates.
I also been considering posting a root guide once i tried it myself to confirm it working.
Click to expand...
Click to collapse
Well, before I discovered a rooting method for Flyme 7, I used to uninstall apps by using ADB commands. So, yes, it is possible to remove unwanted system apps without root. But now, after rooting Flyme 7, I'm only using Titanium Backup to freeze unwanted system apps, not removing them.
As far as I know, rooting Meizu phones by the official method (from Settings) does not lead to losing warranty. Only OTA updates are lost, but this is not important, at least to me, because I can always check Flyme website for new updates and, if I want to update, I just download the file and flash it through standard Flyme recovery. There is no need, for me, to maintain OTA capability. Anyhow, Flyme updates are slow to non-existent, so we can't really complain about losing an update.
Thank you all. I'm happy with this phone at all, but software has few shortcomings and design flaws, in my opinion. Especially related to the integration with "flyme login" and Touchpal. This last one is very annoying because although I try to stop it, at each software update it comes back, more annoying than ever. So, I have some questions: which is the adb command to stop and freeze bloatware without rooting? Which is the official way to root the phone? Once rooted, is it possible to revert to the unrooted state? Some apps, actually, do not work on rooted phones. Thanks
pask876 said:
Thank you all. I'm happy with this phone at all, but software has few shortcomings and design flaws, in my opinion. Especially related to the integration with "flyme login" and Touchpal. This last one is very annoying because although I try to stop it, at each software update it comes back, more annoying than ever. So, I have some questions: which is the adb command to stop and freeze bloatware without rooting? Which is the official way to root the phone? Once rooted, is it possible to revert to the unrooted state? Some apps, actually, do not work on rooted phones. Thanks
Click to expand...
Click to collapse
I can't freeze (or disable) apps with ADB commands, only uninstall.
You need [email protected], App Inspector or similar (to find exact name of package for an app) and these commands:
adb devices
adb shell
pm uninstall -k --user 0 name_of_package
Example, for gmail:
pm uninstall -k --user 0 com.google.android.gm
Regarding rooting, as far as I know, the only method that works on Pro 7 / Pro 7 Plus is also supported by Meizu (but it breaks OTA updates).
The method is described in this video (in russian) but it's quite easy.
If you want to remove root (or if root breaks functionality) you have to reflash the same ROM from Recovery (without wipe).
Any air update coming soon? Or manually installation single option?
Hello there!
As per title I'm having a hard time installing any apk that's not coming from the Play Store.
Never happened with any other phone and googling for an hour and a half didn't help, so I've decided to post it here.
Emui10 (last build).
Play protect is disabled.
Chrome is enabled as unknown source.
Tried also third party installers with no luck.
I uploaded a little video but can't post it due to anti spam policy, in wich it shows the installation process starts, but in the end says "App not installed".
What am I missing?
Thanks in advance for any help!
A little update:
Tried to install them via ADB but that's the error I get:
[INSTALL_FAILED_DUPLICATE_PERMISSION: Package com.vanced.android.youtube attempting to redeclare permission com.mgoogle.android.c2dm.permission.RECEIVE already owned by com.mgoogle.android.gms]
Unfortunately my knowledge ends here...
Shakin0 said:
A little update:
Tried to install them via ADB but that's the error I get:
[INSTALL_FAILED_DUPLICATE_PERMISSION: Package com.vanced.android.youtube attempting to redeclare permission com.mgoogle.android.c2dm.permission.RECEIVE already owned by com.mgoogle.android.gms]
Unfortunately my knowledge ends here...
Click to expand...
Click to collapse
YouTube came preinstalled on P30, so you have to use adb to remove it before you try to install a new one.
Here you can find the guide to remove it: https://forum.xda-developers.com/hu...w-to-remove-huawei-bloatware-vog-ele-t4014937
zimmen said:
YouTube came preinstalled on P30, so you have to use adb to remove it before you try to install a new one.
Here you can find the guide to remove it: https://forum.xda-developers.com/hu...w-to-remove-huawei-bloatware-vog-ele-t4014937
Click to expand...
Click to collapse
Strange thing is that on my previous phone I had both YouTube (the official one), and YouTube Vanced...
Uninstalling via ADB ends in an error (can't rememeber which one as I'm afk atm). Another strange thing is that I already successfully unisntalled a lot of other processes mentioned in the guide you linked!
Now that I'm writing I guess that the phone clone process could have messed up some app/permissions, so I guess I'm doing a factory reset, clone everything but apps, try to install Vanced and Microg and then reinstall all my apps manually :good:
Shakin0 said:
Now that I'm writing I guess that the phone clone process could have messed up some app/permissions, so I guess I'm doing a factory reset, clone everything but apps, try to install Vanced and Microg and then reinstall all my apps manually :good:
Click to expand...
Click to collapse
And THAT solved the problem. :laugh: