Guide - How to add applications into the "Battery - Restricted apps" list. - Sony Xperia XZ1 Compact Guides, News, & Discussion

Hi all,
I have been using Samsung for many years and I used to do things right in the setting menu.
But with Sony XZ1c are thinghs slightly complicated. Like setting applications to "Restricted apps" in battery menu.
When you wan to add app as restricted you have to go to Settings>Apps>See all apps>{chose the app}>Advanced>Battery>Background restriction>Restrict.
It is really crazy for me so I prepare easy way how to do it in bulk by ADB:
Requirements:
ADB installed on your PC.
Enabled: Developer options>USB debugging
Shell started on your PC, for example cmd in Windows, bash or another in Linux
Tested on:
47.2.A.10.80 but it should work on all versions.
How to:
First of all you have to get list of your applications in your phone:
Code:
adb shell pm list packages
package:com.amazon.mShop.android.shopping
package:com.sonymobile.whitebalance
.
.
.
package:com.android.cts.priv.ctsshim
package:com.qualcomm.qti.qms.service.telemetry
If you want (it is not necessarily) use these switches to filter list or show more information:
Code:
pm list packages [-f] [-d] [-e] [-s] [-3] [-i] [-l] [-u] [-U]
[--uid UID] [--user USER_ID] [FILTER]
Prints all packages; optionally only those whose name contains
the text in FILTER. Options are:
-f: see their associated file
-d: filter to only show disabled packages
-e: filter to only show enabled packages
-s: filter to only show system packages
-3: filter to only show third party packages
-i: see the installer for the packages
-l: ignored (used for compatibility with older releases)
-U: also show the package UID
-u: also include uninstalled packages
--uid UID: filter to only show packages with the given UID
--user USER_ID: only list packages belonging to the given user
Chose which application you want to restrinct and type:
Code:
adb shell appops set <PACKAGE> RUN_ANY_IN_BACKGROUND ignore
like:
adb shell appops set com.amazon.mShop.android.shopping RUN_ANY_IN_BACKGROUND ignore
To check status of the app:
Code:
adb shell appops <PACKAGE> RUN_ANY_IN_BACKGROUND
like:
adb shell appops com.amazon.mShop.android.shopping RUN_ANY_IN_BACKGROUND
To restrict more than one application:
Code:
adb shell
appops set com.amazon.mShop.android.shopping RUN_ANY_IN_BACKGROUND ignore
appops set com.sonymobile.scan3d RUN_ANY_IN_BACKGROUND ignore
appops set com.google.android.youtube RUN_ANY_IN_BACKGROUND ignore
appops set net.languagecourse.vt.de RUN_ANY_IN_BACKGROUND ignore
.
.
.
.
appops set com.touchtype.swiftkey RUN_ANY_IN_BACKGROUND ignore
appops set com.FireproofStudios.TheRoom2 RUN_ANY_IN_BACKGROUND ignore
appops set com.FireproofStudios.TheRoom3 RUN_ANY_IN_BACKGROUND ignore
appops set com.FireproofStudios.TheRoom RUN_ANY_IN_BACKGROUND ignore
exit
How to revert your changes:
Code:
appops set <PACKAGE> RUN_ANY_IN_BACKGROUND allow
Like:
appops set com.FireproofStudios.TheRoom RUN_ANY_IN_BACKGROUND allow
Disclaimer:
I'm not responsible when you brick or damage your phone. Please chose <PACKAGE> carefully. Also do not restrict all packages!

Related

How to uninstall watch faces and apps through adb

The command line is adb uninstall <apk_name>
The problem is that they talk about package so what's the difference between package and the .apk that I've installed through adb?
Tks
BCabrio
Hi BCabrio,
Try this;
> adb -d shell pm list packages -3
--> adb will give you the 3rd party installed packages list. They will be looking like "com.lorem.ipsumdolor" (starts with com.)
> adb -d uninstall com.lorem.ipsumdolor
This would solve your problem.
Regards,

DEBLOAT Script XZ1 Compact - STOCK Pie - G8441_47.2.A.11.228 (No root, Android 9)

