MIUI 10 De-bloat (Systemless+Automated) [Nov 14] - Xiaomi Poco F1 Guides, News, & Discussion

MIUI changes things so fast. These config files are reported to break many things on the latest beta releases. Use at your own risk and feel free to experiment as this is a systemless mod.
Prerequisites -
1. Unlocked Boot loader with Magisk & TWRP on it. (You can do this on a locked boot loader & without root using adb but it is risky on MIUI 10 as few bloatware apps are deeply linked to system services in MIUI 10)
2. Terminal Debloater Magisk module. Download it here or from Magisk Manager.
3. Any Terminal Emulator app.
4. Basic de-bloat or Extreme de-bloat config file.
5. Backup (Although this module is harmless if you have magisk & TWRP properly working as we can reinstall all the apps within the TWRP if system breaks but just in case to be on safe side.)
6. Magisk Mount script- Download it here
*Please download this Magisk mount script prior to doing anything because we can reinstall apps by mounting Magisk in TWRP if something breaks.
Switch on USB debugging security settings & Install apps over USB toggles in developer options prior to the de-bloat as they need the MI account to turn them 'ON' which will be inaccessible after the de-bloating. After switching them ON, sign out of MI account, switch off MI cloud sync & Find device(If it's ON) and continue ahead.
If you have everything handy it should be a matter of few seconds to de-bloat.
We're only gonna deal with system apps for now. Uninstall the user spyware apps like UC, Opera browser, Microsoft & Amazon apps by yourself which comes with MIUI.
Guide for starters -
1. Copy this Basic de-bloat or Extreme de-bloat config file to the folder /cache in the root.
2. Reboot into Recovery
3. Install the Terminal Debloater Magisk module using the Magisk Manager.
4. Reboot into the system.
4. Open the terminal emulator app > Type 'su' and press enter > Grant root permissions > Type debloat and press enter.
4. You will see the options to debloat in various categories which are self explanatory. As we have the config file which has a predefined app list to de-bloat stored in /cache folder in root already. Type 'i' which says import config and press enter 2 times.
If you don't want to use the Basic de-bloat or Extreme de-bloat config file, Feel free to debloat independent apps.
5. Reboot 2 times and you're done most probably if nothing breaks.
Read from here if something breaks
If it breaks the system or causes boot-loop which shouldn't be the case as I'm using the same device and thoroughly tested it on 8.9.11, Don't worry! It's damn easy to reinstall all of them in one click by TWRP.
Did you download the Magisk Mount script which I asked to earlier ? If yes, just flash it with TWRP and the magisk will be mounted and accessible in TWRP file explorer. If you didn't download the script earlier, Just adb sideload it in recovery.
After mounting the Magisk in TWRP > Click on Advanced and go to file explorer.
Then delete the app folder of the system app you've uninstalled in /Magisk/terminal_debloater/system/app (/sbin/.core/img/terminal_debloater/system/app) or /Magisk/terminal_debloater/system/priv-app (/sbin/.core/img/terminal_debloater/system/priv-app) then that should undo it.
----------------------
I left out few apps even though they're considered bloatware because they're deeply linked into the system.
For example, Removing chrome breaks apps like Swift Key, Standard Notes, Twitter etc. in MIUI 10. We're gonna de-bloat most of the so called security services found in the security app but few services like app scanning which is found in MIUI Security components app is mandatory for the package manager to properly install apps from unknown sources. Considering all these, after testing it for few runs- I pinned down the apps which are safe to remove without any impact for my usage. It may vary with yours but feel free to suggest or remove any app line from this Basic de-bloat or Extreme de-bloat config file.
Apps which will be de-bloated in basic config and please suggest if I miss something.
Code:
[B]Removed[/B]
AnalyticsCore
AntiSpam
MiPicks
BugReport
facebook-appmanager
CloudService
FileExplorerGlobal
FileExplorer_old
Gmail2
Videos
Music2
Duo
InMipay
LatinImeGoogle
PaymentService
MiuiVideoPlayer
UpnpService
MSA-Global
GlobalTrendNews
Netflix_activation
XiaomiAccount
HybridPlatform
MiLinkService
MiCloudSync
HybridAccessory
SYSOPT
VsimCore
KSICibaEngine
YouDaoEngine
XMCloudEngine
SecurityAdd
SecurityCoreAdd
PlayAutoInstallStubApp
MiuiDaemon
WMService
BTProductionLineTool
TranslationService
MiuiScreenRecorder
Notes
Stk
PersonalAssistantGlobal
Browser
Calendar
CleanMaster
facebook-installer
facebook-services
GameCenterGlobal
GoogleFeedback
CloudServiceSysbase
YellowPage
CloudBackup
MiWebView
Music
Backup
SoundRecorder
MiVRFramework
[B]Bloatware but not removed[/B]
Battery & Performance, Power detector - breaks battery stats (Remove it on your own if you don't need it or you use alternatives like Better Battery Stats)
Bluetooth MIUI - comes in handy sometimes and linked to system Bluetooth service (Removed in Extreme de-bloat config file.)
Calculator - I didn't care to remove it (Removed in Extreme de-bloat config file.)
Chrome - breaks many apps
CIT & CIT QR - I think you can remove it if you don't need hardware tests (Removed in Extreme de-bloat config file.)
Clock - handy app linked to core services (Removed in Extreme de-bloat config file.)
Compass - You can remove if you don't use (Removed in Extreme de-bloat config file.)
Default print service, Google text to speech engine, MI Wallpaper, Live wallpaper picker, Photo screen saver, Photos, Quick ball, Print service recommendation, print spooler, talkback, Youtube, Drive, Maps, Updater, Audio effect, Wallpaper cropper, Weather & Weather service provider- You can remove all of these if you don't use and hopefully it wouldn't cause issues like chrome did. (Removed in Extreme de-bloat config file.)
Joyose - breaks default SMS app. You can install any other messages app and remove this (Removed in Extreme de-bloat config file.)
RTMICloudEngine - breaks Phone app. You can install Google Dialer app and remove this (Removed in Extreme de-bloat config file.)
MI Security components - breaks app installation
Sms extra - sometimes it breaks default SMS app (Removed in Extreme de-bloat config file.)
Downloads & MI drop, for some strange reason, they won't go away (Remove them with Titanium backup or adb commands below)
Files - needed by some apps which don't have storage permission like Exif data remover
Google Play services & Play store - Almost everybody needs it (You can remove google app)
Poco launcher - didn't include it in the config file as many wouldn't have a backup launcher in hand which causes system UI to crash (You can remove it by installing any launcher you prefer) (Removed in Extreme de-bloat config file.)
Scanner - Strangely, this app breaks the package manager and causes it to crash (Removed in Extreme de-bloat config file and package manager won't crash anymore)
Security - biggest bloatware of MIUI which can't be uninstalled as it's deeply integrated into settings to access permissions, data usage, battery stats etc (Go into settings of this app and switch off everything especially the security scan which scans every app and sends the data to cloud.
Telemetry j service - It wouldn't go away with this magisk module. Disable it with Titanium backup app.
Updated and tested over new beta 8.9.20 (13/09/2018)
This is a new Extreme de-bloat config file. To use this config - Just follow the instructions which I have already mentioned above.
Debloated few other MIUI services like Dialer, SMS, Gallery apps & you can replace them with trusted alternatives of your choice. Removed RT MI Cloud SDK, Joyose, Xiaomi Service Framework(battery drainer) which were required by MIUI phone-SMS apps previously and we no longer need them as we have replaced most of the services.
This almost de-bloats everything including basic apps like Clock. Retained few services like battery & performance because removing such services causes some instability in settings app as they're deeply integrated but they do send data to Xiaomi IP addresses every minute which is very suspicious. Hence, use AF Wall+ or Net guard to block their network connections.
Few apps like Facebook services, Facebook app installer, Mi Drop refuse to uninstall with this Magisk Module. Kick them out using adb shell/Titanium backup app.
adb commands for removing leftovers
Code:
pm uninstall -k --user 0 com.facebook.katana
pm uninstall -k --user 0 com.facebook.system
pm uninstall -k --user 0 com.facebook.appmanager
pm uninstall -k --user 0 com.facebook.services
pm uninstall -k --user 0 com.xiaomi.midrop.overlay
pm uninstall -k --user 0 com.xiaomi.midrop
pm uninstall -k --user 0 com.mfashiongallery.emag
pm uninstall -k --user 0 com.miui.android.fashiongallery
pm uninstall -k --user 0 com.miui.videoplayer.overlay
This is the maximum I could get in this de-bloating journey of MIUI 10 so far and it's pretty stable. You can turn off MIUI optimizations in developer options for better RAM management. (Beware! Permissions & DPI gets reset and it's pretty easy to dial them back.)
Update (14/11/2018)
Considering the new update of the module which needed the new config files for the import to work, I Updated the entire OP with the new config files.
Procedure is still the same but it needs the new config files.
You can download the new config files here Basic de-bloat / Extreme de-bloat.
If you are still using the old version and need the config files - Grab them here Basic de-bloat or Extreme de-bloat
Credits
@veez21 for his wonderful debloater module which is extremely safe & easy to use.
@mohan_168 for giving me the basic idea of bloatware in MIUI 9 which helped to fasten the things.
MIUI team for spoiling the beautiful MIUI(5/6/7) and filled it with bloatware ads. UC browser & Game booster...seriously ??

Worked, not sure why but it did not remove following apps on my device (have run the debloater twice but no luck):
Mi File Explorer
Duo
MSA
facebook-appmanager
facebook-installer
facebook-services
Also, somehow, now I can not access Dual Apps under settings, kindly help to resolve dual apps access

Wont this tool help with debloating?
http://en.miui.com/thread-3620390-1-1.html
I am on miui 10

what do i have to add/remove that mi cloud sync works?

Onsite_Baba said:
Worked, not sure why but it did not remove following apps on my device (have run the debloater twice but no luck):
Mi File Explorer
Duo
MSA
facebook-appmanager
Afacebook-installer
facebook-services
Also, somehow, now I can not access Dual Apps under settings, kindly help to resolve dual apps access
Click to expand...
Click to collapse
You can uninstall Duo by hand now as it no longer linked to system. I'm looking into the Facebook-appmanager & facebook-installer. As of now they sound stubborn for a systemless uninstall. For now, I have blocked the from accessing internet through AfWall+.
Meanwhile, you can remove the leftovers with adb commands
adb shell
pm uninstall -k --user 0 com.facebook.katana
pm uninstall -k --user 0 com.facebook.system
pm uninstall -k --user 0 com.facebook.appmanager
pm uninstall -k --user 0 com.facebook.services
MSA & File explorer were removed with the above module for me but you can try using adb commands to uninstall them as they're pretty safeto remove.
pm uninstall -k --user 0 com.miui.systemAdSolution
Sorry, I don't have any idea about Dual apps as I'm not sure about an app which is responsible for dual apps to work. You can try reinstalling suspected system apps by trial & error method and check which app is responsible for that. Although I consider such services as bloat which constantly calls home but your opinion may vary.

rob!n said:
Wont this tool help with debloating?
http://en.miui.com/thread-3620390-1-1.html
I am on miui 10
Click to expand...
Click to collapse
It will but this method is safer as you can easily reinstall the apps from recovery if system breaks or stuck in bootloop.

NightScap3 said:
what do i have to add/remove that mi cloud sync works?
Click to expand...
Click to collapse
if you need the MI cloud sync, just open the config file which I attached below and omit the lines which has the name 'sync' in them along with 'MI account' app before placing it in the cache directory.

Help when i install the module it said magisk not installed but i have magisk 17.1 up and running! What is happening and how to fix this

zengraviz said:
Help when i install the module it said magisk not installed but i have magisk 17.1 up and running! What is happening and how to fix this
Click to expand...
Click to collapse
Try reflashing magisk. It works fine for me.

sreekantt said:
Try reflashing magisk. It works fine for me.
Click to expand...
Click to collapse
I tried re installing many times still showing that magisk is not installed. Some error 1.
I install it through magisk app and followed all your instructions though nothing happened. All the apps are still installed.

u_knw_who said:
I tried re installing many times still showing that magisk is not installed. Some error 1.
I install it through magisk app and followed all your instructions though nothing happened. All the apps are still installed.
Click to expand...
Click to collapse
Try flashing the module from TWRP.

sreekantt said:
Try flashing the module from TWRP.
Click to expand...
Click to collapse
Still getting the same error.

u_knw_who said:
Still getting the same error.
Click to expand...
Click to collapse
Did you root the phone with supersu prior to Magisk? If that's the case- Wipe data and flash Magisk with flashable zip of Disable force encryption.

sreekantt said:
Did you root the phone with supersu prior to Magisk? If that's the case- Wipe data and flash Magisk with flashable zip of Disable force encryption.
Click to expand...
Click to collapse
Done! Do you have any suggestions to what app should i use for phone as phone app is also removed.

Encryption zip has magisk. It's older version but it's working. Just update it. It's working fine. Installing it from zip didn't work for me too
Wysłane z mojego POCOPHONE F1 przy użyciu Tapatalka

u_knw_who said:
Done! Do you have any suggestions to what app should i use for phone as phone app is also removed.
Click to expand...
Click to collapse
Here is the google dialer
https://send.firefox.com/download/e62e041489/#NWhazEktbpmrkbEb_9ILHQ

so after your config debloat.. can i still login to my mi account? also i want the sync to stay

We are gonna de-bloat most of the so called security services found in the security app but few services like app scanning which is found in MIUI Security components app is mandatory for the package manager to properly install apps from unknown sources.
For this, you Can download - Package installer 8.1.0-4879956 By Google LLC.
You can uninstall the bloat from Xiaomi
---------- Post added at 07:27 AM ---------- Previous post was at 07:26 AM ----------
Sarvesh7x said:
so after your config debloat.. can i still login to my mi account? also i want the sync to stay
Click to expand...
Click to collapse
Do you want to sync to Xiaomi? Why not sync to Google?
You can skip login to Xiaomi when you install miui.

mohan_168 said:
We are gonna de-bloat most of the so called security services found in the security app but few services like app scanning which is found in MIUI Security components app is mandatory for the package manager to properly install apps from unknown sources.
For this, you Can download - Package installer 8.1.0-4879956 By Google LLC.
You can uninstall the bloat from Xiaomi
Click to expand...
Click to collapse
Cool. I thought so but was too lazy. That's a neat idea. Right now blocking those all left over bloat with AF wall+.

Can someone explain the put that file in cache part? I don't know where cache folder is, and also the file show 410 forbidden error to me

Related

[ROOT] [Discussion] Safe-to-remove System Bloatware/Googleware

Since there's no thread related to safe-to-remove system bloatware/googleware, I decided to make one.
I'm counting on your help to expand this list.
Tested
Chrome
Alternatives: Firefox, Brave, Waterfox.
Or you could simply uninstall it as a system APP and reinstall it as a user APP. There's definitely no need for Chrome to be a system APP.
Contacts
Alternatives: Simple Contacts Pro, fully open-source (paid or free if you download it through F-Droid, but won't get advanced customizations), Contacts+.
I also advise you to remove Google Contacts as a system APP and reinstall it as an user APP if you wish to keep it, there's no reason for Google Contacts to be a system APP.
Gmail
This one actually depends on your email provider, since I don't use gmail at all, I completely uninstalled this.
Also I suggest looking at ProtonMail, it's an email provider mostly focused on user data protection (through strict Swiss data protection laws) and privacy.
Then again, if you wish to keep this APP, I suggest uninstalling it and reinstall it as an user APP.
Digital Wellbeing
If you use this functionality on settings you may want to keep it, I uninstalled it.
Also I noticed that ever since I uninstalled this APP, there's an error on logcat showing that something failed to connect to this APP. However it's just a log, despite that everything seems to be working great.
Google Files/Files Go
If you managed to upgrade from Android 8 to Android 9, you most likely kept the standard system APP "Files", however if you flashed Android 9 from scratch, the standard system APP "Files" becomes hidden, which you may unhide it using this app. (I didn't test it). You can also use FileManager by Xiaomi.
Or if you're like me and prefer open-source APPs, I installed Simple File Manager Pro, it supports root (paid or free if you download it through F-Droid, but won't get advanced customizations) or this free and simple file manager.
If you wish to keep Files Go (Google Files) you can also uninstall is as a system APP and reinstall it as an user APP.
Calendar
At this point there's not much calendar APPs out there with cloud sync support, so I managed to stick to Google Calendar, although I uninstalled it as a system APP and reinstalled it as an user APP. I know I said this countless times but I'm extremely against contributing to Google's currently huge power on user personal data, so I try to be as google-less as possible.
Lens
Don't know what this actually does, but Android 8 didn't have it and I looked it up somewhere and some people said that it was safe to remove, and so far so good.
You can read more about it here.
Google
Safe to remove, however your search box widget becomes pretty useless. I actually don't mind at all, it even switches to dark theme mode.
Action Services
From what I've read, this APP is responsible for the APP suggestions on your All-APPs menu, so you'll get some errors when uninstall this. To avoid the errors you have to deactivate APP suggestions first:
Long Press Home-Screen > Home Settings > Suggestions > Apps (Disable this)
And now you're free to uninstall this.
Photos
Definitely not keeping this one, with cloud storage and such.
Replaced with, once again, Simple Gallery Pro (paid or free if you download it through F-Droid, but won't get advanced customizations). You can also use LeafPic which is also open-source and looks great but I didn't actually test it.
Google Maps
I use this, however I uninstalled as a system APP and reinstalled as an user APP.
I'm currently slowly trying to migrate to Waze even though it was bought by Google.
YouTube
I occasionally use it, so I made it an user APP.
Probably safe-to-remove but not tested
Device Health Services
Does anyone know what this APP is responsible for?
Gboard
I don't use it but I didn't uninstall it because it may be required for first-time password input when turning on the device.
When I switch to another keyboard besides Google or SwiftKey (currently using), there's a popup saying "Note: After a reboot, this app can't start until you unlock your phone.", that's why I didn't uninstall it.
Messages
Unfortunately I don't know any good enough Messaging APP to replace Google Messages.
I know there used to be Silence, it even supported P2P encryption but I think it was discontinued. There's also Textra although not open-source.
Feedback
When trying to uninstall this system APP it's shown that it is a Key module, although I really doubt it really is.
Uncertain
com.google.android.gms.policy_sidecar_aps
What on earth is this and what does it do?
Android Setup & Device Setup
I'm assuming these are only used when configuring the device for the first time?
If you have any suggestions, useful tools or tips please drop them down below, I'll try to keep this list up-to-date along with your suggestions.
my bloatware list: (all frozen via titanium backup)
com.google.android.as (actions services)
com.android.chrome
com.google.android.apps.wellbeing
com.android.documentsui
com.google.android.apps.nbu.files
com.google.android.apps.photos
com.google.android.calculator
com.google.ar.lens
plus
gboard : safe after you've installed a new 3rd party keyboard app and enabled it.
device setup
youtube
the apps i'm using instead some of above:
browser : lightning browser
file manager : solid explorer
gallery : simple gallery pro
calculator : champcalc
youtube : youtube vanced
com.miui.spock
com.miui.bugreport
com.huaqin.factory
com.huaqin.sar
com.huaqin.diaglogger
android.autoinstalls.config.Xiaomi.daisy
com.android.egg
com.google.android.gms.policy_sidecar_aps
com.mi.setupwizardoverlay
adb shell
pm uninstall -k --user 0 package_name ***OR*** cmd appops set package_name RUN_IN_BACKGROUND ignore ***OR*** pm disable-user --user 0 package_name
I recently uninstalled those with
Code:
pm uninstall -k --user 0
:
android.telephony.overlay.cmcc
android.ui.overlay.ct
android.autoinstalls.config.Xiaomi.daisy
com.google.android.marvin.talkback
com.google.android.apps.wellbeing
com.google.android.apps.work.oobconfig
com.google.android.gms.policy_sidecar_aps
com.android.egg
com.android.backup
com.android.dreams.basic
com.android.mms.overlay.cmcc
com.android.networksettings.overlay.ct
com.android.providers.partnerbookmarks
com.android.settings.overlay.cmcc
com.android.systemui.overlay.cmcc
com.android.systemui.overlay.ct
com.android.wallpaperpicker
com.android.facelock
com.android.stk
com.android.dreams.phototable
com.mi.setupwizardoverlay
com.mi.AutoTest
com.miui.bugreport
com.miui.spock
com.huaqin.diaglogger
com.huaqin.factory
com.huaqin.sar
se.dirac.acs
com.fingerprints.sensortesttool
org.codeaurora.bluetooth
com.qualcomm.simcontacts
com.qualcomm.qti.perfdump
com.qualcomm.qti.qmmi
com.qualcomm.qti.callenhancement
com.qualcomm.qti.dynamicddsservice
com.qualcomm.embms
com.qualcomm.qti.autoregistration
com.qualcomm.qti.callfeaturessetting
com.qualcomm.qti.lpa
com.qualcomm.qti.networksetting
com.qualcomm.qti.optinoverlay
com.qualcomm.qti.qms.service.connectionsecurity
com.qualcomm.qti.qms.service.trustzoneaccess
com.qualcomm.qti.qtisystemservice
com.qualcomm.qti.simsettings
com.qualcomm.qti.uim
com.qualcomm.qti.confdialer
com.qualcomm.qti.qms.service.telemetry
com.qualcomm.qti.roamingsettings
com.qualcomm.qti.services.secureui
com.qualcomm.qti.auth.fidocryptoservice
com.qti.qualcomm.datastatusnotification
com.qti.xdivert
com.qti.dpmserviceapp
com.qti.confuridialer
com.qti.qualcomm.deviceinfo
Phone works perfectly fine after this. No issues, like nothing changed except better battery life.
And I'm thinking about those:
com.google.android.ims
com.goodix.gftest
com.fingerprints.extension.service
com.goodix.fingerprint
Has anyone tried to remove them?
---------- Post added at 05:19 PM ---------- Previous post was at 05:02 PM ----------
@lbsilva Device Health Services is battery optimisation.
One of the very few useful threads for this device. Bravo! Ideally, once there is a consensus on which packages can be removed without crippling the phone some knowledgeable person should make a script to do the job, either something to flash or a bash + adb to do it from desktop.
I found this .bat file, I think it's reusable with those above but only in Windows.
Wouldnt recommend removing anything to do with qualcomm or networking, be warned.
OP, when you say "remove", do you mean "disable so it can't run", or "completely wipe it off the phone"?
I've got a Blu Life One X3, rooted with TWRP and Magisk. What I describe below is my second attempt to debloat the phone. The first attempt, I just uninstalled unwanted apps from the current user via ADB.
Example:
adb shell pm uninstall --user 0 -k com.android.egg
I entered into TWRP Recovery Mode and deleted the /system/app and /system/priv-app directories for the apps I didn't want. Upon booting, the phone went through the boot animation and music jingle, then stopped. I left it overnight, since it was late and I wanted to see if it'd work its way to a full boot. It didn't, so I recovered with the out-of-box Nandroid backup I'd taken.
What's strange is that the phone worked fine when the very same apps were just disabled (during my first attempt), but locked up when those apps were deleted from the phone.
Is there something else I need to edit?
How to uninstall without using command line? Is there any some GUI application to uninstall this??
*By the way how to download youtube vanced, i search it in magisk download , there's nothing
bla.tiga said:
How to uninstall without using command line? Is there any some GUI application to uninstall this??
*By the way how to download youtube vanced, i search it in magisk download , there's nothing
Click to expand...
Click to collapse
If you are rooted, download titanium backup from playstore and have fun.
For yt Vanced, try clearing the repo cache from magisk's settings and search again. Or search the module here on XDA and add it manually.
Edit: looks like Google screwd things up and made chrome almost a dependency or it's an issue just on my device. On Oreo, Gmail stops working after chrome removal. Looks like Gmail is now dependent of chrome webview, it's crashing when using Android system webview.
Edit 2: nevermind, after updating Android system webview, Gmail app has started working again.
great thread, thanks
I found some apps/services that you've successfully disabled. Just wanna ask if, is this universal? I mean I have realme phone and planning to disable all the same apps/services which you were tried already.
So, this is a pseudo-custom rom you are after, why not use the real thing? I'm assuming this is Android 9 since 10 is a total f**k. Why not use the real thing, a custom rom? I recommend AOSiP Pizza since it's the one I've been using for a long time and it proved solid. The only thing I replaced was gallery with Simple gallery and I use MicroG for what it's worth. This removing stuff from gappsed AOSP is totally ridiculous and counter productive, you do that with Miui and such if you really care about a particular UI but not with plain Android, that's nonsense.
Found this useful tool on git last year.
It allows a lot of nice little things among which uninstall/reinstall/disable/enable system apps and services on demand without root and without passes through adb/fastboot command lines.
And it was tested with Q too.
Also feedback app was safely uninstalled.
Feel free to try it.
This is the link: https://github.com/Szaki/XiaomiADBFastbootTools
Read carefully readme.md and faq before use it.
How can I restore some critical packages under TWRP (MIUI11)? I'm testing limits of what can I delete without bricking it and reinstalling ROM every time after that is very tiresome (boot into recovery, wipe cache and data, reinstall MIUI, boot into system, remove tested apps, then restore settings and try again).
There has to be a proper way to restore some app like, for example, com.xiaomi.finddevice
KZekai said:
How can I restore some critical packages under TWRP (MIUI11)?
Click to expand...
Click to collapse
Magisk + terminal debloater.
If you break it, use TWRP to fix.
Look under /data/adb/modules/terminal_debloater.
a1291762 said:
Magisk + terminal debloater.
If you break it, use TWRP to fix.
Look under /data/adb/modules/terminal_debloater.
Click to expand...
Click to collapse
Yeah, I have debloater but I'm talking about doing it under TWRP when system isnt even loaded, debloater is a module that works in OS. In TWRP recovery your terminal is barebone core loaded by recovery itself, there is absolutely no relation to the system and apps installed, no ADB environment, no app [meta]data.
KZekai said:
Yeah, I have debloater but I'm talking about doing it under TWRP when system isnt even loaded, debloater is a module that works in OS. In TWRP recovery your terminal is barebone core loaded by recovery itself, there is absolutely no relation to the system and apps installed, no ADB environment, no app [meta]data.
Click to expand...
Click to collapse
I meant to use debloater to hide the app and you can then fix it from TWRP if it doesn't work. You could always setup the files it uses from TWRP but I guess that'd be harder to do.
I don't know how adb uninstall hides but you should be able to reverse that from TWRP too (likely removing some files).
If you mount /system just move things and move them back if it fails.
a1291762 said:
I meant to use debloater to hide the app and you can then fix it from TWRP if it doesn't work.
Click to expand...
Click to collapse
How would I fix it?
Does the "debloater" make extra unnecessary copies of APK when those already exist on system partition?
KZekai said:
How would I fix it?
Does the "debloater" make extra unnecessary copies of APK when those already exist on system partition?
Click to expand...
Click to collapse
No, it hides them systemlessly, using files in /data/adb/modules/terminal_debloater/system.
---------- Post added at 09:03 PM ---------- Previous post was at 08:37 PM ----------
Based on this: https://www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access/
I tried this:
pm uninstall -k --user 0 com.android.carrierdefaultapp
and to restore:
cmd package install-existing com.android.carrierdefaultapp
What I found was that with the app installed, I had some empty directories under /data/misc/profiles/ref/com.android.carrierdefaultapp and /data/misc/profiles/cur/0/com.android.carrierdefaultapp. When I removed the app, those directories were not present.
It's just a guess... but you could possibly save the contents of /data/misc/profiles (eg. tar cf /sdcard/profiles.tar /data/misc/profiles), pm uninstall your app and if it fails to boot, untar that from TWRP? Maybe test that theory with an app you know won't hurt before you do it for real
Note that neither terminal debloater (which uses mount tricks to hide system apps) or pmuninstall will actually remove files from /system. If you actually remove files from /system then the only way to get them back is to put them back.

Pre installed app removal?

It appears that some apps that come pre installed on the 8t can be deleted...rather than disabled. For example, Google One.
If I delete them, will they reinstall with a factory reset or were they installed separate from the factory image?
Been several years since I had a new phone and am use to only being able to disable pre installed apps.
Thanks
Well if you root you can debloat it
brad34471 said:
It appears that some apps that come pre installed on the 8t can be deleted...rather than disabled. For example, Google One.
If I delete them, will they reinstall with a factory reset or were they installed separate from the factory image?
Been several years since I had a new phone and am use to only being able to disable pre installed apps.
Thanks
Click to expand...
Click to collapse
You can use ABD for delete your apps, follow the guide, you can create a txt file with all your adb commands and copy/past once
the best link for all method/scrits : here
the adb method link directly : here
spart0n said:
Well if you root you can debloat it
Click to expand...
Click to collapse
False... You can easily debloat/delete apps from adb without root, on all smartphone, OnePlus, Sasmsung Redmi/Xiaomi
Best way is obviously to use adb method if you're not willing to root. Enter adb shell
Code:
adb shell
A simple search like this will give all packages with google in it's name. You can replace 'google' with 'oneplus' or 'facebook' etc to find the package names.
Code:
pm list packages | grep 'google'
You can use this to delete the app after finding package name using this.
Code:
pm uninstall --user 0 com.facebook.appmanager
Note that this removes apps only from default user and not from system. They will return if you do a factory reset.
KrishTej said:
Best way is obviously to use adb method if you're not willing to root. Enter adb shell
Code:
adb shell
A simple search like this will give all packages with google in it's name. You can replace 'google' with 'oneplus' or 'facebook' etc to find the package names.
Code:
pm list packages | grep 'google'
You can use this to delete the app after finding package name using this.
Code:
pm uninstall --user 0 com.facebook.appmanager
Note that this removes apps only from default user and not from system. They will return if you do a factory reset.
Click to expand...
Click to collapse
Package Info from the PlayStore is also another good way to see the package names of what is installed to make the apps you want to get rid of easier to remove. Personally, I save a text file of the apps I remove for each device I have to make it easier to remove them if I ever have to factory reset the device or remove them for others.

Debloating Samsung Secure Folder

Is it possible to uninstall system apps via adb from Samsung secure folder?? I tried pm uninstall -k --user 150 com.android.chrome
It does not works. 150 is secure folder user.
Unistall or block Chrome... tastes like spyware.
Karma Firewall can be used to block internet access as well.
Secure Folder is tied to Knox, be careful with it.
I disabled internet access of %90 apps in secure folder. Disabled if not greyed out. But is there a way to uninstall apps in secure folder via adb?
halilb1978 said:
Is it possible to uninstall system apps via adb from Samsung secure folder?? I tried pm uninstall -k --user 150 com.android.chrome
It does not works. 150 is secure folder user.
Click to expand...
Click to collapse
Freeze and hide aps. Not sure, but they may require root. It can also be done using Magisk.
halilb1978 said:
Is it possible to uninstall system apps via adb from Samsung secure folder?? I tried pm uninstall -k --user 150 com.android.chrome
It does not works. 150 is secure folder user.
Click to expand...
Click to collapse
Look inside here:
How to Remove Apps from Secure Folder - Samsung Manual | TechBone
Remove Apps from Secure Folder - Samsung:
www.techbone.net
xXx yYy said:
Look inside here:
How to Remove Apps from Secure Folder - Samsung Manual | TechBone
Remove Apps from Secure Folder - Samsung:
www.techbone.net
Click to expand...
Click to collapse
It is not for system apps. It is for apps which have uninstall button.
remark
looking for solutions
solologo said:
remark
looking for solutions
Click to expand...
Click to collapse
Factory reset.
I avoid using the Knox based features because they are a pain.
blackhawk said:
Factory reset.
I avoid using the Knox based features because they are a pain.
Click to expand...
Click to collapse
Reset does not make any sense here.
solologo said:
Reset does not make any sense here.
Click to expand...
Click to collapse
It wipes secure folder settings, right?

Question Can't remove system apps

I'm trying to run vanced YouTube on my pixel 7 Pro. Vanced manager manager still working on my op9pro...but I need to delete all remnants of the stock YouTube app from my device.
I'm unlocked and rooted. Titanium backup shows the error "can't locate APK". I'm trying to do it manually with root explorer. The YouTube and YouTube music APKs are located in /product/app/YouTube. I cannot delete these files and root explorer won't allow me to change the permissions of these folders. I also tried adb but that just hides them, I need to remove any and all files associated with the stock YouTube system app.
Anyone have any ideas? I'm not looking to hide these apps, I'm looking to permanently remove them from the phone.
Pain-N-Panic said:
I'm trying to run vanced YouTube on my pixel 7 Pro. Vanced manager manager still working on my op9pro...but I need to delete all remnants of the stock YouTube app from my device.
I'm unlocked and rooted. Titanium backup shows the error "can't locate APK". I'm trying to do it manually with root explorer. The YouTube and YouTube music APKs are located in /product/app/YouTube. I cannot delete these files and root explorer won't allow me to change the permissions of these folders. I also tried adb but that just hides them, I need to remove any and all files associated with the stock YouTube system app.
Anyone have any ideas? I'm not looking to hide these apps, I'm looking to permanently remove them from the phone.
Click to expand...
Click to collapse
[SOLVED] Revanced working?
Did anyone try installing revanced manager on the P7P? Get it working? I installed the manager and it doesn't seem to see when I patch the youtube apk. It goes through the process of patching the youtube apk. I installed using non-root methods...
forum.xda-developers.com
@rester555, @EtherealRemnant, and some others got it working well enough....and I don't think they had to go through the trouble of deleting "all remnants" of the stock app. You might be used to a bit of an outdated method or particular to your previous device method because I believe it's been a long time since you had to remove the stock app to get it to work -- at the very least on my Pixel 5 A11 rooted, I used Vanced manager and it would merely overwrite/replace my stock app; I just had to make sure to turn off auto-update as Google would insist on re-installing/updating it back to stock...
In any case, the thread below is where a bunch of them got it to work well enough on the P7P (without the need to remove the stock app, i believe)
[SOLVED] Revanced working?
Did anyone try installing revanced manager on the P7P? Get it working? I installed the manager and it doesn't seem to see when I patch the youtube apk. It goes through the process of patching the youtube apk. I installed using non-root methods...
forum.xda-developers.com
EDIT
Sorry for re-iterating what netgar posted. He got his post in before while I was still drafting mine...
Just disable the app. You can do it natively. Go like you're going to uninstall the app and you'll see disable.
I did disable it. Only problem now is I can't install an older YouTube APK from APK mirror in order to patch it with revanced lol. Phone is giving me an error when I try to install an older version of YouTube.
Pain-N-Panic said:
I did disable it. Only problem now is I can't install an older YouTube APK from APK mirror in order to patch it with revanced lol. Phone is giving me an error when I try to install an older version of YouTube.
Click to expand...
Click to collapse
I literally installed ReVanced yesterday. All I did was disable YouTube, build with ReVanced Builder, install micro G, and install the patched APK.
EtherealRemnant said:
I literally installed ReVanced yesterday. All I did was disable YouTube, build with ReVanced Builder, install micro G, and install the patched APK.
Click to expand...
Click to collapse
I'm not using revanced builder. I'm trying to use the manager app on my phone. Maybe I'll try the builder instead
EtherealRemnant said:
I literally installed ReVanced yesterday. All I did was disable YouTube, build with ReVanced Builder, install micro G, and install the patched APK.
Click to expand...
Click to collapse
Pain-N-Panic said:
I'm not using revanced builder. I'm trying to use the manager app on my phone. Maybe I'll try the builder instead
Click to expand...
Click to collapse
I'm not familiar with using the builder, but I saw EtherealRemnant have success with it, so that's why I @'d him. Glad he/it helped!
I got it working. Although I'm rooted, I had to use the non root method with microg in order to get it working
Even though I got it working, I'm still kind of pissed I can't delete certain system apps off my device. Huge reasoning for rooting in the first place is to have ultimate control over my device. Can anyone shed some light on why I can't remove certain system apps or provide a working method to do so?
Just did the "Install as root" option and it installed just fine. I did uninstall all updates followed by installing apk of recommended version with no issues on my end
Pain-N-Panic said:
Even though I got it working, I'm still kind of pissed I can't delete certain system apps off my device. Huge reasoning for rooting in the first place is to have ultimate control over my device. Can anyone shed some light on why I can't remove certain system apps or provide a working method to do so?
Click to expand...
Click to collapse
Root these days is systemless. The best you can do is disable apps or uninstall them from your user profile with adb.
Pain-N-Panic said:
Even though I got it working, I'm still kind of pissed I can't delete certain system apps off my device. Huge reasoning for rooting in the first place is to have ultimate control over my device. Can anyone shed some light on why I can't remove certain system apps or provide a working method to do so?
Click to expand...
Click to collapse
Have you tried uninstalling via ADB
Pain-N-Panic said:
Even though I got it working, I'm still kind of pissed I can't delete certain system apps off my device. Huge reasoning for rooting in the first place is to have ultimate control over my device. Can anyone shed some light on why I can't remove certain system apps or provide a working method to do so?
Click to expand...
Click to collapse
EtherealRemnant said:
Root these days is systemless. The best you can do is disable apps or uninstall them from your user profile with adb.
Click to expand...
Click to collapse
i know it's old and EOL, but can't Titanium Backup "freeze" system apps? It's been a while (years), so I'm working off of memory and just basing it off of what I kinda remember and can't be too sure...
Open a Command Terminal, grant root access by typing "su"
This command works for me to delete system apps (youtube for example):
pm uninstall -k --user 0 com.google.android.youtube
pm uninstall -k --user 0 com.google.android.apps.youtube.music
Have you tried that one?
[MODULE][Terminal] Debloater v17.3.2 - Debloat Systemlessly!
[TERMINAL] DEBLOATER Debloat your phone Systemlessly! Debloating can sometimes be device specific. OEM apps can sometimes be a trash to a user but not to the other. So I decided to make a module to Customize the uninstallation of a system app...
forum.xda-developers.com
netgar said:
Have you tried that one?
[MODULE][Terminal] Debloater v17.3.2 - Debloat Systemlessly!
[TERMINAL] DEBLOATER Debloat your phone Systemlessly! Debloating can sometimes be device specific. OEM apps can sometimes be a trash to a user but not to the other. So I decided to make a module to Customize the uninstallation of a system app...
forum.xda-developers.com
Click to expand...
Click to collapse
I'll look into it, thank youv
simplepinoi177 said:
i know it's old and EOL, but can't Titanium Backup "freeze" system apps? It's been a while (years), so I'm working off of memory and just basing it off of what I kinda remember and can't be too sure...
Click to expand...
Click to collapse
I don't know if it works on A13 but that's what I used to use on my OP9 to freeze apps, yeah.
EtherealRemnant said:
I don't know if it works on A13 but that's what I used to use on my OP9 to freeze apps, yeah.
Click to expand...
Click to collapse
TiBu still works. I'm using it currently. Does a fine job of disabling or freezing system apps as needed.

Question Lineage Camera App does not work on thirty apps like Discord - Pixel Experience 13 Plus

Hello everyone!
I have a Poco X3 Pro [vayu] with OrangeFox recovery and Pixel Experience 13 Plus. Device is working pretty well, but I'm facing some problems with the stock Camera app (org.lineageos.aperture). When I try to use camera in some apps that uses the stock App, system says that my camera app has crashed. In apps that do not uses the stock camera app, it works fine.
I do no have root to avoid problems with my banking apps.
So, I started to search about change stock camera app by recovery, but here in android 13, I am not able to change anything in system/apps or priv-apps folders because it says that my folders are read-only.
I've uploaded a short video on youtube about that:
Do you have any suggestion to help me?
In PC use: "adb shell" and paste this command: pm uninstall --user 0 org.lineageos.aperture
Then you must install a camera app, you can search it in Telegram: https://t.me/PocoX3ProPhotography
If this don't work maybe you should try another ROM.
swer45 said:
In PC use: "adb shell" and paste this command: pm uninstall --user 0 org.lineageos.aperture
Then you must install a camera app, you can search it in Telegram: https://t.me/PocoX3ProPhotography
If this don't work maybe you should try another ROM.
Click to expand...
Click to collapse
Hello! I uninstalled the stock app, but with two versions of Gcam that I have installed, discord app does not ask for me which of apps I want to choose. I think for the system to open the camera, the camera needs to be a system app. Is there a way to turn any of these apps into system apps? Using Recovery or ADB Shell
felpz2001 said:
Hello! I uninstalled the stock app, but with two versions of Gcam that I have installed, discord app does not ask for me which of apps I want to choose. I think for the system to open the camera, the camera needs to be a system app. Is there a way to turn any of these apps into system apps? Using Recovery or ADB Shell
Click to expand...
Click to collapse
Only with Magisk

Categories

Resources