How to reinstall after accidentally uninstalling a wrong app with adb while trying to debloat? - Android Q&A, Help & Troubleshooting

PROBLEM SOLVED NO NEED TO REPLY
Hey, xda-developers!
Can you give me some advice? I debloated my LG v20 with adb using the following command: "pm uninstall -k --user 0 com.lge.cloudhub". It seems that I accidentally uninstalled a object that controls my phones second screen.
Can you please tell me how I can re-install said objects (without factory reset)? I'm pretty sure I know which objects I need to re-install, just don't know how to. I tried "adb shell cmd package install-existing com.lge.signboard" and got the error message "127|elsa:/ $ adb shell cmd package install-existing com.lge.signboard
/system/bin/sh: adb: not found"
So any ideas: commands, programs I can use, anything... I'm super grateful.
Thank you for reading my post!
Regards,
xdagirlrocker

xdagirlrocker said:
PROBLEM SOLVED NO NEED TO REPLY
Click to expand...
Click to collapse
If solved, why not say how - for others?
If rooted then this can be tried...
https://forum.xda-developers.com/t/...diatek-armv8-2020-08-24.3922213/post-84201415

CXZa said:
If solved, why not say how - for others?
If rooted then this can be tried...
https://forum.xda-developers.com/t/...diatek-armv8-2020-08-24.3922213/post-84201415
Click to expand...
Click to collapse
Good point! I will do so! Maybe it will help someone in future.
First I searched for possible objects that might be related to LG v20 second screen. Through the power of duckduckgo I found the following objects:
com.lge.signboard.initialguide
com.lge.provider.signboard
com.lge.signboard.setting
com.lge.quicktools
com.lge.coneshortcut
com.lge.conerecent
com.lge.signboard
In my case the (by mistake) removed object was com.lge.signboard.
From there on solved it using a software I found on xda forums. It's called ADB AppControl and it can be found on the following links. I also included the xda link. Since I couldn't find the proper command to restore the deleted item, I used this software to "un-delete" it. It was very easy.
https://appcontrol.neocities.org/index_en.html
https://forum.xda-developers.com/t/...app-manager-debloat-tool-for-android.4147837/
Cheers

Related

VRoot to SuperSU Installer

