Question Uninstall System Apps .ie. com.microsoft.teams - Microsoft Surface Duo 2

My phone is rooted.
I only rooted to try to uninstall/completely remove com.microsoft.teams
I found this folder in /product/app
MicrosoftTeams
31 Dec 08 rwxr-xr-x
Even as root I am unable to delete this folder/contents
The reason for needing this is that I am trying to installed Teams via the company portal but get an error message:
"you can not install this app because another user has already installed an incompatible version on this device."
Any ideas or workaround on this item?
This is the only app giving me issues.
also, tried ADB Control to "uninstall" it but the app still exists after reboot and the option to restore/intall it is still available.
If I try to unistall via adb commands I get this error:
>> adb uninstall com.microsoft.teams
Failure [DELETE_FAILED_INTERNAL_ERROR]

Try these commands in order:
adb shell
su
pm uninstall com.Microsoft.teams

traman124 said:
Try these commands in order:
adb shell
su
pm uninstall com.Microsoft.teams
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Add
Code:
--user 0
to the end of the pm (e.g
Code:
pm uninstall —user 0 com.Microsoft.teams
)

Dont know if it is dependent on any of the following:

Oh so it's a surface duo.
No, isn't dependent on any of those, but remember that some of those are best not removed.

traman124 said:
Add
Code:
--user 0
to the end of the pm (e.g
Code:
pm uninstall —user 0 com.Microsoft.teams
)
Click to expand...
Click to collapse
The preinstalled app is still in /product/app
The work profile still detects that it is installed / with the same incompatible version error
also this is after restart of above commands.

ok uninstalling per-user won’t work with a work profile (ok that’s an unintentional pun). I’m not sure how to proceed from here - that internal error is something I’ve never seen before and the Internet says per user is the only way.

Resolved my issue.
I manually installed the Teams app to the work profile:
Downloaded it to /data/local/tmp using a root explorer
Ran the following command:
adb shell pm install --user (ID) /data/local/tmp/android.apk
Also prior I went to developer settings and disable verify apps via USB.
Or else you may receive and error: [INSTALL_FAILED_VERIFICATION_FAILURE]
Then you can install an .apk without any issues.

Ok so a work profile counts as a separate user. I haven’t needed a work profile on an Android phone in some time, and the apps show up in your regular Home Screen (as opposed to a separate user account).

Related

[Guide]How to enable Multi-User mode in CM 11

This guide can also be used on any rom running 4.2.2+.
Requirements
→Rooted device
→Xposed framework
→A Brain?
This method may not work on stock because stock roms doesn't supports but still you can try it.
There are two different methods of doing this.
METHOD 1:-
JUST download multi-user app from xposed repository and reboot. You will get a option of User under apps.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Now just tap on it and add or manage users.
METHOD 2:-
In a terminal window or ADB, you’ll need to obtain SuperUser/root access. This is generally done by typing in su. After obtaining SuperUser access, type in:
pm get-max-users
Click to expand...
Click to collapse
This should return the numeric result of “1,” which is the maximum number that the current OS is set up accept. If it returns an error, then your ROM is most likely unable to handle multiple users.
Next, you’ll need to change that number to something higher. In the following, I chose to set it to eight users because I felt like it.
Now type in:
setprop fw.max_users 8
pm create-user usernameyouwanthere
Click to expand...
Click to collapse
You may notice the shell reboot, and if you’re on a ROM build that supports multiple users properly, you’ll either get a login request, or a users section will appear under device in system settings. Depending on your ROM, you might even see an option in the developer’s menu to enable user selection in the power menu.
Keep in mind that this may not work completely or be supported by your ROM, but in some instances it’s quite useful. The worst that should happen is that you have to restore a nandroid, or that the max_users changes back to single-user after a reboot.
★How to make it stick
Inspired by a comment from konnor below, this is how I got the multiple user mode to stick:
Code:
adb shell (if you’re not already, you can use terminal emulator if you want)
su
mount -o rw,remount /system
echo fw.max_users=4 >> build.prop
exit
exit
adb reboot (or reboot the device however you want)
From now on out the max_users will always be there when you boot.
After a reboot, swiping down and pressing my face brings me to the lock screen where all users are displayed. Your results may vary so make sure to have a nandroid backup.
Not my work just posting it in XDA.
PRESS THANKS IF I HELPED YOU
REGARDS
banerjeeayan1996

