ADB system app uninstall command not working on Android 4.4.2 - General Questions and Answers

Hello!
I have a Panasonic p55 novo running stock Android 4.4.2. It has a lot of Google bloatware which causes the phone to lag terribly. So once I tried to debloat it via setting up ADB and running command adb shell pm uninstall -k --user 0 <package name >
but adb says something that user 0 not found or something like that. So I searched and found in some other forums a reply which said this is because multiuser feature was first introduced in Android 5.
My question is if the normal command is not working with KitKat devices, is there any other alternative command / method to debloat it? Any kind of script or an old command or a completely different method.
Any help is appreciated.
Thank you

1. To uninstall apps you basically run
Code:
adb uninstall <package name>
2. To uninstall system apps phone's Android MUST be rooted, partition /system MUST get mounted as RW

xXx yYy said:
1. To uninstall apps you basically run
Code:
adb uninstall <package name>
2. To uninstall system apps phone's Android MUST be rooted, partition /system MUST get mounted as RW
Click to expand...
Click to collapse
But on my android 6 tablet, I did this without root and it worked. Beside tthe name of the app uninstaalled, it says not installed for this user.
Is rooting method compulsory?

Related

Reinstall Soundalive

A while ago I decided to remove SoundAlive from my S8 using the
Code:
Adb shell pm uninstall -k --user 0 <soundAlivePackage>
command. Time flew and I decided that I'd like to reinstall it, however, installing it through package installer results in the
Code:
app not installed
message and through ADB in
Code:
failed to install sa.apk: Failure [-3001]
where
Code:
sa.apk
is the filename for SoundAlive.
I'm unrooted, 8.0.0, Experience 9.0.
Probably don't need to know any more for the future here is a link to someone who put up a way to reinstall all packages uninstalled thru ADB
https://forum.xda-developers.com/android/general/how-to-install-uninstalled-packages-t3894235

Debloat/Disable System Apps

So you got your new shiny realme device but you hate bloatware or want to disable system apps so you can use 3rd party apps instead?
Follow the steps below:
THIS DOES NOT REQUIRE ROOT HOWEVER MAKE SURE NOT TO DISABLE IMPORTANT SYSTEM APPS. WIPE DATA/FORMATTING RE-ENABLES ALL SYSTEM APPS. THIS DOES NOT MESS WITH OTAs.
WHAT YOU NEED:-
ADB/Fastboot Drivers
Windows: https://dl.google.com/android/repository/platform-tools-latest-windows.zip,
Linux: https://dl.google.com/android/repository/platform-tools-latest-linux.zip
DEBLOAT:-
1. Enable developer options by tapping on the build number 7 times and enable USB Debugging.
2. Plug in your phone.
3. Goto the folder where ADB is installed, hold shift and right click, and click on open command window here(windows).
4. Type
in CMD
Code:
adb devices
in Powershell
Code:
./adb devices
.
5. This should return the ID of your device and show if its authorised. Enable debugging Promt on your Phone if it shows unauthorised (allow this computer).
6. Type
in cmd
Code:
adb shell
in Powershell
Code:
./adb shell
.
7. This should display a prompt, something like RMXxxxx:/ $
8. To uninstall type
Code:
pm uninstall -k --user 0 <name of the package>
To disable type
Code:
pm disable-user --user 0 <name of the package>
eg: pm uninstall -k --user 0 com.heytap.browser / pm disable-user --user 0 com.heytap.browser
9. Done!
To reinstall uninstalled apps type
Code:
pm install-existing <name of the package>
To enable disabled apps type
Code:
pm enable <name of the package>
Some apps do not uninstall such as market and gamecenter, disabling is the only option.
Hi, I made a small shell script to remove bloat in my device. Anyone who are interested can check it.
Place it in root of Internal Storage, then
Code:
adb shell
sh /sdcard/bloat.sh.txt
Ref
⋆ [2022-09-28] Remove system apps on Realme UI 2.0 using ADB ⋆
Remove system apps on Realme UI 2.0 using ADB Updated : 2022-09-28 Tested On: Model: RMX2001 Hardware Version: RMX_2001_11 RealmeUI Version: V2.0 ColorOS Version: V11 Android Version: 11 Android Security Update: 2022-03-05 Build Number...
forum.xda-developers.com
Debloat Colour os For smooth Performance
Color OS preloaded with certain apps. Such apps can't simply uninstall. Its hard coded, , for e.g. App Market. Use these command to disable those apps.. No root required... Os updates will still work.. No problems there... Users need to apply...
forum.xda-developers.com
[GUIDE][EU/IN ROM] REALME UI Debloat List
I got this phone a few days ago, am positively surprised with it. As soon as I got it I installed the REALME UI update from the official website and spent the next hour trying to find out what apps should be removed for maximum privacy and...
forum.xda-developers.com
[GUIDE] Debloat your Realme X2 to get more free RAM
Install ADB Drivers properly .This is really important Video Tutorial : Debloat any Realme/Oppo phone Then open command windows in adb directory and type adb devices,then authorize it from your phone . After you have done it ,type adb shell...
forum.xda-developers.com
Debloat COS / RUI
For those who want to debloat the stock system without root, here my list with apps uninstalled for me. How-To: activate ADB in developer settings download ADB tools from Google...
forum.xda-developers.com
[GUIDE] [SCRIPT] Debloater for Bootloader locked & Unlocked devices
For Bootloader Locked: Download debloat_bootloaderLocked.zip extract & execute debloat-main.bat file For Bootloader Unlocked: Assuming you already have custom recovery, just download & flash debloat_flashable.zip Unhide to show up the list of...
forum.xda-developers.com
Nice thank you for sharing this wonderful trick thanks
Hi guys. Thanks for the nice debloat tutorial and script! These are always welcome.
debdeep98 said:
Some apps do not uninstall such as market and gamecenter, disabling is the only option.
Click to expand...
Click to collapse
Are you sure about that? Have you tried it yet with my brand new
universal make system read write flashable script