VRoot Cleanup Tool - Easily replace VRoot with SuperSU
From your Windows PC​
OK everyone, here's the deal. I did the VRoot the toher day on my phone and it worked great. The problem is that it can be tricky to get the old Chinese Superuser app and SU binaries updated to SuperSU. As a result I decided to put this tool together to help update the VRoot files to SuperSU, and get rid of the old VRoot ones. What this means is that you can now clean up the Chinese Super User app and completely install SuperSU with a single click, from your Windows PC.
How to use:
Download Root Cleanup from here: https://www.dropbox.com/s/sto74q58uq4r1bj/root_cleaner.zip
Extract it to a folder on your computer.
Open the new folder and double click the clean_root.bat file.
Follow the directions.
** You will want to make sure that USB debugging is on (which it should be from VROOT) and that VRoot is closed when you run this. **
Also note I only have one phone to test with, and it worked great on the one I have. Please let me know if you have any other issues and I will try my best to help. Also, as always, not responsible for problems . <3
Edit: I just got asked via PM if this is to be run after freezing VRoot, etc. So I wanted to add here in case anyone else wondered. With this tool you do not need to freeze VRoot, delete any files, etc. My script will literally take care of everything for you. So, run VRoot and the phone will reboot. You can immediately close VRoot on your computer and run this to completely replace VRoot with SuperSU, and remove VRoot files.
This is my first time writing something like this, but so far I have a lot of people who told me it works fine. Please let me know if you have issues and Ill do my best to help! I went ahead and created this thread at the request of some people who have had good success with this on the other thread here: http://forum.xda-developers.com/showthread.php?t=2511815&page=29
Update: V4 is up - this version makes sure that ADB is accessible. Thank you @k1mu for helping me with this!
I want to ask you, why do you think the process on i9505 hangs on the line "cleaning up files" and does not automatically reboot the phone? You need to manually reboot it.
For the rest it works great!
Thank you
fabrilas said:
I want to ask you, why do you think the process on i9505 hangs on the line "cleaning up files" and does not automatically reboot the phone? You need to manually reboot it.
For the rest it works great!
Thank you
Click to expand...
Click to collapse
My guess would be these lines:
adb shell "su -c 'rm /dev/com.mgyun.shua.su'"
adb shell "su -c 'rm /dev/com.mgyun.shua.su.daemon'"
adb shell "su -c 'rm -rf /dev/com.mgyun.shua.su'"
adb shell "su -c 'rm -rf /dev/com.mgyun.shua.su.daemon'"
The issue is that I cant remember if com.mgyun.shua.su and com.mgyun.shua.su.daemon are directories or files. If you could confirm for me which they are then I will be happy to fix my tool!
Thx
Angie
it tells me that "device not found" any clues?
never mind the first statment if i put the file in the phone the run it from my computer it goes away. but I'm now going to put word for word what it tells me. "When prompted to grant root to ADB select yes. 'adb' is not recognized as an internal or external command, operable program or batch file. Once you have granted root to ADB press any key to continue... Press any key to continue . . .
but it never askes me to grant root to it it just sits there and does nothing and if i hit continue with out allowing it, it just deletes the su and unroots the phone. any clues about what I could be doing wrong
Works also with Galaxy S4 Italy Gt-i9505 :good:
ComputerBro2 said:
it tells me that "device not found" any clues?
never mind the first statment if i put the file in the phone the run it from my computer it goes away. but I'm now going to put word for word what it tells me. "When prompted to grant root to ADB select yes. 'adb' is not recognized as an internal or external command, operable program or batch file. Once you have granted root to ADB press any key to continue... Press any key to continue . . .
but it never askes me to grant root to it it just sits there and does nothing and if i hit continue with out allowing it, it just deletes the su and unroots the phone. any clues about what I could be doing wrong
Click to expand...
Click to collapse
If you are getting device not found that typically means that ADB is not able to access or find the phone. I would make sure that you close the VRoot tool as it will keep the debugging bridge tied up, and give you a device not found error. After you root you need make sure VRoot is closed before running my tool.
ComputerBro2 said:
it tells me that "device not found" any clues?
never mind the first statment if i put the file in the phone the run it from my computer it goes away. but I'm now going to put word for word what it tells me. "When prompted to grant root to ADB select yes. 'adb' is not recognized as an internal or external command, operable program or batch file. Once you have granted root to ADB press any key to continue... Press any key to continue . . .
but it never askes me to grant root to it it just sits there and does nothing and if i hit continue with out allowing it, it just deletes the su and unroots the phone. any clues about what I could be doing wrong
Click to expand...
Click to collapse
That "adb is not recognized.. " is because the batch file is not running with it's current directory in the folder where you extracted it.
@LilTechPrincess -
adding "cd %~dp0"
at the start of the clean_root.bat will ensure that it's able to find the files that it needs since that'll CD to the drive and path where the clean_root.bat was extracted.
LilTechPrincess said:
If you are getting device not found that typically means that ADB is not able to access or find the phone. I would make sure that you close the VRoot tool as it will keep the debugging bridge tied up, and give you a device not found error. After you root you need make sure VRoot is closed before running my tool.
Click to expand...
Click to collapse
okay i just needed to update my drivers witch is odd cause i just did it yesterday hmm. Anyway now it runs fine but it wont prompt me on my phone to allow root access to adb
ComputerBro2 said:
okay i just needed to update my drivers witch is odd cause i just did it yesterday hmm. Anyway now it runs fine but it wont prompt me on my phone to allow root access to adb
Click to expand...
Click to collapse
So did it fix your root to SuperSU?
Also, does anyone know how I can prompt root to ADB easier than this? Currently I am doing this to try and force the Superuser prompt:
adb shell "su -c 'touch /sdcard/invoke-root'"
If anyone knows how to do this better please let me know!
k1mu said:
That "adb is not recognized.. " is because the batch file is not running with it's current directory in the folder where you extracted it.
@LilTechPrincess -
adding "cd %~dp0"
at the start of the clean_root.bat will ensure that it's able to find the files that it needs since that'll CD to the drive and path where the clean_root.bat was extracted.
Click to expand...
Click to collapse
Thank you very much for the help! Im still a newb! haha Anyhow, I updated my tool with your suggestion.
LilTechPrincess said:
So did it fix your root to SuperSU?
Also, does anyone know how I can prompt root to ADB easier than this? Currently I am doing this to try and force the Superuser prompt:
adb shell "su -c 'touch /sdcard/invoke-root'"
If anyone knows how to do this better please let me know!
Click to expand...
Click to collapse
No the adb won't start on my phone
It say to me
rm failed for /sdcard/install-recovery.sh, No such file or directory
And now ? xD
Does it also say no device found?
Sent from my SCH-I545 using Tapatalk
Bfitz26 said:
Does it also say no device found?
Sent from my SCH-I545 using Tapatalk
Click to expand...
Click to collapse
No it freze on this
rm failed for /sdcard/install-recovery.sh, No such file or directory
when i disconnect the pone say not found for 4 or 5 times and finish
---------- Post added at 08:49 PM ---------- Previous post was at 08:28 PM ----------
I tri 3 times
try to wipe all data.
Next try is to reinstall last firmware update whit odin or it trip my knox 0x0 to 0x1 ?
MexyHKR said:
It say to me
rm failed for /sdcard/install-recovery.sh, No such file or directory
And now ? xD
Click to expand...
Click to collapse
Thats not a big deal. Basically, I removed the /sdcard/install-recovery.sh from the script earlier and forgot to not try and delete a file that doesnt exist... Ill fix that! haha That doesnt hurt anything at all. Sowwy!
Ok now im freeze on Cleaning Up Files....
Your link is down
Tomsgt said:
Your link is down
Click to expand...
Click to collapse
The link has 2 hh's in the http
eklipz3 said:
The link has 2 hh's in the http
Click to expand...
Click to collapse
thanks did notice that
Finaly dont work on my GS4
PDA: I9505XXUEMJ7
MODEM: I9505XXUEMJ7
CSC: I9505ITVEMJ8
Try 2 times after full wipe and emergency firmware restore.
Freeze on Cleaning etc...
Now need to go sleep 1:06AM in italy
Good night and sorry for bad speak
I speak like a fish trying to speak Russian