Ghost push fix

I fixed my mom's phone since it started showing some weird ads and downloads apps by itself im just sharing this just hoping it would help everyone
1. Download stubborn trojan killer its available in playstore or just copy the apk on ur sd if ur fone is already not working due to a lot of malware messing up ur fone.warning dont use shareit cuz i actually infected my fone �� run this app so it will remove some malware downloaded by ghost push so it wont be too hard for u to continue since my moms fone doesnt seem to respond well due to the malwares. And that ghost push will keep coming back
2. Disable those app that obviously is a malware to u. Look at system/priv app
U will notice there are apps that obviously have wrong dates unistalled it if it failed just disable them on settings/apps.
3. Download avira run it and it will detect infected apks
I run this multiply times before its completely clean so it wont keep spreading. Its recommended to run multiple times.
4. Download kingroot and run it. Press the button below the numbers shown on the app it somehow fixes ur root permissions since that malware somehow messed up root. And click the upper left button in the app.
5. Install busybox.... i dnt know if this is actually needed
6.run stubborn trojan killer again and this time ghost push wont be showing up again
Hope this works for everyone else too ��
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
No more annoying pop ups and downloads and no more detection of ghost push on stubborn killer
But those malware are still in ur system app i think u need to use adb to manually remove them from system apps its those with recent dates btw its a kitkat 4.4
Remove those with suspicious dates it can be more than 2
adb devices
adb shell
su
mount -o remount,rw /system
cd system/priv-app
chattr -iaA (suspicious file).apk
rm (suspicious file).apk
chattr -aA (suspicious file).apk
rm (suspicious file).apk

[E2333 ] Ads

Hi, I have a problem, I keep receiving subscription ads requests, it seems that it is from my cellphone company, since you can see the sim image in there but I am not sure. This are some examples:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Background info: (running Android 6.01, 26.3.B.0.131)
So I used to be on a cell phone company which had this subcription ads request (Movistar), but I changed to another one which they say they do not have any of that (Tuenti), with the same number, and they are both owned by the same company (Otecel), so maybe some settings from the old operator were kept in the new ones, I have talk and talk and talk with them, and i just keep receiving this ads.
Is Root the solution?
Maybe if root my device, I can disable the sim services app, or I do not know something else, and I would not receive this ads again, or what do you guys recommend me.
Hello, have you tried to 'adb hide' or 'adb disable' the STK apk? No root required AFAIK
Pixelado said:
Hello, have you tried to 'adb hide' or 'adb disable' the STK apk? No root required AFAIK
Click to expand...
Click to collapse
No, I have not tried not, because I do not know how to do it, could you please teach me , please noob steps
Sorry for being so late haha.
I'll assume you're using Windows 7 or newer.
Steps:
- Get ADB and proper drivers for your devices (Flashtool ships with all of this)
- Enable dev settings on your phone
- Enable USB debugging. Disregard all warnings
- Connect your Xperia to your PC via USB cable
- Wait for drivers to install
- Open a terminal/command prompt on your PC, point it to a directory where you have an ADB executable (adb.exe) (you can do this by opening the flashtool libs folder, eg: c:\flashtool\x10flasherlib, and right-clicking anywhere on the window while keeping the SHIFT key pressed)
- Issue the following command:
-- adb devices
Your phone should ask for authorization now. Grant it
- Issue the following command(s):
-- adb shell (this gives you access to your device's terminal from your PC)
-- pm disable com.android.stk
If the above command fails, try:
-- pm hide com.android.stk
- You're done
You can avoid using a PC by using a terminal emulator on your device AFAIK. I might be wrong though.

Question Issue with notifications after the 12.5.1 update

Since the last MIUI update I am experiencing an issue with notification. When using a video player (like Plex, VLC, YouTube Vanced), I usually see a notification icon when using background playback. This is now gone. Also, and this is the main issue actually, when I close the app I still see it in the notification center and when I swipe it away it still occupies the same space. The notifications below it won't move up. And when I put the phone in stand-by and then open it again, the multimedia notification is there again. The only way to get rid of it is to force close the app.
Is anybody else experiencing this ?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
i have the exact same issue after 12.5 update
Yes is a known bug of this release.
The only solution is by ADB
Open developer tools, connect by USB, and by ADB shell type the following command:
adb shell settings put secure qs_media_resumption 0
That's all
adb shell settings put secure qs_media_resumption 0
thank you, fixed the issue
rello1976 said:
Yes is a known bug of this release.
The only solution is by ADB
Open developer tools, connect by USB, and by ADB shell type the following command:
adb shell settings put secure qs_media_resumption 0
That's all
Click to expand...
Click to collapse
Thanks for this. I'm trying to get this to work, but I don't have much experience using adb. Could you perhaps tell me why it's not working for me ?
adb shell
* daemon not running; starting now at tcp:5037
* daemon started successfully
renoir:/ $ settings put secure qs_media_resumption 0 Exception occurred while executing 'put': java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:2105) at com.android.providers.settings.SettingsProvider.mutateSecureSetting(SettingsProvider.java:1615) at com.android.providers.settings.SettingsProvider.insertSecureSetting(SettingsProvider.java:1566) at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:408) at android.content.ContentProvider.call(ContentProvider.java:2486) at android.content.ContentProvider$Transport.call(ContentProvider.java:522) at com.android.providers.settings.SettingsService$MyShellCommand.putForUser(SettingsService.java:375) at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:277) at android.os.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:98) at android.os.ShellCommand.exec(ShellCommand.java:44) at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:49) at android.os.Binder.shellCommand(Binder.java:932) at android.os.Binder.onTransact(Binder.java:816) at android.os.Binder.execTransactInternal(Binder.java:1162) at android.os.Binder.execTransact(Binder.java:1126)
UPDATE: nvm, I figured it out. I had to also enable the debugging feature that allows secure access. (and log into my Mi account, blegh).
Thanks again
Thank you, the above fixed the issue
Here is a simpler way to fix that, you just need to update MIUI Notifications built-in app to a newer version.
I have attached the apk file, just install it on top of the existing version.
Gonna try it now. Thanks!
Hi, I did the adb process adb shell settings put secure qs_media_resumption 0 but now i'm having issues when the phone connects to the car bluetooth as the song names aren't being updated. How can I revert this, which is the default value for it? I would like to try and see if fixes the issue with the car system and then try to update the notif apk.
thanks!
anyone?

