[Q] How to reinstall a System App thru ADB? - Samsung Galaxy S8 Questions and Answers

I mistakenly uninstalled the com.android.phone package using the command:
Adb shell pm uninstall -k --user 0 com.android.phone
I thought I was just uninstalling Samsungs dialer but I uninstalled the system app to handle phone calls, now every time I try to call someone I get an error. Is there any way to restore the app ? Please help !
I'm not rooted btw!

Related

No longer able to delete sprint apps with adb

Hello,
I recently factory reset as my phone was having a lot of lag issues. When i was debloating it again, it no longer let me uninstall ANY sprint apps. I really hate the sprint apps, they keep installing uber etc. If anyone know why please, let me know.
thanks.
Code:
lucye:/ $ pm uninstall -k --user 0 com.sprint.w.installer
Security exception: Cannot delete com.sprint.w.installer
java.lang.SecurityException: Cannot delete com.sprint.w.installer
at com.android.server.pm.PackageManagerService.deletePackageVersioned(PackageManagerService.java:19815)
at com.android.server.pm.PackageInstallerService.uninstall(PackageInstallerService.java:913)
at com.android.server.pm.PackageManagerShellCommand.runUninstall(PackageManagerShellCommand.java:912)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:134)
at android.os.ShellCommand.exec(ShellCommand.java:96)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:23302)
at android.os.Binder.shellCommand(Binder.java:577)
at android.os.Binder.onTransact(Binder.java:477)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2750)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:3973)
at com.android.server.pm.PackageManagerServiceEx.onTransact(PackageManagerServiceEx.java:58)
at android.os.Binder.execTransact(Binder.java:690)
JESUSARIUS REX said:
Hello,
I recently factory reset as my phone was having a lot of lag issues. When i was debloating it again, it no longer let me uninstall ANY sprint apps. I really hate the sprint apps, they keep installing uber etc. If anyone know why please, let me know.
thanks.
Code:
lucye:/ $ pm uninstall -k --user 0 com.sprint.w.installer
Security exception: Cannot delete com.sprint.w.installer
java.lang.SecurityException: Cannot delete com.sprint.w.installer
at com.android.server.pm.PackageManagerService.deletePackageVersioned(PackageManagerService.java:19815)
at com.android.server.pm.PackageInstallerService.uninstall(PackageInstallerService.java:913)
at com.android.server.pm.PackageManagerShellCommand.runUninstall(PackageManagerShellCommand.java:912)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:134)
at android.os.ShellCommand.exec(ShellCommand.java:96)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:23302)
at android.os.Binder.shellCommand(Binder.java:577)
at android.os.Binder.onTransact(Binder.java:477)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2750)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:3973)
at com.android.server.pm.PackageManagerServiceEx.onTransact(PackageManagerServiceEx.java:58)
at android.os.Binder.execTransact(Binder.java:690)
Click to expand...
Click to collapse
Bump. Having the same problem with the same package on the same phone. Would appreciate any advice.
Use this instead, I got it on mobilism but here's the official link https://play.google.com/store/apps/details?id=com.pdmdm.dmplay
I was able to disable it using adb. FIrst I used the command
am force-stop com.sprint.w.installer
Then I used the command
pm disable-user com.sprint.w.installer

Possible to ADB into Second Space???

IMO, the best feature of MIUI and never had a chance to use it till now(been running very old xiaomi devices and they all finally broke)
not really shocked to see that despite being introduced in MIUI8, 2 versions later and it's still buggy... and it seems that not many people are using it, else the bugs would have been caught.
I'm now in the setting up/ messing with it phase and has ran into the 1st glaring issue,
How do i get adb into second space?
running Saki's ADBFastboot tools, i have access to the system, but it shows as 1st space system, even when phone is logged into 2nd space.
i'm trying to remove the same bloatware in second space. bloatware is already removed in 1st space.
found the solution; manual remove bloatware in 2nd space via adb shell command.
in the command string, --user 10 is 2nd space, --user 0 is 1st space;
therefore, to remove bloatware in 2nd space;
adb shell pm uninstall -k --user 10 package.name
nvm, ignore the "solution"
they don't work once the phone is rebooted... the uninstalled apps on second space gets reinstalled again.
have u found solution?
I found the solution, it works great!
use this code
Code:
pm disable-user --user 10 <package_name>
I have tried to restart, and it works!
but, there are few apps cannot be disabled.
Just dont uninstall, but disable the apps.
Works for me on my Xiaomi Redmi Note 7, but the user was number 999:
pm disable-user --user 999 <package_name>
Thanks