Debloater script

Anyone could please suggest me a debloater script for honor 8 MM?
rooted or no root?
Rooted
All the time I try to delete a bloated app it returns. I managed to freeze the app but that's not the right way. Sometime I have problems with the gallery even if I have quick pic. I can't freeze the gallery because if I try to upload a pic in a social app like badoo it just does nothing. I have to go to twrp and clean the cache all the time
whitehollow said:
All the time I try to delete a bloated app it returns. I managed to freeze the app but that's not the right way. Sometime I have problems with the gallery even if I have quick pic. I can't freeze the gallery because if I try to upload a pic in a social app like badoo it just does nothing. I have to go to twrp and clean the cache all the time
Click to expand...
Click to collapse
Try adb
Connect phone to laptop or pc (you must have adb fastboot on it)
Open cmd (press shift then right click on adb folder choice open command prompt)
Type adb shell
Then type pm list package | grep huawei (or google or app name). It will show all package app you find.
Then type pm uninstall -k --user 0 com.huawei.xxx (it it package name show from command above)
It will remove any app you want (you can try on rooted or no root device. With no root device, you can still install ota when have)
Thanks I'll try before reinstalling android. A script would be easier anyway.
whitehollow said:
Thanks I'll try before reinstalling android. A script would be easier anyway.
Click to expand...
Click to collapse
What is your device brand? L09 or what?
Anyone have a good list of bloatware that can be safely removed from this device?