Question Moto App Centre apk

Hi
I am enjoying my Moto X40. But I deleted the Moto's app store (aka Moto App Centre). Just wondering where I can get the APK file to reinstall it. Thanks
There is no such thing as a Motorola App Center or app store, you got me confused about what you mean, so the full package name can be useful. Either way, once you got the package name you should be able to restore it by entering this:
cmd package install-existing com.motorola.moto (you may actually be talking about this one, as it's a hub to various features/installed apps. Not to speak of that it's available in Google play store as easiest route)
For stock apps, that command will find the original package and redeploy it, useful in cases where someone runs a debloater or so, and would have done the equivalent e.g: pm uninstall --user 0 com.motorola.moto
If this doesn't work you still need to provide the exact package name, so others can try to help you by extracting and uploading it @devils13
Or, if you are Brazilian, maybe you mean "Motorola App Box" (com.motorola.brapps aka BRApps2) which is a pt-BR app store of sorts. For this thing, only the following is known and there's no activation or GUI outside of that region:
App Box offers a selection of applications developed by Brazilians and also apps selected for you.
The suggested applications do not occupy space in the handset’s memory until they are installed. They will be installed only if the user so wishes.
Developed by Motorola, App Box comes in handsets that benefit from Brazil’s Lei do Bem, helping the applications development market in the country and ensuring reduced smartphone prices.
Click to expand...
Click to collapse
If that's what you mean, use cmd package install-existing com.motorola.brapps or just in case i will attach extracted APK file below.
mxz55 said:
There is no such thing as a Motorola App Center or app store, you got me confused about what you mean, so the full package name can be useful. Either way, once you got the package name you should be able to restore it by entering this:
cmd package install-existing com.motorola.moto (you may actually be talking about this one, as it's a hub to various features/installed apps. Not to speak of that it's available in Google play store as easiest route)
For stock apps, that command will find the original package and redeploy it, useful in cases where someone runs a debloater or so, and would have done the equivalent e.g: pm uninstall --user 0 com.motorola.moto
If this doesn't work you still need to provide the exact package name, so others can try to help you by extracting and uploading it @devils13
Click to expand...
Click to collapse
Chinese version Motorola has something called "app center"
Here is picture of Edge X30 Pro (taken from internet)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Categories

Resources