Cant disable Google Photos

Hi guys,
On latest off. firmw. i cant fully disable google photos. Ive disables a lot of hw and google bloatware from data and system (no root), but at 12h or some restarts.. IT APPEARS ON ALUNCHER AGAIN. Sorry for caps
I dont know why it happens, if huawei soft calls the app in background, if is a malware or what... I dont know if can be the huawei/honor themes app(not official app).
Any suggestion?
I disabled that long time ago, i don't have it now in 9.
I had the same problem. Have you tried this?
The code is:
Code:
adb shell pm disable-user --user 0 com.google.android.apps.photos
bicodegas said:
I had the same problem. Have you tried this?
The code is:
Code:
adb shell pm disable-user --user 0 com.google.android.apps.photos
Click to expand...
Click to collapse
Ty mate, the problem gone some days ago. I tried some tips, but only worked for me when i tried to disable the Optimizer 1st check (auto-optimize...). Afther this, i cleaned data and cache from app, uninstalled updates, cleaned cache and data again, and last, disabled the app from system. Reboted and the problem gone.
If i have more issues with this, ill try ur adb command.
Thank you very much.
You're welcome. Glad it's gone.

[Guide][CN Version]Removal of China related Apps [RealMe X2pro] Making it clean

Disclaimer :
PHP:
* I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...).
* Your warranty will be void if you tamper with any part of your device / software.
Objective :
The following is for all who have a CN Version RealMe X2pro and want to change to EU Rom and not able like myself for the time being.
I'll provide a step by step Guide to remove all unwanted Chines system apps related to RealMe or Oppo and what to install to get a somewhat of clean and working build that would still get OTA and will be a better experience.
I hope its useful as that was the only way for me to use my CN version phone.
What you need First to be done:
Make sure google play Store is installed.
Make sure you are on the latest update. "RMX1931_11_A.12" even if you do OTA update nth will be affected.
Source all credits to this post.
What you need to do Second:
1) Install the USB drivers for your device (Google has a list of some universal USB drivers here)
2) Download the ADB binary for your particular OS (Windows, Mac, Linux)
3) Extract the zip file into a folder that you can quickly access.
4) On your phone, go to Settings and tap on About Phone. Find the Build Number and tap on it 7 times to enable Developer Options.
5) Now enter Developer Options and find USB Debugging. Enable it.
6) Open CMD at the location where you downloaded point 2 and point 3
The Source link has even more details ill stop at this point and jump to the Third step with what we need to delete.
Step Three :
After CMD is open on the designated folder where you extracted the zip file:
Commands first set:
PHP:
* adb devices
* adb shell
you will see your device details "[email protected]:/ $"
click the source link if you need visual details
Commands second set:
PHP:
Now copy past hit enter part for the following after each other
* pm uninstall -k --user 0 com.oppo.quicksearchbox ----> This will remove the single swip from top to bottom search that has lots of Chinese in it
* pm uninstall -k --user 0 com.coloros.assistantscreen ---->This will remove the breeno assistant
* pm uninstall -k --user 0 com.coloros.smartdrive ---->This will remove the breeno assistant drive
* pm uninstall -k --user 0 com.coloros.directui ---->This will remove the breeno assistant
* pm uninstall -k --user 0 com.coloros.ocrscanner ---->This will remove the breeno assistant
* pm uninstall -k --user 0 com.coloros.speechassist ----->This will remove the breeno assistant
* pm uninstall -k --user 0 com.nearme.browser ------>This will remove the browser
* pm uninstall -k --user 0 com.oppo.market ---->This will remove App Market
* pm uninstall -k --user 0 com.coloros.findmyphone ---->This will remove find my phone service
* pm uninstall -k --user 0 com.realme.findphone.client2 ----> This will remove Find my Phone
* pm uninstall -k --user 0 com.coloros.filemanager ----> This will remove File Manager
* pm uninstall -k --user 0 com.coloros.wallet ----> This will remove the wallet
* pm uninstall -k --user 0 com.nearme.themestore ---> This will remove Themes
* pm uninstall -k --user 0 com.sohu.inputmethod.sogouoem ----> This will remove the Keyboard make sure you have another one installed.
Those area the apps that i found annoying and made me hate the UI.
Step Four:
Now since everything is removed you ether clone your old phone using the app or just start downloading your apps from Google play Store.
for the swipe down the moment you install "Google" from play store it will directly replace it with google search.
Note: In case anything happened you can always just do a hard rest and you are back to normal
Let me know how helpful this is to you guys. and if you need to check anything else to update this post.
This is how i am actually enjoying my RealMe X2pro now.
again all thanks and credit to @ Doug Lynch Source i just made the short cuts easy to come back too.
How do I remove the Chinese text-to-speech engine? It has highly annoying Chinese voices trying to speak English, and by default it's being used over other installed TTS engines.
marcovth2 said:
How do I remove the Chinese text-to-speech engine? It has highly annoying Chinese voices trying to speak English, and by default it's being used over other installed TTS engines.
Click to expand...
Click to collapse
if you check step 3 you will find the breeno apps you got to remove all that.
You know how to change the launcher?
Arn0ldx said:
You know how to change the launcher?
Click to expand...
Click to collapse
yes its possible but i don't recommend because your home button will not work and will hang the phone ! if you still want it let me know i can add it later to first post!
kkarnaout said:
yes its possible but i don't recommend because your home button will not work and will hang the phone ! if you still want it let me know i can add it later to first post!
Click to expand...
Click to collapse
I see thank you I will try to uninstall the apps that you recommended
Thanks for this. I was thinking of doing this too but you've saved me the trouble. I was busy trying to compile a version of Lawnchair with the applicationId of com.oppo.launcher to try and trick the phone in to bypassing the home gesture issue but without much success.
The home button (virtual keys) are fine as long as you have another launcher installed when you remove the oppo one. The upward gesture swipe to homescreen will not work (doesn't hang the phone, just fails and brings the last app back up), though you can long swipe up (recents) and click on the empty space to get back to the launcher but I ended up going with the virtual keys.
Can it fix the login of CN rom?
I can't login cause they need phone 86+ from china it will paid the number that we login too.
I tried to use free sms received but yes it need too pay to login with Chinese number.
Stanz3k said:
Thanks for this. I was thinking of doing this too but you've saved me the trouble. I was busy trying to compile a version of Lawnchair with the applicationId of com.oppo.launcher to try and trick the phone in to bypassing the home gesture issue but without much success.
The home button (virtual keys) are fine as long as you have another launcher installed when you remove the oppo one. The upward gesture swipe to homescreen will not work (doesn't hang the phone, just fails and brings the last app back up), though you can long swipe up (recents) and click on the empty space to get back to the launcher but I ended up going with the virtual keys.
Click to expand...
Click to collapse
Thank you, I was able to uninstall oppo launcher having Nova launcher installed
kkarnaout said:
yes its possible but i don't recommend because your home button will not work and will hang the phone ! if you still want it let me know i can add it later to first post!
Click to expand...
Click to collapse
you can still use swipe navigation but the "swipe from both sides" cant be used you have to use either the back on left or right option.
Nova works flawless for me
Create oppo id
Numslick555 said:
Can it fix the login of CN rom?
I can't login cause they need phone 86+ from china it will paid the number that we login too.
I tried to use free sms received but yes it need too pay to login with Chinese number.
Click to expand...
Click to collapse
You can totally create an account on their web page and login on the phone, so you can get the added services and avoid their pesky login requirements. Also ig you don't want to use your phone number, use twilio or something like that
URL="https://id.oppo.com/register/sms?type=1"
Hmmm, my ringtones don't work anymore
danvalang said:
Hmmm, my ringtones don't work anymore
Click to expand...
Click to collapse
its cause you uninstalled file manager had same issue when i had my reno 10x
also you can remove com.coloros.athena (this will keep things running in background helps notifications come through without delay only change is when you pull up recents you have to manually swipe each app away to close cause the X at the bottom no longer works)
Another thing is you do not have to Factory reset your phone to get apps back since you technically are not uninstalling things just disabling them. go back to the adb command window and type following command "adb shell cmd package install-existing (name of package you disabled)" and this will re-enable them.
Hope this helps
Why do we need to uninstall file manager? they are useful arent they?
kkarnaout said:
Disclaimer :
PHP:
* I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...).
* Your warranty will be void if you tamper with any part of your device / software.
Objective :
The following is for all who have a CN Version RealMe X2pro and want to change to EU Rom and not able like myself for the time being.
I'll provide a step by step Guide to remove all unwanted Chines system apps related to RealMe or Oppo and what to install to get a somewhat of clean and working build that would still get OTA and will be a better experience.
I hope its useful as that was the only way for me to use my CN version phone.
What you need First to be done:
Make sure google play Store is installed.
Make sure you are on the latest update. "RMX1931_11_A.12" even if you do OTA update nth will be affected.
Source all credits to this post.
What you need to do Second:
1) Install the USB drivers for your device (Google has a list of some universal USB drivers here)
2) Download the ADB binary for your particular OS (Windows, Mac, Linux)
3) Extract the zip file into a folder that you can quickly access.
4) On your phone, go to Settings and tap on About Phone. Find the Build Number and tap on it 7 times to enable Developer Options.
5) Now enter Developer Options and find USB Debugging. Enable it.
6) Open CMD at the location where you downloaded point 2 and point 3
The Source link has even more details ill stop at this point and jump to the Third step with what we need to delete.
Step Three :
After CMD is open on the designated folder where you extracted the zip file:
Commands first set:
PHP:
* adb devices
* adb shell
you will see your device details "[email protected]:/ $"
click the source link if you need visual details
Commands second set:
PHP:
Now copy past hit enter part for the following after each other
* pm uninstall -k --user 0 com.oppo.quicksearchbox ----> This will remove the single swip from top to bottom search that has lots of Chinese in it
* pm uninstall -k --user 0 com.coloros.assistantscreen ---->This will remove the breeno assistant
* pm uninstall -k --user 0 com.coloros.smartdrive ---->This will remove the breeno assistant drive
* pm uninstall -k --user 0 com.coloros.directui ---->This will remove the breeno assistant
* pm uninstall -k --user 0 com.coloros.ocrscanner ---->This will remove the breeno assistant
* pm uninstall -k --user 0 com.coloros.speechassist ----->This will remove the breeno assistant
* pm uninstall -k --user 0 com.nearme.browser ------>This will remove the browser
* pm uninstall -k --user 0 com.oppo.market ---->This will remove App Market
* pm uninstall -k --user 0 com.coloros.findmyphone ---->This will remove find my phone service
* pm uninstall -k --user 0 com.realme.findphone.client2 ----> This will remove Find my Phone
* pm uninstall -k --user 0 com.coloros.filemanager ----> This will remove File Manager
* pm uninstall -k --user 0 com.coloros.wallet ----> This will remove the wallet
* pm uninstall -k --user 0 com.nearme.themestore ---> This will remove Themes
* pm uninstall -k --user 0 com.sohu.inputmethod.sogouoem ----> This will remove the Keyboard make sure you have another one installed.
Those area the apps that i found annoying and made me hate the UI.
Step Four:
Now since everything is removed you ether clone your old phone using the app or just start downloading your apps from Google play Store.
for the swipe down the moment you install "Google" from play store it will directly replace it with google search.
Note: In case anything happened you can always just do a hard rest and you are back to normal
Let me know how helpful this is to you guys. and if you need to check anything else to update this post.
This is how i am actually enjoying my RealMe X2pro now.
again all thanks and credit to @ Doug Lynch Source i just made the short cuts easy to come back too.
Click to expand...
Click to collapse
Do you try to reboot, and it will cause error?
necsynx said:
Do you try to reboot, and it will cause error?
Click to expand...
Click to collapse
there is no issues at all, and its working perfectly, frankly i removed the launcher and a few items only, and its working amazing. you need to test it out a few times to get it to the place you want.
kkarnaout said:
there is no issues at all, and its working perfectly, frankly i removed the launcher and a few items only, and its working amazing. you need to test it out a few times to get it to the place you want.
Click to expand...
Click to collapse
Whats the launcher app name?
necsynx said:
Whats the launcher app name?
Click to expand...
Click to collapse
I found it ..
Its com.oppo.launcher
Phone and Message App
Is it possible to get rid of the phone and message app, the browser app?
Rifat Rezwan said:
Is it possible to get rid of the phone and message app, the browser app?
Click to expand...
Click to collapse
yes its shown in first post for browser, as for phone and messages its not recommended but if u want let me know ill get u there name