Debloating m21

if anybody intrested in debloating use this list its from a51 group. you will loose many funxtionality like camera wifi calling etc so try at your own risk as I am experimenting so i did it.
rooted user type su in termux
and then paste all of list in turmux once or choose what you want debloat hit enter & wait
Apps will uninstalled if you reset they will back
you can use fx file manager to view and edit .xml file.
76 system app left
1.5gb ram used
Download
to reinstall all packages use this
reinstall
Thanks to telegram user @ MeNoob2
Telegram group for m21
in above method root permission is used so its heavily debloated but if you want safe debloat you can use same list in adb debloating method you can pate this list after command adb shell
many features not removed like play store camera etc but wifi calling removed so you can also give try banking apps also working
Debloated Stock Rom for M21
So we finally have a debloated stock ROM now. There's nothing more to say about it other than that it works and it's as light as it gets. Now I didn't make this, @Raghu varma did. I'm only posting because he didn't make a thread here...
forum.xda-developers.com
Sagarking said:
in above method root permission is used so its heavily debloated but if you want safe debloat you can use same list in adb debloating method you can pate this list after command adb shell
many features not removed like play store camera etc but wifi calling removed so you can also give try banking apps also working
Click to expand...
Click to collapse
Pasting the package list into adb shell worked like a charm, except for root/admin apps, but it got most of them, thank you
Sagarking said:
in above method root permission is used so its heavily debloated but if you want safe debloat you can use same list in adb debloating method you can pate this list after command adb shell
Click to expand...
Click to collapse
Yeah, if you don't want to unlock you bootloader or if you just want to stay safe, this is the way to go.
Got termux root privileges, removed what i taught essential from your list, now im stuck on samsung logo after restart.. got the oneui 3.0 update..
Anyhelp ?
Atrosincity said:
Got termux root privileges, removed what i taught essential from your list, now im stuck on samsung logo after restart.. got the oneui 3.0 update..
Anyhelp ?
Click to expand...
Click to collapse
Above list was useful in one ui 2.5 only now flash stock rom via odin
termux debloat use above one ui 3.0
Open file via text editor app and copy paste after su in ternux
Credits @yillie sir who made the script
Adb debloat
Credits @yillie sir who made the script
Open file via text editor app and copy paste in command promt
If you are not rooted or have bootloader locked then copy and run this after the script:
adb shell install-existing com.sec.android.app.samsungapps
adb shell install-existing com.sec.android.systemupdate
adb shell install-existing com.sec.android.soagent
adb shell install-existing com.wssyncmldm
adb shell install-existing com.sec.enterprise.knox.attestation
adb shell install-existing com.samsung.android.knox.pushmanager
adb shell install-existing com.samsung.ucs.agent.ese
adb shell install-existing com.sec.enterprise.knox.cloudmdm.smdms
adb shell install-existing com.knox.vpn.proxyhandler
adb shell install-existing com.samsung.android.knox.containercore
adb shell install-existing com.samsung.android.mdm
adb shell install-existing com.knox.vpn.proxyhandler
adb shell install-existing com.samsung.android.knox.analytics.uploader
adb shell install-existing com.samsung.knox.keychain
Sagarking said:
termux debloat use above one ui 3.0
Open file via text editor app and copy paste after su in ternux
Click to expand...
Click to collapse
Thank you, more for the comments
You can use my script from here https://github.com/invinciblevenom/debloat_samsung_android I have updated the list of apps.