Difficulty granting permission with adb / terminal

Per this issue, and specifically this comment, I'm trying to grant the BATTERY_STATS permission to GSam Battery Monitor. I've tried the adb command "pm grant com.gsamlabs.bbm android.permission.BATTERY_STATS" but can't get it to work. I've also tried "pm grant com.gsamlabs.bbm android.Manifest.permission.BATTERY_STATS" but the results are the same. Doing it through ConnectBot gives me the following error:
Operation not allowed: java.lang.SecurityException: grantRuntimePermission: Neither user 10338 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.
Doing it through adb gives me this:
Bad argument: java.lang.IllegalArgumentException: Unknown package: com.gsamlabs.bbm
This is on a stock Moto Z Play, 7.1.1
kernel:
3.18.31-perf-g757c8d9
[email protected] #1
Build number NPN26.118-22
Are you running the pro version? Then it needs to be com.gsamlabs.bbm.pro
The error is because it can't find a package named com.gsamlabs.bbm, so I would investigate why that's occurring. Either there's a typo (I don't see one) or that's not the correct package name.
ConnectBot won't work because ConnectBot doesn't have superuser permissions. Unless your device is rooted it'll have to be done through adb or using a PC-side program which effectively does the same thing.
Thanks! I think that was it, as adding .pro to the end didn't give an error. But it didn't actually say it was successful, either. It just spit out all the adb usage info like if you just type "adb" with no parameters. Any idea how I know if it worked?
vertigo_2_20 said:
Thanks! I think that was it, as adding .pro to the end didn't give an error. But it didn't actually say it was successful, either. It just spit out all the adb usage info like if you just type "adb" with no parameters. Any idea how I know if it worked?
Click to expand...
Click to collapse
Do the advanced stats in BBM work now? Also, are you on the paid version of BBM? That's the pro version, iirc.
You are typing "adb -d shell pm grant com.gsamlabs.bbm.pro android.permission.BATTERY_STATS", right?
Got busy with other stuff and just now got back to this, but I got it working. The reason I got the output I did before was because I was typing an invalid command, since pm grant isn't one of the commands of adb.exe. I had to type adb shell THEN type the command, and then it worked (and I just noticed you said that, I must have overlooked that when I looked at it before since I was busy). Also, for anyone that might come across this trying to do this, GSam didn't automatically recognize that this was done. I had to go through the steps of having it show me how to do it and at the end of that it worked. One final note, I had to update to the latest SDK for it to work, the version I was using was too old. Thanks again for the help apraetor!
Yea, I had a feeling after re-reading your original post that you were missing the "adb -d shell" portion, glad it's working.
vertigo_2_20 said:
Got busy with other stuff and just now got back to this, but I got it working. The reason I got the output I did before was because I was typing an invalid command, since pm grant isn't one of the commands of adb.exe. I had to type adb shell THEN type the command, and then it worked (and I just noticed you said that, I must have overlooked that when I looked at it before since I was busy). Also, for anyone that might come across this trying to do this, GSam didn't automatically recognize that this was done. I had to go through the steps of having it show me how to do it and at the end of that it worked. One final note, I had to update to the latest SDK for it to work, the version I was using was too old. Thanks again for the help apraetor!
Click to expand...
Click to collapse

[SCRIPT] [DISCONTINUED/SEE DESC] JBNCK-NONROOT Debloat script for Samsung devices