Debloat?

Now that CCSW is dead, are there any good debloat ADB scripts around?
subbed
What's CCSW?
a good foundation script
https://forum.xda-developers.com/galaxy-note-9/how-to/note-9-debloat-bash-script-t3907659
I used this one from the S20 thread
https://forum.xda-developers.com/galaxy-s20/how-to/how-to-ultimate-adb-debloating-thread-t4089089
This new tool looks promising: ADB AppControl https://forum.xda-developers.com/an...easy-management-android-applications-t4147837
Good debloat script
raul6 said:
a good foundation script
https://forum.xda-developers.com/galaxy-note-9/how-to/note-9-debloat-bash-script-t3907659
Click to expand...
Click to collapse
This is indeed a very good script from which to pick and choose what you debloat and is by far the best one I have found. What I like about it is that there is a helpful description of what the package does.
I have gone down the ADB debloat route with my Note 20 Ultra
bud7dha said:
This new tool looks promising: ADB AppControl https://forum.xda-developers.com/an...easy-management-android-applications-t4147837
Click to expand...
Click to collapse
This worked way better then expected.
I'm not new to ADB, but having the simple GUI to see what you are doing is amazing.
Was able to de-bloat to my desire with no problems at all!
Thanks for sharing!
or you could use package disabler pro from the google store which is even easier.
umx said:
or you could use package disabler pro from the google store which is even easier.
Click to expand...
Click to collapse
However, you have to keep re-puchasing it which is dull :crying:
pdagenius said:
However, you have to keep re-puchasing it which is dull :crying:
Click to expand...
Click to collapse
I had to purchase for note 9, repurchase for s10 and purchase again for the Note 10 but that one has now worked for the s20 and the note 20. So keeping fingers crossed lol.
If you are on AT&T this might help. I just downloaded ADB and ran the commands below. I hate not having the option of removing apps!
I removed all AT&T preinstalled apps + Samsung Browser, Chrome, Flipboard, and OneDrive.
pm uninstall --user 0 flipboard.boxer.app
pm uninstall --user 0 com.att.callprotect
pm uninstall --user 0 com.att.thanks
pm uninstall --user 0 net.aetherpal.device
pm uninstall --user 0 com.att.iqi
pm uninstall --user 0 com.android.chrome
pm uninstall --user 0 com.att.personalcloud
pm uninstall --user 0 com.att.dh
pm uninstall --user 0 com.synchronoss.dcs.att.r2g
pm uninstall --user 0 com.att.myWireless
pm uninstall --user 0 com.att.mobilesecurity
pm uninstall --user 0 com.att.tv
pm uninstall --user 0 com.att.csoiam.mobilekey
pm uninstall --user 0 com.att.android.attsmartwifi
pm uninstall --user 0 com.sec.android.app.sbrowser
pm uninstall --user 0 com.sec.android.app.sbrowser
pm uninstall --user 0 com.dti.att
pm uninstall --user 0 com.microsoft.skydrive
umx said:
or you could use package disabler pro from the google store which is even easier.
Click to expand...
Click to collapse
Was using CCSW but stopped working but went back to Package Disabler Pro. I am proficient with adb but don't want yo delete something with it and find out I now need it. Much easier to just disable the app and if for some reason you need it back just reenable it.
ggrant3876 said:
Was using CCSW but stopped working but went back to Package Disabler Pro. I am proficient with adb but don't want yo delete something with it and find out I now need it. Much easier to just disable the app and if for some reason you need it back just reenable it.
Click to expand...
Click to collapse
i used to use ccsw they pulled his license not sure why. I prob disabled 80 or so things.. giving more like pure android after that.. and better battery
ggrant3876 said:
Was using CCSW but stopped working but went back to Package Disabler Pro. I am proficient with adb but don't want yo delete something with it and find out I now need it. Much easier to just disable the app and if for some reason you need it back just reenable it.
Click to expand...
Click to collapse
From what I see for the Adb commands, the is a package install command which works in a similar way to disable /enable and therefore uninstall is not an issue as the package remains on your phone unless you are rooted.
If you are a little organised and keep a list of what you uninstalling it is not an issue in my opinion.
pdagenius said:
From what I see for the Adb commands, the is a package install command which works in a similar way to disable /enable and therefore uninstall is not an issue as the package remains on your phone unless you are rooted.
If you are a little organised and keep a list of what you uninstalling it is not an issue in my opinion.
Click to expand...
Click to collapse
What I've seen on here before, sometimes they use this "pm uninstall -k --user 0 com.my.demo.app". I'm just a belts and suspenders kind of gut I guess!

Categories

Resources