Removing inbuilt app so that it will not comeback even after factory reset.

I understand that I can remove packages via ADB, but the apk still reside inside ./system, thus still occupying space. Also these apps will comeback when I do a factory reset. How do I remove such packages safely.
A Factory Reset doesn't touch Android's /system partition, it simply restores /data partition ( AKA user-space ) to state when device has been brought to the market, means wiping it clean of any personal data & apps installed by user included.
If the packages you have in mind are installed in /system partition then they only can get removed when Android is rooted.
You can check whether a package is an user-app or not by running
Code:
adb devices
adb shell "pm list-packages -3"
To check whether a package is a system-app or not you run
Code:
adb devices
adb shell "pm list-packages -s"
If you want to uninstall the user-apps for Android's default user ( user-id 0 ) in one go then you may do it by means of a Windows batch file:
Code:
adb devices
for /F "tokens=2 delims=:" %%a in ('adb shell "pm list-packages -3"') do (
set "pkg_name=%%a"
if not "?%pkg_name%"=="?" (
adb shell "pm disable-user --user 0 %pkg_name%"
timeout /t 2 /nobreak >nul
rem uninstall user-app by app package name
adb shell "pm uninstall --user 0 %pkg_name% "
)
)
exit
what requires ADB is systemwide accessible.
HI,
I don't have any user apps. My phone has a lot of bloat, like builtin games, several google apps like play-music;news;books;street view, etc and some other apps. I'd like to remove them so I can use that extra space.
Also on linux.
What Android version you have?
What output you get if you run
Code:
adb shell "ls -al /dev/block/by-name"
Android version 5.0
adb shell "ls -al /dev/block/by-name"
reurned
/dev/block/by-name: No such file or directory
ThE___NiHiLiST said:
HI,
I don't have any user apps. My phone has a lot of bloat, like builtin games, several google apps like play-music;news;books;street view, etc and some other apps. I'd like to remove them so I can use that extra space.
Also on linux.
Click to expand...
Click to collapse
To remove system apps and/or system-privileged apps your phone's Android must be rooted.
Android 5 ? That's pretty old version. Why don't you upgrade to Android 9 or 10 ?
You have to mount system and debloat it. Good luck

Uninstalled sideloaded app, now unable to reinstall

1. Sideloaded an app using LineageOS 17.1 recovery via "Apply update" > "Apply from ADB" > then "adb sideload" command on my PC.
2. Uninstalled the app using "adb shell pm uninstall -k --user 0 <package.name>". Also uninstalled from my work profile using the same command.
3. Now when I try to sideload the same app using the same process, it says success, however the app isn't on my phone.
Any help? Thanks.
Code:
adb shell pm uninstall -k -user 0 <package.name>
doesn't uninstall an app, it simply hides the app from Android's default user ( read: user 0 ).
To really uninstall an app you'ld have to run
Code:
adb uninstall <package.name>
jwoegerbauer said:
Code:
adb shell pm uninstall -k -user 0 <package.name>
doesn't uninstall an app, it simply hides the app from Android's default user ( read: user 0 ).
To really uninstall an app you'ld have to run
Code:
adb uninstall <package.name>
Click to expand...
Click to collapse
I tried that but I just got the error message "[DELETE FAILED_INTERNAL_ERROR]". Any idea on how to fix this mess?
Can anyone please help me with this? I need to properly uninstall the app and reinstall it.
google is your friend
How to install / get back uninstalled Apps (APKs) with ADB.
A lot of people searched for a way to uninstall bloat or APKs using ADB because a lot of OEMs don't allow uninstalling many of preinstalled apps. Tested on Pie and Oreo. BUT most of the articles if not all of them ( couldn't find any article...
forum.xda-developers.com

Categories

Resources