This is debloat of Google stuff (Play and Services) / Sony / other / tracking apps etc. Updated version for Android 9 (Pie), you get better battery life and better privacy.
The main goal is mimic custom rom with fully working stock camera/connectivity/fingerprint and no Google bloat/track and as consequance, better battery life.
Root not needed for debloat, but necessary for further optimizations. (with underclocked CPUs, tuned RUN_IN_BACKGROUND privilege and BOOT_COMPLETED intent action of installed/system apps, you can reach 7 days on one charge - with deepsleep active 92% of time. /No wakelock tuning/)
Batch script reads file deb.xz1c.txt and process all lines which does not start with #. Lines/apps with starts with @ are disabled only (mainly Google components which don't like being uninstalled.)
---What You Need---
-you need working adb shell (or Flashtool), debloat_xz1c.bat and deb.xz1c.txt must be in the same directory. For example ...\Flashtool\x10flasher_lib\
-activated developer options - adb debugging
-have active screen security (pin code, password, fingerprint) so you can deactivate google as administrator app and agents of trust in settings.
-check there is no google in find my device etc.
-default Android 9 sms/mms app is Google framework dependent so you need a free alternative. QKMS is way better then default.
-install Firefox or another non-google browser. (you can enable/disable Chrome in deb.xz1c.txt)
debloat_xz1c.bat
Code:
SETLOCAL ENABLEDELAYEDEXPANSION
:: give user some time to respond to adb/root notification on phone o_o
adb devices
timeout 2
adb shell id
timeout 3
echo off
:: name of input file (deb.xz1c.txt)
for /f "eol=#" %%f in (deb.xz1c.txt) do (
set line=%%f
set fchar=!line:~0,1!
call :work_clear_data
if "!fchar!" == "@" call :work_disable
if not "!fchar!" == "@" call :work_uninst
)
goto :end
:work_clear_data
for /f "tokens=1,2 delims=^=" %%a in ("%line%") do (
echo --------[ %%b ]
echo Force-Stopping and clearing app's data:
adb shell am force-stop %%b
adb shell pm clear %%b
)
goto :eof
:work_uninst
for /f "tokens=1,2 delims=^=" %%a in ("%line%") do (
echo 'Uninstalling' app:
adb shell pm uninstall -k --user 0 %%b
)
goto :eof
:work_disable
for /f "tokens=1,2 delims=^=" %%a in ("%line%") do (
echo Disabling app:
adb shell pm disable-user %%b
)
goto :eof
:end
This is wip debloat list - minimum google stuff, no play services, sony and other. Ready for F-Droid. I am using alternative launcher/email/offline calendar/etc.
You can disable specific app without uninstalling it (place @ as first character on line).
deb.xz1c.txt
Code:
# script ignores lines starting with # ,lines(apps) starting with @ will be disabled only, lines without # or @ will be uninstalled.
# lines starting with #! and @! are important for system to function corectly. Don't remove them.
# add # to ignore
# add @ to disable
# remove # or @ to clear app's data and uninstall.
#----Sony Launcher---- (remove # if you have another launcher installed)
#/system/priv-app/home-sonyMobile-release/home-sonyMobile-release.apk=com.sonymobile.home
#----Google Chrome---- (remove # if you have another internet browser installed -Firefox,etc.. add # if you don't.)
/system/app/Chrome/Chrome.apk=com.android.chrome
#======Google Stuff======== (install another sms app first. for example QKSMS)
#!/system/app/GoogleExtShared/GoogleExtShared.apk=com.google.android.ext.shared
#!/system/app/WebViewStub/WebViewStub.apk=com.google.android.webview
#!/system/priv-app/GooglePackageInstaller/GooglePackageInstaller.apk=com.google.android.packageinstaller
#!/system/priv-app/GoogleServicesFramework/GoogleServicesFramework.apk=com.google.android.gsf
@!/system/priv-app/GmsCore/GmsCore.apk=com.google.android.gms
@!/system/priv-app/CarrierServices/CarrierServices.apk=com.google.android.ims
@!/system/app/Messages/Messages.apk=com.google.android.apps.messaging
#/system/priv-app/OobConfig/OobConfig.apk=com.google.android.apps.work.oobconfig
/system/priv-app/SetupWizard/SetupWizard.apk=com.google.android.setupwizard
/system/app/ARCoreStub/ARCoreStub.apk=com.google.ar.core
/system/app/CalendarGoogle/CalendarGoogle.apk=com.google.android.calendar
/system/app/Chrome/Chrome.apk=com.android.chrome
/system/app/Drive/Drive.apk=com.google.android.apps.docs
/system/app/Duo/Duo.apk=com.google.android.apps.tachyon
/system/app/EasterEgg/EasterEgg.apk=com.android.egg
/system/app/Gmail2/Gmail2.apk=com.google.android.gm
/system/app/GoogleContactsSyncAdapter/GoogleContactsSyncAdapter.apk=com.google.android.syncadapters.contacts
/system/app/GooglePrintRecommendationService/GooglePrintRecommendationService.apk=com.google.android.printservice.recommendation
/system/app/GoogleTTS/GoogleTTS.apk=com.google.android.tts
/system/app/Maps/Maps.apk=com.google.android.apps.maps
/system/app/Music2/Music2.apk=com.google.android.music
/system/app/Photos/Photos.apk=com.google.android.apps.photos
/system/app/Videos/Videos.apk=com.google.android.videos
/system/app/YouTube/YouTube.apk=com.google.android.youtube
/system/app/talkback/talkback.apk=com.google.android.marvin.talkback
/system/priv-app/AndroidPlatformServices/AndroidPlatformServices.apk=com.google.android.gms.policy_sidecar_aps
/system/priv-app/ConfigUpdater/ConfigUpdater.apk=com.google.android.configupdater
/system/priv-app/GoogleBackupTransport/GoogleBackupTransport.apk=com.google.android.backuptransport
/system/priv-app/GoogleFeedback/GoogleFeedback.apk=com.google.android.feedback
/system/priv-app/GoogleOneTimeInitializer/GoogleOneTimeInitializer.apk=com.google.android.onetimeinitializer
/system/priv-app/GooglePartnerSetup/GooglePartnerSetup.apk=com.google.android.partnersetup
/system/priv-app/GoogleRestore/GoogleRestore.apk=com.google.android.apps.restore
/system/priv-app/HotwordEnrollmentOKGoogleWCD9340/HotwordEnrollmentOKGoogleWCD9340.apk=com.android.hotwordenrollment.okgoogle
/system/priv-app/Phonesky/Phonesky.apk=com.android.vending
/system/priv-app/Turbo/Turbo.apk=com.google.android.apps.turbo
/system/priv-app/Velvet/Velvet.apk=com.google.android.googlequicksearchbox
/system/priv-app/GoogleExtServices/GoogleExtServices.apk=com.google.android.ext.services
#----Safe to uninstall or disable----
#?/oem/priv-app/CellBroadcastReceiver/CellBroadcastReceiver.apk=com.android.cellbroadcastreceiver
#?/system/app/BluetoothMidiService/BluetoothMidiService.apk=com.android.bluetoothmidiservice
#?/system/app/CtsShimPrebuilt/CtsShimPrebuilt.apk=com.android.cts.ctsshim
#?/system/app/NfcExtension/NfcExtension.apk=com.sonymobile.nfcextension
#?/system/app/PrintSpooler/PrintSpooler.apk=com.android.printspooler
#?/system/app/SomcDualshockManager/SomcDualshockManager.apk=com.sonymobile.dualshockmanager
#?/system/app/Theme-Sou-M-cid19-silver-sw360dp-xhdpi-release/Theme-Sou-M-cid19-silver-sw360dp-xhdpi-release.apk=com.sonymobile.themes.sou.cid19.silver
#?/system/app/Theme-Sou-M-cid20-blue-sw360dp-xhdpi-release/Theme-Sou-M-cid20-blue-sw360dp-xhdpi-release.apk=com.sonymobile.themes.sou.cid20.blue
#?/system/app/Theme-Sou-M-cid21-pink-sw360dp-xhdpi-release/Theme-Sou-M-cid21-pink-sw360dp-xhdpi-release.apk=com.sonymobile.themes.sou.cid21.pink
#?/system/app/uceShimService/uceShimService.apk=com.qualcomm.qti.uceShimService
#?/system/app/UnsupportedHeadsetNotifier/UnsupportedHeadsetNotifier.apk=com.sonyericsson.unsupportedheadsetnotifier
#?/system/app/dlna-somc-xhdpi-release/dlna-somc-xhdpi-release.apk=com.sonymobile.dlna
#?/system/priv-app/CtsShimPrivPrebuilt/CtsShimPrivPrebuilt.apk=com.android.cts.priv.ctsshim
#?/system/priv-app/SemcCnapProvider/SemcCnapProvider.apk=com.sonyericsson.providers.cnap
#?/system/priv-app/SimlockUnlockApp/SimlockUnlockApp.apk=com.sonymobile.simlockunlockapp
#?/system/priv-app/assist_persistent-release/assist_persistent-release.apk=com.sonymobile.assist.persistent
#?/system/priv-app/dpmserviceapp/dpmserviceapp.apk=com.qti.dpmserviceapp
#?/system/priv-app/usb-mtp-vendor-extension-service/usb-mtp-vendor-extension-service.apk=com.sonyericsson.mtp
/system/app/AptxNotifier/AptxNotifier.apk=com.sonymobile.aptx.notifier
/system/app/BasicDreams/BasicDreams.apk=com.android.dreams.basic
/system/app/CrashMonitor/CrashMonitor.apk=com.sonyericsson.crashmonitor
/system/app/CrashMonitorSystem/CrashMonitorSystem.apk=com.sonymobile.crashmonitor.system
/system/app/ExternalKeyboardJP/ExternalKeyboardJP.apk=com.sonymobile.android.externalkeyboardjp
/system/app/FaceLock/FaceLock.apk=com.android.facelock
/system/app/IddAgent/IddAgent.apk=com.sonyericsson.idd.agent
/system/app/PartnerBookmarksProvider/PartnerBookmarksProvider.apk=com.android.providers.partnerbookmarks
/system/app/RcaHandler/RcaHandler.apk=com.sonymobile.rcahandler
/system/app/SecureClockService/SecureClockService.apk=com.sonymobile.secureclockservice
/system/app/SemcEmail-release/SemcEmail-release.apk=com.sonymobile.email
/system/app/SemcWarrantyTime/SemcWarrantyTime.apk=com.sonyericsson.warrantytime
/system/app/SomcMovieCreatorRmm-release/SomcMovieCreatorRmm-release.apk=com.sonymobile.moviecreator.rmm
/system/app/SomcPOBox-xhdpi/SomcPOBox-xhdpi.apk=com.sonymobile.pobox
/system/app/SomcXperiaServices/SomcXperiaServices.apk=com.sonymobile.xperiaservices
/system/app/SusResCheck/SusResCheck.apk=com.sonymobile.susrescheck
/system/app/SyncHub-release/SyncHub-release.apk=com.sonymobile.synchub
/system/app/Traceur/Traceur.apk=com.android.traceur
/system/app/WallpaperBackup/WallpaperBackup.apk=com.android.wallpaperbackup
/system/app/XperiaTransferMobile-release/XperiaTransferMobile-release.apk=com.sonymobile.xperiatransfermobile
/system/app/XperiaXLiveWallpaper-release/XperiaXLiveWallpaper-release.apk=com.sonymobile.xperiaxlivewallpaper
/system/app/android.autoinstalls.config.sony.xperia/android.autoinstalls.config.sony.xperia.apk=android.autoinstalls.config.sony.xperia
/system/app/app-scan3d-release/app-scan3d-release.apk=com.sonymobile.scan3d
/system/app/clock-widgets-release/clock-widgets-release.apk=com.sonymobile.advancedwidget.clock
/system/app/com.amazon.kindle/com.amazon.kindle.apk=com.amazon.kindle
/system/app/com.amazon.mShop.android.shopping/com.amazon.mShop.android.shopping.apk=com.amazon.mShop.android.shopping
/system/app/com.facebook.appmanager/com.facebook.appmanager.apk=com.facebook.appmanager
/system/app/com.facebook.katana/com.facebook.katana.apk=com.facebook.katana
/system/app/com.s.antivirus/com.s.antivirus.apk=com.s.antivirus
/system/app/com.sonyericsson.xhs/com.sonyericsson.xhs.apk=com.sonyericsson.xhs
/system/app/com.sonymobile.deqp/com.sonymobile.deqp.apk=com.sonymobile.deqp
/system/app/com.sonymobile.infoapp/com.sonymobile.infoapp.apk=com.sonymobile.infoapp
/system/app/com.sonymobile.support/com.sonymobile.support.apk=com.sonymobile.support
/system/app/com.sonymobile.xperialounge.services/com.sonymobile.xperialounge.services.apk=com.sonymobile.xperialounge.services
/system/app/com.spotify.music/com.spotify.music.apk=com.spotify.music
/system/app/fota-service/fota-service.apk=com.sonymobile.fota.service
/system/app/pip/pip.apk=com.sonymobile.pip
/system/app/update-center-config-auto-install-stub-release/update-center-config-auto-install-stub-release.apk=com.sonymobile.updatecenter.config.autoinstall
/system/app/update-center-config-late-cmz-stub-release/update-center-config-late-cmz-stub-release.apk=com.sonymobile.updatecenter.config.latecmz
/system/app/videoplaceholder/videoplaceholder.apk=com.sony.tvsideview.videoph
/system/app/weather-project-somctestkey-release/weather-project-somctestkey-release.apk=com.sonymobile.xperiaweather
/system/priv-app/AnonymousData/AnonymousData.apk=com.sonymobile.anondata
/system/priv-app/CameraWearableBridgeHandheldServer/CameraWearableBridgeHandheldServer.apk=com.sonymobile.cameracommon.wearablebridge
/system/priv-app/ManagedProvisioning/ManagedProvisioning.apk=com.android.managedprovisioning
/system/priv-app/OMAClientProvisioning/OMAClientProvisioning.apk=com.sonyericsson.android.omacp
/system/priv-app/SemcAlbum-albumLive-release/SemcAlbum-albumLive-release.apk=com.sonyericsson.album
/system/priv-app/SemcMusic/SemcMusic.apk=com.sonyericsson.music
/system/priv-app/SomcMovieCreator-release/SomcMovieCreator-release.apk=com.sonymobile.moviecreator
/system/priv-app/StartupFlagV2/StartupFlagV2.apk=com.sonyericsson.startupflagservice
/system/priv-app/Tag/Tag.apk=com.android.apps.tag
/system/priv-app/UpdateCenter-release/UpdateCenter-release.apk=com.sonyericsson.updatecenter
/system/priv-app/com.facebook.services/com.facebook.services.apk=com.facebook.services
/system/priv-app/com.facebook.system/com.facebook.system.apk=com.facebook.system
/system/priv-app/com.sonymobile.retaildemo/com.sonymobile.retaildemo.apk=com.sonymobile.retaildemo
/system/priv-app/sonyentrance2-release/sonyentrance2-release.apk=com.sonymobile.entrance
/system/priv-app/textinput-chn-xhdpi-release/textinput-chn-xhdpi-release.apk=com.sonyericsson.textinput.chinese
/system/priv-app/usb-mtp-backup-transport/usb-mtp-backup-transport.apk=com.sonyericsson.mtp.extension.backuprestore
/system/priv-app/usb-mtp-update-wrapper/usb-mtp-update-wrapper.apk=com.sonyericsson.mtp.extension.update
/vendor/app/ChromeCustomizations/ChromeCustomizations.apk=com.android.partnerbrowsercustomizations.chromeHomepage
/vendor/app/SSGTelemetryService/SSGTelemetryService.apk=com.qualcomm.qti.qms.service.telemetry
#----Core----
#/system/app/Bluetooth/Bluetooth.apk=com.android.bluetooth
#/system/app/BookmarkProvider/BookmarkProvider.apk=com.android.bookmarkprovider
#/system/app/BuiltInPrintService/BuiltInPrintService.apk=com.android.bips
#/system/app/CameraAddonPermission-release/CameraAddonPermission-release.apk=com.sonymobile.camera.addon.permission
#/system/app/CameraCommonPermission-release/CameraCommonPermission-release.apk=com.sonymobile.cameracommon.permission
#/system/app/CameraExtensionPermission-release/CameraExtensionPermission-release.apk=com.sonyericsson.cameraextension.permission
#/system/app/CaptivePortalLogin/CaptivePortalLogin.apk=com.android.captiveportallogin
#/system/app/CarrierDefaultApp/CarrierDefaultApp.apk=com.android.carrierdefaultapp
#/system/app/CertInstaller/CertInstaller.apk=com.android.certinstaller
#/system/app/CompanionDeviceManager/CompanionDeviceManager.apk=com.android.companiondevicemanager
#/system/app/DisplayBooster/DisplayBooster.apk=com.sonymobile.displaybooster
#/system/app/FidoCryptoService/FidoCryptoService.apk=com.qualcomm.qti.auth.fidocryptoservice
#/system/app/FingerprintExtensionService/FingerprintExtensionService.apk=com.fingerprints.extension.service
#/system/app/HTMLViewer/HTMLViewer.apk=com.android.htmlviewer
#/system/app/IddPermissionApplicationCertificate/IddPermissionApplicationCertificate.apk=com.sonymobile.idd.permission.application_certificate
#/system/app/Iengine/Iengine.apk=com.sonymobile.intelligent.iengine
#/system/app/ImageProcessorPermission-release/ImageProcessorPermission-release.apk=com.sonymobile.imageprocessor.permission
#/system/app/IntelligentObserver/IntelligentObserver.apk=com.sonymobile.intelligent.observer
#/system/app/KeyChain/KeyChain.apk=com.android.keychain
#/system/app/LiveWallpapersPicker/LiveWallpapersPicker.apk=com.android.wallpaper.livepicker
#/system/app/ManagedConfigAdminStub-release/ManagedConfigAdminStub-release.apk=com.sonymobile.enterprise.managedconfigadmin
#/system/app/NfcNci/NfcNci.apk=com.android.nfc
#/system/app/PacProcessor/PacProcessor.apk=com.android.pacprocessor
#/system/app/QtiTelephonyService/QtiTelephonyService.apk=com.qualcomm.qti.telephonyservice
#/system/app/SecureElement/SecureElement.apk=com.android.se
#/system/app/SemcAutoPowerOff/SemcAutoPowerOff.apk=com.sonyericsson.autopoweroffservice
#/system/app/SemcClock-somclive-release/SemcClock-somclive-release.apk=com.sonyericsson.organizer
#/system/app/SemcSettings/SemcSettings.apk=com.sonyericsson.settings
#/system/app/SemcSimDetection/SemcSimDetection.apk=com.sonyericsson.simdetection
#/system/app/ServiceMenu/ServiceMenu.apk=com.sonyericsson.android.servicemenu
#/system/app/SimAppDialog/SimAppDialog.apk=com.android.simappdialog
#/system/app/SimSettings/SimSettings.apk=com.qualcomm.qti.simsettings
#/system/app/SmartPrediction/SmartPrediction.apk=com.sonymobile.prediction
#/system/app/SomcExtGps/SomcExtGps.apk=com.sonymobile.gps.extension
#/system/app/SoundEnhancement/SoundEnhancement.apk=com.sonyericsson.soundenhancement
#/system/app/Stk/Stk.apk=com.android.stk
#/system/app/TetherEntitlementCheck/TetherEntitlementCheck.apk=com.sonyericsson.tetherentitlementcheck
#/system/app/TransmitPower/TransmitPower.apk=com.sonymobile.transmitpower
#/system/app/WAPPushManager/WAPPushManager.apk=com.android.smspush
#/system/app/XperiaConfigurator-release/XperiaConfigurator-release.apk=com.sonymobile.deviceconfigtool
#/system/app/btidd/btidd.apk=com.sonymobile.btidd
#/system/app/com.swiftkey.swiftkeyconfigurator/com.swiftkey.swiftkeyconfigurator.apk=com.swiftkey.swiftkeyconfigurator
#/system/app/com.touchtype.swiftkey/com.touchtype.swiftkey.apk=com.touchtype.swiftkey
#/system/app/datastatusnotification/datastatusnotification.apk=com.qti.qualcomm.datastatusnotification
#/system/app/device-monitor/device-monitor.apk=com.sonyericsson.devicemonitor
#/system/app/embms/embms.apk=com.qualcomm.embms
#/system/app/externalkeyboardsinternational-release/externalkeyboardsinternational-release.apk=com.sonymobile.android.externalkeyboard
#/system/app/skin-core-release/skin-core-release.apk=com.sonymobile.runtimeskinning.core
#/system/app/skin-effects-release/skin-effects-release.apk=com.sonymobile.runtimeskinning.effects
#/system/app/skin-picker-release/skin-picker-release.apk=com.sonymobile.runtimeskinning.picker
#/system/app/smtofrgbc/smtofrgbc.apk=com.sonymobile.smtofrgbc
#/system/app/white-balance/white-balance.apk=com.sonymobile.whitebalance
#/system/framework/framework-res.apk=android
#/system/priv-app/ApnUpdater/ApnUpdater.apk=com.sonymobile.apnupdater
#/system/priv-app/ArtFilterCamera-xhdpi-release/ArtFilterCamera-xhdpi-release.apk=com.sonyericsson.android.addoncamera.artfilter
#/system/priv-app/BackupRestoreConfirmation/BackupRestoreConfirmation.apk=com.android.backupconfirm
#/system/priv-app/BlockedNumberProvider/BlockedNumberProvider.apk=com.android.providers.blockednumber
#/system/priv-app/CNEService/CNEService.apk=com.quicinc.cne.CNEService
#/system/priv-app/CalendarProvider/CalendarProvider.apk=com.android.providers.calendar
#/system/priv-app/CallLogBackup/CallLogBackup.apk=com.android.calllogbackup
#/system/priv-app/CameraCommon/CameraCommon.apk=com.sonymobile.cameracommon
#/system/priv-app/CameraPanorama-release/CameraPanorama-release.apk=com.sonyericsson.android.camera3d
#/system/priv-app/CarrierConfig/CarrierConfig.apk=com.android.carrierconfig
#/system/priv-app/Contacts/Contacts.apk=com.sonymobile.android.contacts
#/system/priv-app/ContactsProvider/ContactsProvider.apk=com.android.providers.contacts
#/system/priv-app/CoreSettings/CoreSettings.apk=com.sonymobile.coresettings
#/system/priv-app/CustomizationSelector/CustomizationSelector.apk=com.sonymobile.customizationselector
#/system/priv-app/CustomizedSettings/CustomizedSettings.apk=com.sonyericsson.customizedsettings
#/system/priv-app/DefaultContainerService/DefaultContainerService.apk=com.android.defcontainer
#/system/priv-app/DeviceSecurityService/DeviceSecurityService.apk=com.sonymobile.devicesecurity.service
#/system/priv-app/Dialer2/Dialer2.apk=com.sonymobile.android.dialer
#/system/priv-app/DocumentsUI/DocumentsUI.apk=com.android.documentsui
#/system/priv-app/DownloadProvider/DownloadProvider.apk=com.android.providers.downloads
#/system/priv-app/DownloadProviderUi/DownloadProviderUi.apk=com.android.providers.downloads.ui
#/system/priv-app/EmergencyInfo/EmergencyInfo.apk=com.android.emergency
#/system/priv-app/EnterpriseService/EnterpriseService.apk=com.sonymobile.enterprise
#/system/priv-app/EnterpriseSystemService/EnterpriseSystemService.apk=com.sonymobile.enterprise.service
#/system/priv-app/ExternalStorageProvider/ExternalStorageProvider.apk=com.android.externalstorage
#/system/priv-app/FusedLocation/FusedLocation.apk=com.android.location.fused
#/system/priv-app/GetSetClient-release/GetSetClient-release.apk=com.sonymobile.getset
#/system/priv-app/GetSetSystem-release/GetSetSystem-release.apk=com.sonymobile.getset.priv
#/system/priv-app/ImageEnhancer/ImageEnhancer.apk=com.sonymobile.imageenhancer
#/system/priv-app/InputDevices/InputDevices.apk=com.android.inputdevices
#/system/priv-app/IntelligentBacklight/IntelligentBacklight.apk=com.sonymobile.intelligent.backlight
#/system/priv-app/IntelligentGesture/IntelligentGesture.apk=com.sonymobile.intelligent.gesture
#/system/priv-app/LockscreenSettings-common-release/LockscreenSettings-common-release.apk=com.sonyericsson.lockscreen.uxpnxt
#/system/priv-app/MediaProvider/MediaProvider.apk=com.android.providers.media
#/system/priv-app/MmsService/MmsService.apk=com.android.mms.service
#/system/priv-app/MtpDocumentsProvider/MtpDocumentsProvider.apk=com.android.mtp
#/system/priv-app/MusicFX/MusicFX.apk=com.android.musicfx
#/system/priv-app/NfcExtraResources/NfcExtraResources.apk=com.sonymobile.nfcextension.nfcextraresources
#/system/priv-app/ProxyHandler/ProxyHandler.apk=com.android.proxyhandler
#/system/priv-app/RemoteUnlockService/RemoteUnlockService.apk=com.sonymobile.simlock.service
#/system/priv-app/SEMCSetupWizard/SEMCSetupWizard.apk=com.sonyericsson.setupwizard
#/system/priv-app/SemcCameraUI-xhdpi-release/SemcCameraUI-xhdpi-release.apk=com.sonyericsson.android.camera
#/system/priv-app/SemcPhotoEditor/SemcPhotoEditor.apk=com.sonyericsson.photoeditor
#/system/priv-app/SemcPowerSaveModule/SemcPowerSaveModule.apk=com.sonyericsson.psm.sysmonservice
#/system/priv-app/SemcStorageChecker/SemcStorageChecker.apk=com.sonymobile.storagechecker
#/system/priv-app/SemcTelephonyProvider/SemcTelephonyProvider.apk=com.android.providers.telephony
#/system/priv-app/Settings/Settings.apk=com.android.settings
#/system/priv-app/SettingsIntelligence/SettingsIntelligence.apk=com.android.settings.intelligence
#/system/priv-app/SettingsProvider/SettingsProvider.apk=com.android.providers.settings
#/system/priv-app/SharedStorageBackup/SharedStorageBackup.apk=com.android.sharedstoragebackup
#/system/priv-app/Shell/Shell.apk=com.android.shell
#/system/priv-app/SmartCharger-release/SmartCharger-release.apk=com.sonymobile.smartcharger
#/system/priv-app/SmartCleaner/SmartCleaner.apk=com.sonymobile.smartcleaner
#/system/priv-app/SomcColorGamut/SomcColorGamut.apk=com.sonymobile.colorgamut
#/system/priv-app/SomcExtTelephony/SomcExtTelephony.apk=com.sonymobile.telephony.extension
#/system/priv-app/SomcGloveMode/SomcGloveMode.apk=com.sonymobile.glovemode
#/system/priv-app/SomcIndeviceIntelligence-release/SomcIndeviceIntelligence-release.apk=com.sonymobile.indeviceintelligence
#/system/priv-app/SomcWifiDisplay/SomcWifiDisplay.apk=com.sonymobile.tvout.wifidisplay
#/system/priv-app/SomcWifiService/SomcWifiService.apk=com.sonymobile.wifi
#/system/priv-app/SoundPhotoCamera-xhdpi-release/SoundPhotoCamera-xhdpi-release.apk=com.sonymobile.android.addoncamera.soundphoto
#/system/priv-app/StatementService/StatementService.apk=com.android.statementservice
#/system/priv-app/StorageManager/StorageManager.apk=com.android.storagemanager
#/system/priv-app/SuperStamina/SuperStamina.apk=com.sonymobile.superstamina
#/system/priv-app/SwiqiSystemService/SwiqiSystemService.apk=com.sonymobile.swiqisystemservice
#/system/priv-app/SystemUI/SystemUI.apk=com.android.systemui
#/system/priv-app/TeleService/TeleService.apk=com.android.phone
#/system/priv-app/Telecom/Telecom.apk=com.android.server.telecom
#/system/priv-app/TelephonyThermalCheck/TelephonyThermalCheck.apk=com.sonymobile.telephonythermalcheck
#/system/priv-app/TimeShiftCamera-release/TimeShiftCamera-release.apk=com.sonymobile.android.addoncamera.timeshift
#/system/priv-app/USMHome/USMHome.apk=com.sonymobile.usm
#/system/priv-app/UserDictionaryProvider/UserDictionaryProvider.apk=com.android.providers.userdictionary
#/system/priv-app/VpnDialogs/VpnDialogs.apk=com.android.vpndialogs
#/system/priv-app/WallpaperCropper/WallpaperCropper.apk=com.android.wallpapercropper
#/system/priv-app/WfdService/WfdService.apk=com.qualcomm.wfd.service
#/system/priv-app/assist_app-release/assist_app-release.apk=com.sonymobile.assist
#/system/priv-app/com.qualcomm.location/com.qualcomm.location.apk=com.qualcomm.location
#/system/priv-app/enhancedusbux/enhancedusbux.apk=com.sonyericsson.usbux
#/system/priv-app/ims/ims.apk=org.codeaurora.ims
#/system/priv-app/qcrilmsgtunnel/qcrilmsgtunnel.apk=com.qualcomm.qcrilmsgtunnel
#/vendor/app/ConnectionSecurityService/ConnectionSecurityService.apk=com.qualcomm.qti.qms.service.connectionsecurity
#/vendor/app/TimeService/TimeService.apk=com.qualcomm.timeservice
---Important---
You can go back if you screw something
to enable disabled app
Code:
adb shell pm enable <name of package>
to install "uninstalled" app
Code:
adb shell cmd package install-existing <name of package>
my setup: xZ1c stock G8441_47.2.A.11.228, Android 9 + Magisk 20.1 + TWRP 3.3.1
This seems like a good thread to ask.
I went a step further to debloat my XZ1C and deleted all the apks that I thought were unnecessary.
Unfortunately i I deleted the apk responsible for the video editor (the one that pops up for example after taking a 120fps video with the stock camera app). I thought the apk was the one for the movie creator but instead it was the video editor.
I wish for a kind soul to
1. Tell me the package name of the video editor so I won't delete it again.
2. Upload the untouched apk for me so that I can restore it \ tell me how to extract it from the original ftf
reserved for rooted devices optimizations
It removed Play store.
OP thanks for posting this. I think I might try it out. I currently have Lineage 16 on my XZ1 Compact but it has issues with 5Ghz wifi and in my circumstance, I need to put on airplane mode for the GPS to work.
100% newb question - how do I run the script in adb? I've used adb to disable/enable apps but how do I run a batch file? I tried to find answers online but no solid answers.
Edit: found the answer - I double clicked the bat file.
@megaice
"Root not needed for debloat, but necessary for further optimizations. (with underclocked CPUs, tuned RUN_IN_BACKGROUND privilege and BOOT_COMPLETED intent action of installed/system apps, you can reach 7 days on one charge - with deepsleep active 92% of time. /No wakelock tuning/) "
Are this further optimization implemented?
Sent from my [device_name] using XDA-Developers Legacy app
After applying this debloating script, I lag when I go to bluetooth > connection preferences, it works but freezer for 10 seconds, solution?
Edit: Installing uninstalled apps doesn't work, or how to get it work exactly? Use app path or just package name? Does apk has to be on PC or not? Need explanation :/
@megaice thanks for this script.
is it possible to modify the script so it uninstalls the app for all users, not just current or default user?
how to add packages to the script? i have some packages in my version of stock rom, e.g. Prime Video, for which I can't locate the package in /system/app or /system/priv-app
thanks!
wyt18 said:
@megaice thanks for this script.
is it possible to modify the script so it uninstalls the app for all users, not just current or default user?
how to add packages to the script? i have some packages in my version of stock rom, e.g. Prime Video, for which I can't locate the package in /system/app or /system/priv-app
thanks!
Click to expand...
Click to collapse
Hi There,
1) script curently "uninstalls" app for all users, it uninstall it for user 0 (user 0 = root), so all users are affected.
2) you can list and sort installed packages in you rom by android shell command "pm list packages -f". switch -f means show install path. Some examples are here.
Frano35 said:
After applying this debloating script, I lag when I go to bluetooth > connection preferences, it works but freezer for 10 seconds, solution?
I am using bluetooth with BT repro/audio on car and home system without a problem. Did you try connect to other BT hardware?
Edit: Installing uninstalled apps doesn't work, or how to get it work exactly? Use app path or just package name? Does apk has to be on PC or not? Need explanation :/
Click to expand...
Click to collapse
If you want back uninstalled app, you can enable it by "adb shell cmd package install-existing <package_name_of_app>". The app is still on rom in your phone, just deactivated.
[email protected] said:
@megaice
Are this further optimization implemented?
Sent from my [device_name] using XDA-Developers Legacy app
Click to expand...
Click to collapse
Hi, not in .bat files. It's hand work with 2-3 applications. i want to do a bash script, but had no time for it. (family, RL) maybe later.
techno-viking said:
OP thanks for posting this. I think I might try it out. I currently have Lineage 16 on my XZ1 Compact but it has issues with 5Ghz wifi and in my circumstance, I need to put on airplane mode for the GPS to work.
100% newb question - how do I run the script in adb? I've used adb to disable/enable apps but how do I run a batch file? I tried to find answers online but no solid answers.
Edit: found the answer - I double clicked the bat file.
Click to expand...
Click to collapse
Hi Techno-wiking.
Yea, just double bash it with your sword. Btw. you nickname brings back (video) memories....
andacro said:
It removed Play store.
Click to expand...
Click to collapse
Hi there.
Yea, it's feature. You can edit the script and enable google bloat if you want.
megaice said:
Hi There,
1) script curently "uninstalls" app for all users, it uninstall it for user 0 (user 0 = root), so all users are affected.
2) you can list and sort installed packages in you rom by android shell command "pm list packages -f". switch -f means show install path. Some examples are here.
Click to expand...
Click to collapse
thanks! I still see the apk files of the system apps I "uninstalled" when browsing my root folder at /system/app though. and total storage space used has not changed. is that meant to happen?
wyt18 said:
thanks! I still see the apk files of the system apps I "uninstalled" when browsing my root folder at /system/app though. and total storage space used has not changed. is that meant to happen?
Click to expand...
Click to collapse
Yes, as all it's doing is disabling, you're better off using Titanium Backup or you can use the pm uninstall -k --user 0 com.insertapp.name if you have root to remove them completely.
SXUsr said:
Yes, as all it's doing is disabling, you're better off using Titanium Backup or you can use the pm uninstall -k --user 0 com.insertapp.name if you have root to remove them completely.
Click to expand...
Click to collapse
thanks - i do have root and plan to try this approach, but would doing this make safetynet fail?
SXUsr said:
Yes, as all it's doing is disabling, you're better off using Titanium Backup or you can use the pm uninstall -k --user 0 com.insertapp.name if you have root to remove them completely.
Click to expand...
Click to collapse
just tried this but it does not uninstall - it surfaces an error and then does nothing. I'm also not able to uninstall using Titanium backup. Not sure why but I am on stock rom with magisk root, nothing special
wyt18 said:
just tried this but it does not uninstall - it surfaces an error and then does nothing. I'm also not able to uninstall using Titanium backup. Not sure why but I am on stock rom with magisk root, nothing special
Click to expand...
Click to collapse
Try adb shell first then the command.
SXUsr said:
Try adb shell first then the command.
Click to expand...
Click to collapse
yes, have already tried that of course ... error message says cannot uninstall. might be due to the internal drive being encrypted?
Great work! Saved me a lot of time looking for these unwanted package names.
However, the script broke my themes app. Sometimes it even shows a "has stopped" message.
Is this intentional or something went wrong? Which disabled app has to be re-enabled to fix it? Can't really find anything that could stop it from working.
I attached the customized "deb.xz1c.txt" file I've used.
Bash version of the script:
Code:
#!/bin/bash
set -eu
exec 3< ${1:-deb.xz1c.txt}
while read -u 3 LINE; do
[[ $LINE =~ ^#|^$ ]] && continue
APP=${LINE##*=}
echo ======= $APP =======
adb shell am force-stop $APP
adb shell pm clear $APP
if [[ $LINE =~ ^@ ]]; then
adb shell pm disable-user $APP ||:
else
adb shell pm uninstall -k --user 0 $APP ||:
fi
done

Always getting INSTALL_FAILED_INVALID_APK when trying to uninstall package via adb

Hi everyone,
I would like to debloat my phone by uninstalling apps for my profile instead of disabling them but i'm always getting "Failure [INSTALL_FAILED_INVALID_APK: Missing existing base package for null]"
Code:
PS C:\Program Files (x86)\Mini ADB and Fastboot> ./adb.exe shell pm uninstall -k --user 0 com.microsoft.office.officehubrow
Failure [INSTALL_FAILED_INVALID_APK: Missing existing base package for null]
I tried other apps with the same result. Of course,I have installed the samsung android drivers for windows, activated USB Debugging mode on my phone and if i send other kinds of commands like "./adb.exe shell pm list package", it work.
Thank you for your help!
Because those aren't apps but app stubs. Disable them instead.

Disable system update?

Hi,
I was wondering how I can stop my phone from updating to one UI 3.0? I forgot to disable automatic updates and so it downloaded the update and is saying I will be forced to install in 3 hours...are there certain services in adb I can disable? I tried wiping the cache partition thinking the update might be there, but when I rebooted the message was still there. Please help if you can, thank you.
If it's a carrier phone using a package blocker or ADB to disable the update apk -might- get it.
It's a good question.
I'm curious to see what others with more knowledge about this have to say.
On my AT&T 10+ it only updates on wifi unless you are near... an update tower, if so then bam!
It's important to keep the carrier's autoupdate apk disabled at all times. The carrier can also disable it on their end if you bug them enough.
The phone is unlocked(xac).
I tried installed adb but it didn't work(installed the sdk) but for some reason the platform tools folder would not show up. Going to factory reset and try disabling auto update from the start.
I succesfully disabled software updates using ADB. This is the full recipe I used:
- Conected phone via USB to PC (Windows 7 64 bits). Waited a while for drivers to install.
- Installed "minimal_adb_fastboot_v1.4.3_setup.exe" (from XDA-Developers).
- Enabled USB DEBUG under "Config / Developer Options" on phone.
- Connected phone to PC via USB.
- Opened a Command Prompt under the folder "C:\Program Files (x86)\Minimal ADB and Fastboot"
- Typed ADB SHELL, and the phone´s shell opened.
- Then I used the following commands:
to find packages:
pm list packages | grep soagent
pm list packages | grep wssyncmldm
to disable packages (USE THESE):
pm disable-user --user 0 com.sec.android.soagent
pm disable-user --user 0 com.wssyncmldm
to reenable later (IF YOU CHANGE YOUR MIND):
pm enable --user 0 com.sec.android.soagent
pm enable --user 0 com.wssyncmldm
By the way: after freezing update to Android 11 UI 3.0 for a week, I changed my mind and enabled it. Immediately downloaded the upgrade to 11 and installed. So far so good: not a single issue. I was worried for the "scoped storage" introduced by Android 11, but it was not a problem. I was able to read and write my SD Card as usual, use my "ES File Explorer" as usual, etc, etc. And I can also confirm that battery autonomy is at least the same as with Android 10.
Regards,
Pablo.
paggps said:
I succesfully disabled software updates using ADB. This is the full recipe I used:
- Conected phone via USB to PC (Windows 7 64 bits). Waited a while for drivers to install.
- Installed "minimal_adb_fastboot_v1.4.3_setup.exe" (from XDA-Developers).
- Enabled USB DEBUG under "Config / Developer Options" on phone.
- Connected phone to PC via USB.
- Opened a Command Prompt under the folder "C:\Program Files (x86)\Minimal ADB and Fastboot"
- Typed ADB SHELL, and the phone´s shell opened.
- Then I used the following commands:
to find packages:
pm list packages | grep soagent
pm list packages | grep wssyncmldm
to disable packages (USE THESE):
pm disable-user --user 0 com.sec.android.soagent
pm disable-user --user 0 com.wssyncmldm
to reenable later (IF YOU CHANGE YOUR MIND):
pm enable --user 0 com.sec.android.soagent
pm enable --user 0 com.wssyncmldm
By the way: after freezing update to Android 11 UI 3.0 for a week, I changed my mind and enabled it. Immediately downloaded the upgrade to 11 and installed. So far so good: not a single issue. I was worried for the "scoped storage" introduced by Android 11, but it was not a problem. I was able to read and write my SD Card as usual, use my "ES File Explorer" as usual, etc, etc. And I can also confirm that battery autonomy is at least the same as with Android 10.
Regards,
Pablo.
Click to expand...
Click to collapse
Hello. Thanks for the help. Does the phone have to be in a certain mode in order to use these commands? Like download mode or something? Because I installed adb fastboot and the terminal window came up just as you described. But when I try typing in "ADB SHELL", I get ":adb :shell unknown command SHELL" What am I doing wrong?
Edit: nevermind I figured it out. For anyone else struggling with getting adb to run, I had to run "adb devices" first and then it said "daemon not running" before starting the service and then I saw my phones serial number pop up. After that I was able to run the "adb shell" command and the prompt changed to "d2q: /$" there I put in the services listed by paggps and the auto update service was disabled instantly and the annoying update notification was gone!
Thanks you very much paggps! Maybe Android 11 is good, but I really like having system access to my android folder and some of the other changes just aren't to my taste. I'll probably update in time though once it's more stable. Thanks again! Have a great day!
It appears that there is no ‘wssyncmldm’ package on my Samsung A50 (Model: SM-A505U). Does anyone no of any equivalent commands to those shown above in post #5 by user ‘paggps’ that might disable the system updates on my device? I’m trying to stop the system updates because the system/security updates also update the boot loader version and I’d like to try and root this device some day.
a50:/ $ pm list packages | grep soagent
package:com.sec.android.soagent
a50:/ $ pm list packages | grep wssyncmldm
a50:/ $ *** So it appears that there is no 'wssyncmldm' package ***
a50:/ $ pm disable-user --user 0 com.sec.android.soagent
Package com.sec.android.soagent new state: disabled-user
a50:/ $ pm disable-user --user 0 com.wssyncmldm
Exception occurred while executing 'disable-user':
java.lang.IllegalArgumentException: Unknown package: com.wssyncmldm
at com.android.server.pm.PackageManagerService.setEnabledSetting(PackageManagerService.java:25552)
...
...
a50:/ $
Also here’s what I’ve already tried so far on my Samsung A50 (Model: SM-A505U) device using the User Interface Settings options that I thought might help some users on certain devices with certain system software versions to try and disable the system software updates:
To Enable the Developer Options:
Settings
About Phone
Software Information
Tap on 'Build number' quickly 7 times to Enable 'Developer Options' section of Settings
Enter your screen lock pattern or password
To Enable 'USB debugging' option which will allow ADB to connect to the device:
Settings
Developer Options
Debugging Section
USB debugging ENABLE
And to attempt to disable System Software updates via the User Interface (UI):
Settings
Developer Options
Auto update system DISABLE
Settings
Biometrics and Security
Scroll all the way to the bottom and Select ‘Other security settings’
Security policy updates DISABLE
Thanks for any help or suggestions.
tech_dude said:
It appears that there is no ‘wssyncmldm’ package on my Samsung A50 (Model: SM-A505U). Does anyone no of any equivalent commands to those shown above in post #5 by user ‘paggps’ that might disable the system updates on my device? I’m trying to stop the system updates because the system/security updates also update the boot loader version and I’d like to try and root this device some day.
a50:/ $ pm list packages | grep soagent
package:com.sec.android.soagent
a50:/ $ pm list packages | grep wssyncmldm
a50:/ $ *** So it appears that there is no 'wssyncmldm' package ***
a50:/ $ pm disable-user --user 0 com.sec.android.soagent
Package com.sec.android.soagent new state: disabled-user
a50:/ $ pm disable-user --user 0 com.wssyncmldm
Exception occurred while executing 'disable-user':
java.lang.IllegalArgumentException: Unknown package: com.wssyncmldm
at com.android.server.pm.PackageManagerService.setEnabledSetting(PackageManagerService.java:25552)
...
...
a50:/ $
Also here’s what I’ve already tried so far on my Samsung A50 (Model: SM-A505U) device using the User Interface Settings options that I thought might help some users on certain devices with certain system software versions to try and disable the system software updates:
To Enable the Developer Options:
Settings
About Phone
Software Information
Tap on Build number quickly 7 times
Enter your screen lock pattern or password
And to attempt to disable System Software updates:
Settings
Developer Options
Auto update system DISABLE
Settings
Biometrics and Security
Scroll all the way to the bottom and Select ‘Other security settings’
Security policy updates DISABLE
Thanks for any help or suggestions.
Click to expand...
Click to collapse
Try a search of the apps, "update".
It can have other names.
Or load Package Disabler as it will show there.
These are all the ones on my N10+/Android 10:
com.wssyncmldm
com.sec.android.systemupdate
com.sec.android.soagent
handled it thanks to these commands for my Samsung Galaxy S10E:
pm enable --user 0 com.sec.android.soagent
pm enable --user 0 com.wssyncmldm
thanks!
paggps said:
to find packages:
pm list packages | grep soagent
pm list packages | grep wssyncmldm
to disable packages (USE THESE):
pm disable-user --user 0 com.sec.android.soagent
pm disable-user --user 0 com.wssyncmldm
Click to expand...
Click to collapse
I just performed these steps on my and my-wife's S10+ phones (currently A11 January update). The second step caused the update in the notification bar to disappear. I only just did it, so maybe we'll get an update in the next few days, but it looks like this worked for me, thanks!
schwinn8 said:
I just performed these steps on my and my-wife's S10+ phones (currently A11 January update). The second step caused the update in the notification bar to disappear. I only just did it, so maybe we'll get an update in the next few days, but it looks like this worked for me, thanks!
Click to expand...
Click to collapse
It's DOA
Yay, a nasty app.

Question Remove screenrecoder using adb fail with error -10000

I have MIUI 14 running Andriod 13.
I have been remove those miui bloatware one by one. So far it is fine.
But I am not able to remove the below. Any advise?
pm uninstall -k --user 0 com.miui.screenrecorder
Failure [-1000]
pm list package --user 0 | grep miui
package:com.miui.powerkeeper
package:com.miui.miwallpaper.overlay.customize
package:android.miui.overlay
package:android.miui.home.launcher.res
package:com.miui.face
package:com.miui.phone.carriers.overlay.vodafone
package:com.miui.global.packageinstaller
package:com.miui.micloudsync
package:com.miui.rom
package:com.miui.core.internal.services
package:com.miui.audiomonitor
package:com.miui.aod
package:com.android.server.telecom.overlay.miui
package:com.miui.screenrecorder
package:com.miui.guardprovider
package:com.miui.cloudbackup
package:com.miui.systemui.overlay.devices.android
package:com.lbe.security.miui
package:com.miui.securityadd
package:com.miui.gallery
package:com.miui.calculator
package:com.miui.notification
package:miui.systemui.plugin
package:com.miui.bugreport
package:com.miui.mediaeditor
package:com.miui.system
package:com.miui.securitycenter
package:com.miui.audioeffect
package:com.miui.qr
package:com.miui.home
package:com.miui.wmsvc
package:com.android.systemui.overlay.miui
package:com.android.inputsettings.overlay.miui
package:com.miui.systemui.devices.overlay
package:com.miui.misound
package:com.miui.wallpaper.overlay.customize
package:com.google.android.cellbroadcastservice.overlay.miui
package:com.miui.daemon
package:com.miui.securitycore
package:com.miuix.editor
package:com.android.carrierconfig.overlay.miui
package:com.miui.android.fashiongallery
package:com.miui.settings.rro.device.hide.statusbar.overlay
package:com.android.settings.overlay.miui
package:com.miui.phrase
package:com.miui.extraphoto
package:com.miui.wallpaper.overlay
package:com.miui.core
package:com.miui.settings.rro.device.type.overlay
package:com.miui.compass
package:com.miui.face.overlay.miui
package:com.miui.freeform
package:com.miui.phone.carriers.overlay.h3g
package:com.miui.notes
package:com.miui.miwallpaper
package:com.miui.systemui.carriers.overlay
package:com.miui.backup
package:com.miui.settings.rro.device.config.overlay
package:com.miui.screenshot
package:com.google.android.cellbroadcastreceiver.overlay.miui
package:com.miui.system.overlay
package:com.miui.miinput
package:com.miui.cloudservice
package:com.miui.miwallpaper.overlay
package:com.android.phone.overlay.miui
Some apps are prevented from uninstalling. I believe you can disable them instead.
Bash:
pm disable-user --user 0 <package>
If this still doesn't work you can try manually disabling/uninstalling it in settings.
PS: You don't need adb & computer to open shell, you can download termux/terminal emulator instead
hadrbass89 said:
Some apps are prevented from uninstalling. I believe you can disable them instead.
Bash:
pm disable-user --user 0 <package>
If this still doesn't work you can try manually disabling/uninstalling it in settings.
PS: You don't need adb & computer to open shell, you can download termux/terminal emulator instead
Click to expand...
Click to collapse
Thank you. I notice inside the setting option there is screen recorder there and long list of items. It seems to be by various apps that integrated together.
As such it cannot be removed.
Try to install ADB App Control, so you could delete every system app you want

Categories

Resources