JBNCK-NONROOT Debloat script for Samsung devices
Works best on:
Exynos S20 series
Exynos A Series
Knox-tripped Samsung devices
[THIS PROJECT IS DISCONTINUED AND I WILL NO LONGER ANSWER ANY QUESTIONS ON THIS THREAD]
Don't worry, I'm working on a better, more extreme and more up-to-date one. I will post a link when it's ready!
Perfect, thank you
Very nice script, JanBoyGamer23. Is it possible to remove the stock Messanger app, as well? The one with three dots in the icon?
I can't install, for example Chrome
AlliePC said:
Very nice script, JanBoyGamer23. Is it possible to remove the stock Messanger app, as well? The one with three dots in the icon?
Click to expand...
Click to collapse
Yes, of course! Go to your platform tools folder (Download them if you need them) and type in:
adb shell pm uninstall -k --user 0 com.samsung.android.messaging
diegoxdrp said:
I can't install, for example Chrome
Click to expand...
Click to collapse
What?
Perfect thanks
Thank you, exactly what does "platform tools folder" mean?
Thanks, what if i want to remove or disable Samsung Game Optimization Service? Am on Android 11, 3.0.
I did try the adb command, but it didnt work. pl advise.
Vipin2689 said:
Thanks, what if i want to remove or disable Samsung Game Optimization Service? Am on Android 11, 3.0.
I did try the adb command, but it didnt work. pl advise.
Click to expand...
Click to collapse
gos always reinstalls itself. The only way to remove it is the root method: Go to your root explorer and find the app's folder in /system/priv-app and delete the folder
Hey, great script! However, I found out I needed Android SIM Toolkit after I ran the script. Do you know a way to recover/ reinstall it? or "undo" the script somehow? Thanks!
Sari95 said:
Hey, great script! However, I found out I needed Android SIM Toolkit after I ran the script. Do you know a way to recover/ reinstall it? or "undo" the script somehow? Thanks!
Click to expand...
Click to collapse
open cmd in the folder of the debloat script (the folder with all the files: adb, debloat.bat etc.) and type in:
adb shell pm install-existing com.android.stk
or with a dual sim:
adb shell pm install-existing com.android.stk
adb shell pm install-existing com.android.stk2
JanBoyGamer23 said:
open cmd in the folder of the debloat script (the folder with all the files: adb, debloat.bat etc.) and type in:
adb shell pm install-existing com.android.stk
or with a dual sim:
adb shell pm install-existing com.android.stk
adb shell pm install-existing com.android.stk2
Click to expand...
Click to collapse
That worked perfectly. Thank you!
OP, Is there a way to run your script on a MAC?
Hi, did bixby routines will work after execute this script on s20+?
I am assuming this will work on new Galaxy S21... Asking before I break my wife's new phone!!
gee.dunkin said:
I am assuming this will work on new Galaxy S21... Asking before I break my wife's new phone!!
Click to expand...
Click to collapse
Yep, should work.
Great, thanks!
FYI: I had Vanced YouTube installed and it was removed by the script. At the end I had no YouTube at all.
Also, I was somewhat surprised that you decided to remove Google Maps as well, as bloatware. Anyways, I've reinstalled both Vanced YouTube and Maps, no big deal.
Thanks for the script, you saved my some headache! I actually tried uninstalling all Facebook components using System Apps Uninstaller (root) and I ended up reflashing the firmware through Odin, as the phone got stuck on boot loops after "successfully" uninstalling them.
@op,
Could you please post a complete list of items included in the package (to be removed)?
The script had a tremendous effect on battery and I'm curious to review the main offenders (I highly suspect it to be Google telemetry, but I'd like to know specifics).
Again, excellent work, thank you!
Thanks!
nacos said:
@op,
Could you please post a complete list of items included in the package (to be removed)?
The script had a tremendous effect on battery and I'm curious to review the main offenders (I highly suspect it to be Google telemetry, but I'd like to know specifics).
Again, excellent work, thank you!
Thanks!
Click to expand...
Click to collapse
Nice to hear that it worked for you!
If you want a full list you can just look into the script as I don't remember. I know that it almost completely removes google spying, facebook trash, samsung knox bloatware and other country based bloat.

Question Unable to set device owner [SOLVED]

I'm trying to set IceBox as device owner so I can free/unfreeze apps without root. This has worked on some other normal android phones for me in the past, but on the n20 5G i get
Code:
java.lang.IllegalStateException: Unexpected @ProvisioningPreCondition 99
at android.os.Parcel.createExceptionOrNull(Parcel.java:2397)
at android.os.Parcel.createException(Parcel.java:2373)
at android.os.Parcel.readException(Parcel.java:2356)
at android.os.Parcel.readException(Parcel.java:2298)
at android.app.admin.IDevicePolicyManager$Stub$Proxy.setDeviceOwner(IDevicePolicyManager.java:8665)
at com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:203)
at com.android.commands.dpm.Dpm.onRun(Dpm.java:115)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:60)
at com.android.commands.dpm.Dpm.main(Dpm.java:41)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:419)
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.devicepolicy.DevicePolicyManagerService.enforceCanSetDeviceOwnerLocked(DevicePolicyManagerService.java:9682)
at com.android.server.devicepolicy.DevicePolicyManagerService.setDeviceOwner(DevicePolicyManagerService.java:8700)
at android.app.admin.IDevicePolicyManager$Stub.onTransact(IDevicePolicyManager.java:3582)
at android.os.Binder.execTransactInternal(Binder.java:1196)
at android.os.Binder.execTransact(Binder.java:1143)
There are no accounts or users on the device.
I've managed to solve this on my own. For the Nord 20 5G, you need to use
Code:
adb shell dpm set-profile-owner
instead of
Code:
adb shell set-device-owner
like on other android devices and like how it is written in their installation docs.
So the command I used was
Code:
adb shell dpm set-profile-owner --user current --name IceBox com.catchingnow.icebox/.receiver.DPMReceiver
I hope this will help others
awesome, i was actually wondering this myself as i had difficulties doing the exact same a few months ago, not sure if it was icebox or not as i cant remember now but didnt end up using it anyways and didnt have the time to really research this. thanks for the tip @Crystawth
PsYk0n4uT said:
awesome, i was actually wondering this myself as i had difficulties doing the exact same a few months ago, not sure if it was icebox or not as i cant remember now but didnt end up using it anyways and didnt have the time to really research this. thanks for the tip @Crystawth
Click to expand...
Click to collapse
Yea I really didn't want to go through the trouble of rooting it since the only functionality I really wanted on it was to freeze apps.
It's a new phone for my wife, and she just doesn't need root. She's an App-oholic though, so freezing is kind of important! She also wants to use Google pay, and I didn't want to have to get it working with root.
I discovered how to get it working by reading through the ADB docs and through the Island install docs and gave it a try throwing together the command, and it worked.
I just hope my adventure can help others who want to do this, but don't need/want root.
Crystawth said:
I've managed to solve this on my own. For the Nord 20 5G, you need to use
Code:
adb shell dpm set-profile-owner
instead of
Code:
adb shell set-device-owner
like on other android devices and like how it is written in their installation docs.
So the command I used was
Code:
adb shell dpm set-profile-owner --user current --name IceBox com.catchingnow.icebox/.receiver.DPMReceiver
I hope this will help others
Click to expand...
Click to collapse
it work, thank you
I got this error
"calling identity is not authorized"
while tring this command
[ adb shell dpm set-device-owner com.catchingnow.icebox/.receiver.DPMReceiver]
ْ
Andro nagy8654 said:
I got this error
"calling identity is not authorized"
while tring this command
[ adb shell dpm set-device-owner com.catchingnow.icebox/.receiver.DPMReceiver]
Click to expand...
Click to collapse
As i stated in my post above. you must use set-profile-owner NOT set-device-owner. You must also do this with no accounts on the device.

Categories

Resources